ffprobe
$ ffprobe Foundation Low Riskffprobe (bundled with ffmpeg) inspects media files and streams without modifying them. With -v quiet -print_format json -show_format -show_streams, agents get deterministic JSON metadata for resolution, FPS, codecs, and duration.
brew install ffmpeg Strictly read-only JSON media inspector (ffprobe -v quiet -print_format json); far faster and cleaner than parsing ffmpeg -i stderr.
Agent-Readiness Checklist
Local Probe EvidenceCaptured --help excerpt
Simple multimedia streams analyzer usage: ffprobe [OPTIONS] INPUT_FILE Main options: -L show license -license show license -h <topic> show help -? <topic> show help -help <topic> show help --help <topic> show help -version show version -buildconf show build configuration -formats show available formats -muxers show available muxers -demuxers show available demuxers -devices show available devices -codecs show available codecs -decoders show available decoders -encoders show available encoders -bsfs show available bit stream filters -protocols show available protocols -filters show available filters -pix_fmts show available pixel formats -layouts show standard channel layouts -sample_fmts show available audio sample formats -dispositions show available stream dispositions -colors show available color names -loglevel <loglevel> set logging level -v <loglevel> set logging level -report generate a report -max_alloc <bytes> set maximum size of a single allocated block -cpuflags <flags> force specific cpu flags -cpucount <count> force specific cpu count -hide_banner <hide_banner> do not show program banner -sources <device> list sources of the input device -sinks <device> list sinks of the output device -f <format> force format -unit show unit of the displayed values -prefix use SI prefixes for the displayed values -byte_binary_prefix use binary prefixes for byte units -sexagesimal use sexagesimal format HOURS:MM:SS.MICROSECONDS for time units -pretty prettify the format of displayed values, make it more human readable -output_format <format> set the output printing format (available formats are: default, compact, csv, flat, ini, json, xml) -print_format alias for -output_format (deprecated) -of <format> alias for -output_format -select_streams <stream_specifier> select the specified streams -sections print sections structure and section information, and exit -data_dump_format set data dump format (available formats are: xxd, base64) -show_data show packets data -show_data_hash show packets data hash -show_error show probing error -show_format show format/container info -show_frames show
FCRS-1.0 6-Dimension Breakdown
First-class -of json / -print_format json, -v quiet, -select_streams, and -show_entries field filtering with zero interactive prompts.
- Native
-of json,-v quiet,-select_streams, and-show_entries
Strictly read-only media inspector with zero file writes or credential requirements.
- Read-only metadata probe with no write mode
Bundled alongside ffmpeg across macOS, Linux, and Windows.
- Ships everywhere
ffmpegis installed
Instant, exact JSON inspection of resolution, codecs, durations, and streams before transcoding.
- Canonical JSON media metadata probe
Official FFmpeg Project utility under LGPL/GPL.
- Part of the official FFmpeg Project
Thorough official manual page at ffmpeg.org/ffprobe.html.
- Official docs at ffmpeg.org/ffprobe.html
Security, Auth & Guardrails
None required; read-only media container and stream inspector.
Free, LGPL/GPL open-source C binary (bundled with ffmpeg).
# ffprobe Agent Rules - Always pass `-v quiet -print_format json` (or `-of json`) and avoid `-show_frames` / `-show_packets` on long videos unless piped through `head` or bounded with `-read_intervals`. - Prefer `-show_entries` to select only needed fields.
Agent-Ready Command Recipes
Safe Read-Only Queries
ffprobe -v quiet -print_format json -show_format -show_streams input.mp4
Suppresses banner logs (-v quiet) and emits structured JSON with duration, codecs, width/height, and sample rates.
ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,width,height,r_frame_rate -of json input.mp4
Filters output down to exact stream fields (-show_entries) to minimize output size.
Strengths for Agents
- + Strictly read-only and outputs crisp JSON (
-print_format json). - +
-show_entriesand-select_streamslet agents request only the exact fields needed. - + Zero interactive prompts and millisecond metadata reads.
Caveats & Pitfalls
- ! Running
-show_framesor-show_packetswithout bounds dumps megabytes of per-frame JSON.