Ask Your Question
0

How can I print FPS and Resolution from a Video using ffprobe?

asked 2023-04-18 18:41:37 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-04-18 18:49:07 +0000

david gravatar image

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.

edit flag offensive delete link more

Your Answer

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

Add Answer


Question Tools

1 follower

Stats

Asked: 2023-04-18 18:41:37 +0000

Seen: 26 times

Last updated: Apr 18 '23