Skip to content

Converting a .mkv with DTS audio to a .mkv with only AC3 audio on OS X

based on L. Preston Sego III’s work, check it out here.

first we need to install some tools:

$ mkdir ConverterTemp
$ cd ConverterTem
$ curl -O http://www.cmake.org/files/v2.8/cmake-2.8.3.tar.gz
$ tar xvfz cmake-2.8.3.tar.gz
$ cd cmake-2.8.3
$ ./bootstrap
$ make
$ sudo make install
$ svn co http://aften.svn.sourceforge.net/svnroot/aften Aften
$ cd Aften
$ mkdir default
$ cd default
$ cmake /../../Aften/
$ make
$ sudo make install
$ svn co svn://svn.videolan.org/libdca/trunk libdca
$ cd libdca
$ ./bootstrap
$ ./configure
$ make
$ sudo make install

download MKVtoolNIX from http://jonthn.free.fr/MKVtoolnix/

$ sudo ln -s /Applications/Mkvtoolnix.app/Contents/MacOS/mkv* /usr/local/bin/

install mkvdts2ac3:

$ curl -O https://github.com/JakeWharton/mkvdts2ac3/raw/master/mkvdts2ac3.sh
$ chmod 755 mkvdts2ac3.sh
$ sudo cp mkvdts2ac3.sh /usr/local/bin/mkvdts2ac3

Usage:

$ mkvdts3ac3 --new -n -f -wd /Volumes/myDisk/Rips mymovie.mkv

1 thought on “Converting a .mkv with DTS audio to a .mkv with only AC3 audio on OS X”

  1. Marcelo Culotta

    Hello:
    My LG 3d TV will not read DTS so I have to replace the audio with Ac3.

    For that I use two applications:
    WinFF and MKVmerge (it shows as MKV files creator in the Applications menu)

    1. WinFF:For creating the AC3 audio track, I open WinFF, then I Add the MKV file that contains the DTS track. In Output details, I select

    Convet to Audio
    Device Preset Ac3 – 384kbps Stereo
    Output Folder Any folder you like (I use the one containing the MKV file)

    This will create an audio file with the same name as the MKV file, but with the
    ac3 extension

    2. MKV files creator (mkvmerge)

    Input Files: add the MKV file for which you created the ac3 audio track.
    In the Tracks, chapters and tags, UNSELECT the DTS audio file
    Input files again: add the ac3 file that you created with WinFF
    Start muxing

    This creates a file with the same name as the MKV file, except it has a (1) added to it that will have the ac3 audio track for playing as 2 channel stereo.

    I hope this helps!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.