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

Chang, Qi qxc62 at psu.edu
Wed Apr 8 05:06:57 EEST 2020

Dear All,

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200408/5949ed06/attachment.html>

More information about the Libav-user mailing list