[FFmpeg-trac] #11562(ffmpeg:new): ffmpeg adds an extra audio stream to the output if apad filter_complex is used

FFmpeg trac at avcodec.org
Tue Apr 29 18:38:32 EEST 2025


#11562: ffmpeg adds an extra audio stream to the output if apad filter_complex is
used
-------------------------------------+-------------------------------------
             Reporter:  weihuaqd     |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:  7.1
             Keywords:               |               Blocked By:
  filter_complex apad                |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: ffmpeg adds an extra audio stream to the output if
 apad filter_complex is used.  Here's the stream mapping:
 {{{
 Stream mapping:
   Stream #0:1 (aac) -> apad:default
   apad:default -> Stream #0:0 (aac)
   Stream #0:0 -> #0:1 (h264 (native) -> h264 (libx264))
   Stream #0:1 -> #0:2 (aac (native) -> aac (native))
 }}}

 How to reproduce:
 {{{
 ffmpeg -v 9 -loglevel 99 -i webcam_recording_original.mp4 -to 00:00:30
 -map 0:v? -map 0:a? -filter_complex [0:a?]apad -shortest -y  test.mp4
 }}}
 This affects 6.* and 7.1.1.
 4.4 works as expected.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11562>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list