
Vidin
io.github.teunlaoPublished by GitHub account teunlaov0.1.0Updated Oct 24, 2026
Turn a screen recording into agent-readable annotated keyframes. MCP server + CLI on ffmpeg.
Overview
Local MCP server and CLI that turns screen recordings into annotated keyframes and a written timeline an assistant can read.
- What you can do
- Analyze a video into annotated frames on disk, returning a report and one contact sheet image (analyze_video). Retrieve full-detail frames by number or time range, capped to protect context (get_frames). Re-extract a narrow time window at a higher frame rate when two frames are not enough (zoom_clip). Read duration, resolution, fps and audio cheaply (probe_video). Output includes a timeline report, machine-readable manifest, contact sheets and annotated frames.
- When to use it
- Useful when a bug report or walkthrough arrives as a screen recording and a coding agent that accepts images but not video needs to see what happened. It keeps only frames where the screen changed and settled, so long recordings stay cheap to inspect.
- Requirements
- Runs locally over stdio via npx from the npm package; requires ffmpeg installed, and yt-dlp only if passing video URLs. No authentication, environment variables or headers are declared. Desktop only.
Installation
In SourceWeft
- Open Vidin in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
vidin
Turn a video into something a coding agent can actually read.
Claude Code, Codex and friends accept images, not video. So when a bug report arrives as a screen recording, the video is dead weight — someone has to watch it and retype what happened. vidin watches it instead: it converts the recording into a small set of annotated keyframes plus a written timeline, and serves them to agents over MCP.
[A 20-second recording condensed to six annotated frames]
A 20-second recording in, six frames out: the refund panel, the 500 dialog, the retry toast, the recovery — each boxed and timestamped. (The clip is vidin's synthetic test fixture.)
- Event-driven, not one-frame-per-second. A frame is kept when the screen changes and then comes to rest. Three minutes of someone reading costs almost nothing; every real UI event is captured.
- Fast. A 3-minute 1080p recording takes ~4 seconds on an M-series Mac. An hour-long one costs time, not RAM.
- One command to run.
npx @teunlao/vidin— all it asks of the machine isffmpeg; no sharp, no headless browser, no native image library. - Shaped for agent context. The MCP tools return a written report and one contact sheet first; full-detail frames only for the moments that turn out to matter.
- Timestamps you can scrub to. An agent can say "the error appears at 00:41.2" and you jump straight there in the original file.
Quickstart
Hook it into Claude Code:
Or in .mcp.json / ~/.codex/config.toml equivalents:
Or straight from the shell:
What comes out
[An annotated frame: red dashed box around the error dialog, timestamp bar]
Each frame carries a red dashed box around the regions that changed since the previous kept frame, and a bottom bar with the frame number, the timestamp in the original video, the gap since the previous frame, why the frame was kept, and how much of the screen changed.
The MCP tools
Four tools, shaped so an agent spends context in the right order:
The intended loop: analyse → look at the sheet → read the timeline → open two or three frames → zoom in if the moment between them is still unclear. Opening everything up front would burn the context before knowing which second matters.
Profiles and tuning
Tuning without leaving the profile: --max-frames, --sensitivity (percent of
the screen that counts as an event, lower = more frames), --fps, --width,
--quality, --no-annotate, --no-sheets.
Why pick frames instead of slicing them
One screenshot per second turns three minutes into 180 frames of which ~90% are identical, because the person was reading, thinking or moving the mouse. Those duplicates don't cost much — they bury the handful of frames where something actually happened, and an agent has to look at all of them to find out which. Frame selection is a signal-to-noise problem wearing a cost problem's clothes.
vidin is event driven instead. It walks the video at 12 fps in downscaled RGB and keeps a frame only when something actually happened:
- Change is measured against the last kept frame, not the previous sample, so slow drift accumulates instead of hiding under the threshold.
- Frames land after the change, not inside it. When motion starts, nothing is emitted yet — the selector waits for the screen to come to rest and keeps the settled frame. You get the state after the click, not the animation blur.
- Colour counts as change. Comparison is per channel, not on brightness. A field turning red or a green toast over a grey panel barely moves the luma and is exactly what a bug report is about.
- A moving mouse costs nothing, by arithmetic rather than special-casing: at analysis resolution a pointer is an order of magnitude below the event threshold. There was once a subsystem for recognising it; measured on real recordings it changed no decision anywhere, so it is gone.
- Guard rails. A minimum gap, anchor frames across long still stretches, periodic samples while a long animation runs, and a hard budget (40 frames by default) that drops the least informative frames first while keeping the ends of the timeline.
Two invariants hold whatever path a frame took:
- Nothing is dropped silently. The comparison baseline only ever advances by keeping a frame. There is no path that folds a changed screen into the baseline without emitting it — that would make the change unrecoverable, since every later comparison would measure zero against a state you never see.
- Annotations describe the neighbour you can actually see. After the frame budget prunes the middle of the timeline, every survivor's change percentage and boxes are recomputed against the frame that now precedes it.
How it works
Decoding streams two frames at a time; the selector additionally keeps the
downscaled buffers of the frames it has kept so it can recompute their deltas
after pruning. That is bounded by the frame budget, not by video length: ~32 MB
at the defaults. All drawing is done by ffmpeg filters, which is why there is
no image library in package.json.
Development
Development runs on Bun; the runtime code itself sticks to
node: APIs, which is what lets the published package run anywhere npx does.
The fixture is a synthetic screen recording with a scripted timeline — a panel,
an error dialog, a toast, a recovery, and two stretches of pointer-only motion.
The suite asserts that each staged event yields exactly one settled frame and
that pointer motion alone yields none. test/regressions.test.ts builds its
own clips and pins every failure a review has found, so a fixed bug stays
fixed.
Not there yet
- Audio transcript. Narration is the highest-signal part of a bug report.
Planned: local Whisper (
whisper.cppormlx-whisper) → atranscript.mdaligned to the frame timeline. - OCR over kept frames, so an agent can grep an error message without spending vision tokens at all.
- Pointer position and clicks are not reported — deliberately. A drawn crosshair was checked against a real recording and was right about half the time: a growing DevTools request list moves down the screen exactly like a pointer does. A wrong marker asserts "the user was pointing here" on a coin flip, and the pointer is plainly visible in the frame anyway.
- Horizontal scroll is not detected; vertical is.
- Small elements need a nudge. The default event threshold is 0.4% of the
screen, so a progress bar or a badge below that is not an event on its own.
--sensitivity 0.2or--profile densecatches them, at the cost of more frames.
Source: README.md at commit 5a7c84e
Tools
0Version history
1- v0.1.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts