mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-21 12:02:10 +00:00
Update cheatsheets
This commit is contained in:
10
tldr/ffprobe
10
tldr/ffprobe
@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display all available stream info for a media file:
|
||||
|
||||
`ffprobe -v error -show_streams {{input.mp4}}`
|
||||
`ffprobe {{[-v|-loglevel]}} error -show_streams {{input.mp4}}`
|
||||
|
||||
- Display media duration:
|
||||
|
||||
`ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 {{input.mp4}}`
|
||||
`ffprobe {{[-v|-loglevel]}} error -show_entries format=duration {{[-of|-output_format]}} 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}}`
|
||||
`ffprobe {{[-v|-loglevel]}} error -select_streams v:0 -show_entries stream=avg_frame_rate {{[-of|-output_format]}} 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}}`
|
||||
`ffprobe {{[-v|-loglevel]}} error -select_streams v:0 -show_entries stream={{width|height}} {{[-of|-output_format]}} default=noprint_wrappers=1:nokey=1 {{input.mp4}}`
|
||||
|
||||
- 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}}`
|
||||
`ffprobe {{[-v|-loglevel]}} error -select_streams v:0 -show_entries stream=bit_rate {{[-of|-output_format]}} default=noprint_wrappers=1:nokey=1 {{input.mp4}}`
|
||||
|
||||
Reference in New Issue
Block a user