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.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-04-18 18:41:37 +0000
Seen: 26 times
Last updated: Apr 18 '23