[FFmpeg-trac] #11668(ffmpeg:new): "-shortest" malfunction with audio much longer than video?

FFmpeg trac at avcodec.org
Tue Jul 22 01:13:51 EEST 2025


#11668: "-shortest" malfunction with audio much longer than video?
------------------------------------+----------------------------------
             Reporter:  RavenWorks  |                    Owner:  (none)
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  ffmpeg
              Version:  7.1         |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  1           |
------------------------------------+----------------------------------
Comment (by RavenWorks):

 Well this is also fascinating:


 {{{
 ffmpeg -y -f lavfi -i "anullsrc=mono:d=50" -i .\no_audio.mp4 -shortest
 silent_audio.mp4
 }}}
 ... consistently reproduces the bug.

 {{{
 ffmpeg -y -i .\25sec.wav -f lavfi -i "testsrc2=r=60:d=0.15" -shortest
 silent_audio.mp4
 }}}
 ... consistently reproduces the bug.


 but,
 {{{
 ffmpeg -y -f lavfi -i "anullsrc=mono:d=50" -f lavfi -i
 "testsrc2=r=60:d=0.15" -shortest silent_audio.mp4
 }}}
 ... USUALLY does NOT reproduce the bug! (Though SOMETIMES it still does!)


 I think `-shortest_buf_duration 30` is still the bigger breakthrough, but
 these are both interesting bits of information...
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11668#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list