• 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
..
api Loading commit data...
checkasm Loading commit data...
dnn Loading commit data...
fate Loading commit data...
filtergraphs Loading commit data...
ref Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
audiogen.c Loading commit data...
audiomatch.c Loading commit data...
base64.c Loading commit data...
copycooker.sh Loading commit data...
extended.ffconcat Loading commit data...
fate-run.sh Loading commit data...
fate-valgrind.supp Loading commit data...
fate.sh Loading commit data...
md5.sh Loading commit data...
refcmp-metadata.awk Loading commit data...
reference.pnm Loading commit data...
rotozoom.c Loading commit data...
simple1.ffconcat Loading commit data...
simple2.ffconcat Loading commit data...
test.ffmeta Loading commit data...
tiny_psnr.c Loading commit data...
tiny_ssim.c Loading commit data...
utils.c Loading commit data...
videogen.c Loading commit data...