Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

ffprobe

$ ffprobe Foundation Low Risk
FFmpeg Project · AI & Media · LGPL-2.1-or-later / GPL-2.0-or-later · macos / linux / windows

ffprobe (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.

FCRS-1.0 Score
93 /100
Excellent
High Confidence
Zero-Friction Install
brew install ffmpeg
CLI vs MCP Decision CLI Only

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 Evidence
✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md
Version
ffprobe version 8.1 Copyright (c) 2007-2026 the FFmpeg developers
Startup
19 ms
Exit Codes (help / invalid)
0 / 1
NO_COLOR Clean / Non-TTY Safe
Yes / Safe
Captured --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

Agent-Readiness 24 / 25

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
Trust & Safety 25 / 25

Strictly read-only media inspector with zero file writes or credential requirements.

  • Read-only metadata probe with no write mode
Setup & Portability 14 / 15

Bundled alongside ffmpeg across macOS, Linux, and Windows.

  • Ships everywhere ffmpeg is installed
Utility & Efficiency 14 / 15

Instant, exact JSON inspection of resolution, codecs, durations, and streams before transcoding.

  • Canonical JSON media metadata probe
Maintenance & Lineage 8 / 10

Official FFmpeg Project utility under LGPL/GPL.

  • Part of the official FFmpeg Project
Docs & Verifiability 8 / 10

Thorough official manual page at ffmpeg.org/ffprobe.html.

  • Official docs at ffmpeg.org/ffprobe.html

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; read-only media container and stream inspector.

Side Effects
Read-Only
Cost & Quotas

Free, LGPL/GPL open-source C binary (bundled with ffmpeg).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect container format and streams as clean JSON
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.

Extract selected video fields with -show_entries
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_entries and -select_streams let agents request only the exact fields needed.
  • + Zero interactive prompts and millisecond metadata reads.

Caveats & Pitfalls

  • ! Running -show_frames or -show_packets without bounds dumps megabytes of per-frame JSON.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI