Page 1 of 1

Collection of ffprobe output examples

Posted: Wed May 18, 2016 4:45 am
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