ffmpeg-media-info
Analyzes media files to report metadata such as duration, resolution, and codecs.
Install
mkdir -p .claude/skills/ffmpeg-media-info && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3693" && unzip -o skill.zip -d .claude/skills/ffmpeg-media-info && rm skill.zipInstalls to .claude/skills/ffmpeg-media-info
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Analyze media file properties - duration, resolution, bitrate, codecs, and stream informationKey capabilities
- →Extract media file duration
- →Identify video and audio codec information
- →Retrieve resolution and bitrate data
- →Count video and audio streams
- →Get frame rate information
How it works
The agent uses ffprobe to inspect media file headers and stream data, returning specific technical properties like bitrate, resolution, and codec details.
Inputs & outputs
When to use ffmpeg-media-info
- →Get resolution and bitrate of a video
- →Verify audio codec format
- →Check media file duration for processing
About this skill
FFmpeg Media Info Skill
Extract and analyze media file metadata using ffprobe and ffmpeg.
When to Use
- Get video/audio file properties
- Check codec information
- Verify resolution and bitrate
- Analyze stream details
- Debug media file issues
Basic Info Commands
# Show all file info
ffmpeg -i input.mp4
# JSON format (detailed)
ffprobe -v quiet -print_format json -show_format -show_streams input.mp4
# Simple format
ffprobe -v quiet -print_format json -show_format input.mp4
Duration
# Get duration in seconds
ffprobe -v error -show_entries format=duration \
-of default=noprint_wrappers=1:nokey=1 input.mp4
# Duration with timestamp format
ffprobe -v error -show_entries format=duration \
-of default=noprint_wrappers=1:nokey=1 -sexagesimal input.mp4
Resolution
# Get video resolution
ffprobe -v error -select_streams v:0 \
-show_entries stream=width,height \
-of csv=s=x:p=0 input.mp4
# Get resolution as JSON
ffprobe -v error -select_streams v:0 \
-show_entries stream=width,height \
-of json input.mp4
Bitrate
# Get overall bitrate
ffprobe -v error -show_entries format=bit_rate \
-of default=noprint_wrappers=1:nokey=1 input.mp4
# Get video bitrate
ffprobe -v error -select_streams v:0 \
-show_entries stream=bit_rate \
-of default=noprint_wrappers=1:nokey=1 input.mp4
Codec Information
# Video codec
ffprobe -v error -select_streams v:0 \
-show_entries stream=codec_name,codec_long_name \
-of default=noprint_wrappers=1 input.mp4
# Audio codec
ffprobe -v error -select_streams a:0 \
-show_entries stream=codec_name,codec_long_name \
-of default=noprint_wrappers=1 input.mp4
Sample Rate and Channels
# Audio sample rate
ffprobe -v error -select_streams a:0 \
-show_entries stream=sample_rate \
-of default=noprint_wrappers=1:nokey=1 input.mp4
# Audio channels
ffprobe -v error -select_streams a:0 \
-show_entries stream=channels \
-of default=noprint_wrappers=1:nokey=1 input.mp4
Stream Count
# Count video streams
ffprobe -v error -select_streams v -show_entries stream=index \
-of csv=p=0 input.mp4 | wc -l
# Count audio streams
ffprobe -v error -select_streams a -show_entries stream=index \
-of csv=p=0 input.mp4 | wc -l
Frame Rate
# Get frame rate
ffprobe -v error -select_streams v:0 \
-show_entries stream=r_frame_rate \
-of default=noprint_wrappers=1:nokey=1 input.mp4
Notes
- Use
-v errorto suppress warnings -of jsonfor structured output-select_streamsto target specific streams (v:0 for first video, a:0 for first audio)
When not to use it
- →Modifying or transcoding media files
- →Processing files without valid headers
Prerequisites
Limitations
- →Requires valid media file headers for analysis
- →Limited to metadata extraction, not file editing
How it compares
It provides a structured way to extract specific metadata fields programmatically, avoiding the need to manually parse verbose command-line output.
Compared to similar skills
ffmpeg-media-info side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| ffmpeg-media-info (this skill) | 1 | 2mo | Review | Beginner |
| gemini-count-in-video | 1 | 2mo | No flags | Intermediate |
| video-comparer | 1 | 9mo | Review | Intermediate |
| seek-and-analyze-video | 0 | 3mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by benchflow-ai
View all by benchflow-ai →You might also like
gemini-count-in-video
benchflow-ai
Analyze and count objects in videos using Google Gemini API (object counting, pedestrian detection, vehicle tracking, and surveillance video analysis).
video-comparer
daymade
This skill should be used when comparing two videos to analyze compression results or quality differences. Generates interactive HTML reports with quality metrics (PSNR, SSIM) and frame-by-frame visual comparisons. Triggers when users mention "compare videos", "video quality", "compression analysis", "before/after compression", or request quality assessment of compressed videos.
seek-and-analyze-video
Anhvu1107
ALWAYS use this when the request matches Seek AND Analyze Video: Seek and analyze video content using Memories.ai Large Visual Memory Model for persistent video intelligence
videodb-skills
FISCFED9
Upload, stream, search, edit, transcribe, and generate AI video and audio using the VideoDB SDK.
video-analyzer
bolbol-z
>
videodb
Anhvu1107
ALWAYS use this when the request matches Videodb: Video and audio perception, indexing, and editing.