Saturday, August 07, 2010

Extract and convert A_DTS to AC3

I got a problem again with my new video file. It contains A_DTS stream which is not recognizable with any player + tsMuxeR. According to this, I can use libdca to convert dts to wav and use aften to convert it to AC3.

mkvextract tracks /path/to/matroska.file.mkv 2:/tmp/dts.file.dts

dcadec -o wavall /tmp/dts.file.dts | aften - /tmp/ac3.file.ac3

mkvmerge -o /tmp/matroska.file.mkv /path/to/matroska.file.mkv /tmp/ac3.file.ac3
Another way is to use this to extract and remerge the stream automatically.