Nodes/ComfyUI-MiniMaxH3-Contex-Loop/MiniMax H3 Tagged Motion Ref (Lazy VIDEO/Path)
ComfyUI Node

MiniMax H3 Tagged Motion Ref (Lazy VIDEO/Path)

The lazy VIDEO/path variant

By ethanfel·Created 17 days ago·Updated about 20 hours ago· 315
MiniMax H3 Tagged Motion Ref (Lazy VIDEO/Path)
  • previous
  • source_video
  • source_audio
  • references
  • reference_fingerprint
  • status
  • preview_source
  • source_audio
video_path
tagmotion
target_subject<Subject 1>
motion_descriptionthe supplied pose sequence, action, and motion timing
reference_short_edge384
use_embedded_audiotrue
audio_tag
timeline_modesequential
skip_first_frames0

Every other reference node in the Contex Loop pack materializes your media as an IMAGE tensor the moment it runs. MiniMax H3 Tagged Motion Ref (Lazy VIDEO/Path) refuses to. It stores a file descriptor - the path plus a fingerprint - instead of a decoded frame batch, and lets Tagged Ref2VA decode, convert to 24 fps, and resize only the exact time window of the current Plan scene, on demand. For a long reference clip, that's the difference between a workflow that sips RAM and one that drags a 5-minute video into VRAM every queue. This is the node you reach for when your motion source is big and your patience is short.

It's also the honest answer to a real trap in this pack: if you feed a raw video path to the eager Tagged Motion Ref, you pay for the whole decode up front. The lazy version exists precisely so you don't.

The two ways in, and the timing knobs

You normally don't type a path at all. Connect core Load Video (ComfyUI's native file-backed loader) to source_video - the node reads only the file path and never calls get_components, so that same loader output can fan out to Run Manager as your source video asset. The video_path string is the direct-path fallback for when you don't have a native VIDEO wire handy. Either route keeps the full frame tensor on disk.

The timing controls are where this node earns its keep:

  • skip_first_frames - ignore this many frames at the source file's native FPS before the Plan timeline begins. The decoder seeks near the point; skipped frames never become tensors at all. Great for chopping a logo or a false start off the front of your reference without re-encoding it.
  • timeline_mode - defaults to sequential here (unlike the eager motion node), so the reference follows Plan timing, which is the right default for masked AV continuation.
  • use_embedded_audio - decode the exact same time window from the video's single embedded audio stream and pair it with the motion reference as Ref2VA audio. Turn it off if the source has music you don't want leaking into the generation.
  • reference_short_edge - 384 default (minimal RAM and appearance pressure), up to source for the original resolution.

It still shares the motion machinery with its eager sibling: target_subject must be existing native labels like <Subject 1>, motion_description is transferable action evidence only, and @tag compiles to a reusable <Subject N>.

Outputs that matter

Beyond the standard references / reference_fingerprint / status, this node adds two: preview_source (an H3_LAZY_MOTION_SOURCE descriptor that lets the scene preview node show the active window without ever building a full IMAGE batch) and source_audio (the complete post-skip soundtrack, for legacy source-track wiring - empty when embedded audio is off and no AUDIO came in). If you're feeding the full track onward for chain alignment, the pack's own docs say to prefer Lazy Motion AV Loader so the native VIDEO can also fan out to Run Manager while its post-skip source_audio drives source-track chain alignment.

Install

Same pack, same dance:

cd ComfyUI/custom_nodes
git clone https://github.com/ethanfel/ComfyUI-MiniMaxH3-Contex-Loop.git

Restart ComfyUI (or Manager → "MiniMax H3 Contex Loop" - the spelling is deliberate). No models bundled: you supply the H3 weights plus video and audio VAEs, and a current ComfyUI build with native Add Guide for MiniMax H3 (PR #15439). ffmpeg on PATH is preferred for review and assembly; bundled PyAV is the fallback. Pack is GPL-3.0; H3 weights are territory-restricted (no US/EU/UK/South Korea, outputs included) - check the license before building anything on it.

Categoryconditioning/minimax/contex_loop/references/prompt_driven

Inputs (12)

NameTypeDefaultDescription
video_pathSTRINGDirect-path fallback for one CFR video. Normally leave blank and connect core Load Video to source_video, then fan that loader out to Run Manager. Neither route materializes the full IMAGE batch.
tagSTRINGmotionStable @tag for the reusable motion Subject.
target_subjectSTRING<Subject 1>Existing H3 Subject that performs the referenced action.
motion_descriptionSTRINGthe supplied pose sequence, action, and motion timingTransferable action evidence only; exclude identity, wardrobe, setting, and lighting.
reference_short_edgeCOMBO384Resize each decoded scene window before it becomes a float IMAGE tensor. 384 minimizes RAM and appearance pressure; source preserves the original dimensions.
use_embedded_audioBOOLEANtrueDecode the same exact time window from the video's single embedded audio stream and send it as paired Ref2VA audio.
audio_tagSTRINGAlias for embedded paired audio. Blank derives @<motion_tag>_audio.
timeline_modeCOMBOsequentialsequential follows the Plan timeline and uses delivered-frame timing for masked AV. restart_each_scene decodes from frame 0.
skip_first_framesINT00–100000000Ignore this many frames at the source file's native FPS before the Plan timeline begins. The lazy decoder seeks near this point; skipped frames do not become tensors.
previousoptH3_TAGGED_REFERENCESOptional preceding Tagged Ref chain.
source_videooptVIDEONative VIDEO from core Load Video. The node reads only its file path, never get_components, so the same loader output can also connect to Run Manager as the source video asset.
source_audiooptAUDIOOptional full post-skip track from Lazy Motion AV Loader. It is passed through as source_audio; when omitted and embedded audio is enabled, this node decodes the full track itself for direct-path compatibility.

Outputs (5)

NameTypeDescription
referencesH3_TAGGED_REFERENCESUpdated prompt-driven registry containing the path-backed motion reference.
reference_fingerprintSTRINGFingerprint of the complete ordered registry for checkpoint safety.
statusSTRINGResolved route, motion tag, timeline, frame origin, and decode summary.
preview_sourceH3_LAZY_MOTION_SOURCELazy descriptor for scene-local preview without a full IMAGE batch.
source_audioAUDIOComplete post-skip soundtrack for legacy source-track wiring; empty when embedded audio is disabled and no AUDIO was supplied.