mediainfo
Files
SKILL.mdagentsreferencesscripts
Install
Install the containing plugin
/plugin install shared-skills@llm-skills
Invoke this skill after installation
/shared-skills:mediainfo
This skill is bundled inside shared-skills. Install the plugin once, then Claude Code can use any of its included skills. Browse the full plugin repository at github.com/alisonaquinas/llm-shared-skills.
SKILL.md
name: mediainfo description: Display comprehensive media file information. Use when the agent needs to extract, analyze, or transform document and file metadata.
Mediainfo
Display comprehensive media file information
Prerequisite Check
Run this before proposing rich media inspection:
command -v mediainfo >/dev/null 2>&1 || mediainfo --version
If mediainfo is missing, surface that first and either run scripts/install.sh or scripts/install.ps1, or fall back to file for coarse type detection.
Quick Start
- Verify
mediainfois available:mediainfo --versionorman mediainfo - Establish the command surface:
man mediainfoormediainfo --help - Start with a read-only probe:
mediainfo file
Intent Router
references/install-and-setup.md— Installing mediainforeferences/cheatsheet.md— Common options and patternsreferences/advanced-usage.md— Advanced techniquesreferences/troubleshooting.md— Common errors and solutions
Core Workflow
- Verify mediainfo is available:
mediainfo --version - Inspect file:
mediainfo file - Validate output before batch processing
- Document exact commands for reproducibility
Quick Command Reference
mediainfo --version # Check version
mediainfo --help # Show help
mediainfo file # Basic usage
man mediainfo # Full manual
# Inspect one file and confirm the container/codec summary
mediainfo sample.mp4
# Fallback when mediainfo is unavailable
file sample.mp4
Safety Notes
| Area | Guardrail |
|---|---|
| File validation | Verify files are in expected format. |
| Output handling | Validate output before processing further. |
| Large files | Test with smaller files first. |
Recovery note: if mediainfo is unavailable, say that file can identify the container but will not replace codec, stream, duration, or bitrate details.
Source Policy
- Treat installed behavior and man page as truth.
Resource Index
scripts/install.sh— Install on macOS or Linux.scripts/install.ps1— Install on Windows or any platform.