﻿id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc,blockedby,blocking,reproduced,analyzed
10361,Using the -map option together with the -filter_complex option causes the selected (mapped) videostream to be duplicated in the output file,user123,,"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))
}}}",defect,closed,important,undetermined,6.0,invalid,map mapping filter_complex duplication filtergraph,,,,0,0
