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

or

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

enjoy!

mkdir /ConverterTemp


This installs CMake

cd /ConverterTemp/

curl -O http://www.cmake.org/files/v2.6/” && cmake_install && tar xvzf  && cmake_install

./configure

make

sudo make install

This installs Aften

cd /ConverterTemp

svn co http://aften.svn.sourceforge.net/svnroot/aften Aften

cd Aften

mkdir default

cd default

cmake /ConverterTemp/Aften/

make

sudo make install

This installs MKVInfo

cd /ConverterTemp

curl -O http://iamthekiller.net/downloads/mkvinfo.zip

unzip mkvinfo.zip

sudo chmod 755 mkvinfo

sudo cp mkvinfo /usr/local/bin

This installs libdca

cd /ConverterTemp

svn co svn://svn.videolan.org/libdca/trunk libdca

cd libdca

sudo ./bootstrap

sudo ./configure

sudo make

sudo make install

This installs MKVDTS2AC3

cd ConverterTemp

curl -O http://iamthekiller.net/downloads/mkvdts2ac3.zip

unzip mkvdts2ac3.zip

cd mkvdts2ac3

sudo chmod 755 mkvdts2ac3.sh

cp /ConverterTemp/mkvdts2ac3/mkvdts2ac3.sh /ConverterTemp/mkvdts2ac3/mkvdts2ac3

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

This installs MKVMerge

cd /ConverterTemp

curl -O http://iamthekiller.net/downloads/mkvmerge

sudo chmod 755 mkvmerge

cp mkvmerge /usr/local/bin/

This installs MKVExtract

cd /ConverterTemp

curl -O http://iamthekiller.net/downloads/mkvextract

sudo chmod 755 mkvextract

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


14 Comments

  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 http://www.cmake.org/files/v2.6/” && 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?

    Thanks

  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 mkvinfo.zip and other files, I get this error from the command line:

    unzip mkvdts2ac3.zip
    Archive: mkvdts2ac3.zip
    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 mkvdts2ac3.zip or
    mkvdts2ac3.zip.zip, and cannot find mkvdts2ac3.zip.ZIP, 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 http://iamthekiller.net/downloads/…” commands point to a site that delivers a redirect, which doesn’t have the files needed. I got them from here instead: http://jonthn.free.fr/MKVtoolnix/Mkvtoolnix-4.0.0_2010-06-21-dffa.dmg
    Also, it is easier actual .sh is unobtainable for the same reason but accessible from: http://github.com/JakeWharton/mkvdts2ac3
    For cmake, use the url offered by Jeff Byrnes, above (http://www.cmake.org/cmake/resources/software.html).
    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.

    http://www.aunsoft.com/mkv_dts_to_ac3_converter_convert_mkv_with_dts_sound_to_ac3_with_51_channels/

Leave a Reply