15 min read
RotoFrame: frame-accurate video review for film teams, built with coding agents and readable by them
RotoFrame is a browser review platform for film, animation and game teams: notes and drawings pinned to exact frames, a multi-track timeline and a plugin that carries the notes into Unreal Engine. I build and run it alone with coding agents, hold each change to a measured result, and let agents read it too, through an MCP server they sign in to with OAuth.
- audio-to-picture offset across cuts once the timeline ran on one clock, down from up to 750 ms
- 0–34 ms
- read-only MCP tools that let Claude Code, Codex and Claude read reviews, frames and cuts, behind OAuth 2.1
- 9
- automated tests on every push, including renders read back pixel by pixel and full OAuth sign-ins
- 385
- of its 153 commits co-written with Claude Code, March to November 2026
- 114
The film as text
A one-minute product reel with music and no voice-over. Each scene is a recording of RotoFrame in use, with a caption under it. The project shown is a demo feature film called Monsoon.
- Title. "RotoFrame. Review creative work frame by frame. Video, stills, 3D, timelines, AI: one review space for your whole team," over the Monsoon project page.
- Every studio, project and shot in one place. The project page with its master timeline, Monsoon Reel Cut v1, and a grid of shot reviews such as SC 61, Village Escape, Comp v2, each marked approved, open or in progress.
- Play, scrub and step frame by frame. A shot of villagers running from explosions plays in the review player while the playhead steps through it.
- Draw right on the frame. A reviewer draws a red loop around a fireball and an arrow toward it.
- Pin notes to the exact frame. Beside the frame: Sarah Chen's drawing on frame 97; Aiko Tanaka on frames 151 to 187, "Smoke plume reads flat through here. More volume and a warm backlight, please."; Sarah Chen on frame 263, "Hold this beat 12 frames longer before the cut to the close-up." A new note is typed: "Push the fireball ~20% hotter and add embers drifting left."
- Review together, perfectly in sync. Two windows side by side, Sarah Chen hosting and Marcus Rivera following, show the same frame as the host plays and scrubs.
- Mark up stills at full resolution. A still of a farmer plowing a rice paddy with a water buffalo at dusk. Aiko asks to lift the rim light on the farmer, and a yellow circle is drawn on his shoulder.
- Review 3D look-dev in the same place. A 3D model of a small rusty car turns in the viewer.
- Cut on a multi-track timeline, notes attached. The timeline editor plays a cut with video and audio tracks and note markers on its ruler.
- Generate shots with AI, cloud or your own GPU. The generation panel set to Google Veo, with a prompt, optional first and last frames taken from the current frame, a model and a duration.
- Present to the room in one click. The shot fills the screen with only the transport under it.
It closes on "RotoFrame. Review, annotate and ship, together" and "Start free at rotoframe.com."
RotoFrame is a review platform for film, animation and game teams that runs in the browser. Reviewers step through a shot frame by frame, draw on a frame and pin notes to it, follow a host's playback live, mark up stills and 3D models, and cut shots together on a multi-track timeline that keeps the notes attached. I started it in March 2026 because the review tools I had used felt limited. It is live at rotoframe.com, where anyone can start for free.
I build and run it alone, with coding agents: 114 of its 153 commits were co-written with Claude Code. The hard part has not been writing the code. It has been making "frame 145" mean the same frame everywhere: in the player, on the timeline, in the exported file, in Unreal and for an agent reading the notes. This write-up is about how RotoFrame holds to that, the measurements each fix was held to, and what it took to let AI agents in.
A note belongs to a frame, and browsers count in seconds
A browser exposes video as time. A player sets currentTime in seconds, the decoder lands wherever the nearest keyframe lets it, and the picture shows up when it is ready. Reviews talk in frames. Every place where the two meet is a place to be one frame off, and a note one frame off is a note on the wrong picture. Here are four places RotoFrame was wrong, with the numbers from the commits that fixed them.
- Parking on a frame. At 24 fps a third of the frame starts are not exact in floating point, so a player told to rest at the start of a frame sometimes rested on the one before. The preview sat one frame behind the export at every third position. The player now parks in the middle of a frame and only trusts a video element whose time falls inside that frame's span.
- Counting frames. The player counted
round(duration × fps)frames, and a file's duration is its longest stream. A 15-frame clip with 0.9 seconds of sound showed 27 frames, the last 12 of them a frozen picture. The count now comes from the video stream's own length. - Scrubbing. The player kept one seek in flight per video element and threw a decoded frame away if the playhead had moved on by the time it arrived. On a source with a keyframe every 330 frames, where a seek takes 60 to 150 ms, the playhead always had: in a 4.7-second drag back and forth, 39 frames were decoded and none was shown. Now each decoded frame is shown when it lands and the next seek chases the playhead, so the picture follows the pointer one decode behind.
- Seeking at all. Streamed from storage, a seek into a part of the file the browser had not downloaded waited 1.2 to 4.6 seconds on a 53 MB 1080p clip, against 5 to 120 ms once the data was local. The player now downloads the whole file at low priority once the first frame is up, and switches to that copy on the same frame when nothing is playing, drawing or seeking. Connections that ask to save data skip it.
The timeline runs on one clock
The multi-track timeline had a harder version of the same problem. Its transport had three clocks and no master: a frame counter that advanced at most one frame per animation frame, plus the video and audio elements, each playing in real time. When the browser's animation callback fired below 24 fps, the counter fell behind and the elements ran ahead, and the code dragged the audio back with a seek whenever it drifted 0.1 seconds. Every seek was an audible stutter, and the picture was never corrected at all.
The fix had four parts. The transport became anchored: the frame is the anchor frame plus elapsed time times the frame rate, re-anchored on play, seeks and shuttle changes, so a slow tick catches up in one jump. A synchronous read of the canvas, about 8 MB from the GPU to the CPU for every 1080p frame and the main reason playback fell below 24 fps, no longer runs during playback. Drift is steered instead of snapped: audio and video shade their playback rate by up to 8%, with pitch preserved, and only an element more than 0.25 seconds off is seeked, at most once every 600 ms, so correcting a stalled element cannot stall it again. And clips play natively, with a media element handed from one clip to the next at a cut between two pieces of the same file.
| What was measured | Before | After |
|---|---|---|
| Audio-to-picture offset over three butt-joined clips, on a simulated 24 fps transport | Up to 750 ms, drifting | 0–34 ms for the whole run |
| Hard seeks of a media element in that run | One every 6 frames | 5 in total: the start and one stall recovery |
| A 24 fps clip on a 30 fps timeline, which has to play 1.25 times faster | +1.7 s of drift after 10 s and a snap about every 18 frames, on production | 0–13 ms of drift, 1–29 ms offset, no snaps |
| 96 frames across two cuts | Video playing on the first clip only, a seek on every frame | Video playing on every clip, 2 seeks in total, one per cut |
The simulated transport is what made before and after comparable: the same clips, driven at the same rate, every time. The 30 fps case only showed up on production, after real frame-rate detection landed. Clips now carried their true rates, and every sequence whose rate differed from its media exposed the missing ratio.
The preview and the export come from one module
Editors adjust each clip on the timeline: color correction, zoom, position, rotation, flip, crop, opacity, volume, pan and fades, with keyframes for volume and opacity. What they see while they drag a slider has to be what the exported MP4 contains, and the preview is drawn by WebGL in a browser while the MP4 is rendered by ffmpeg on a server. So neither side owns the math. One module of pure functions, timeline-clip-fx.js, defines what an adjusted clip looks and sounds like, and everything that has to agree takes its numbers from it: the player, the editor, the API's validation of what it stores, and the filtergraph the server builds for ffmpeg. Color correction is a 33-point 3D lookup table computed by that module: a WebGL texture in the player, a .cube file through ffmpeg's lut3d filter in the render.
The tests that hold this together render real files and read them back. This one renders a flat tan clip through five grades and checks the exported pixel against the module's own gradeColor, the function the player draws with:
test('color correction renders what the shared grade computes', needsFfmpeg, async () => {
const source = [200, 100, 50];
const tan = await makeVideo('tan.mp4', solid('0xC86432'), { audio: false });
const tl = await makeTimeline('Color');
const clip = (await place(tl, tan, 'V1', 0)).video;
assertColor(pixel((await render(tl)).file, 12, 160, 90), source, 5, 'ungraded');
const grades = [
{ saturation: -100 },
{ exposure: 0.7, contrast: 30 },
{ temperature: 80, tint: -30 },
{ hue: 120, saturation: 40 },
{ shadows: 80, highlights: -60, gamma: -40 },
];
for (const color of grades) {
await adjust(tl, clip.id, { adjustments: { color } });
const out = await render(tl);
const expected = FX.gradeColor(source[0] / 255, source[1] / 255, source[2] / 255, color).map(v => Math.round(v * 255));
assertColor(pixel(out.file, 12, 160, 90), expected, 6, JSON.stringify(color));
}
});
Others measure sound: a volume keyframe halfway down has to read 6 dB lower in the file, within 1.2 dB, and a clip panned hard left has to leave the right channel below −60 dB. Rebuilding the render's filtergraph around the shared module also fixed exports that had been wrong all along: a gap on an upper track blacked out the tracks under it, several audio clips together came out 20·log10(N) dB quieter than they played, deleted or muted audio clips were still heard, any transition turned the whole export black, and 23.976 fps timelines were exported at 24 fps.
Agents read the same notes people leave
Notes are where a team's decisions end up, and the person acting on them may now be working with an agent. So RotoFrame has an MCP server at /mcp. Claude Code, Codex and Claude connect to it and read what reviewers left through nine read-only tools: list_projects, list_reviews, get_review, list_comments, get_frame, list_timelines, get_timeline, get_timeline_feedback and export_timeline, which hands back a cut as a CMX 3600 EDL, a Final Cut Pro 7 XML or a CSV clip list. Someone can ask an agent what is still open on the reel cut and get answers that point at frames.
The tools are shaped for how a model reads. Frames are 1-based, as the player shows them, and timecodes use the file's or the timeline's own rate. Every result carries links that open the same review, file and frame in RotoFrame, so an agent can hand a person the exact spot. A drawing means nothing as JSON, so get_frame returns the frame itself as a JPEG with the drawing painted on, fitted within 1568 pixels because models downscale anything larger. Frames render two at a time on each server instance with a queue of 20 behind them, so an agent asking for forty frames at once cannot swamp the server. get_timeline_feedback gathers every note on a cut in timeline order: the comments and drawings from the reviews of its clips, mapped from each clip's source frame to the cut's timecode through trims, speed changes and reversal, plus the notes left on the timeline itself. The endpoint is stateless Streamable HTTP: each request gets a fresh server, so any instance can answer and there are no sessions to lose.
get_frame returned for frame 145 of a demo review: the JPEG a model receives, with the reviewer's drawing painted on top. The two notes on that frame come with it as JSON. RotoFrame's own code produced it, running on an in-memory database with the product reel's demo shot; the notes and names are demo content.Here is the cut that shot sits in, through get_timeline_feedback, trimmed: ids, dates, review names, a reply and the links are left out. The clip starts at 00:01:04:00 with source frame 49, so the note on source frame 145 lands at 00:01:08:00.
{
"timeline": { "name": "Reel cut v1", "fps": "24" },
"notes": [
{ "type": "comment", "timecode": "00:01:04:12", "author": "Aiko Tanaka",
"text": "Smoke plume reads flat through here. More volume and a warm backlight, please.",
"source": { "clip": "SC61_village_escape_comp_v2.mp4", "frame": 61 } },
{ "type": "comment", "timecode": "00:01:08:00", "author": "Sarah Chen",
"text": "Push the fireball about 20% hotter and add embers drifting left.",
"source": { "clip": "SC61_village_escape_comp_v2.mp4", "frame": 145 } },
{ "type": "drawing", "timecode": "00:01:08:00", "author": "Sarah Chen",
"source": { "clip": "SC61_village_escape_comp_v2.mp4", "frame": 145 } },
{ "type": "timeline_comment", "timecode": "00:01:14:14", "author": "Sarah Chen",
"text": "Hold this beat 12 frames longer before the cut to the close-up." }
]
}
Signing agents in, to the spec
The first version took a token pasted from settings. A day later, agents could sign in the way people do, in the browser, without ever seeing a password. RotoFrame is an OAuth 2.1 authorization server that follows the MCP authorization spec: discovery documents (RFC 9728 and RFC 8414), with every 401 from /mcp naming where to start; dynamic client registration (RFC 7591); PKCE with S256, required; tokens bound to the /mcp resource (RFC 8707); the issuer in every response (RFC 9207); and revocation (RFC 7009). Connecting Claude Code is one command, then a sign-in from its /mcp menu that ends on RotoFrame's consent page:
claude mcp add --transport http --scope user rotoframe https://rotoframe.com/mcp
The details that took the longest sat between the spec's lines:
- Apps that name themselves by URL. Claude Code, Codex and Claude identify themselves with a client ID metadata document: an HTTPS URL as the client ID. Fetching a URL a stranger hands you is a classic way to get attacked, so the fetch reaches public addresses only, checked at connect time, follows no redirects, and stops at 5 KB, 5 seconds and 8 downloads at once. An app is stored only once someone approves it. Because claude.ai may refuse requests from cloud servers, RotoFrame keeps copies of the well-known documents for when the fetch fails.
- Refresh tokens that rotate without tripping over themselves. Every refresh replaces the refresh token, and a replaced one presented again more than a minute later is treated as stolen and ends that connection. A token's successor is derived from it, so two copies of an app refreshing at the same moment get the same new token instead of one of them looking like a thief.
- Revocation that means it. Tokens, codes and client secrets are stored only as SHA-256 digests. Changing your password ends every connected app and integration token, as it ends your other sessions. Tokens carry scopes, so the Unreal plugin's token cannot read
/mcpand an agent's token cannot publish to Unreal. - Limits sized for hosted agents. Each connection can make 240 requests a minute and each IP address 3,000, because hosted agents such as Claude share a few addresses.
The OAuth tests run full sign-ins with the MCP SDK's own client, through dynamic registration and through a metadata document, so the server is tested against the code real agents use rather than against my reading of the spec.
Meeting the work where it is made
Shots are not made in a browser, so the review has to reach the tools they are made in. For Unreal Engine 5.8 there is an editor plugin, in beta for Windows and Mac, about 5,100 lines of C++. Publishing a master Level Sequence from Sequencer creates a RotoFrame timeline, and every Cinematic Shot becomes its own review. The plugin renders through Movie Render Queue and overrides only the settings that decide which frame is which (resolution, the sequence's exact frame rate, zero handles, every frame and the playback range), so a frame in the review is the same frame in Sequencer. Later publishes add new versions without resetting the trims and positions an editor made in RotoFrame. Back in Unreal, Refresh Notes & Drawings pulls the feedback into the viewport at the mapped frames and marks the Sequencer timeline, green for comments and orange for drawings, and Sync Timeline applies RotoFrame's trims as one undoable Unreal transaction.
Animators review Maya playblasts, which are QuickTime files with Photo-JPEG, PNG, Animation or ProRes inside. Chrome refuses those, and Firefox refuses every .mov. So uploads are converted on the way in: H.264 that is already in another container is copied into an MP4 without re-encoding, anything else is encoded with the same frames and frame rate, TIFF, TGA, EXR and DPX stills become PNG, and numbered image sequences become one video. A playblast tool in Maya uploads straight to a review through an upload API, with a token scoped to uploads. For schools there are LTI launches from the learning platform, and for studios SAML single sign-on, plans and billing.
Much of this came from testers. One commit in July fixed five things they had reported: frame rates detected on the server instead of assumed to be 24, pen pressure on Wacom tablets, onion skinning that ghosts the nearest drawn frames instead of the neighboring ones, scrubbing that dropped targets mid-drag, and a freeze with several videos open.
Running it: an outage, audits and a definition of done
One day in July, no clip would play, in the review player or on the timeline. The logs said the storage client's socket pool was full, 50 sockets in use with 146 requests queued. Three defects added up. An 8 MB cap on open-ended range requests, needed when the route buffered files and pointless once it streamed them, forced about 25 extra storage requests per video. Players abort range requests constantly while seeking, and when the client left before the storage call resolved, the storage body was never consumed and its socket stayed checked out forever. And the SDK's default pool of 50 sockets is small for a video app, so 50 leaked sockets stopped every media request. The fix served open-ended ranges in full, destroyed the source whenever the client had gone, and sized the pool for media with timeouts. Aborting 100 range requests on purpose afterward gave zero stream errors and leaked zero descriptors.
Audits of the whole project in March, July and September fixed the kinds of holes a review should find before anyone else does, among them a single sign-on path that could adopt an existing account by its email address, routes that checked a review but trusted the file id inside it, user text that could close an inline script tag, and a Stripe webhook whose signature check always failed because a global JSON parser had already consumed the raw body. Every push runs 385 tests: the unit and HTTP tests against an in-memory Postgres, and on a real Postgres 16 every migration twice, where the second run must change nothing, plus the tests that need the real database. After a deploy signals it, the server drains in-flight requests for up to 25 seconds, inside the 40 seconds Railway waits.
The repository's instructions for agents put the definition of done on production, not on a green test run: "Local validation alone is not completion." After a deploy, the agent repeats the user flow on rotoframe.com with a designated test account and test project, and if it cannot, it reports production testing as blocked instead of calling the change done.
Building it with coding agents
Claude Code co-wrote 114 of RotoFrame's 153 commits, with models from Opus 4.6 in March to Opus 5.5 in November, and a few features came in as pull requests from agent branches. My part is deciding what right means and checking it. A change starts from a symptom with a number on it, and its commit message records the cause, the fix and the result: the before-and-after numbers in this write-up come from commit messages written when each change was made. Tests check outputs rather than code paths: pixels in a rendered file, decibels in a mix, a full OAuth sign-in with a real client.
The clearest lesson came in July. An adversarial review of six commits of fixes confirmed 23 defects that those fixes had introduced, and four were filed as data loss. A frame-rate change could round two drawings onto one frame, clear the undo history that could have recovered them, autosave the result and, through sync, do the same on every follower's screen. Strokes drawn while a save was in flight were marked saved and never saved. An agent's fix is a change like any other, and it gets the same review.
What this does not show
- RotoFrame is young and small. Nothing here is a claim about how many people use it or how it holds up at scale.
- The before-and-after numbers were measured when each change was made, mostly on a development machine or a simulated 24 fps transport, and one of them on production. They were not measured again for this page.
- The demo review behind the figure and the JSON ran on RotoFrame's real code with an in-memory database, not on production data, and its shot, notes and people are demo content.
- The MCP server only reads. An agent cannot reply to a note, resolve it or upload a new version yet.
- How fast the picture follows a drag is still set by how long the browser takes to seek the source.
- Color correction and transform cannot be keyframed yet, and the EDL, XML and CSV exports do not carry clip adjustments.
- The audits were my own, with coding agents, not an outside penetration test.
Built with
Node.js, Express, PostgreSQL and Socket.IO on the server; Canvas, WebGL and Web Audio in the browser; ffmpeg for media; the official MCP TypeScript SDK for the agent endpoint; Unreal Engine 5.8 and Movie Render Queue for the plugin; Railway for hosting. The film is RotoFrame's product reel, and the shots and people in it are demo content.