[FFmpeg-trac] #10361(undetermined:closed): 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
Sun May 14 14:20:19 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 | Owner: (none)
Type: defect | Status: closed
Priority: important | Component:
| undetermined
Version: 6.0 | Resolution: invalid
Keywords: map mapping | Blocked By:
filter_complex duplication |
filtergraph |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by user123):
Replying to [comment:1 Gyan]:
> The current behaviour is the intended one. Read sections 4.1.2 and 4.1.3
at http://www.ffmpeg.org/ffmpeg.html#Stream-selection
Sorry, I'm confused. Are you saying that in every single previous version
of ffmpeg when using exactly the same cmd line that mapping behavior (with
`-map` and `-filter_complex`) was exactly the same and, as it turned out,
**incorrect**, but only now (since ffmpeg 6.0) it's correct (with the same
cmd line) but somehow with different results?
So, for example, how should this
{{{ffmpeg -i "testinput.mp4" -map 0:0 -filter_complex "[0:0]scale=320:240"
-y "testoutput.mp4"}}}
cmd line look like to be correct in all ffmpeg versions and so that the
`testoutput.mp4` would have only 1 resized videostream?
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10361#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list