Forrest logo
back to the ffprobe tool

ffprobe:tldr:faf05

ffprobe: 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}
try on your machine

This command is using ffprobe, which is a command-line tool provided by FFmpeg for retrieving information about multimedia streams. Here is a breakdown of each component of the command:

  • ffprobe: This is the command itself.
  • -v error: This option sets the verbose level to error, meaning only error messages are displayed.
  • -select_streams v:0: This option specifies which streams to select. Here, it selects the first video stream in the input.
  • -show_entries stream=bit_rate: This option specifies what metadata information to show. It displays the bit rate of the selected stream.
  • -of default=noprint_wrappers=1:nokey=1: This option sets the output format and its parameters. The "default" format is used, and the "noprint_wrappers" and "nokey" settings remove any unnecessary formatting or keys, resulting in only the desired bit rate value.
  • ${input-mp4}: This is a placeholder for the input file name (in this case, an mp4 file). It is not directly part of the ffprobe command, but it's intended to be replaced with the actual file name when executing the command.

Overall, this command extracts and displays the bit rate information of the first video stream in the specified input mp4 file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ffprobe tool