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

MediaInfo

$ mediainfo Community Low Risk
MediaArea · AI & Media · BSD-2-Clause · macos / linux / windows

MediaInfo 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.

FCRS-1.0 Score
91 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install media-info
CLI vs MCP Decision CLI Only

mediainfo --Output=JSON runs locally in milliseconds with strictly read-only semantics; an MCP wrapper adds unnecessary overhead.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Native --Output=JSON, custom --Inform field filtering, ANSI-free stdout, and deterministic non-interactive execution.

  • Supports --Output=JSON and --Inform field extraction
  • Clean stdout without interactive prompts or color codes
Trust & Safety 24 / 25

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
Setup & Portability 14 / 15

Packaged across macOS (brew install media-info), Linux distros, and Windows CLI downloads.

  • Native C++ CLI packages for macOS, Linux, and Windows
Utility & Efficiency 13 / 15

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
Maintenance & Lineage 9 / 10

Actively maintained by MediaArea under the permissive BSD-2-Clause license.

  • Active MediaArea/MediaInfo GitHub repository
Docs & Verifiability 8 / 10

Well-documented CLI options via --Help and --Info-Parameters self-inspection.

  • Built-in --Help and --Info-Parameters list all output fields

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; read-only local media metadata inspector.

Side Effects
Read-Only
Cost & Quotas

100% free, offline, and open-source (BSD-2-Clause).

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

Dump complete media track metadata as JSON
mediainfo --Output=JSON clip.mp4

Emits structured JSON detailing general container info, video/audio codecs, HDR metadata, and tags.

Extract selected fields with --Inform
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=JSON returns structured track objects ready for agent parsing.
  • + --Inform extracts 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 is mediainfo.
  • ! --Output=JSON can be verbose on files with embedded cover art or long chapter lists unless trimmed.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI