项目的 README,来自 github.com/Songssx/ComfyUI-MiniMaxH3-TimelineDirector。合并为一个 markdown 文件: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.
简体中文 · 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.
For long-form digital humans, standalone audio can be set to Locked Original Audio. The source waveform is sliced on the timeline and injected through the native AV-latent mask/sigma path, so lip motion remains audio-driven while the final soundtrack preserves the uploaded recording unchanged.
Download the all-in-one workflow · Chinese guide · Chinese prompt specification
The Material Planner now integrates a MiniMax H3 adaptation of SelfLift progressive-resolution
sampling. Enable Two-stage sampling, select an H3 Latent Upscaler from
ComfyUI/models/latent_upscale_models/, and set High-resolution sampling steps. A recommended
starting point is 25% of the scheduler's total steps: for an 8-step schedule, set 2 high-resolution
steps to run 6 low-resolution steps + latent lift + 2 high-resolution steps. The high-resolution
value must be greater than zero and lower than the scheduler's total step count.

This is not a per-segment upscale shortcut. Every later segment carries both the preceding native low-resolution latent tail and the final high-resolution context, with Drift-Control applied at both resolution stages. The resulting long-video path avoids progressive quality loss from repeated resizing or VAE round trips and removes the blur, white flashes, and visible seams normally associated with multi-segment generation.
Creator benchmark: a 1536×832, 29-second video rendered directly in approximately 10 minutes
with a 75% low-resolution / 25% high-resolution schedule. Actual speed depends on GPU, VRAM,
model, step count, and reference complexity. When standalone audio is locked or reference-video source
audio is enabled, the native zero-denoise AV path restores one continuous source waveform; creator
tests retain 99%+ content and timing consistency. The final MP4 saver may still re-encode audio.
One workflow covers text-to-video, image-to-video, audio-reference generation, image plus audio, reference-video editing, character replacement, motion transfer, digital-human lip sync, and multi-segment long videos without visible seams or progressive degradation.
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
permissionnine9.spill-seg-offload), adding per-segment frame eviction and optional FP16 merged-frame storage. Thanks to FangZhangTNS.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.480×270 / 12fps.<Picture N>, <Video N>, and <Audio N> ordering from UI to H3 inputs.width × height for VRAM protection.comfyui-SelfLift is not required.| 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 Low-Memory Segment Video Sampler | Decodes and encodes one segment at a time in ComfyUI's temporary folder, then joins encoded segments as VIDEO; no latent checkpoints or rerun state. |
| MiniMax H3 native-loop node set | Splits segment selection, continuation preparation, sampling, and assembly for free composition inside ComfyUI Start Loop / End Loop. |
| MiniMax H3 Preset Export | Connects to Material Plan or Segment Plan and saves configuration-only or complete media-bearing preset folders. |
| MiniMax H3 Local Preset Loader | Finds local presets and feeds the Material Planner's new Import Preset input. |
| 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 is also public now so native Loop workflows can place it explicitly inside the loop body.
For long or high-resolution output, use MiniMax H3 Low-Memory Segment Video Sampler and connect its
Final Video directly to SaveVideo. It never creates one full RGB-frame tensor: each decoded segment is
immediately encoded to a temporary MP4 and released, then the encoded sources are joined. Segment files are
removed after assembly, the final temporary file is cleaned when its VIDEO object is released, and stale
24-hour spill folders are removed on the next run. See
the all-in-one low-memory workflow.
Preset Export supports configuration (timeline and creative settings only) and complete (also copies
referenced video, image, and audio files). It creates an ordinary folder under
ComfyUI/output/MiniMaxH3_Presets/; no ZIP is required. Copy that folder to the same location on another
installation, refresh Local Preset Loader, and connect it to Material Planner's Import Preset input. The
first run writes all media, segment timings, and per-segment assignments back into the planner UI. The loader
can then be disconnected without losing the imported state. Import preset remains available for loading it
into the UI immediately before a run.
Presets intentionally omit workflows, model/LoRA selections, plugin versions, and ComfyUI versions. A complete
preset materializes media into the fixed ComfyUI/input/minimax_h3_timeline_director/presets/ subtree while
leaving the shared preset folder unchanged.
The split nodes can drive ComfyUI's native generic loop. Connect Initialize Segment Loop state to
Start Loop.initial_iteration_value and its count to num_iterations. Inside the loop, use
iteration_index → Select Loop Segment → Plan Encoder → Prepare Loop Segment, then place either a
normal sampler or the bundled H3 two-stage sampler and decode the result. Feed Accumulate Loop Segment
state to both End Loop.next_iteration_value and output_value; connect End Loop.outputs to
Finish Segment Loop. The legacy one-node Finite Segment Sampling path remains available for saved workflows.
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 two-stage runtime is bundled with this plugin; do not install comfyui-SelfLift separately. Two-stage sampling still requires a compatible MiniMax H3 latent-upscaler checkpoint under ComfyUI/models/latent_upscale_models/; the Material Planner lists models from that standard directory automatically.
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.
The plugin ships four example workflows: the normal all-in-one entry point, low-memory long-video output, Omni prompt expansion, and finite-segment generation with ComfyUI's native Loop nodes.
This is the all-task, lightweight, no-rewiring workflow. Configure only the Material Planner's media, time windows, and prompts to run:
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 keeps the complete Material Planner and the same one-/two-stage seam logic, but uses MiniMax H3 Low-Memory Segment Video Sampler. Every finished segment is decoded, encoded to temporary video, and released immediately; the node sends VIDEO directly to SaveVideo, making it suitable for longer or higher-resolution runs.
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.
This workflow combines the split segment nodes with ComfyUI's native Start Loop / End Loop, making it easy to insert custom processing inside the loop body. It is shipped as a read-only example and retains the user's original configuration.
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.