MiniMax H3 30-Second Shot: Drift Was Never the Problem
Most AI video models give you a few seconds at a time. MiniMax H3 with the H3 Relay workflow goes further: it renders a shot in 5-second windows and stitches them together. So I asked the obvious question: can a MiniMax H3 30-second shot keep the same character from the first frame to the last, or does it slowly drift into someone else?
My conclusion after one long shot, two seeds and a series of 10-second diagnostic renders: 30 seconds without drift is the easy part. The real problems were the mask and fast motion, and both are cheap to fix. The real price is not your GPU, it is your system RAM.
This is a hands-on test on one shot and one character, not a benchmark. If you want to push a local AI shot past a few seconds, this article gives you the exact workflow changes, the settings, the memory figures and the two fixes I had to find.
- 30 seconds = 6 Relay windows. No drift, no visible seam, two seeds almost identical.
- A tall crest was cut flat in close-ups: the mask margin (64 px) was too small. 160 px fixes it.
- Stutter on fast moves was not caused by Turbo, the 25 to 24 fps conversion, or the window seams. Frame interpolation x2 after the render fixes it (RTX Video Frame Generation: 0.6 min for 30 s).
- VRAM peaks at the same level in every window. System RAM is the limit: 30 s filled all 64 GB.
What I tested
The test is a character swap: a stock dance clip (25 fps, 4K vertical, Pexels), with the dancer replaced by an original AI character, a punk clown. I covered character swap itself, with 70 scored renders, in a separate article: MiniMax H3 Character Swap: 70 Tests, and the Seed Decides. Here the only new variable is length.
How Relay makes a long shot. H3 renders windows of 124 frames (about 5.2 s at 24 fps). Each new window starts from the last 17 generated frames of the previous one, plus one joining frame: 18 frames of history. The character sheet is fed again to every window.
| Duration | Frames | Windows |
|---|---|---|
| 15 s (earlier test) | 360 | 3 |
| 30 s (this test) | 720 | 6 (5 × 124 + 107) |
| 60 s (not tested) | 1,440 | 12 (11 × 124 + 90) |
The window count comes from the Plan node’s own code. You never add windows by hand: the native loop of the workflow chains as many as needed. The Prepare Source node accepts up to 3,592 frames (about 149 s).
Hardware and software
- RTX 5090 (31.8 GB usable VRAM), 64 GB system RAM, Windows, ComfyUI Desktop.
- MiniMax H3 with the Character Swap LoRA V1.5 at 1.0 and the Turbo LoRA at 1.0.
- 8 steps, CFG 1, er_sde sampler, normal scheduler. Output 736 × 1344 (vertical), 24 fps.
- Mask: SAM 3.1, target person (only one person in the clip).
- Seeds 904239 (the workflow default) and 2.
What I changed in the workflow. I started from H3-Character-Swap-Relay-V2.json and saved a copy as H3-Character-Swap-Relay-V2-30s.json:
| Node | Original | 30-second version |
|---|---|---|
Prepare Source · duration_seconds | 0 (whole clip) | 30 |
| Save final video · prefix | h3-relay/character-swap | h3-relay/character-swap-30s |
| Mask preview | PreviewImage (one image per frame) | Saved as a video |
H3RelayExpandMask · expansion_px | 64 | 160 (after the first test, see below) |
The mask preview change is practical: with PreviewImage, ComfyUI tries to show 720 images in the interface. For 60 seconds, only the duration and the prefixes change.
The prompt. A detailed description of the character works better than the workflow’s short default prompt over many windows:
Replace the dancing man in <Video 1> with the character in <Picture 1>: a wiry man in his thirties with cracked white face paint, smudged red circles on the cheeks, black paint around the eyes running down like tears, a closed mouth painted dark red, a tall spiky crest of bleached white hair, a single gold earring, a patched red leather jacket over a yellow-and-black harlequin shirt, torn black jeans and heavy combat boots. Keep the reference character's face, hair and clothing. Follow the source performance's pose, gaze, expression and movement. Preserve the scene and the audio timing.
Does a MiniMax H3 30-second shot drift?
No. Over 6 windows and two seeds, the clown stays the clown. The original dancer never comes back, and I could not see a jump at any of the 5 seams.
To check, I built a strip with the character sheet followed by one frame from the middle of each window (2.6 s, 7.8 s … 27.8 s), and a side-by-side video of the first and last 3 seconds.

It is not perfect, but the flaws are constant, not progressive:
- the jacket is brighter and cleaner than the worn leather on the sheet;
- the patches move slightly from one window to the next;
- the face paint is less cracked when the character is far from the camera;
- the gold earring never appears.
Those differences are there from the first second to the last. Nothing gets worse over time. The two seeds came out almost identical (average PSNR of 30.7 dB between them), so on this shot changing the seed only changes details.
| Render | Seed | Time | VRAM peak | RAM peak |
|---|---|---|---|---|
| 30 s, mask 64 px | 904239 | 33 min 51 s (model loading included) | 31.0 / 31.8 GB | 63.9 / 64 GB |
| 30 s, mask 64 px | 2 | 26 min 12 s | 31.0 / 31.8 GB | 63.9 / 64 GB |
| 30 s, mask 160 px (final) | 904239 | 27.7 min | 30.9 / 31.8 GB | 63.3 / 64 GB |
✅ Proved on this shot. 🟡 Inferred for the reason: the sheet is re-injected in every window, so the identity is reset every 5 seconds, and only 18 frames of history carry over.
What this means for you: on a clean shot, length alone is not what breaks a character swap. A defect in one window can still be copied into the next through the history frames, so watch the whole render. If one window goes wrong, the Plan node’s seed_overrides field lets you re-roll only that window (for example {“4”: 2} renders the fifth window with seed 2). I did not need it here.
Problem 1: the crest gets cut in close-ups
At full size, something was off. Every time the clown leaned toward the camera (around 1.4 to 1.9 s), the top of his crest was sliced flat. When he stepped back, it grew again.

The cause is the mask. SAM 3.1 tracks the original dancer, and H3RelayExpandMask grows that silhouette by expansion_px pixels. The model can only paint inside that zone. The dancer has short hair; the clown has a tall crest. At 64 px, there is plenty of room when he is far away. When his head fills more of the frame, the crest grows with it, but the margin stays at 64 px, and the crest hits the edge.
I set expansion_px to 160 (the node accepts up to 256) and rendered the first 10 seconds again. The crest stays whole, with long spikes, during the lean. The cost is a little more background regenerated around the character.
✅ Proved on this shot (10-second test, then the full 30 seconds).
What this means for you: if your character is bigger than the person they replace (a hat, a crest, a big coat, wings), give the mask more room before you blame the model.
Problem 2: stutter on fast moves
The second problem is harder to see in a still frame. When the dancer moves fast (an arm thrust toward the camera, a hand passing in front of the chest), the clown stutters. Measured frame by frame, the render has about twice as many jerks as the source.
I had three suspects and tested each one on the first 10 seconds, seed 904239, mask at 160 px:
| Suspect | Test | Result | Verdict |
|---|---|---|---|
| 25 to 24 fps conversion | The source is 25 fps; Prepare Source drops one frame per second to reach 24. I retimed the source to 24 fps instead (all frames kept, 4% slower), then set the render back to 25 fps. | Still stutters | ✅ Not the main cause |
| Turbo (8 steps) | Same render without Turbo (20 steps) | About 17% less stutter, at the same moments. Render time 18 min instead of 9. | ✅ Not the main cause |
| Window seams | Motion measured at the 5 seams vs the rest | Identical | ✅ Not the cause |
Without Turbo, fine textures vibrate a little less (the harlequin diamonds, the cracks in the face paint), but the position jumps stay. 🟡 Inferred: the model follows fast motion poorly at 24 fps. I cannot prove the mechanism, only that the three obvious causes are ruled out.
A note on frame rate: you cannot simply generate at 25 fps. H3 is trained at 24 fps, and the Relay nodes, the window planning and the audio slicing are all built around 24. Retiming the source works for sources close to 24 fps (23.976 or 25), not for 30 fps, where you would slow the motion by 20%.
The fix: interpolate after the render
So instead of fixing the render, I fixed the motion afterwards. Frame interpolation creates a new frame between each pair of frames: 24 fps becomes 48 fps, and each jump is cut in half. I tried three interpolators on the final 30-second render:
| Interpolator x2 (24 to 48 fps) | Time for 30 s | VRAM peak | Hands and chain on fast moves |
|---|---|---|---|
| RTX Video Frame Generation (HIGH) | 0.6 min | 3.7 GB | Clean, chain readable |
| RIFE 4.26 heavy | 1.2 min | 3.9 GB | Hands clean, chain fades in places |
| FILM | 1.7 min | 7.3 GB | Dark smudge on the knuckles, chain blurred |
All three place the hand halfway between two frames, with few doubled edges, because the render already has some motion blur. The crest stays whole with all three. The full comparison is in a separate video on Cosmo Edge Labs channel.
✅ Proved (side-by-side at half speed, judged on still frames and confirmed by eye on playback).
One trap: the ComfyUI template for RTX Video Frame Generation saved my first output at 24 fps instead of 48, because VHS_VideoCombine took its frame rate from the source. The result was a 60-second slow-motion clip with the audio out of sync. I fixed the template so that one Multiplier node feeds both the RTX node and a math node that computes output fps = source fps × multiplier (tested: 25 fps to 50 and 75 fps, duration kept).
What this means for you: some defects are cheaper to fix after the render than inside it. Interpolation costs under a minute; re-rendering without Turbo doubled the time for a 17% gain.
The real price: RAM, not VRAM
My GPU was fine. My RAM was not.
VRAM hits the same peak in every window (about 31 GB on the 5090), then drops between windows, because sampling, encoding and decoding run one window at a time. A 30-second render peaks at the same VRAM as a 5-second one.

System RAM is another story. The prepared frames, the masks, the mask preview and the assembled video all stay in memory for the whole shot. From the code, I estimated about 45 GB for 30 seconds. In practice, the render filled all 64 GB, and Windows pushed the rest to the page file: up to 130 GB of committed memory on the first run, 119 GB on the final one. Nothing crashed, but it slowed down.
| Duration | RAM peak (64 GB machine) | Committed memory peak |
|---|---|---|
| 10 s | 46.1 GB | 97.3 GB |
| 30 s | 63.3 to 63.9 GB | 119 to 130 GB |
| 60 s | Not tested | — |
✅ Proved for 10 and 30 seconds. 🔴 Speculative for 60 seconds: my code-based estimate was 85 to 90 GB, and the 30-second estimate turned out low, so expect more.
What this means for you: with 64 GB of RAM, 30 seconds is the practical ceiling. For 60 seconds, cut the source into two 30-second clips and render them separately. I have not tested that yet, and the join between the two clips will need care in the edit.
Limits of this test
- One shot, one character. A full-body dance in a clean interior, with one person who never leaves the frame. If SAM loses the person for a single frame, the render stops.
- Two seeds on the 30-second shot; one seed for the diagnostic 10-second renders.
- One resolution: 768p vertical, 24 fps.
- The stutter cause is inferred, not proven. Only the three obvious suspects are ruled out.
- Not tested: 60 seconds, a shot with a cut (render each shot separately anyway), close-ups talking to the camera (they already fail at 5 seconds, see the 70-test article), machines with less than 64 GB of RAM.
Verdict: can MiniMax H3 hold a 30-second shot?
| Use case | Verdict | Confidence |
|---|---|---|
| 30-second full-body shot, one person in frame | Yes. Change the duration, use a detailed prompt, run 2 seeds. | ✅ Proved |
| Character bigger than the original person | Raise expansion_px to 160. | ✅ Proved |
| Fast moves (arms, hands) | Interpolate x2 after the render, RTX Video Frame Generation first. | ✅ Proved |
| Turbo off to fix stutter | Not worth it: 2× the time for 17% less stutter. | ✅ Proved |
| 60 seconds on 64 GB of RAM | Split into two 30-second clips. | 🔴 Speculative |
So, drift was never the problem. When a long AI shot breaks, check the simple things (the mask, the motion, your RAM) before you blame the length.
Links
- Video: MiniMax H3: A 30-Second Shot Without Drift?
- MiniMax H3 on Hugging Face
- Character Swap LoRA V1.5 on Hugging Face (akatz-ai), with the original
H3-Character-Swap-Relay-V2.jsonworkflow - h3-relay custom nodes on GitHub
- Turbo LoRA (lightx2v)
- SAM 3.1 for ComfyUI
- NVIDIA RTX nodes for ComfyUI (RTX Video Frame Generation, RTX VSR): https://github.com/Comfy-Org/ComfyUI_Nvidia_VFX_Nodes
- Related article: (MiniMax H3 Character Swap: 70 Tests, and the Seed Decides)[https://cosmo-edge.com/minimax-h3-character-swap-70-tests/]
- Related video: “MiniMax H3 Character Swap in ComfyUI: 70 Tests (What Actually Works)“
Your comments enrich our articles, so don’t hesitate to share your thoughts! Sharing on social media helps us a lot. Thank you for your support!
