Skip to content

How to Use FFPROBE

George Stoyanov edited this page Aug 23, 2017 · 1 revision

FFProbe usage

FFProbe examples

Basic ffprobe usage:

ffprobe -i input.mp4 -hide_banner

-i: It defines the input file
-hibe_banner: It hides details on the compilation and program version.

ffprobe -i input.mp4 -show_format -hide_banner

-show_format: It is a parameter that will show us information about file format. This information refers to information of the video file container. We could say that in a mp4 file for example, it offers information about that format (MP4, number of streams that the file contains, the entire file bitrate, etc ..)
-show_streams: This parameter causes ffprobe to show us information of each of the streams (each of the tracks). A video file can contain multiple tracks (it is common that at least a video file contains a video stream and one audio stream, but this can vary) and this parameter will show us the specific information of each track (such as the codec used, the duration of each stream, its own bitrate, etc.)

ffprobe -i input.mp4 -v quiet -print_format json -show_format -show_streams -hide_banner

-print_format json: It is extracting the FFPROBE output into json file
-v quiet: In order to hide the information that ffprobe shows initially

You can open JSON files using the JSON Viewer

References:

FFProbe examples
JSON Viewer
FFProbe Tips