# Code Film: frame-exact WebGL videos with a synthesized score

> Build a video entirely in code. Three.js and GSAP frames are rendered one at a time, the score is synthesized in numpy, and a verify script proves that picture and sound land on the same frame.

Code Film: frame-exact WebGL videos with a synthesized score is a paid AI agent skill on Agensi by athitfkm, in Image & Video. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $15 (one-time purchase)
- Creator: [athitfkm](https://www.agensi.io/creators/athitfkm)
- Category: [Image & Video](https://www.agensi.io/skills/image-video)
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/code-film-frame-exact-webgl-videos-with-a-synthesized-score
- Tags: video, video-production, threejs, webgl, animation, ffmpeg, motion-design

## About this skill

Code Film is the pipeline behind a real 168-second product film, its launch cut and its teaser, packaged so your agent can build the same kind of film. It renders a browser page frame by frame with no screen recording, no stock music and no AI video model. Every frame is a pure function of time, so a still at any moment matches the full render, and changing a cue means editing one number.

**How it works**

- `timeline.json` holds every cue time. The picture (Three.js and GSAP), the music (numpy) and the checks all read it, so a hit lands on the same frame in the picture and the same sample in the audio.
- `render.js` serves the page locally, seeks headless Chromium to each frame, and pipes PNG screenshots into ffmpeg (x264, bt709-tagged). Any page error, console warning or failed request fails the render, and it prints the WebGL renderer, so a fallback to software rendering is visible.
- `music.py` is a small synthesizer with kick, clap, hats, sub, pads, plucks, FM bells, impacts and swells. It also handles stop-time before hits, sidechain, delay and reverb. There are no samples, so the music has no licence to clear.
- Cuts are edit lists over one timeline: ranges plus full-frame chapter cards, each with its own hit and chord. A teaser or a launch cut is a JSON edit, not a re-edit.

**Proof, not vibes**

- `verify.py` checks the container, audio level and dropouts, a transient on every listed cue (onset within -15..+20 ms), scene content, and that the flash and chapter cards land on the right frame. It exits 0 only when every check passes.
- `sabotage.py` breaks copies of your render on purpose: audio 100 ms late, picture one frame early or late, a blank card. It passes only if verify rejects each copy.
- `seekcheck.py` compares random-access stills with the sequential render. This catches state that leaks between frames.
- `hits.py` and `contour.py` show what your agent cannot hear: the margin on every cue and the energy of each bar, so a flat section is caught as a number.

**What is included**

- A tested 12-second starter project with 3 scenes, 3 audio hits, typed text, a white flash and a cut with a chapter card. One command copies it.
- 11 reference guides: architecture, timeline, picture (toon look, particles, pinning 3D to the DOM, GSAP rules), VRM/glTF characters, rendering, cuts, music, verification, delivery (web copies, GIFs, posters), briefs for consulting a second agent, and a symptom → cause → fix table.
- 8 scripts: project setup, sabotage, seek check, hits, contour, contact sheet, music remux, and a skill self-check.

**Why not Remotion**

There is no React and no Remotion company licence. The music is synthesized and verified rather than dropped in, and sabotage proves that the sync checks can fail.

**Requirements**

Node 20.11+ (tested on 24), Python 3 with numpy, ffmpeg and ffprobe, and Playwright's Chromium. Works with Claude Code and Codex, and includes notes for long renders in both.

**Limits, stated plainly**

- Tested on macOS with Apple silicon (GPU WebGL through Metal). The flags for Linux and Windows are listed but untested; the render prints which WebGL renderer it used.
- Neither you nor your agent can hear the score or watch playback through these checks. They prove timing and presence, not taste, so a person still needs to watch and listen before you publish.
- The demo video is the teaser of a product film made with this pipeline. Its character is the creator's own and is not included: the starter uses system fonts and has no character, and the character guide explains how to add your own VRM without bundling it.
- Rendering is slower than real time: the starter runs at about 26 frames/s on an Apple M5, and film grain makes it 6 to 11 times slower.

## Requires

- Playwright
- Node.js

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Code Film: frame-exact WebGL videos with a synthesized score skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Code Film: frame-exact WebGL videos with a synthesized score do?

Build a video entirely in code. Three.js and GSAP frames are rendered one at a time, the score is synthesized in numpy, and a verify script proves that picture and sound land on the same frame.

### Which AI agents support Code Film: frame-exact WebGL videos with a synthesized score?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Code Film: frame-exact WebGL videos with a synthesized score?

Connect your AI agent to Agensi through MCP, then ask it to use Code Film: frame-exact WebGL videos with a synthesized score on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
