[Libav-user] Variable frame rate

Denis Gottardello info at denisgottardello.it
Thu May 14 17:29:32 EEST 2020

Hi, I'm creating an avi file with 5 fps.
Sometimes could be a delay from a frame to another so in a particular moment i could 
have an fps at 4.9.
In there a way to change at runtime the fps?

My code is (to create and start)
pOutputStream->pAVStream->time_base.num= *100*;
pOutputStream->pAVStream->time_base.den= *5*;

and pts is
OutputStreamVideo.pAVFrame->*pts* = OutputStreamVideo.*next_pts++*;

Skype: mrdebug

[1] http://www.labcsp.com
[2] http://www.denisgottardello.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200514/f528f176/attachment.html>

More information about the Libav-user mailing list