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

Thomas Mundt loudmax at yahoo.de
Fri Mar 24 03:46:44 EET 2017


Hi,

after checking the fate sample and further testing I noticed that the stated framerate is not always correct and can lead to wrong results.
I didnĀ“t find one single method to make it work correct in any case, so I added a fallback.
av_frame_get_pkt_duration works for most files. Otherwise the average of the earlier pts steps is used to calculate the number of the final frame.

Please comment....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avfilter-vf_fps-fix-duration.patch
Type: application/octet-stream
Size: 4992 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170324/35e530c7/attachment.obj>


More information about the ffmpeg-devel mailing list