[FFmpeg-devel] Requesting video filter for forcing given output framerate

Nicolas George nicolas.george at normalesup.org
Fri Feb 24 00:12:56 CET 2012

Le quintidi 5 ventôse, an CCXX, Andrey Utkin a écrit :
> I request for advices, explanations, or actual help on this topic that
> i asked on IRC a couple of times.
> Once I've got such reply that libavfilter is not a right tool for this
> piece of functionality.

At first thought, it seems quite obvious, though: when you get a frame, you
compare its PTS with the next PTS your fixed framereate should generate, and
if it is later then you re-issue the previous frame as many times as
necessary (using the REUSE2 perm, probably).

There will probably be some issues with flushing the last frame. This is a
regular issue with lavfi.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120224/ba6ad9a3/attachment.asc>

More information about the ffmpeg-devel mailing list