Page 1 of 1

Convert DTS-HD to AC3 and add to existing MKV

Posted: Sat Aug 10, 2019 7:37 pm
by joegreen
Hi there,
I'm using ffmpeg for the first time. I have an MKV file with video with DTS-HD audio. I want to keep the video and DTS-HD audio as it is. I want to convert DTS-HD audio to AC3 and add to existing MKV file so that my new MKV file will have the following
Video
DTS-HD
AC3
This is the command I ran

Code: Select all

ffmpeg -i "G:\EDO.mkv" -map 0:v -map 0:a:0 -map 0:a -c:v copy -c:a copy -c:a:0 ac3 -ar 48000 C:\EDO.mkv
It create a file with the following.
Video
AC3
DTS-HD

As you can see it changed the order or audio streams. I wanted AC3 as the 2nd audio stream. Did I make a mistake with my command?

Re: Convert DTS-HD to AC3 and add to existing MKV

Posted: Tue Aug 13, 2019 6:12 pm
by pandy
joegreen wrote:
Sat Aug 10, 2019 7:37 pm

Code: Select all

ffmpeg -i "G:\EDO.mkv" -map 0:v:0 -c:v copy -map 0:a:0 -c:a:0 copy -map 0:a:0 -c:a:1 ac3 -ar 48000 C:\EDO.mkv
Try this one - didn't tested but should work.