[FFmpeg-user] Codec "same" as opposed to "copy"?

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Nov 20 10:47:56 CET 2014

Bob Maple <bobm-ffmpeg <at> burner.com> writes:

> ffmpeg -i manyaudio.mov -map 0:v -map 0:a -map 0:a \
>   -codec:v copy -codec:a copy \
>   -map_channel 0.1.0:0.1.0 -map_channel 0.1.1:0.2.0 \
>   dualmono.mov
> However when I use '-codec:a copy' it ignores my channel 
> mapping and I wind up with 2 x 16-channel streams.

Yes, the channel mapping cannot work with -codec copy

> My source's audio codec will typically be either 
> pcm_s16le or pcm_s24le, but ideally I don't want to care 
> and want to say "use the same codec as the source."

This is not implemented, patch (or enhancement request) 

Carl Eugen

More information about the ffmpeg-user mailing list