AI video has one dealbreaker for professional work: it hands you a final render. No elements, no mattes, no control. I built a pipeline that fixes this: every screen in the AI footage comes out as a tracked green screen, split into the standard VFX elements any editor already knows, with the After Effects comp assembled automatically. Total cost per shot: about $7.
Step 1 — AI green-screen plate
Seedance 2.5 via Runway API. Every screen in the shot is green — ready to key.
Step 2 — Derived screen matte
ffmpeg chroma key extracts the screen matte locally. No manual rotoscoping.
Step 3 — Screen content
Optional Seedance Mini generation fills the screen at 4:3, silent.
Step 4 — Auto-assembled comp
OpenCV tracks the corners every frame. The After Effects comp is written by a generated .jsx script — nobody tracked by hand.
Auto-tracked. Pipeline-assembled comp. Corner Pin keyframes written by OpenCV, nobody tracked anything by hand.
Manually tracked version
Coming soon. Same plate, tracked and finished by hand.
Hand-tracked. Mocha Pro track, manual spill suppression, finishing passes.
1. The plate. Generated with ByteDance Seedance 2.5 via the Runway API. The prompt forces every screen to render as flat chroma green with four corner tracking markers.
2. The matte. Derived locally, free. OpenCV finds the four corners on every frame deterministically. No Mocha, no AI tracker.
3. The screen content. A separate flat 4:3 element. Here it's AI-generated period UI; for client work you drop in a real screen capture.
| Step | Tool | Cost |
|---|---|---|
| Generate the green-screen plate (15s, 720p) | Seedance 2.5 via Runway API | $4.50 |
| Derive the screen matte | ffmpeg chroma key (local) | $0 |
| Auto-track the screen corners, every frame | OpenCV quad detection (local) | $0 |
| Screen-content element (optional) | Seedance Mini, silent 4:3 | $2.40 |
| Assemble the After Effects comp | Generated .jsx script | $0 |
| Total per shot | minutes, not days | ~$7 |
AI is about 50% of the way there, and the other 50% is still a designer's hands.
This pipeline automates the mechanical half: generating footage, keying, tracking, matting, assembling the comp. That half used to take days and now takes minutes. But everything on the other side — the taste, the finishing passes, the judgment — is untouched.
Stack: Runway API (Seedance 2.5 / Seedance Mini), Python, OpenCV, ffmpeg, After Effects.