Overview
AP-generated architectural blueprint for a paradigm shift from artisanal video editing to procedural asset generation. Treats video as a compilation target defined by code (React/TypeScript/Python), enabling content generation at CI/CD speed rather than human editing speed.
Architecture
I. Code-as-Video Engine (Remotion & Revideo)
Framework decision matrix:
| Framework | Best For | Mode |
|---|---|---|
| Remotion | Data-driven content (charts, code walkthroughs) | React-based production |
| Revideo | Headless CI/CD rendering (Motion Canvas fork) | Automated nightly builds |
| Motion Canvas | Design-time iteration (timeline scrubbing) | Interactive development |
Key paradigm: Videos defined as React components. A change in theme.ts propagates to all intro/outro assets across the organization.
II. Hybrid Assembly Pipeline (Kdenlive & Blender)
- Kdenlive as scriptable assembly station — Python generates
.kdenliveXML project files, pre-populating timelines with Remotion-rendered assets - Blender as physics engine — headless
bpyexecution for 3D asset rendering (lossless EXR), imported into Kdenlive for final assembly - Whisper integration for AI-driven subtitle generation directly in timeline
III. Adversarial Training Data Flywheel (RSI Integration)
Strategic differentiator: the video pipeline manufactures training data for the local AI system.
- Generate — Render videos, 50% clean, 50% with programmatic corruption (Gaussian noise, pixel shifts, bitrate starvation)
- Manifest — Generate
manifest.jsonanswer key with ground truth - Co-Training — Feed to local AI; failures to detect known corruption trigger targeted training updates
IV. Advanced Geometry
- Dynamic SDFs (Signed Distance Fields) — geometry defined as GLSL math functions instead of heavy 3D meshes, enabling audio-reactive morphing that’s version-control friendly (KB vs GB)
- CRDTs for local-first collaboration — mathematical convergence over centralized locking
Related
- dr-zero-local — The local AI system that consumes adversarial training data from this pipeline
- procedural-generation-workflows — Multi-tier procedural generation patterns for treating creative assets as compilation targets