2017-06-23 19:04:48 +01:00
|
|
|
# ffprobe
|
|
|
|
|
|
|
|
> Multimedia stream analyzer.
|
2019-06-07 11:58:12 +01:00
|
|
|
> More information: <https://ffmpeg.org/ffprobe.html>.
|
2017-06-23 19:04:48 +01:00
|
|
|
|
|
|
|
- Display all available stream info for a media file:
|
|
|
|
|
2023-08-17 16:03:36 +01:00
|
|
|
`ffprobe -v error -show_streams {{input.mp4}}`
|
2017-06-23 19:04:48 +01:00
|
|
|
|
|
|
|
- Display media duration:
|
|
|
|
|
|
|
|
`ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 {{input.mp4}}`
|
|
|
|
|
|
|
|
- Display the frame rate of a video:
|
|
|
|
|
|
|
|
`ffprobe -v error -select_streams v:0 -show_entries stream=avg_frame_rate -of default=noprint_wrappers=1:nokey=1 {{input.mp4}}`
|
|
|
|
|
|
|
|
- Display the width or height of a video:
|
|
|
|
|
|
|
|
`ffprobe -v error -select_streams v:0 -show_entries stream={{width|height}} -of default=noprint_wrappers=1:nokey=1 {{input.mp4}}`
|
2017-10-21 21:56:27 +01:00
|
|
|
|
|
|
|
- Display the average bit rate of a video:
|
|
|
|
|
|
|
|
`ffprobe -v error -select_streams v:0 -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1 {{input.mp4}}`
|