peepshow/ compare/ frame-extraction-tools

Reel #V-05 ◆ Frame-extraction CLI vs the wider open-source field ◆

peepshow / compare / frame-extraction-tools

peepshow vs open-source video frame extractors

There is a healthy field of open-source tools that pull frames out of video: keyframe scripts, scene-detect wrappers, dataset-sampling libraries. They are good at producing frames. peepshow is aimed one step further along — which frames an LLM actually needs, what they cost in vision tokens, and where they go afterwards. Honest comparison, at the category level.

Side-by-side

 peepshowOpen-source video frame extractors
Setup`npm i -g peepshow` — one binaryVaries — clone or pip install, then wire it up
Cut detectionCatches shot cuts that single-threshold scene detection misses — including jump cuts in talking-head footage where the picture barely changesTypically one scene-detection threshold, tuned per video
Vision tokens for 40 frames~1,592 — the 40 frames tiled into one labelled contact sheet, which is what a default run produces~49,160 if each frame is sent to the model as its own image
Token budget✅ settable and respected — `--token-budget 800` yields a 783-token sheetNot a concept — frames come out, the cost arithmetic is yours
Frame labelling✅ timestamps rendered onto each tileUsually encoded in filenames only
Downstream destinations✅ 95 pluggable sinks — SQL, vector, chat, issue trackers, storageWrite your own glue per destination
Per-run artefact✅ self-contained report.html, plus an annotate loop for marking frames up❌ a directory of images
Live input✅ HLS / DASH / RTSPRare — local files are the norm
YouTube input✅ URL in, frames outUsually bring your own download step
Per-frame OCR✅ text read off each frameRare — bolt on a separate pass
Object gating✅ keep only frames containing what you asked forRare
PII blur✅ blurred before frames leave the machine❌
Audio transcription✅ whisper.cpp locally, or a cloud providerOut of scope — separate tool
Agent integration✅ native manifests for 8+ agents and LLM CLIs❌ library or CLI only
Language fitNode binary — shell out from anythingOften a Python library you import directly
LicenceMITMostly permissive too

Pick peepshow when…

  • The frames are going into an LLM context window, and the vision-token bill is the constraint. Vision cost scales with image area, so tiling 40 frames into one sheet is a real reduction rather than a compression trick — and it is what peepshow does without being asked, with `--no-sheet` there for the runs that want one image per frame.
  • Footage is talking heads, screen recordings or interviews, where cuts land without a big change in the picture.
  • The same run needs to reach somewhere else as well — a database, a vector store, a Slack channel, an issue tracker.
  • You need a per-run artefact someone can open later and see exactly which frames the model was shown.
  • Input is a live stream or a YouTube URL rather than a file already on disk.
  • OCR, object gating, PII blur or a transcript are part of the same pass.

Pick Open-source video frame extractors when…

  • You want a library to import, not a CLI to shell out to — much of this field is Python, and peepshow is a Node binary.
  • Extraction sits inside an ML pipeline you already own: dataset curation, training-set sampling, labelling runs.
  • You need a specific published algorithm — a particular keyframe-selection or saliency method, reproduced exactly.
  • The frames are for humans or a classifier, not a context window, so the token work buys you nothing.
  • Your project cannot take on dependencies outside its own ecosystem.
  • You already have ffmpeg scripted and the only missing piece is frame sampling.

Verdict

This is not a like-for-like contest. The open-source field extracts frames well, and if frames are the deliverable, a small focused tool is the sensible choice. peepshow is built for the case where frames are an input to a model: catching the cuts that single-threshold scene detection walks past, tiling them by default into labelled sheets inside a token budget you set, and fanning the run out to the rest of your stack.