Install Script for MKV DTS to AC3 – Snow Leopard

So, this is a script that will automate the installation required for converting mkv dts to ac3 for use on the tv.

original article with full installation and use instructions

when finished, you can run

$>mkvdts2ac3 path/to/file.mkv


$>mkvdts2ac3 -n path/to/file.mkv to remove the original dts track.


mkdir /ConverterTemp

This installs CMake

cd /ConverterTemp/

curl -O” && cmake_install && tar xvzf  && cmake_install



sudo make install

This installs Aften

cd /ConverterTemp

svn co Aften

cd Aften

mkdir default

cd default

cmake /ConverterTemp/Aften/


sudo make install

This installs MKVInfo

cd /ConverterTemp

curl -O


sudo chmod 755 mkvinfo

sudo cp mkvinfo /usr/local/bin

This installs libdca

cd /ConverterTemp

svn co svn:// libdca

cd libdca

sudo ./bootstrap

sudo ./configure

sudo make

sudo make install

This installs MKVDTS2AC3

cd ConverterTemp

curl -O


cd mkvdts2ac3

sudo chmod 755

cp /ConverterTemp/mkvdts2ac3/ /ConverterTemp/mkvdts2ac3/mkvdts2ac3

sudo cp /ConverterTemp/mkvdts2ac3/mkvdts2ac3 /usr/local/bin/

This installs MKVMerge

cd /ConverterTemp

curl -O

sudo chmod 755 mkvmerge

cp mkvmerge /usr/local/bin/

This installs MKVExtract

cd /ConverterTemp

curl -O

sudo chmod 755 mkvextract

If you want to make this into a .sh file, simply add semi-colons after each command for every  section.


  1. Jeff Byrnes November 18, 2009 12:13 pm 

    And one last suggestion: you should enclose your code sections in <code> tags to avoid any strange formatting for anyone who copies & pastes; this line in particular comes out badly because of the double quote being turned into a curly right double quote (see below):

    curl -O” && cmake_install && tar xvzf && cmake_install

  2. L. Preston Sego III November 28, 2009 11:19 am 

    Thank you, Jeff Byrnes!
    That is most helpful. It will be updated when either post_break or myself get around to it ^_^

  3. Randy Harris February 25, 2010 5:42 pm 

    Does this require that XCode be installed?


  4. DevTorrent April 16, 2010 4:05 am 

    Works like a charm thank you

  5. Brian April 29, 2010 3:15 pm 

    Whenever I try to unzip as noted above for the and other files, I get this error from the command line:

    End-of-central-directory signature not found. Either this file is not
    a zipfile, or it constitutes one disk of a multi-part archive. In the
    latter case the central directory and zipfile comment will be found on
    the last disk(s) of this archive.
    unzip: cannot find zipfile directory in one of or, and cannot find, period.

  6. harry May 1, 2010 11:23 am 

    im having same problem as brian is there a problem with the zip or are me and brain doing something wrong any help would be great thanks

  7. Allix June 28, 2010 1:40 pm 

    All the “curl -O…” commands point to a site that delivers a redirect, which doesn’t have the files needed. I got them from here instead:
    Also, it is easier actual .sh is unobtainable for the same reason but accessible from:
    For cmake, use the url offered by Jeff Byrnes, above (
    The Aften and libdca parts work just fine.

    Am finally all installed and running for the first time – if it goes tits up, I’ll be sure to let you know…

  8. oudinmelanie09 November 17, 2010 12:06 am 

    If you want to set output audio channel option to 5.1, you should choose AC3 or AAC as audio encoder.

    Convert MKV DTS to AC3, convert DTS to AC3 in mkv, convert MKV with DTS sound to AC3 with 5.1 channels is so easy if you owns such a powerful MKV DTS to AC3 Converter.
    Personally, I use Aunsoft MKV Converter to accomplish this MKV DTS to AC3.

    This program allows to you convert any types of MKV files like MKV DTS, MKV FLAC to AC3, AAC with 5.1 channels, and still keep its good quality.

Leave a Reply