Forrest logo
back to the ffprobe tool

ffprobe:tldr:637b0

ffprobe: Display the width or height of a video.
$ ffprobe -v error -select_streams v:0 -show_entries stream=${select} -of default=noprint_wrappers=1:nokey=1 ${input-mp4}
try on your machine

This command is used to extract information about a video stream in an MP4 file using the ffprobe tool.

Let's break down the command:

  • ffprobe: This is the command used to analyze multimedia streams.
  • -v error: This option sets the verbosity level to "error," meaning only error messages will be displayed in the output.
  • -select_streams v:0: This option selects the first video stream (v:0) in the input file for analysis.
  • -show_entries stream=${select}: This option specifies the information to be displayed for the selected stream. The variable ${select} is not defined in this command, so it won't have any effect. Normally, you would replace ${select} with the desired stream information, such as "duration" or "codec_name."
  • -of default=noprint_wrappers=1:nokey=1: This option configures the output format. "default" sets the format to default settings, while "noprint_wrappers=1" and "nokey=1" remove the output wrappers and keys, respectively. This will output only the values without any additional formatting.
  • ${input-mp4}: This is a placeholder for the input MP4 file. You would replace ${input-mp4} with the actual file name or path.

In summary, this command extracts information about the first video stream in an MP4 file, displaying only the values without any additional formatting. It will also only print error messages during the process.

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