[FFmpeg-user] Copy all subtitle streams? Possible?
Gyan Doshi
ffmpeg at gyani.pro
Mon Mar 30 08:57:12 EEST 2020
On 30-03-2020 10:56 am, Ted Park wrote:
> Hey,
>
>> '-c:a copy' or '-acodec copy' will copy (all?) audio tracks. I have 2 questions:
>> Do I need to also specify a '-map' directive? and
>> Is there an equivalent directive for copying subtitle streams?
> IIRC, -codec only specifies the codec, and stream selection is done by -map, except when you explicitly specify an encoder for a stream type and there is at least one stream that matches that specifier, then it will select one of that stream as well, according to the normal stream selection rules, in addition to the ones already selected.
Only for subtitles. -codec will not automatically select a stream for
other types. See http://ffmpeg.org/ffmpeg.html#Stream-handling
Gyan
More information about the ffmpeg-user
mailing list