[Libav-user] How to increase frame rate in ffmpeg?

Alex Cohn alexcohn at netvision.net.il
Wed Oct 12 11:25:42 CEST 2011


On Oct 12, 2011 3:58 AM, "김희숙" <hskim095 at naver.com> wrote:
>
> Hello,
>
>
>
> I'm wondering how to increase frame rate in FFMpeg.
>
> I added some trace in vfwcap.c and I calculated frame rate.
>
> I found out vfwcap driver can capture 15 frame per second but ffmpeg sends
30 at fps if I set up -r 30 option.
>
>
>
> How can control frame rate in FFMpeg?

There are two sides of it: you should initialize the format and codec
contexts according to the desired frame rate, and in your encode loop you
should give each raw frame two times.

> I'll appriciate any feedback.
>
>
>
> Best Regards,
>
> HSK
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20111012/2d1ee750/attachment.html>


More information about the Libav-user mailing list