[Libav-user] Read from 24 FPS want to encode as 30 or 60 FPS

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Apr 8 22:48:31 EEST 2020


Am Mi., 8. Apr. 2020 um 04:07 Uhr schrieb Chang, Qi <qxc62 at psu.edu>:

> I want to read a video and encode it with other FPS such as 30 or 60.
>
> First, I want to know if the default decode FPS is 24.
> Second, how to encode in a different FPS.
>
> Right now, I can decode one frame and encode it into a new video with the same FPS.
> When I only set the time base for AVCodecContext of the encode video with {1,30}, something wired happened.

> I wonder what is a good way to encode in other FPS.

All ways have disadvantages, FFmpeg provides filters
that are supposed to simplify the task.

Perhaps you should first test with the command line utility
to find out which strategy you want to use.

Carl Eugen


More information about the Libav-user mailing list