Repository navigation
Contact sheets, on by default — cap what a video costs your model
Vision models bill by image area, so forty frames sent one at a time cost roughly 49,000 tokens. Tiled into a single labelled sheet, the same forty cost about 1,600.
Every run now writes that sheet alongside the frames. You do not have to ask for it, because the cheap behaviour should not be the one you have to discover.
peepshow demo.mp4 # sheet written automatically
peepshow demo.mp4 --token-budget 800 # size it to a ceiling you set
peepshow demo.mp4 --sheet-style sketch # smaller tiles, still legible
peepshow demo.mp4 --no-sheet # opt out, one image per frameFrames are still written exactly as before, so anything already reading them is unaffected. The sheet pass reuses frames already on disk and costs no measurable time.
--token-budget is the part worth knowing about: peepshow solves for the grid and tile size that fit your ceiling and then tells you what it actually used, rather than leaving you to discover the bill afterwards.
--sheet-style trades fidelity for size. Worth being straight about why it works: removing colour saves nothing on its own, because cost is pixels. Edge-rendered tiles simply stay readable at sizes where photographic detail turns to mush, and the smaller tile is the saving.
Each run also writes a sheet-index.md naming every tile with its timestamp, plus any on-screen text or detected objects that run already found. Text costs a fraction of an image, so a model can pick the moment it needs without opening a single frame.
Frames are still written exactly as before. Sheets are additive — nothing that already reads frames[] changes.
Read the detail back: crop and burst
A tile on a sheet is good for finding the moment, not for reading the text on screen. These close that loop.
peepshow crop <run> <timestamp> --box 0,0,0.5,0.5 # top-left quarter, full resolution
peepshow burst <video> 12.5 # 8 frames across one secondcrop takes its box in fractions of the frame, which is how a model reasons about a picture it has just looked at, and pulls the region back at full source resolution. burst catches fast moments ordinary sampling steps straight over.
Better shot-cut detection
peepshow used to pick frames with a single scene-change threshold. That works on b-roll and quietly fails on talking heads: a cut that keeps the same face, framing and background barely moves the score, so the cut is never found.
Detection now looks at how much of the picture changed, not just how much it changed by. A clock ticking in the corner moves a sixteenth of the frame; a cut moves nearly all of it. That matters for the footage peepshow is usually pointed at — CCTV with a burned-in timestamp, screen recordings with a system clock, hard-subtitled video — where a single threshold tends to fire on the overlay and miss the edit.
It also adapts to dim, low-contrast footage, where a fixed threshold reads as "nothing happened" even across a real cut.
Nothing to turn on, and nothing to lose: if the new pass cannot run, the previous behaviour still does, so it never selects fewer frames than before.
Also
peepshow --version/-V.- Our own testing shows the new detection finds cuts the old default walked past without adding spurious ones. We are not publishing comparison figures against other tools — the measurements we have were taken against material peepshow was developed on, which is not a fair basis for one.