[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:03:46 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):

 It seems the workaround with *.mov doesn't help in this case.

 The issue can be reproduced with these simplified commands:

 {{{
 ffmpeg -f lavfi -i testsrc2 -f lavfi -i sine=2000 -t 5 -y input.mp4

 ffmpeg -f lavfi -i sine=500 -t 10 -y song.m4a

 ffmpeg -i input.mp4 -i song.m4a -lavfi [0:a][1:a]amix[s0];[0:v]null[s1]
 -map [s0] -map [s1] -shortest -y output.mp4
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9487#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list