Published video guideVideo generation

MiniMax H3: Tracked Video Inpainting

Track an object with SAM 3.1, clean its mask, and regenerate a cropped region before blending it back into the source video.

9:33 video
My library

Saved items and progress stay in this browser. No account needed.

Watch on YouTube The original video contains its resource list and full demonstration.
THE HARDWARE CONTEXT

Demonstrated on an RTX 5060 Laptop GPU with 8 GB VRAM and 32 GB system RAM. This is a reported test setup, not a minimum specification or a guarantee for every scene.

Before you start

  • The MiniMax H3 model, text encoder, video/audio VAEs, and custom nodes identified in the tutorial.
  • SAM 3.1 for object tracking and the source video you intend to edit.
  • A compatible local ComfyUI environment with enough system RAM for model offloading.

Inside the tutorial

  1. 01

    Select the working range

    Use the H3 Timeline controls to choose the portion of the source video to edit. Confirm the loaded range before tracking or sampling.

    Watch at 3:08
  2. 02

    Track the intended object

    Describe the source object in the tracking prompt, then inspect the object IDs and preview. For multiple objects, the selected indices and maximum-object setting must agree.

    Watch at 4:34
  3. 03

    Clean the mask and release SAM

    The workflow unloads the tracking model before generation. Mask cleanup controls remove short-lived artifacts and adjust edge coverage; they need to suit the actual clip.

    Watch at 6:06
  4. 04

    Regenerate a smaller working area

    The crop reduces the area H3 must process. An aligned update mask defines the editable region, while a separate feathered mask blends the result into the original video.

    Watch at 7:00
  5. 05

    Describe the replacement

    The generation prompt describes the desired result. In the demonstrated object replacement, the original object belongs in the tracking prompt, not the replacement prompt.

    Watch at 8:59

What to keep in mind

  • Tracking and mask quality directly affect the edit. Check previews for missing edges, incorrect object IDs, and temporal gaps.
  • The crop dimensions and cleanup values shown are clip-specific examples, not universal settings.

Source reviewed August 31, 2026. These notes summarize the published tutorial; they are not a new hardware test or a separately verified workflow release.

Back to the overview