The project's README from github.com/Songssx/ComfyUI-MiniMaxH3-TimelineDirector. As one markdown file: README.md.
Start with the MiniMaxH3 All-in-One Full Timeline Director workflow: one lightweight graph covers text-to-video, image reference, audio-driven generation, video editing, character replacement, motion transfer, digital humans, and manually segmented long-video generation. It now also supports long-form digital humans and character singing: a reference image preserves identity while a locked long soundtrack is sample-sliced across GEN windows, injected into every segment's AV latent, and restored continuously in the final output.
简体中文 · English
The plugin splits any target duration into continuous segments and completes them in one ComfyUI execution: per-segment generation with one shared seed, direct continuation from the previous AV-latent tail, adaptive Drift-Control video masking, Soft AV audio continuity, overlap removal, and final synchronized assembly. Extend the result by increasing the segment count—without generic Loop nodes or duplicated sampler chains. Practical length is limited only by local VRAM, RAM, disk space, and ComfyUI execution limits.
Download the all-in-one workflow · Chinese guide · Chinese prompt specification
Both videos were produced in one plugin execution and are 52.625 seconds / 1263 frames / 24fps.
Click a poster to play or download the original MP4. All media is hosted as GitHub Release assets, so
it adds nothing to the plugin clone or installation size.
| Finite direct-latent continuation | References with a 48-frame overlap |
|---|---|
![]() |
![]() |
Creator: Shi Xiongsong
Bilibili
·
YouTube
An editable reference-media timeline for ComfyUI's native MiniMax H3 Reference to Video workflow. It brings reference videos, paired soundtracks, fixed Guides, standalone images, and standalone audio into one compact editing surface.
Video-generation agents should read the Chinese segmented long-video guide.
Fixed Guide, Editable Reference, and Boundary Only.Locked Original Audio. Manual GEN windows then drive multi-segment lip-sync or singing; the source is decoded once, sliced by exact sample position, injected into each AV latent with a zero audio-denoise mask, and restored as the continuous final soundtrack.480×270 / 12fps.<Picture N>, <Video N>, and <Audio N> ordering from UI to H3 inputs.width × height for VRAM protection.| Node | Purpose |
|---|---|
| MiniMax H3 Material Planner | Edits media and outputs a compact H3 plan plus an ordered Omni media bundle. |
| MiniMax H3 Omni Media-Bundle Prompt Bridge | Sends the bundle to an installed Prompt Rewriter Omni backend and returns only rewritten_prompt. |
| MiniMax H3 Finite Segment Sampling | Expands an acyclic graph for direct-latent continuation, masking, sampling, deduplication, and assembly. |
| MiniMax H3 Timeline Director (Compatibility) | Preserves the original all-in-one workflow and older saved workflows. |
Long-video generation needs only Material Planner Segment Plan → Finite Segment Sampling. The Plan Encoder remains registered as a hidden internal node for expanded execution graphs and old workflow compatibility.
The split architecture avoids a ComfyUI dependency cycle:
Material Planner ──Omni bundle──> Omni Prompt Bridge ──rewritten_prompt──> Plan Encoder
└────────────────────H3 plan─────────────────────────────────────> Plan Encoder
cd ComfyUI/custom_nodes
git clone https://github.com/Songssx/ComfyUI-MiniMaxH3-TimelineDirector.git
Restart ComfyUI and search for MiniMax H3.
The source UI is English. Simplified Chinese is provided through ComfyUI's official localization system and follows the language selected in ComfyUI settings; restart or reload the frontend after changing the locale.
MiniMaxH3AddGuide is additionally required only when Guides are used.imageio-ffmpeg package for low-resolution preview proxies.No extra pip dependency is declared. The plugin uses PyAV, Pillow, NumPy, PyTorch, torchaudio, aiohttp, and imageio-ffmpeg normally included with a compatible ComfyUI installation.
Only the following two examples are shipped. The first is the normal generation entry point; the second adds Omni prompt expansion.
This is the all-task, lightweight, no-rewiring workflow. Configure only the Material Planner's media, time windows, and prompts to run:
Locked Original Audio when the source signal must remain unchanged.Connect the Material Planner's Segment Plan directly to MiniMax H3 Finite Segment Sampling. With no uploaded media it creates an empty AV latent; with references it encodes each segment's assigned media. Drag GEN windows to define duration and seam overlap, reuse one Global Prompt, or enter complete per-segment prompts. The plugin handles legal-frame alignment, Drift-Control, Soft AV, overlap removal, tail trimming, and final assembly.
The plugin does not auto-segment by reference-media duration or infer whether character identity should continue. Segment ranges, overlaps, and assignments are explicitly controlled on the timeline. For character replacement, use Editable Reference in most cases.
This variant adds the MiniMax H3 Omni Media-Bundle Prompt Bridge, allowing Prompt Rewriter Omni to inspect ordered images, videos, and audio before expanding an H3 prompt. Use it when multimodal material understanding should precede H3 generation.
This workflow requires MiniMax-H3-Prompt-Rewriter-ComfyUI. Follow that project for model, quantization, and VRAM requirements.
width, height, and generation_seconds.Fixed Guide anchors the overlap at its generated-frame positions.Editable Reference sends it as <Video N> without hard-locking the original subject.Boundary Only anchors only the first and last overlap frames.Videos are numbered left-to-right by their intersections with the cyan range. Standalone images and audio follow their visible bin order; drag reordering immediately updates the underlying H3 order.
Generate long videos in overlapping segments. Use the previous segment's final shot as the next segment's opening Guide, and describe that overlap as Shot 1 before new content. When assembling segments, remove the repeated Guide interval from the later segment. See the Chinese agent guide for the full procedure.
Finite sampling carries the previous sampled AV latent tail directly into the next opening and avoids an RGB decode/re-encode round trip. Drift-Control is always active and has no user-facing mode selector. The requested overlap is aligned down to H3's legal temporal grid (for example, 24 becomes 22 and 48 becomes 39), and that same actual value drives latent carry, decoded trimming, and assembly. The mask adapts both to the aligned overlap's video-token count and to the connected sampler's sigma schedule, including accelerated 4-step and 8-step schedules. It dynamically re-noises only the disposable video prefix while keeping the seam-side latent clean. When audio continuation is enabled, the carried overlap stays exact until its final eight audio-latent ticks, where a half-cosine Soft AV mask releases it into newly generated sound. Assembly replaces the preceding audio tail with this incoming Soft AV overlap so the transition is retained in the final output. All segments use exactly the seed shown on the sampling node. The old generic-loop helper nodes and PR #15923 dependency have been removed.
Drift-Control AV is adapted from ComfyUI-MiniMaxH3-Contex-Loop under GPL-3.0. It remains experimental and is intended for same-shot long-chain comparisons.