Video Perception
Give any agent a practiced, local-first way to understand video.
Preview the whole. Revisit what matters. Answer with evidence.
The host agent plans and interprets; local tools gather signals and images;
the host's vision or a user-selected visual provider supplies visual meaning.
This is a reusable observation method, not a promise of another model's
intelligence or a requirement to use a hosted gateway.
Video Perception discovers the video capabilities already available on a
computer, applies reusable perception practices, and returns structured,
timestamped evidence an agent can query. The user does not need to know that a
good answer may require metadata inspection, scene-aware sampling, motion and
audio signals, transcript, OCR, or selective semantic vision.
It is a protocol-first agent plugin backed by a small CLI runtime. The plugin
teaches agents how to perceive video; the runtime makes capability discovery,
provider selection, execution, provenance, and Observation storage consistent
across Claude, Codex, DeepSeek Harness, and other shell-capable agents.
What changes after installation
Without Video Perception, an agent commonly invents a one-off FFmpeg command,
samples a few uniform frames, and asks a vision model to guess the rest. With
Video Perception, the agent can:
- inspect the source before choosing a sampling method;
- use deterministic local evidence before spending model tokens;
- find information-dense intervals using scenes, motion, signal change, and audio;
- add local ASR or semantic vision only when the task needs it;
- use an explicitly selected user-owned API when local evidence is insufficient;
- return timestamps and exact provider/model provenance with the answer.
Video Perception does not install models, hide provider failures, or require a
central model registry. A new model behind an existing OpenAI-compatible,
Ollama-compatible, or command protocol is normally a local manifest change—not
a change to this repository.
Install
The installer puts the video-perception executable for macOS (Apple Silicon
or Intel) or Linux x86_64 on your machine. FFmpeg and ffprobe must be on PATH;
ImageMagick enables contact sheets.
# Release binary, verified against the release checksums
curl -fsSL https://raw.githubusercontent.com/opus-pro/video-perception/main/install.sh | sh
Homebrew (brew install opus-pro/tap/video-perception) and npm
(npm install -g video-perception) packages are prepared in packaging/ but
not published yet.
Keep an installed release current with video-perception update. Other
platforms build from source as in the quick start below.
Quick start
Prerequisites: Rust, FFmpeg/ffprobe, and ImageMagick.
git clone https://github.com/opus-pro/video-perception.git
cd video-perception
cargo install --path cli
video-perception capabilities
video-perception doctor
video-perception catalog list --json
video-perception extension list --json
Run a deterministic local scan:
video-perception observe video.mp4 \
--capabilities probe,scenes,stats,layout,track,framerate,signalstats,avsync \
--out observation
video-perception observation query observation
video-perception observation query observation --at 00:00:12.500
video-perception observation query observation --text "title card"
The agent plugin also includes source-aware strategies:
video-perception observe video.mp4 \
--strategy plugin/strategies/quick-scan.yaml \
--out observation
Watch a file, camera, OBS virtual camera, RTSP feed, or another FFmpeg-readable
source:
video-perception stream input.mp4 \
--capabilities keyframes,signalstats \
--out stream-session
File inputs replay in real time by default. Use --speed 0 for unpaced
evaluation. The catalog reports which capabilities genuinely support streaming.
A bounded second look
The source build includes sample for agent-driven visual investigation:
# Choose the window after probing the real input duration.
video-perception sample video.mp4 --end 60 --fps 0.2 --sheet --out evidence/overview
video-perception sample video.mp4 --start 12 --end 14 --fps 8 --sheet \
--parent evidence/overview/sample.json --out evidence/detail
Each round produces timestamped JPEGs and sample.json, plus an optional
labelled contact sheet. The agent must open images before citing visual
observations. It can instead use an explicitly selected visual provider when
the host lacks vision. No models or dependencies are installed by sample.
Local extraction does not make a cloud agent's subsequent image viewing offline.
See the observation loop for limits and citations.
The extension model
Video Perception has three decentralized extension contracts: