--- name: video-composition description: Builds a marketing video as code from its source project — frame-driven scenes, captions from the voice JSON, b-roll placement, ducked music, real-time 3D, and 16:9, 1:1, 9:16, 4:5 plus a carousel from one source. Use for an institutional video, a short vertical video (Reels, Shorts, TikTok), code-drawn motion graphics, LinkedIn formats, declaring AI at upload, Remotion, Three.js, or HTML rendered to video. --- # Video composition as code Change a voice-over sentence and re-render; one source, every format. The traps do not show in the preview. The rules below hold for any compositor: [references/remotion.md](references/remotion.md) covers Remotion, and [references/html-capture.md](references/html-capture.md) the license-free HTML + headless Chrome + ffmpeg route. ## Choose the compositor Check its license before writing a scene: Remotion is paid above a small team (the rule is in `references/remotion.md`; whoever signs decides). The HTML route has no license cost and loses the interactive preview. ## Rules for any compositor - **Everything is a function of the frame.** Anything that animates on its own (CSS transitions, chart libraries, `