r/StableDiffusion • u/3unjee • 3h ago
Question - Help Minimax H3 video compositing experiment
I did a lot of experimentations with 2d image with comfyUI / turboCLI and turbopixel in order to composite still frames instead of regenerating each time thus preserving the quality and "editability" of a given scene.
Now I'm experimenting the same with video layering and composition with Minimax H3 video to video. I was wondering if you'd be interested about the process and have feedback or suggestion to make about the process ?
--- Software baseline ---
MiniMax H3 with Comfy-Org's bf16 weights (bf16 transformer and Qwen3-VL text encoder, fp16 video VAE), run headless; 20 steps res_multistep, cfg 1, no Turbo LoRA, beta scheduler for the reference passes. 2x via ComfyUI's H3 latent upscaler plus an 8-step refine at denoise 0.25.
--- Here's the breakdown ---
The idea: lock a baseline shot first, then edit it like layers in an image editor, changing only the pixels that need to change.
- First frame. A 21:9 still (1376x576), made in Midjourney and refined with masked FLUX and Qwen-Image edits.
- Pass 1, the base. MiniMax H3 (quality), 5 s, with the first frame pinned and two picture references (the building and the car). This locks the camera move, the scene and the action. Latents are saved.
- Pass 2, the edit. The base goes back into H3 as a reference video, with the same first frame and seed, and a [video editing] prompt naming one change: "the fanlight blows out in an explosion about two seconds in". The camera matches the base to the pixel on every frame; only the rain and grain get redrawn.
- Composite. A per-frame difference mask between the two passes, with a threshold and glow, limited to a box around the change, smoothed over neighbouring frames and feathered. Everything outside the mask stays pass 1. The edit's audio is kept, for the blast.
- Upscale. Both passes are refined at 2x (2752x1152) from their own latents at denoise 0.25, and they still line up to the pixel. They're blended through the 1x mask scaled up, rather than a new diff, so the two independent redraws don't leak in.
Costs (Modal B200 at $0.002081/s, about $7.49/h, GPU time only):
- Pass 1: about 2.5 min, about $0.30 (estimated)
- Pass 2: about 4 min, about $0.50. The reference video roughly doubles the tokens: about 7 s per step against 2.4.
- 2x of both passes: about 10 min, about $1.25
- Compositing: runs locally, free
That's about $2 for a 5 s shot at 2752x1152 with one edit. Each extra edit adds about $1.20 (its pass plus its 2x).

