ffprobe -show_streams input.mp4 Lists every single frame in the file (video, audio, subtitle). This can be extremely verbose. Use with -select_streams v to limit to video frames.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'example.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.76.100 Duration: 00:02:30.15, start: 0.000000, bitrate: 1024 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 896 kb/s, 30 fps, 30 tbr, 15360 tbn (default) Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) This tells you: container format, duration, bitrate, video codec (H.264), resolution (1080p), frame rate, audio codec (AAC), sample rate, and channels. 1. -show_format Displays container-level information: format name, duration, overall bitrate, number of streams, and format metadata. ffprobe.exe
ffprobe -show_format input.mkv Shows detailed information about each stream (video, audio, subtitle, data). This includes codec name, profile, level, bitrate, frame rate, pixel format, color space, etc. ffprobe -show_streams input
info = get_media_info("video.mp4") print(info['format']['duration']) ffprobe.exe is an essential tool for anyone who works with digital media files. It transforms opaque binary files into clear, structured, actionable data. Whether you are a video editor checking source properties, a developer building a media analyzer, or a DevOps engineer validating transcoded assets, ffprobe gives you the truth about your media. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'example
Create an alias or batch file called mediainfo that runs ffprobe -hide_banner -show_format -show_streams %1 to get a quick, readable summary anytime. Then explore deeper as needed.
width=1920 height=1080 r_frame_rate=30000/1001 ffprobe -v error -select_streams a:0 -show_entries stream=codec_name,sample_rate,channels -of default=noprint_wrappers=1 audio.mp3 Example 4: Get Duration and Bitrate Without Extra Text ffprobe -v error -show_entries format=duration,bit_rate -of default=noprint_wrappers=1 video.mkv Example 5: Detect if a File Contains Audio ffprobe -v error -select_streams a -show_entries stream=codec_type -of default=noprint_wrappers=1 sample.avi If nothing returns, there's no audio stream. Example 6: Extract All Metadata Tags ffprobe -v quiet -show_entries format_tags -of default=noprint_wrappers=1 input.mov Example 7: Verify HDR (High Dynamic Range) Information ffprobe -v error -select_streams v:0 -show_entries stream=color_primaries,color_transfer,color_space,pix_fmt -of default=noprint_wrappers=1 hdr_video.mkv Example 8: Analyze Packet Timestamps for A/V Sync Issues ffprobe -show_packets -select_streams v -v quiet input.ts > video_packets.txt Output Formats for Automation JSON (Recommended for Programming) ffprobe -v quiet -print_format json -show_format -show_streams input.mp4 Use jq (on Linux/macOS) or ConvertFrom-Json (PowerShell) to parse. XML ffprobe -print_format xml -show_streams input.mp4 CSV ffprobe -print_format csv -show_streams input.mp4 Flat (Key=Value) ffprobe -print_format flat -show_streams input.mp4 Advanced Use Cases 1. Batch Probing Multiple Files Using a loop in Windows Batch:
Get access to your Orders, Wishlist and Recommendations.
Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our privacy policy.