sarpstar/cinecode
Films made with code. Short films, long YouTube videos, ads, explainers and music videos: an AI coding agent writes the script, builds every frame in code, designs the sound and hands you an MP4.
cinecode is a tool that lets you create films—short films, YouTube videos, ads, explainers, music videos—by describing an idea in one sentence. An AI coding agent (like Claude Code or Cursor) then writes code that generates every frame, designs the sound, and outputs a finished MP4 file. It runs entirely on your own computer; no paid service is required.
How it works
- You give an idea – one sentence is enough.
- The agent asks a few questions – about style, length, format, look, sound, and music. It suggests answers (marked with ★) but you decide.
- It shows a plan – a second-by-second breakdown and a director’s card you can edit line by line. Before building the whole film, it shows you two sample frames.
- It renders a draft – checks motion, loudness, readability, and repeats. An independent viewer also reviews it. Your notes only change what they touch.
- Final output – full resolution, mastered to −14 LUFS, plus a credits file for your video description.
Two modes
The agent asks which mode fits your goal:
- Quick mode – best for films under ~3 minutes. Everything happens in one file, a few questions, a low-res draft, and 1–2 revision rounds. Good for social clips, ads, and quick first drafts.
- Film mode – for longer, more complex films (documentaries, narrated pieces, festival shorts). It works in stages: roadmap, script, style frame, animatic, then render. You approve each step (about 6–8 approvals) or let it run straight through after the script.
You can start in Quick mode and later move a film to Film mode.
Two purposes
Along with mode, you choose the purpose:
- Cinematic film – a story, feeling, or art piece that looks like it was shot on a camera, not rendered. Includes cinematic transitions, depth of field, film grain, and camera moves.
- Ad & product – a film about a single subject that clearly says who it’s for and what to do next. Includes brand colors and fonts, interface hero shots for software, and versions in 9:16, 1:1, and 16:9 with safe areas.
What’s included
- Writing system – generates concise, punchy scripts with a “duplicate then select” method, a clear turn if the story has one, a word budget, banned clichés, and a read-aloud + 30% cut pass.
- Camera and transition dictionary – named moves (dolly in, orbit, dolly zoom, whip pan, J-cut, etc.) with their emotional effect, default duration, and easing. Each shot’s camera is one line.
- Quick mode starter file – a deterministic timeline, depth-layered 2.5D camera, transitions, a shared cue table for visuals and sound, seeded randomness, typography helpers, and small Web Audio sounds (pad, kick, tick, riser, whoosh, etc.).
- Film mode interview – six questions in three short rounds, plus eight visual presets (cinematic realistic, anime/cel, pastel storybook, claymation, paper cutout/collage, retro/synthwave/VHS, glossy ad, hand-drawn ink). You can also create a custom look from your own reference images.
- Film-specific sound – narration is never raw TTS; the film chooses how the voice sounds (close, tape, radio, choir, underwater, machine) and where it sits (room, hall, stone space, outdoors). It also balances each line to the same speech level.
- “Like this but…” – drop a video you like into
refs/and say what to change. The tool measures its style (cuts, tempo, palette, BPM) and rebuilds the film in that style, without using any of its frames or music. - Your own song – bring a track; the film syncs to its beat grid, cuts on measures, and matches visuals to lyrics.
- Direction board (Film mode) – after you state your idea, three visual directions are shown in one image, each with frames from real films (for mood only) and a measured palette. You pick one, and the film’s light and color are adjusted to match.
- Designer-level typography – cleanly licensed fonts from independent foundries and Fontsource, with Turkish support verified. Three font pairings are shown as sample cards in the film’s own look. A taste journal learns your choices over time.
- Sound design basics – a light sound identity for each film, layered backgrounds, tested ffmpeg recipes, and −14 LUFS mastering.
- Small dependency-free tools – frame capture (direct to MP4 and WAV), animatic, mixing, mastering, quality checks (hook strength, per-scene subject action, loudness, harshness), and open-license asset search with license tracking.
Requirements
- An AI coding agent that can run tools on your computer: Claude Code (desktop app, VS Code extension, or terminal) or Cursor. (The regular chat on claude.ai cannot run tools; Claude Code can.)
- Node.js 22+, Python 3.9+, ffmpeg, and Google Chrome (or Chromium/Edge). The agent will check and offer to install anything missing (with your permission).
- A GPU that Chrome can use (any recent Mac or a PC with working drivers).
- Disk space: Quick mode needs a few hundred MB; Film mode needs a few GB per film during rendering.
Installation
In Claude Code (desktop app’s Code tab, VS Code extension, or terminal), type:
Install the cinecode skill from https://github.com/sarpstar/cinecode
The tool clones the repository to ~/.claude/skills/cinecode (Windows: %USERPROFILE%\.claude\skills\cinecode). Then start a new chat. To update, say “update cinecode.” You can also install manually with:
git clone https://github.com/sarpstar/cinecode.git ~/.claude/skills/cinecode
The skill activates with everyday phrases like “short film,” “animation,” “ad film,” “product video,” “make a short film,” etc.
Optional free Turkish voices
The kit doesn’t install any voices by default. If you want, you can add free Turkish TTS voices (e.g., EMA Lightning, VoxCPM2, Ahenk) – each with its own setup and license. Otherwise, narration uses your own Gemini key (free tier) or a temporary system voice.
Everything above is taken directly from the project’s README. No features or facts have been added beyond what’s documented there.
Related
- Project
- Project
- Project
- Project