• Calvin Walton's avatar
    lavfi/concat: allow to support inputs with different frame rates · 3ad5d4df
    Calvin Walton authored
    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.
    3ad5d4df
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...