[FFmpeg-devel] [PATCH v3] avfilter/vf_fps: fix duration

Thoms Mundt tmundt75 at gmail.com
Tue Jun 13 15:42:08 EEST 2017

/Nicolas George <george at nsup.org 
<http://ffmpeg.org/mailman/listinfo/ffmpeg-devel>> schrieb am So, 2.4.2017:/

> Le tridi 13 germinal, an CCXXV, Thomas Mundt a écrit :
> >/I found the use of this function in f_loop.c, so I thought it´s ok. /
> Well, it is a bug. I missed it when it was first committed.
> >/link->current_pts always returns the pts until the current (last) frame. />/I can calculate its duration for cfr video, but not for vfr. I need 
> the pts until the virtual next frame. />/At which point in the code can I get it? /
> link->current_pts is updated when request_frame() returns EOF. But to
> make it work, it would be necessary that the application injects the
> timestamp when marking EOF, which is not yet done, but hopefully I will
> have time to work on it in the next two weeks.
Since I dont see any solution or wip for this, I could modify my patch 
and remove the use of pkt_duration. This would only work for constant 
frame rate input, but fixes ticket #2674 which is open for 4 years now.

More information about the ffmpeg-devel mailing list