Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ffprobe is a versatile tool for extracting information about media files, such as video resolution and frame rate. You can use the following command to print the resolution and frame rate of a video:

ffprobe -v error -select_streams v:0 -show_entries stream=width,height,r_frame_rate -of default=nw=1:nk=1 input.mp4

Replace input.mp4 with the name of your video file.

This command will output something like:

1920
1080
30/1

These numbers represent the width, height, and frame rate of the video, respectively. In this example, the video has a resolution of 1920x1080 and a frame rate of 30 fps.