Агент смотрит видео без слепых зон и доказывает тайм-кодом, что именно он видел
Project description
frameproof
Your coding agent did not watch that video. It guessed.
Ask Claude Code to "watch this tutorial" and it samples frames on a scene-change threshold. On a screencast that threshold cannot fire. A tool may warn that coverage is sparse, but it will not tell you WHERE the hole is — so the agent cannot tell "few frames" from "no frames for twenty minutes straight".
Measured on a real 38-minute tutorial, the most popular tool in this niche extracted
17 frames by default, with a 20-minute 51-second gap. frameproof extracted 220
with a 14-second maximum gap — first command, no flags.
The full table, including their best mode where they lead on coverage, is in bench/RESULTS.md. Hiding it would be less interesting.
pip install frameproof
frameproof index "https://youtube.com/watch?v=..." --ocr
Why the threshold cannot work
ffmpeg's scene filter measures the mean delta across the whole frame. Measured on
ffmpeg 8.0.1 with real terminal colours (#cccccc on #1e1e1e, 640×360):
| what changed on screen | scene score | threshold 0.3 |
|---|---|---|
| one full-width line of text | 0.0579 | no |
| three lines | 0.149 | no |
| half the screen | 0.745 | yes |
Real glyphs cover 10–15 % of a line's area, so a typed command scores around 0.006 — off by a factor of about 40. Lowering the threshold does not help: what rescues a screencast buries a fast-cut video under thousands of frames.
frameproof measures the fraction of changed pixels per grid cell, calibrated
against each cell's own baseline. A cell that moves constantly — the presenter's
webcam, a running timer, a cursor — is suppressed automatically. A cell that is quiet
most of the time and then changes is an event.
The guarantee
No stretch of the timeline is left without a frame for longer than --max-gap
seconds (15 by default). When detectors stay silent, frames are placed on a grid.
Coverage is not a matter of picking a lucky threshold.
And when the guarantee cannot be met, the tool says so:
покрытие: 97 % — 2 участка без кадров (57 с). НЕ утверждай, что показано на экране в них.
БЕЗ КАДРА 25:30 – 25:59 (29 с)
Silent blindness is worse than an honest "I did not look here".
Three commands, on purpose
| command | what it does | images |
|---|---|---|
index |
builds the index, prints coverage | none |
search |
searches speech and on-screen text | none |
frames |
returns images | yes — the only one |
If search could return pictures, the savings would vanish on the first query. A frame at 1280×720 costs about 1196 visual tokens; the transcript of an hour is about 50 KB. Most questions are answered without loading a single image.
frameproof search "openrouter" --out ~/.frameproof/hermes
# [9:57 / f0050] screen: ... OpenRouter • дешевле напрямую ...
frameproof frames --at 18:38 --out ~/.frameproof/hermes
# [18:38 / f0097] .../frames/f0097.jpg (1196 токенов)
Two speed tiers
frameproof index <url> --fast # 1 second
frameproof index <url> # 32 seconds, frames land better
--fast takes candidates from keyframes instead of decoding the whole video.
Measured on a 38-minute tutorial:
| mode | frames | reliable on-screen terms | per frame | time |
|---|---|---|---|---|
--fast |
231 | 672 | 2.9 | 1.1 s |
| default | 225 | 789 | 3.5 | 32 s |
The fast tier returns 85 % of the information for 3 % of the time. The trade is honest: frames land where the encoder put a keyframe, not where the thought on screen finished.
The frame budget scales with duration instead of being a constant: a one-minute clip gets 40, a 38-minute tutorial 231, a three-hour lecture 600.
A citation you can check
[18:38 / f0097] is not decoration. It points at a row of the index, and arithmetic checks it:
frameproof verify answer.md --out ~/.frameproof/hermes
✗ [20:00 / f9999] The memory architecture diagram is on screen.
FAIL FRAME_NOT_FOUND: no frame f9999 in the index — the reference is invented
✗ [5:00 / f0097] Here he opens the router settings.
FAIL TIME_MISMATCH: the tag says 5:00, frame f0097 was taken at 18:38
? [29:31 / f0160] A list of ten skills is shown.
WARN NEVER_OPENED: the frame exists but was never requested —
the claim was made without looking
Six checks, zero model calls: does the frame exist · does the timestamp match · does the moment fall in a coverage gap · was the frame ever served to the agent · does the quoted string appear in the frame's OCR · does it appear in nearby speech.
A blind second look
Meaning is beyond arithmetic. For that there is a separate subagent that sees only the frame and the claim — not the user's question, not the author's reasoning, not the rest of the answer. Its job is to refute.
frameproof verify answer.md --out <index> --plan # tasks carrying no context at all
It runs only when explicitly asked. Refuted claims are flagged, not hidden: measured adversarial panels raise false alarms on up to a third of correct claims, so the call stays with the human.
Install
pip install frameproof # core
pip install "frameproof[net]" # + yt-dlp for links
pip install "frameproof[mlx]" # + fast local transcription on Apple Silicon
frameproof doctor # check what is available
frameproof install # install the skill into Claude Code
npx skills add edvardgrishin27/frameproof -g # Codex, Cursor, Copilot, others
We have not verified this outside Claude Code. The
SKILL.mdformat is portable and the manifests are in place, but we will not claim support we did not test — see CLAIMS.md.
Requires ffmpeg. Everything else is optional and degrades gracefully.
No API keys, ever. Subtitles come free from yt-dlp; when there are none,
transcription runs locally.
Use in Claude Code
After frameproof install, just ask: "watch this video and tell me which command he
shows at 4:12". The skill enforces one rule the agent cannot skip:
Never claim what was on screen without having seen a frame. Every statement about the screen carries a
[MM:SS / fNNNN]tag so a human can check it.
Honest limits
The full list is in CLAIMS.md. The short version: this tool guarantees coverage, not that no change was ever missed; OCR is for finding frames, not for reading code verbatim; and the benchmark is one video of the class where the gap is widest.
Russian documentation: README.ru.md
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file frameproof-0.4.0.tar.gz.
File metadata
- Download URL: frameproof-0.4.0.tar.gz
- Upload date:
- Size: 64.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
260ed0a2b648aa5f9987080645d5f8f67eaced4afe42af650195ad2d456f7ea8
|
|
| MD5 |
69b99bff974f5114ede789c9dc21efe6
|
|
| BLAKE2b-256 |
8fde65554ab72444c6b0a9e740d727085c30599b1d20921fb73ee4f49477a54a
|
Provenance
The following attestation bundles were made for frameproof-0.4.0.tar.gz:
Publisher:
publish.yml on edvardgrishin27/frameproof
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
frameproof-0.4.0.tar.gz -
Subject digest:
260ed0a2b648aa5f9987080645d5f8f67eaced4afe42af650195ad2d456f7ea8 - Sigstore transparency entry: 2304044979
- Sigstore integration time:
-
Permalink:
edvardgrishin27/frameproof@b9b7dd519cf7f4d6ea08fb5c179da9747bf4e1b2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/edvardgrishin27
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b9b7dd519cf7f4d6ea08fb5c179da9747bf4e1b2 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file frameproof-0.4.0-py3-none-any.whl.
File metadata
- Download URL: frameproof-0.4.0-py3-none-any.whl
- Upload date:
- Size: 60.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
898a481bfc18915cc561824ec3c547689c838a7cb00cba55ce55dbc036c2fa40
|
|
| MD5 |
defa9d17aa4586994730b3b3824a2c11
|
|
| BLAKE2b-256 |
83c79776faaeb7ef324512f97f0b912157e6a3d4301b50f6c297193596729959
|
Provenance
The following attestation bundles were made for frameproof-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on edvardgrishin27/frameproof
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
frameproof-0.4.0-py3-none-any.whl -
Subject digest:
898a481bfc18915cc561824ec3c547689c838a7cb00cba55ce55dbc036c2fa40 - Sigstore transparency entry: 2304044995
- Sigstore integration time:
-
Permalink:
edvardgrishin27/frameproof@b9b7dd519cf7f4d6ea08fb5c179da9747bf4e1b2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/edvardgrishin27
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b9b7dd519cf7f4d6ea08fb5c179da9747bf4e1b2 -
Trigger Event:
workflow_dispatch
-
Statement type: