[FFmpeg-user] Copy across core DTS audio

Moritz Barsnick barsnick at gmx.net
Fri Apr 17 11:57:47 EEST 2020


On Fri, Apr 17, 2020 at 03:33:55 -0500, kaled wrote:
> thank you both and thanks for the code Moritz
> I tried the following
>
> ffmpeg -i x.mkv -map 0:0 -map 0:2 -map 0:1 -map 0:3 -c:v copy  -c:a:2 copy
> -bsf:a:2 dca_core -c:a:1 copy -c:s copy output.mkv
>
> and it converts the dts audio track to vorbis

The bitstream filters operate on the output side, and count the
outgoing streams, and count from 0. As you only have two audio streams,
"-bsf:a:2" doesn't match either (they are indexed 0 and 1).

ffmpeg doesn't seem to complain about undefined stream specifiers.

Little hint:
You can provide a "global" codec - just use "-c copy". It will apply to
all streams, and can be overridden for individual ones, (which is not
your use case though).

I think you need:
$ ffmpeg -i x.mkv -map 0:0 -map 0:2 -map 0:1 -map 0:3 -c copy -bsf:a:1 dca_core output.mkv

As always on this list, it is *much* more helpful and polite if you
provide the actual command line used and its complete, uncut console
output. It provides lots of useful information for analyzing issues.

Cheers,
Moritz


More information about the ffmpeg-user mailing list