[FFmpeg-trac] #9487(ffmpeg:open): FFmpeg -shortest not working when using -filter_complex with audio and video filters
FFmpeg
trac at avcodec.org
Sun Oct 31 11:39:37 EET 2021
#9487: FFmpeg -shortest not working when using -filter_complex with audio and
video filters
-------------------------------------+-------------------------------------
Reporter: | Owner: (none)
pigeonburger |
Type: defect | Status: open
Priority: important | Component: ffmpeg
Version: git-master | Resolution:
Keywords: shortest | Blocked By:
filter_complex audio video |
audio/video filters |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Michael Koch):
The amix filter has a "duration" option. It works if you set this option
to "shortest".
But this doesn't explain why the -shortest option doesn't work.
{{{
ffmpeg -i input.mp4 -i song.m4a -lavfi
[0:a][1:a]amix=duration=shortest[s0];[0:v]null[s1] -map [s0] -map [s1] -y
output.mp4
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9487#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list