[FFmpeg-trac] #8823(avfilter:new): vf_xfade interaction with other filters makes it stop early
FFmpeg
trac at avcodec.org
Mon Jul 27 13:39:32 EEST 2020
#8823: vf_xfade interaction with other filters makes it stop early
-------------------------------------+-------------------------------------
Reporter: legraphista | Type: defect
Status: new | Priority: normal
Component: avfilter | Version: git-
| master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
== Summary of the bug: ==
xfade stops second stream early when certain filters are applied to the
second stream.
=== Version: ===
{{{
ffmpeg version 4.3.1-static https://johnvansickle.com/ffmpeg/ Copyright
(c) 2000-2020 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
}}}
=== How to reproduce: ===
The following command will work as expected and will output a 9.5s video
{{{
ffmpeg -f lavfi -i testsrc=r=25:d=5 -f lavfi -i testsrc=r=60:d=5
-filter_complex "
[1:v] setpts=PTS-STARTPTS,settb=AVTB [v1];
[0:v] setpts=PTS-STARTPTS,settb=AVTB [v0];
[v0][v1] xfade=duration=0.5:transition=wipeleft:offset=4.5
" test.mp4
}}}
The following command will output only a 5s video;
{{{
ffmpeg -f lavfi -i testsrc=r=25:d=5 -f lavfi -i testsrc=r=60:d=5
-filter_complex "
[1:v] setpts=PTS-STARTPTS,settb=AVTB,hue=90 [v1];
[0:v] setpts=PTS-STARTPTS,settb=AVTB [v0];
[v0][v1] xfade=duration=0.5:transition=wipeleft:offset=4.5
" test.mp4 -y
}}}
Please note that the only difference is the addition of the `hue` filter
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8823>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list