With these Workflows (you'll also need to download my Custom Nodes via the ComfyUI Manager) you can create videos of pretty much infinite Length using the Minimax H3 First Frame Last Frame Model (see attached video example). The main idea is to use Multiple Keyframes to guide the video generation - but it should also work without them as long as you provide an initial starting frame.
I'd recommend using Keyframes because they also serve as a 'quality reset' - in essence they prevent the typical Context and Quality loss that you normally see in long form AI video generation.
Included workflows
The following Workflows are included:
1. Start Video — Herrgotts_H3_Infinite_v1.2_01_Start.json
Use this Workflows to create your first Clip by providing a Start Frame, Prompt and end Frame. I've mainly tested 10 second generations, but it should theoretically work with any length. I wouldn't go for 5 seconds, since there's not enough time for the model to do it's work. After Clip generation, the Workflow and Custom Node automatically saves the latent that we will then use to continue the video.
2. Continue Video into infinity — Herrgotts_H3_Infinite_v1.2_02_Continue.json
Use this Workflows to continue any clip after the first one. Load the respective saved latent from the last Clip using the Custom Node, Input Prompt and (optionally) a new End Frame to guide your video. After the new Clip finished generating, the Workflow will, again, automatically save the new latent that you can then use to expand the video further using this Workflow. Just make sure that the correct latent Clip Index is loaded and saved according to the Output Folder. Using the same Clip Index of an existing latent will override that latent - so be careful!
3. 3-Clip Showcase / Auto Stitch: Create one long Video entirely in one Workflow (similar to Wan SVI) — Herrgotts_H3_Infinite_v1.2_03_3Clip_Showcase_AutoStitch.json
Runs Start Video -> Continue Video -> Continue Video in one queue and automatically creates a stitched final video. The graph is intentionally structured so another continuation block can be added for Clip 4+. You'll just have to provide one Starting Frame, All Prompts for the individual Clips and (optionally) End Frames for the Clips.
4. Stitch Saved Chain — Herrgotts_H3_Infinite_v1.2_04_Stitch_Saved_Chain.json
Combines clips generated separately with Workflows 1/2 and/ or 3. It decodes one saved AV latent at a time and writes directly to MP4, so memory usage does not grow with every clip in the chain. You won't have to worry about running OOM, no matter the video length.
Installation
To install the Nodepack, just open one of the Workflows and use "Missing Custom Nodes" or Search fer "Herrgott" in ComfyUI Manager.
Main features
Easy to use Workflows with intentionally simple structure so you can rearrange/ add nodes/ make adjustments easily.
Direct video + audio latent continuation without decode/re-encode handover (prevents quality loss and ensures smooth continuous motion).
Repeated Last Frame keyframe anchors for visual control and quality resets.
Auto Handover that detects the frozen FL2VA tail instead of using a fixed trim (H3 First Frame Last Frame often Produces Freeze Frames of the End Frame at the end of individual Clips, this prevents this from appearing in your videos).
Phase-aligned context to avoid startup flicker from invalid H3 latent cut positions.
No-Lock Fallback when no final freeze is detected (added this to make sure the video quality remains consistent during the whole video).
Safe Tail Bridge: rendered frames lost only because of latent phase alignment can replace the first 1–2 potentially unstable video frames of the next clip (prevents small lumination changes between Clips from mattering as much).
Short context-aligned video crossfade and independently tested 15 ms audio de-click crossfade.
Full,Stitch ReadyandFinal Clipoutput modes.Save / Load complete AV latents with stitch metadata.
A memory-bounded Saved Chain Stitcher for long projects generated clip by clip.
Lazy, marker-gated H3 runtime hooks that are installed only when continuation is actually used.
If you use the Nodepack or the Workflows, it'd be awesome if you could share your favorite creations!
Have fun Prompting. :)
Description
FAQ
Comments (7)
Is there a save path for the save av latent? Or are we supposed to generate our own first/last frames
Not quite sure what you mean. The Latents get saved as savetensors in the output/h3_continuous folder by default.
thats what i was looking for, thank you
And where can I find these nodes if I don't use the manager?
You can download them on GitHub:
https://github.com/HerrgottMargott/Herrgotts-H3-Infinite-Continuation-Suite
It give me OOM the sooner it reaches the sampler, what am I doing wrong? Do I need to resize images used as ref ?
No, this is most likely caused by the KJ SageAttention Node. If you just queue the generation again, it should work. If it still doesn't, try bypassing/ disabling the SageAttention Node. It'll cost you a little bit of generation speed but should resolve the issue fully.