FFmpeg: How to Change Video Frame Rate

Updated

Learn how to change the frame rate of a video using FFmpeg

FFmpeg: How to Change Video Frame Rate

Before we start, make sure you have FFmpeg installed on your computer and have your video file, named input.mp4, ready in your working folder.

First, open your terminal or command prompt and navigate to the directory where your video is saved.

To change the video frame rate to 30 fps, run the following command:

ffmpeg -i input.mp4 -vf "fps=30" -c:a copy output.mp4

In this command, -i input.mp4 specifies your input file, -vf "fps=30" sets the video filter to adjust the frame rate to thirty frames per second, and -c:a copy copies the audio stream directly so it processes quickly without re-encoding.

Depending on the length and resolution of your video, FFmpeg may take a few seconds or a couple of minutes to process. You will see progress details updating in your terminal while it runs.

To quickly verify that everything worked, run ffprobe output.mp4 and check the stream details to see the updated frame rate.

As a quick tip, if you ever need a cinematic 24 fps or a smoother 60 fps, simply change the number 30 in the command to your target frame rate.