cinecode
cinecode turns a storyboard written as JSON into a finished animated film: painted sets, animated characters, camera
work, captions, music, sound effects and a mastered mix, rendered to an MP4 with subtitles. Everything is drawn and
synthesized by code, with no image or music models and no stock assets. Only the voices come from a model (Gemini
TTS); they are checked and cached on disk, so a voiced film re-renders the same way every time without a network.

Watch the films and read the docs at zakaria.dev/cinecode. The main demo, Our Solar
System, is a 15-minute film the plugin made: watch it or
download it in 1080p.
How a film is made
- Screenplay.
films/<slug>/screenplay.md: logline, characters (rig, look, voice), locations and times, a music
plan, then scenes and shots with their lines.
- Storyboard.
films/<slug>/film.json: the cast, the sets, and for each scene where everyone starts, then each
shot's camera and its beats (say, walk, look, gesture, sound, music…). See docs/storyboard.md.
- Check.
cinecode check validates every field and lists every problem with its path.
- Voice.
cinecode voice generates each line with Gemini TTS, transcribes it, retries takes that don't match
and caches the result. Shot lengths now come from the real takes.
- Contact sheets.
cinecode sheet draws the middle frame of every shot; strips of frames show the motion. Look,
fix film.json, look again.
- Lint.
cinecode lint checks staging and editing: floating feet, speakers out of frame, heads cut by the frame
edge, captions over faces, jump cuts, continuity across cuts, and more, with a fix tried for each framing fault.
- Music and mix.
cinecode mix composes the score and mixes it with the dialogue, effects and ambience.
- Animatic.
cinecode animatic: a quick preview at half size and 12 fps, with sound.
- Render.
cinecode render: full HD in parallel, with an .srt and soft subtitles, checked with ffprobe.
What's in the engine
- Rigs. 14 characters, inked and cel-shaded: human, hare, tortoise, fox, owl, squirrel, songbird, mouse,
hedgehog, badger, deer, frog, beetle and butterfly. Each has poses, gaits, gestures and expressions; the human has
ages, builds, hair and clothes. Two things as well: a
planet (eleven worlds, Saturn's rings at their true radii)
and a telescope. docs/cast.md
- Sets. 8 painted locations (meadow, forest, stream, wayside, valley, hill, village, and space) with parallax
layers, props that sort in depth with the actors, named anchors (ground, surfaces, perches, hollows), walkable
regions with routing around obstacles, water and stepping stones, eight times of day with sun shadows (or a kit's
own: space has one), and an ambience bed. docs/sets.md
- Camera. Shot sizes from establishing to extreme close-up framed on the actors you name, a point of the set, or
part of a subject (a crop or a
focus); push-in, pull-out, pan, track, tilt and handheld moves, and moves through
depth (a dolly, a dolly-zoom) among things in front of and behind each other; lead room, headroom and caption-safe
framing; depth of field on close shots; dissolves between scenes. docs/storyboard.md
- Acting. Walks, runs, hops and flights along routes; fliers that hover; looks, eyelines and listeners who keep
watching the speaker; expressions that change behind a blink; lip sync from the voice's envelope; blinking and
breathing; riding on another character; wading.
- Voices with QA. 30 Gemini voices, each line's direction kept short, every take transcribed and held to a word
error rate of 0.2, up to three takes, cached by content. docs/sound.md
- Music. A procedural score in ten moods, phrased in four-bar periods, voice-led, arranged by intensity, with a
film-wide motif stated on a chosen instrument and stings placed on story beats.
docs/sound.md
- Sound and mix. 39 synthesized effects, automatic footsteps by surface, eight ambience beds, dialogue
normalization, music ducking and a two-pass loudness master to −16 LUFS. docs/sound.md
- Effects. Built-in fields and one-shots (dust, splashes, sparkles, leaves, rain, fireflies, motes, mist) and
nine built-in custom effects for skies and space (a star seen by eye, the Sun's glow, a star stream, a telescope's
eyepiece, light crossing to a planet, an orbit, a row of Earths across a planet, its moons, drifting debris).