[FFmpeg-trac] #10801(ffmpeg:closed): -map + filter causes two copies of a stream in recent versions
FFmpeg
trac at avcodec.org
Mon Jan 15 09:22:37 EET 2024
#10801: -map + filter causes two copies of a stream in recent versions
--------------------------------+-----------------------------------
Reporter: TomTop | Owner: (none)
Type: defect | Status: closed
Priority: normal | Component: ffmpeg
Version: 6.1 | Resolution: invalid
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------+-----------------------------------
Changes (by Gyan):
* status: new => closed
* resolution: => invalid
Comment:
It was the earlier behaviour that was buggy. A stream exiting a complex
filtergraph has to be included in an output file. Earlier, if such a
stream was unlabelled, any explicitly mapped stream of the same media type
would be ignored. That was fixed in 6.0.
See the chapter on [https://ffmpeg.org//ffmpeg.html#Stream-selection
Stream selection].
The correct way to filter a mapped stream is to specify a simple
filterchain. This is done via `-vf / -filter:v:X` for video and `-af /
-filter:a:X` for audio where X is the ''output'' stream index of that
type.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10801#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list