AICG3D H3 最终合成 · 单线成片
Stitching the H3 Segment Chain Together
- final_segment
- video
- saved_file
- seam_report
- final_sequence
MiniMax H3 gives you 4 to 15 seconds of video with synced audio per generation. A short drama is not 15 seconds. So you generate a chain of segments, and then you have a folder of clips and a stitching problem - which is, per the long-form video threads, the part everyone hits and nobody enjoys. "AICG3D H3 最终合成 · 单线成片" is the node that ends that problem: point it at the last segment and it walks backwards through the whole chain, decodes each piece in order, and writes one film.
What it actually does
The node takes a single input - the last segment of your chain - and resolves the upstream segments itself. It doesn't load all of them into RAM at once, either: it decodes one segment at a time and streams the frames and audio into the same encoder. Memory stays roughly proportional to one segment, not to your twelve-segment epic. That's the design decision that makes 3-minute output possible on a normal card.
The seam work happens as the pieces go in. The opening frames of each segment get brightness-matched to the previous segment's final frame - a short additive ramp rather than an abrupt jump - with the total correction capped so it can't drift your exposure across the film. A genuine hard cut stays a hard cut; the pack only bridges single-frame pose jumps inside the same shot, so you don't get accidental cross-dissolves where you wanted a cut.
Then it hands you a report. The seam_report output lists the brightness delta at each seam and flags anything worth a human look, ending in a plain verdict line. It's the single most underrated output here: on a long chain, one bad seam is the difference between "AI short film" and "slideshow with sound."
Inputs and outputs you'll touch
Two required inputs, and honestly you only think about one:
final_segment(wildcard) - thesegmentoutput of your last 视频段落 node. Not the first, not all of them.filename_prefix- where the file lands underComfyUI/output, e.g.video/my_drama.
The optional cache_only / cache_scope / cache_segment_count / cache_segment_indices / cache_segment_nodes / cache_chain_key fields are plumbing the frontend injects when you re-roll one segment and resynthesize from cache. Leave them alone; they're how the pack avoids re-rendering eleven good segments to fix the twelfth.
Four outputs: video (wire it into a save node or straight into the HD 二采 nodes), saved_file (the path, as a string - handy for logging), seam_report (text), and final_sequence, a MINIMAX_H3_FINAL_SEQUENCE packet that carries the finished film plus the H3 model bundle and the sampler/sigmas that produced it. That packet is what the single-wire upscale node eats, so you never re-wire models downstream.
Install
ComfyUI Manager, search AICG3D or 短剧工作台 or MiniMax H3. Or by hand:
cd ComfyUI/custom_nodes
git clone https://github.com/JGRFW/comfyui-AICG3D
# restart ComfyUI, then hard-refresh the browser (Ctrl+F5)
The root requirements.txt is deliberately empty - the maintainer emptied it in v1.1.26 after Manager kept hanging on imageio-ffmpeg installs at boot. What you do need for final assembly is FFmpeg; either install the bundled optional dependency into the ComfyUI Python (not system Python, this is the classic mistake) or have ffmpeg on PATH:
python -m pip install imageio-ffmpeg # run with ComfyUI's own python
Apple Silicon and Linux users: VHS_FORCE_FFMPEG_PATH is honoured if you want to point at a specific binary.
Where people get burned
- "最终合成需要连接最后一段的 segment" - you connected the first segment, or a different output. It wants the tail of the chain.
- Re-rolling a segment, then combining: you'll get
抽卡缓存只找到 N 段 … 请先完整运行一次所有段落. The cache path needs every segment already rendered once. Run the whole chain before you start re-rolling singles. - No FFmpeg - the node reports it, and the fix is almost always installing into the wrong Python environment.
- It's a Chinese-language pack. Node labels, tooltips and error strings are in Chinese. Not a bug, but budget for it; the GitHub README is machine-translatable and the underlying code is readable English-in-comments.
- Zero community footprint. A phrase search for
AICG3Dacross the Reddit corpus returns nothing, which tells you what this is: a single maintainer's integration of @goohai's and @nkxx188's H3 work, not a bandwagon. Judge it on the source, which is clean and honest about what it wraps. - Licence, not a bug: H3's weights are released under a community licence that excludes the US, EU, UK and South Korea from its Applicable Territory. If you're in one of those places this whole pack is the wrong tool for legal reasons, and no setting fixes that.
Once the film is out, the interesting question becomes resolution - that's the 二采放大 node's job, and it's the one that turns a 720p preview into something you'd hand to a client.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| final_segment | * | 接最后一段的 segment;抽卡缓存合成模式由前端注入缓存标记。 | |
| filename_prefix | STRING | video/MiniMax_H3_Sequence | 保存到 output 目录的前缀,例如 video/我的长片。 |
| cache_onlyopt | BOOLEAN | false | — |
| cache_scopeopt | STRING | — | |
| cache_segment_countopt | INT | 00–100000 | — |
| cache_segment_indicesopt | STRING | — | |
| cache_segment_nodesopt | STRING | — | |
| cache_chain_keyopt | STRING | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| video | VIDEO | — |
| saved_file | STRING | — |
| seam_report | STRING | — |
| final_sequence | MINIMAX_H3_FINAL_SEQUENCE | — |