[FFmpeg-devel] [PATCH v3] Allow 'concat' filter to support inputs with different frame rates

Nicolas George george at nsup.org
Sun Sep 8 17:55:17 EEST 2019


Calvin Walton (12019-08-30):
> Right now, the concat filter does not set the frame_rate value on any of
> the out links. As a result, the default ffmpeg behaviour kicks in - to
> copy the framerate from the first input to the outputs.
> 
> If a later input is higher framerate, this results in dropped frames; if
> a later input is lower framerate it might cause judder.
> 
> This patch checks if all of the video inputs have the same framerate, and
> if not it sets the out link to use '1/0' as the frame rate, the value
> meaning "unknown/vfr".
> 
> A test is added to verify the VFR behaviour. The existing test for CFR
> behaviour passes unchanged.
> ---
> Updated version of
> https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2017-March/208251.html
> 
> Fixes the missing concat-vfr filtergraph for tests, and adds a newline
> to the end of the log message.
> 
>  libavfilter/avf_concat.c         |  15 ++-
>  tests/fate/filter-video.mak      |   4 +-
>  tests/filtergraphs/concat-vfr    |   8 ++
>  tests/ref/fate/filter-concat-vfr | 224 +++++++++++++++++++++++++++++++
>  4 files changed, 249 insertions(+), 2 deletions(-)
>  create mode 100644 tests/filtergraphs/concat-vfr
>  create mode 100644 tests/ref/fate/filter-concat-vfr

Applied. Thanks.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190908/520beda9/attachment.sig>


More information about the ffmpeg-devel mailing list