FFmpeg Media Info
Analyze media file properties - duration, resolution, bitrate, codecs, and stream information
npxskills add benchflow-ai/skillsbench--skill "FFmpeg Media Info"Loading…
Analyze media file properties - duration, resolution, bitrate, codecs, and stream information
npxskills add benchflow-ai/skillsbench--skill "FFmpeg Media Info"Loading…
Extract and analyze media file metadata using ffprobe and ffmpeg.
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
-v error to suppress warnings-of json for structured output-select_streams to target specific streams (v:0 for first video, a:0 for first audio)Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).