riffsheet · free and open source
Your coding agent breaks a short video down shot by shot.
On your own machine, riffsheet measures cut times, caption on and off times, loudness, word times and which cuts and captions land on a loudness peak or rise, and your agent reads laid-out pictures for the rest. You get a riffsheet: what happens, why it holds a viewer beat by beat, and what your own version has to keep.
Tell Claude Code, Codex or a similar agent:
Install the riffsheet skill from https://github.com/riffkit/riffsheet, then break down ~/Downloads/clip.mp4 What you get
Two files for each video, written in English.
riffsheet.mdAn account of the video for a person to read: what happens, why it holds a viewer, then each beat in order, with what is on screen, what is said, what the beat does for the viewer and what a remake has to keep.riffsheet.jsonThe complete data: every spoken line with its time and pace, every caption with its words, times, position, size and colours, every graphic with its box and times, the people and objects, and where each value came from (measured by the tool, seen by the agent, heard by the agent after it passes the tool’s hearing check, inferred, or not judged).
Your agent tells you what it found in your own language: one plain line per shot, why the video holds a viewer and what your version has to keep. If you ask for the whole account in your language, it also writes riffsheet.zh.md (or .es.md, .ja.md and so on) from the checked riffsheet.md, with every time and number unchanged.
A real excerpt
From one run by a coding agent that had never seen the project, on the video above:
12.042 s · 3 shots · one picture at a time · no speech · on-screen text in en
Sound and picture (measured times, not what the sound is): 2 of 2 shot changes (1 cut, 1 fade) land on a loudness peak or rise (within 0.052 s); about 0.5 would by chance, with 17 peaks and rises in 12.0 s; 2 of 2 flashes land on a loudness peak or rise (within 0.052 s); about 0.5 would by chance, …
3. Payoff · 00:04.2–00:07.8
00:04.2–00:06.4 Transition: out of the almost-white frame the next picture fades in over 00:04.250-00:04.375 (measured gradual change), milky at first, then grayed, then clear, with no hard edge. The main person sits in the back seat of a car at night, first in profile facing left, in a strapless gold satin dress, cream satin opera gloves reaching above the elbow, a crystal drop earring, a jeweled clip in her low bun and glitter on her cheekbone … Sound: the change into this shot lands on a loudness peak at 4.36 s (+0.11 s from the cut's start, measured); further peaks with no word under them follow at 4.7 (-14 dB), 5.2 (-12 dB) and 5.7 s (-11 dB). …
Keep when remaking. Does the first frame after the transition show the same subject in a state that plainly contradicts the opening line?
The video above has no speech, so this spoken line is from a second example, our own 8-second video in Spanish, spoken to camera with captions. In riffsheet.json, every value says where it came from:
{"id": "vs3", "time_range": [2.58, 3.96],
"text": "holgado con ajustado, no,",
"mode": "on_camera_dialogue", "speaker": "protagonist",
"_src": {"time_range": "measured", "text": "measured"},
"_pace": {"unit": "words", "count": 4, "per_s": 2.9, "band": "measured",
"longest_gap_s": 0.14, "pauses_over_0_4s": [], "trend": null},
"_notes": ["transcript 'olvado' -> 'holgado' (seen in a word-for-word caption)"]} The same measurement of sound and picture on the second example, from its riffsheet.md:
Sound and picture (measured times, not what the sound is): 0 of 3 cuts land on a loudness peak or rise (within 0.052 s); about 0.4 would by chance, with 11 peaks and rises in 8.0 s; 4 of 5 caption appearances land on a loudness peak or rise (within 0.052 s); about 0.7 would by chance, with 11 peaks and rises in 8.0 s.
Time: the tool’s own work takes seconds. Most of the time is the agent’s: about 6 to 7 minutes for the video above and about 6 for the second example; in testing, about 4.5 to 8 minutes per video of 8 to 45 seconds.
How accurate it is
Our own tests, and how they were run.
Ten short videos, 8 to 45 seconds long, in English, Chinese and Korean: talking to the camera, product videos, screen recordings, outfit videos and fast-cut edits. An agent broke each one down from the video file alone; a separate agent then checked every statement against the frames.
| What was checked | Result |
|---|---|
| Statements, across the ten videos | 649 correct, 23 wrong, 17 missed |
| Hard cuts, on the six videos checked for cuts | 24 of 25 found, no false cut |
| Caption on and off times, on the two videos with frame-by-frame ground truth | Exact to the frame |
| A second test: 137 facts listed beforehand from every frame of a 10.6-second video that played no part in building the tool | 64 stated exactly, 36 partly, none contradicted |
What these numbers do not show
- The checking agents are the same kind of model as the one writing, so an error both miss is not counted.
- Sound was not scored: tone of voice, what kind of music plays and sound effects are marked as not judged.
- Ten videos is a small sample, and the second test is one video and one run.
What it cannot do
Its limits, up front.
- Hear, by itself. It measures loudness, whether sound continues under the voice, and which cuts and caption appearances land on a loudness peak or rise: on the video above both shot changes and both flashes do, where about 0.5 of each would by chance; on the second example none of the 3 cuts do, but 4 of the 5 caption appearances do. It cannot say what a sound is. Most agents cannot hear either, and then music, tone of voice and sound effects are marked as not judged. An agent whose model takes sound as input can listen once it passes the tool’s hearing check (a voice saying six random digits, marked by the tool); what it says about the sound is then marked as heard by the agent. We verified the check with a hearing model driven by a script, and at our request someone ran the whole path once with a coding agent whose model takes sound as input, on the video above. Given only the sound, that model no longer reported the camera clicks it had named beside pictures of flashes, so what an agent says it heard is its account, not a measurement.
- Handle long videos well. It is made for clips up to about a minute and was tested on clips of 8 to 45 seconds. A longer video runs, but a brief event is easier to miss and the agent’s time and usage grow with the length.
- Catch every edit. A jump cut inside one unchanged framing is found as a cut only when the person moves enough: on one 45-second talking video, 7 of 9. Smaller jumps and a cut that changes only part of the picture are left to the agent to decide or not found; a different outfit, person or object faded in over the same background is not detected; a slow dissolve can be missed.
- Read text by itself. The tool finds captions and when they change; the agent reads the words from the pictures.
- Fetch videos from a link. Give it a video file on your machine.
- Check what your agent tells you in your language. The riffsheet the tool checks is written in English, whatever language you ask in. Your agent’s account in your language, and a translation if you ask for one, are its own writing, which the tool does not check; where they differ from riffsheet.md, riffsheet.md is right.
Questions
Asked before installing.
Who makes riffsheet?
The team behind Riffkit, a paid service with a free start that makes new video footage from a video you start from. riffsheet is separate: it runs on your machine, needs no account and sends us nothing. The MIT license lets you use it for anything.
Does my video leave my machine?
Not through riffsheet. The tool itself uses no network (except the speech-model download you ask for), needs no account and sends nothing to us; the video, the pictures and the results stay in the folders you choose. What your agent sends to its own model provider, and anything else it proposes to use, is between you and the agent, and the agent says so when it asks.
Do I need a Riffkit account?
No. You need Python 3.9 or newer and ffmpeg 7 or newer; spoken words need a speech recognizer, such as the optional faster-whisper package and its speech model. Tell your agent the sentence at the top of this page. Before it analyzes the video, it checks what your machine has. If something that matters for this video is missing, it tells you what it adds and what it costs (download, disk space, time, network) and asks you once. It sets nothing up unless you say yes and never skips a step silently: the riffsheet says what did not run.
Which agents does it work with?
Claude Code, Codex and other agents that can run commands and read images.
From the sheet to your own version
Some of it you rebuild. Some of it needs new footage.
Rebuild with code or an editor
Captions, cards, graphics, timing and the edit can be rebuilt with code (ffmpeg, a script) or in a video editor, from the measured times, boxes and colours.
Footage needs a camera or a video model
Footage of people, places and products cannot be rebuilt from numbers: it has to be shot, or made with a video model.
Riffkit makes that footage from a video you start from. Swap keeps the shots (camera, cuts, timing, sound) and changes the outfit, person, place or product. Adapt keeps what made the video work and tells a new story with new footage.
Riffkit’s skill tells your agent how.
Make the footage your version needs.
Sign up free, no credit card required.