mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
3ad5d4df9c
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.
9 lines
207 B
Plaintext
9 lines
207 B
Plaintext
testsrc=r=5:n=1:d=2 [v1];
|
|
sine=440:b=2:d=1 [a1];
|
|
testsrc=r=15:n=1:d=1 [v2];
|
|
sine=622:b=2:d=2 [a2];
|
|
testsrc=r=8:n=1:d=1 [v3];
|
|
sine=880:b=2:d=1 [a3];
|
|
|
|
[v1][a1][v2][a2][v3][a3] concat=v=1:a=1:n=3
|