Work AI & Agents
Project Video Studio
Turns a script, recording or brief into an editable layered video with captions, checked audio and portable source packages.

What was built
A local Python engine that turns an approved script, recorded explanation or brief into an editable video project. It prepares narration or transcription, renders up to four visual layers with masks and depth-ordered callouts, composes separate portrait and landscape layouts and exports verified masters plus portable source packages. The October 21 v2 rebuild added recorded-speech timing, style checkpoints, local reference measurements, a Blender 3D adapter and safe shot reuse; the latest addition is local human matting, so text can sit behind a presenter. 95 automated tests pass; type checks, lint, Bandit, Semgrep and secret scanning pass, and GitHub CI passed all four jobs. Real 70.7-second portrait and 307.1-second landscape validation films fully decode at about -16 LUFS. It is local software with no hosted service; full style reconstruction, autonomous shot production and native editor round trips remain unfinished, and natural talking-head matting needs separate review.
Problems solved along the way
- Problem
- Putting text behind a presenter needed foreground masks prepared by hand in other tools.
- Fix
- Added local, hash-pinned human matting that writes synchronized foreground and mask clips and keeps the original footage in the package.
- Result
- A real composition placed text behind the person and a panel in front; cancellation, deadlines and restoration were verified. Natural talking-head quality still needs review.
- Problem
- Reusing a rendered shot after its source or settings changed could pair new metadata with an old picture.
- Fix
- Bound every shot to a render recipe that hashes source bytes, inputs, engine code, packages, fonts, tools and models.
- Result
- Only matching completed shots are reused; any changed dependency forces a re-render, and failed runs never advance the last-success pointer.
- Problem
- Default portrait caption scaling covered the lower view, and a source note was hidden behind footage.
- Fix
- Moved captions to an explicit pixel canvas with ratio-specific safe areas and gave source notes a bounded foreground region.
- Result
- Both fixes have focused real-frame regressions; the portrait and landscape validation films fully decode with measured loudness.