CodeFilm Studio — Unified Pure-Code 1080p60 Commercial Film Director
Produce studio-grade 1920×1080 @ 60fps (30–42s) commercial launch films in 100% deterministic local code (HTML5 Canvas 2D + WebGL2 GLSL + Python procedural foley + Chromium CDP capture + FFmpeg CRF-15 dual-master mux). Zero Blender, zero Remotion bloat, zero AI video credits.
Progressive Disclosure Contract (Keep Context Clean!)
NEVER read multiple style packs upfront.
- Select 1 primary Style Pack from the table below (or recommend 2–3 fits if the user hasn't chosen one).
- Read ONLY
styles/<id>/style.md (and its references/*.html + scripts/*.py when coding), plus references/craft-rules.md and references/audio-design.md.
- If the user wants a hybrid (e.g. shallow-DOF + live candlesticks) or a brand-new style, also consult
references/motion-primitives.md and research real official visual benchmarks before writing code.
1. Style Pack Selector (33 Verified Packs · 5 Commercial Categories)
A. SaaS, AI Tools & Developer Cinema
| Pack ID | Aesthetic Inspiration | Best For |
|---|
01-kinetic-rsvp-launch | Apple "Don't Blink" 150 BPM Kinetic | Flagship launches, high-velocity manifestos |
02-macro-ui-shader | Framer Pitch-Black Macro-UI & Shaders | Design tools, visual AI, shader/creative SaaS |
03-monochrome-3d-dof | Linear Achromatic 3D Shallow-DOF | DevTools, engineering platforms, issue trackers |
04-3d-command-palette | Raycast Floating 3D Command Bar | Productivity utilities, launcher & desktop apps |
05-prism-edge-network | Vercel Chromatic Prism & Edge Globe | Cloud infra, edge networks, API platforms |
06-codeflow-diff-ide | Cursor / Claude Code Diff & Agents | AI coding IDEs, agent workflows, CLI tools |
07-elastic-zoom-demo | Screen Studio Auto-Zoom Cursor Demo | Interactive SaaS walkthroughs & screen demos |
08-editorial-teal-search | Perplexity × Studio Freight "Stargazing" | AI search, deep research, citation engines |
09-repo-showcase-grid | Studio-White Open-Source Film + 6-Panel | GitHub repos, open-source README teasers |
B. Brand Manifesto, Editorial & Illustration
| Pack ID | Aesthetic Inspiration | Best For |
|---|
10-parchment-serif-editorial | Anthropic Warm Parchment Literary Serif | Research labs, thoughtful AI & literary brands |
11-emotive-watercolor-point | OpenAI × Studio Dumbar Pointillism | Poetic flagship AI & human-centric brand films |
12-monochrome-ink-blocks | Notion Archival Ink & Modular Blocks | Workspaces, docs, wiki & knowledge tools |
13-multiplayer-vector-canvas | Figma Config Multiplayer Canvas | Collaborative design, whiteboards, creative suites |
14-swiss-bauhaus-poster | Swiss / Bauhaus / DIA Risograph | Conferences, design reels, bold type manifestos |
15-tactile-gouache-motion | Ordinary Folk / BUCK Squash-Stretch | Friendly brand stories & warm vector explainers |
16-editorial-data-explainer | Vox Journalism Paper-Cutout | Data journalism, market & policy explainers |
17-cinemascope-35mm-trailer | A24 2.39:1 35mm Cinemascope | Prestige cinema teasers & dramatic brand stories |
C. Hardware, Optics & Tactile Industrial
| Pack ID | Aesthetic Inspiration | Best For |
|---|
18-liquid-glass-optics | Apple WWDC25 Liquid Glass SDF | macOS/iOS apps, spatial audio, optical UI |
19-crank-1bit-handheld | Playdate × TE 1-Bit Sharp LCD Crank | Pocket synths, retro hardware, tactile devices |
20-glyph-dot-matrix | Nothing Recessed LED Glyph Matrix | Industrial consumer electronics & audio gear |
21-industrial-spec-manual | Teenage Engineering / Dieter Rams | Technical spec sheets, synths, precision tools |
22-optical-lens-monograph | Leica Brass/Monochrome Monograph | Cameras, lenses, luxury craftsmanship |
D. Fintech, Markets & Tactical Telemetry
| Pack ID | Aesthetic Inspiration | Best For |
|---|
23-luminous-mesh-fintech | Stripe Luminous Mesh & Global Flow | Payments, billing infra, global commerce APIs |
24-splitflap-fintech-board | Ramp Solari Split-Flap & Metal Card | Corporate finance, treasury, CFO platforms |
25-amber-quant-terminal | Bloomberg Terminal × TradingView | Quant trading, exchanges, crypto, market data |
26-tactical-contour-sandtable | Anduril / NASA 3D Terrain Contour | Aerospace, drones, defense, geospatial briefings |
E. Gamified Consumer, Pop, Sci-Fi & Experimental
| Pack ID | Aesthetic Inspiration | Best For |
|---|
27-gamified-candy-3d | Duolingo × Rive 3D Candy Buttons | EdTech, habit trackers, consumer growth apps |
28-dopamine-wrapped-data | Spotify Wrapped Dopamine Data Party | Year-in-review recaps, social data highlights |
29-elastic-pastel-browser | Arc Rubber-Band Pastel Windows | Next-gen browsers & playful consumer desktop |
30-cosmos-starfield-chronicle | Grok Deep-Space Cosmic Chronicle | Frontier science, space-tech, ambitious AI |
31-phosphor-crt-arcade | 1989 Retro Phosphor CRT Terminal | Retro dev tools, indie games, hacker culture |
32-high-contrast-mincho-teaser | Anno / Matisse Mincho Kinetic | High-drama event teasers & anime-inspired drops |
33-inflatable-ceramic-3d | Airbnb 2025 × Spline Matte Ceramic 3D | Consumer apps, 3D icon reveals, soft-body tactile UI |
2. Universal 5-Step Production Pipeline
- Select & Ground:
- Load ONLY
styles/<id>/style.md + references/craft-rules.md.
- Always replace reference placeholder copy/marks with the user's real product name, metrics, copy, and assets.
- Acquire & Map Beat-Locked Audio (4-Tier Pipeline · Gemini Lyria Supported):
- Follow the 4-tier priority in
references/audio-design.md so production never blocks on missing plugins:
- Local Audio: If the user provides a
.mp3/.wav/.m4a → run python3 scripts/beat_probe.py <input_audio> <project>/bgm_48k.wav.
- Gemini API · Lyria (Recommended AI Music): If
GEMINI_API_KEY is set → run python3 scripts/gemini_bgm.py --out <project>/bgm_48k.wav --style <pack_id> --duration 40 --probe --fallback-synth (--mode realtime locks exact BPM + musical scale via models/lyria-realtime-exp; --mode clip / --mode pro uses Lyria 3).
- Optional Suno MCP: Only if Suno MCP is connected and approved → generate & screen a vocal-free instrumental, then run
beat_probe.py.
- Zero-Dependency Offline Synth (Default Fallback): Synthesize a 4-act style-matched track locally via
python3 scripts/synth_bgm.py --out <project>/bgm_48k.wav --style <pack_id> --duration 40 (or use the pack's built-in pure-Python audio script if it needs no BGM file).
- Use the detected
T_START, BPM, BAR, and energy curve so every major shot cut & escalation aligns to real musical bars.
- Author Deterministic HTML/WebGL2 Engine + Key-Matched Foley Mixer:
- Adapt
styles/<id>/references/*.html and styles/<id>/scripts/*.py.
- Enforce
references/craft-rules.md (strict window.setFrame = window.renderFrame = window.__RENDER_FRAME, ctx.setTransform(1,0,0,1,0,0) reset, clamped roundRect, measureText dynamic placement, zero OS emojis on flat vector UI, style-authentic pacing — never blindly copy a 4-beat strobe across styles).
- Run the Python audio mixer to export loudness-matched
<project>/<name>_master.wav and <project>/<name>_bgm_only.wav (RMS ~-17.4 dB, zero clipping).
- Mandatory 16-Frame Visual QA Loop:
- Capture 16 PNGs spanning every shot using
node scripts/render_parallel_cdp.mjs --html <html_path> --out <project>/qa_frames --width 1920 --height 1080 --workers 2 --format png --total <N> --frames <16_csv>.
- Stitch
python3 scripts/qa_sheet.py <project>/qa_frames <project>/qa_sheet.png.
- Visually inspect BOTH
qa_sheet.png AND 3–4 full-res hero frames; fix any text overlap, clipping, or layout issue and re-verify before full render.
- Serial 1080p60 Full Render & Dual-Master Mux:
- Capture all frames (
--workers 2 --format jpeg --frames all — strict 16 GB RAM safety cap):
node scripts/render_parallel_cdp.mjs \
--html <project>/<name>_1080p60.html \
--out <project>/frames \
--width 1920 --height 1080 --workers 2 --format jpeg \
--total <N> --frames all
- Mux BOTH CRF-15 masters, delete temporary frame directories, and verify with
ffprobe + volumedetect:
bash scripts/mux_dual_masters.sh \
<project>/frames \
<project>/<name>_master.wav \
<project>/<name>_bgm_only.wav \
<project>/<name> \
<project>/qa_frames