No video AI, no credits. Every frame is drawn by code on a normal laptop. That's why it costs nothing per video. Here's the whole machine, then a prompt to build a small version yourself.
The 6 parts
- The script is a simple list. Each line says who speaks, what they say, the camera shot and the face (happy, shocked, smug).
- The voices come from edge-tts, which is free. It also gives the timing of every word.
- The scene is built with Three.js, a free 3D library that runs in a web page. The characters are simple shapes: boxes, spheres and a face drawn on top.
- The animation follows the voice. The mouth opens with the volume, captions light up word by word, and the camera cuts on every line.
- Chrome renders it with no window open, one exact frame at a time. ffmpeg joins the frames into an MP4. This isn't screen recording, so nothing stutters.
- Music and sound effects are generated in Python, so there are no licenses to buy. Everything is mixed to -14 LUFS, the loudness the apps expect.
A 35-second video takes about a minute or two to render on our laptop. Writing and fixing the first version took real back-and-forth. After that, a new episode is mostly writing the script.
Build me a tiny code-made cartoon pipeline in this folder. Free tools only. 1. scene.html: a Three.js scene with a desk and two characters made from simple shapes: a person with round glasses, and a small orange block character with big eyes. Expose window.render(t) that draws the exact frame at time t (seconds). 2. script.json: 4 dialogue lines. Each has who, text and camera (close-up or wide). 3. voices.py: make each line with edge-tts, save the audio and the word timings, and build one timeline file. 4. render.mjs: open scene.html in headless Chrome with Puppeteer, step t at 30 fps, take each frame and pipe it into ffmpeg to get a 1080x1920 MP4. 5. Captions: draw them on a canvas over the scene, word by word from the timings. The speaking character's mouth opens with the voice volume. 6. Audio: mix the voices with a quiet music bed generated in Python, and set loudness to -14 LUFS. Start with a 5-second test. Show me one frame before you render the full video.
Example · Real lines from our script file
{ "who": "claude", "text": "Zero.", "shot": "close-up", "face": "happy" }
{ "who": "creator", "text": "Even the voices?", "shot": "medium", "face": "thinking", "pose": "scratch head" }
{ "who": "claude", "text": "Also code.", "shot": "close-up", "face": "happy", "gag": "wireframe body" }Things that will go wrong (and the fix)
- The camera is too close and heads get cut off in 9:16. Ask for wider shots and check stills.
- Arm poses glitch in single frames. Poses must depend on time, not on the previous frame.
- The free voices leave long pauses between sentences. Trim silences longer than 0.2 s.
- Always look at real frames before rendering everything. A finished command doesn't mean a good video.
