Browse Source

ffprobe: add page (#1414)

Andrew Prentice 7 years ago
parent
commit
58826bfdab
1 changed files with 19 additions and 0 deletions
  1. 19 0
      pages/common/ffprobe.md

+ 19 - 0
pages/common/ffprobe.md

@@ -0,0 +1,19 @@
+# ffprobe
+
+> Multimedia stream analyzer.
+
+- Display all available stream info for a media file:
+
+`ffprobe -v error -show_entries {{input.mp4}}`
+
+- 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}}`