Forrest logo
back to the ffprobe tool


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

This command uses the ffprobe tool to extract the average frame rate of a video file. Here is a breakdown of the command:

  • ffprobe: This is the command-line tool provided by FFmpeg, a popular multimedia framework.
  • -v error: This sets the verbosity level to "error," which means only error messages will be printed and other informational messages will be suppressed.
  • -select_streams v:0: This selects the video stream with index 0 from the input file. In simple terms, it tells ffprobe to analyze the video stream rather than any other streams (e.g., audio).
  • -show_entries stream=avg_frame_rate: This specifies what information to show for each selected stream. In this case, it tells ffprobe to display the average frame rate value.
  • -of default=noprint_wrappers=1:nokey=1: This sets the output format options. It configures ffprobe to print the result without any additional formatting or metadata, just the numerical value of the average frame rate.
  • ${input-mp4}: This is a placeholder for the input file. It should be replaced with the actual path or name of the target video file (e.g., video.mp4).

By running this command, you can retrieve the average frame rate of a video file without playing or decoding the entire video.

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