Convert DTS-HD to AC3 and add to existing MKV

Questions involving a Windows version of FFmpeg.
Post Reply
joegreen
Posts: 2
Joined: Sat Aug 10, 2019 7:30 pm

Convert DTS-HD to AC3 and add to existing MKV

Post by joegreen » Sat Aug 10, 2019 7:37 pm

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?

pandy
Posts: 200
Joined: Mon Feb 24, 2014 1:46 pm

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

Post by pandy » Tue Aug 13, 2019 6:12 pm

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.

Post Reply
'