MediaInfo
$ mediainfo Community Low RiskMediaInfo provides strictly read-only inspection of video, audio, subtitle, and container metadata. Native --Output=JSON and --Inform template filtering emit machine-readable fields covering HDR profiles, bitrates, frame rates, and tags.
brew install media-info mediainfo --Output=JSON runs locally in milliseconds with strictly read-only semantics; an MCP wrapper adds unnecessary overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Native --Output=JSON, custom --Inform field filtering, ANSI-free stdout, and deterministic non-interactive execution.
- Supports
--Output=JSONand--Informfield extraction - Clean stdout without interactive prompts or color codes
Strictly read-only inspector with zero write modes, zero network calls by default, and no credentials.
- Read-only CLI binary (
mediainfo) never modifies media files
Packaged across macOS (brew install media-info), Linux distros, and Windows CLI downloads.
- Native C++ CLI packages for macOS, Linux, and Windows
Exposes container tags, Dolby/HDR metadata, and audio channel layouts cleanly in one JSON pass.
- Covers container, video, audio, text, and menu tracks in
--Output=JSON
Actively maintained by MediaArea under the permissive BSD-2-Clause license.
- Active
MediaArea/MediaInfoGitHub repository
Well-documented CLI options via --Help and --Info-Parameters self-inspection.
- Built-in
--Helpand--Info-Parameterslist all output fields
Security, Auth & Guardrails
None required; read-only local media metadata inspector.
100% free, offline, and open-source (BSD-2-Clause).
# MediaInfo Agent Rules - Always pass `--Output=JSON` (or `--Inform=...` for compact scalars) when inspecting media files. - Use `mediainfo` alongside `ffprobe` for detailed container/HDR tag verification; it is strictly read-only.
Agent-Ready Command Recipes
Safe Read-Only Queries
mediainfo --Output=JSON clip.mp4
Emits structured JSON detailing general container info, video/audio codecs, HDR metadata, and tags.
mediainfo --Inform="Video;%Format%,%Width%x%Height%,%FrameRate%" clip.mp4
Filters output to exact video codec, resolution, and frame rate fields to minimize output tokens.
Strengths for Agents
- + Native
--Output=JSONreturns structured track objects ready for agent parsing. - +
--Informextracts minimal custom fields without dumping huge tag payloads. - + Strictly read-only with zero file mutation risk.
Caveats & Pitfalls
- ! Homebrew formula is named
media-info(with a hyphen), while the binary ismediainfo. - !
--Output=JSONcan be verbose on files with embedded cover art or long chapter lists unless trimmed.