Collection of ffprobe output examples

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
peter_b
Chatterbox
Posts: 371
Joined: Tue Nov 12, 2013 2:05 am

Collection of ffprobe output examples

Post by peter_b »

Here I'll collect some use-case and parameter examples for FFmpeg's "ffprobe" command.
Mainly it's for myself, because I'm too bad at remembering the right arguments to use ;)
And most of them are taken from "FFprobeTips" article on FFmpeg's wiki.
(But I like backup copies ;))

Plain "name=value" output:

Code: Select all

$ ffprobe -v error -show_format -show_streams $VIDEO_FILE
Output the duration of the video in a timecode format: "h:mm:ss.xxxxxx"

Code: Select all

$ ffprobe_git -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 -sexagesimal $VIDEO_FILE
Output the framerate of the first video stream:

Code: Select all

$ ffprobe -v error -select_streams v:0 -show_entries stream=avg_frame_rate -of default=noprint_wrappers=1:nokey=1 $VIDEO_FILE
Post Reply