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

Thomas Mundt loudmax at yahoo.de
Sun Apr 2 14:06:15 EEST 2017


>>>Nicolas George <george at nsup.org> schrieb am Sa, 1.4.2017:
> Le quartidi 4 germinal, an CCXXV, Thomas Mundt a écrit :
>> v2: Use av_frame_get_pkt_duration to calculate count of duplication of last frame.
>> Use average of the earlier pts steps when av_frame_get_pkt_duration is not set.
>
> Sorry for missing it earlier.
>
> pkt_duration is not used by lavfi. The duration of the last frame is
> carried by link->current_pts after the status has been received.

I found the use of this function in f_loop.c, so I thought it´s ok.
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?

> Replied to the patch itself. For some reason your mail is not connected
> to it.

Yes, something went wrong with my mail in the mailing list.
I wrote it as a new mail. But later, when I looked at it in the mail archives, it became a reply at the end of another thread.
Yesterday I sent my ping as reply to my original mail, but it didn´t apear at the mailing list for hours. I thought that something went wrong and sent another mail by copy/pasting the re: subject from the mail archives.
This also didn´t appear for more than one hour. So finally I sent a new mail which immediately appeared on the list.
Now they are all in the list. Maybe, beside working on patches, I should work on my patience :-/
Sorry for the spam!


More information about the ffmpeg-devel mailing list