User Tools

Site Tools


ffprobe:bitrate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ffprobe:bitrate [2025/01/12 22:51] peterffprobe:bitrate [2025/01/12 23:00] (current) peter
Line 27: Line 27:
  
 <WRAP info> <WRAP info>
-**NOTE:** The command pulls the bit rate from the video stream header metadata.+**NOTE:** The output will be in bits. 
 + 
 +  * To get this as Kbps divide by 1024. 
 +  * To get this as Kbps divide by 1048576.
  
 That data is not required to be written to the stream, and MKV does not support it. That data is not required to be written to the stream, and MKV does not support it.
   * MKV stores that info in the container, meaning you need to replace **stream=bit_rate** with **format=bit_rate** for MKV containers.   * MKV stores that info in the container, meaning you need to replace **stream=bit_rate** with **format=bit_rate** for MKV containers.
  
 +Options:
  
 +  * **-v quiet**: sets the log level as quiet meaning show no logs.
   * **-v error**: Limits output to errors to avoid any unnecessary information display.   * **-v error**: Limits output to errors to avoid any unnecessary information display.
-  * **-select_streams v:0**: Directs the command to focus on the first video stream. +  * **-select_streams v:0**: selects the first video stream, if you have multiple video streams use this to target the one you want. 
-  * **-show_entries stream=bit_rate**: Extracts the average bit rate information from the specified stream (for MP4 files). +    * Removing this means the bitrate will be shown for all video streams
-  * **-show_entries format=bit_rate**: Extracts the average bit rate information from the specified stream (for MKV files). +  * **-show_entries stream=bit_rate**: shows the bitrate value for the specified stream (for MP4 files). 
-  * **-of default=noprint_wrappers=1:nokey=1**: Formats output to ensure only the core bit rate value is shown.+  * **-show_entries format=bit_rate**: shows the bitrate value for the specified stream (for MKV files). 
 +  * **-of default=noprint_wrappers=1:nokey=1**: Formats the output to not print the header and section information.
   * **input.mp4**: The file under examination.   * **input.mp4**: The file under examination.
  
Line 59: Line 65:
 481 481
 </code> </code>
 +
 +
 +----
 +
 +===== References =====
 +
 +https://ffmpeg.org/ffprobe.html
 +
  
  
ffprobe/bitrate.1736722263.txt.gz · Last modified: 2025/01/12 22:51 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki