[FFmpeg-trac] #10361(undetermined:new): Using the -map option together with the -filter_complex option causes the selected (mapped) videostream to be duplicated in the output file

FFmpeg trac at avcodec.org
Sat May 13 15:16:38 EEST 2023


#10361: Using the -map option together with the -filter_complex option causes the
selected (mapped) videostream to be duplicated in the output file
-------------------------------------+-------------------------------------
             Reporter:  user123      |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:               |                  Version:  6.0
  undetermined                       |
             Keywords:  map mapping  |               Blocked By:
  filter_complex duplication         |
  filtergraph                        |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 using the `-map` option together with the `-filter_complex` option causes
 the selected (mapped) videostream to be duplicated in the output file.

 How to reproduce:
 {{{
 ffmpeg -i "testinput.mp4" -map 0:0 -filter_complex "[0:0]null" -y
 "testoutput.mp4"

 ffmpeg version 6.0-full_build-www.gyan.dev
 built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
 Tested on Windows7 SP1 x64.
 }}}

 When using older ffmpeg versions (5.1.3, 5.1.2, 5.1.1, 4.4 etc.) mapping
 works as intended:
 {{{
 Stream mapping:
   Stream #0:0 (h264) -> null:default
   null:default -> Stream #0:0 (libx264)
 }}}

 But since ffmpeg version 6.0 the mapping behavior is different for some
 reason and duplicate stream is added to output:
 {{{
 Stream mapping:
   Stream #0:0 (h264) -> null:default (graph 0)
   null:default (graph 0) -> Stream #0:0 (libx264)
   Stream #0:0 -> #0:1 (h264 (native) -> h264 (libx264))
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10361>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list