ComfyUI-MiniMaxH3-TimelineDirector README

The project's README from github.com/Songssx/ComfyUI-MiniMaxH3-TimelineDirector. As one markdown file: README.md.

ComfyUI MiniMax H3 Timeline Director

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

Headline feature: lightweight unlimited-length video generation

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

Lightweight unlimited-length workflow

Two directly generated, approximately one-minute examples

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
Play example one Play example two

Creator WeCom contact card

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.

Highlights

Main long-video workflow nodes

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

Installation

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.

Requirements

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.

Example workflows

Only the following two examples are shipped. The first is the normal generation entry point; the second adds Omni prompt expansion.

Download workflow

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.

2. Timeline planning with Prompt generation

Download workflow

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.

Basic usage

  1. Set width, height, and generation_seconds.
  2. Add video, image, and audio files using the toolbar or direct file drop.
  3. Move, trim, or split video clips, then place the cyan range over the interval to generate.
  4. Select a purpose for each video:
    • 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.
  5. Enable or disable paired video soundtracks as needed.
  6. Verify the reference labels at the bottom and run the connected encoder or prompt workflow.

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.

Segmented long-video generation

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 direct-latent continuation

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.

Credits

License

GPL-3.0

ComfyUI-MiniMaxH3-TimelineDirector (Songssx/ComfyUI-MiniMaxH3-TimelineDirector)

Searching Database…

这是什么?它是 ComfyUI 原生 MiniMax H3 Reference-to-Video 工作流的可编辑参考素材时间线界面,让你在同一条时间线上排列参考视频、图片、音频和 Guides,驱动文生视频、角色替换、动作迁移、数字人和长视频生成。
这是独立应用还是我添加到 ComfyUI 的插件?它是一个 ComfyUI 自定义节点插件,不是独立应用。你把它安装到现有的 ComfyUI 环境中,它会在原生 MiniMax H3 节点旁添加时间线 UI 节点。
怎么安装并让它跑起来?把它作为 ComfyUI 自定义节点安装,然后重启 ComfyUI 并搜索“MiniMax H3”找到它的节点。接下来,加载提供的 all-in-one 工作流,并配置 Material Planner 的素材、时间窗口和提示词。
使用它之前我需要先准备好哪些模型或节点?你需要一个较新的 ComfyUI 版本(带原生 MiniMax H3 节点)、MiniMax H3 Ref2VA 模型以及 CLIP、视频 VAE 和音频 VAE,还需要 Python 3.10+。只有使用 Fixed Guide 片段时才需要 MiniMaxH3AddGuide。
它会自动帮我划分视频片段并处理角色连续性吗?不会——该插件从不按参考素材时长自动分段,也从不推断角色身份是否应在片段之间延续。每个片段的范围、重叠和素材分配都由你在时间线上显式控制。
与普通 ComfyUI 视频工作流相比,它的招牌功能是什么?它可以在单次 ComfyUI 执行中生成实际上不限长度的视频:把目标时长拆成共享同一个种子的连续片段,直接从前一片段的 AV latent 尾部继续,再通过去重叠拼接在一起——不需要通用的 Loop 节点,也不需要重复的采样器链。
什么是 Drift-Control?为什么它很重要?Drift-Control 是一个在片段续接期间始终启用的自适应视频遮罩系统;它只在接缝处对可丢弃的视频前缀做动态重加噪,同时保持接缝一侧的 latent 干净,从而避免长多片段视频随时间出现视觉漂移。
它能在长片段中生成对口型或唱歌的数字人吗?可以。你为每个片段指定一张角色图,并把一条长音轨标记为“Locked Original Audio”;音频只解码一次,按精确的采样位置切片,注入每个片段的 AV latent,因此对口型或唱歌在整个输出中保持连续。
作者为什么移除了旧的通用循环辅助节点?它们被采用直接 latent 续接的 Finite Segment Sampling 方法取代,避免了 RGB 解码/再编码的往返,也不再依赖先前的 ComfyUI 改动(PR #15923),让长分段生成更轻量、更可靠。
Creator
Songssx
Size
0.9 MB
Stars
647
Age
1mo
Commits · 90 Days