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

Thomas Mundt loudmax at yahoo.de
Sun Apr 2 14:37:53 EEST 2017


>>>Nicolas George <george at nsup.org> schrieb am So, 2.4.2017:
>>Le tridi 13 germinal, an CCXXV, Thomas Mundt a écrit :
>...
>> 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.
>
> But it is the correct way of doing things. Using the duration has too
> many drawbacks.

OK, I´ll wait and use my patch locally meanwhile.
Will you also fix the ticket or shall I make a new patch then?

Regards,
Thomas


More information about the ffmpeg-devel mailing list