DTS to AC3 (Dolby Digital 5.1) for multichannel sources
(back)

The following methods describe the conversion of multichannel sources. If you've got stereo sources or want to use a filter to downmix to stereo you may use Foobar2000 directly to encode to Dolby Digital (AC3)!
For that purpose use this guide: convert stereo DTS to Dolby Digital

Methoden:

[1] Foobar2000/Aften Methode [NEW] (fast)

This is the fastest method. Encodes DTS directly into Dolby Digital AC3.
This method is relatively secure.

Hint: if Foobar2000/Aften crashes
Change highest bitrate for Aften to 24 Bit one time, convert, change back to 32Bit. It should work from now on.

SRC Secret Rabbit Code Resampler does not work properly and crashes sometimes!
PPHS does work.
 

 
[2] Foobar2000/Tranzcode Method (secure)

This method is a bit slower because DTS tracks get separated into 6 mono Waves. But it is most secure and works with problematic files as well.
As well BeSweet's special functions may be used (e.g. dynamic compression).

 
[3] GraphEdit ffdshow Method (fast)
(change of sampling frequency possible
DVD->CD, CD->DVD)

This method is faster than the Foobar2000/Tranzcode method. But sometimes ffdshow may not decode DTS correctly. Then you will end up with clicks in the final AC3 track.
To circumvent this you should first playback the DTS track with ffdshow. Instead of the FileWriter connect the default DirectSound output filter in the graph and listen if there are any clicks. (in ffdshow use 16Bit as "output" instead of AC3!)

 
[4] For converting stereo DTS tracks use the DTS to AC3 2.0 Stereo Method which is for that purpose the fastest!

 

[1] Foobar2000 / Aften Methode
(special installer) über das DTS-Plugin

Foobar2000 is able to convert DTS into all formats for which an encoding plugin exits.

If a specific sampling frequency is needed (KHz) set up Foobar's Resampler (SSRC) DSP filter.
The conversion is done through Foobar's Diskwriter. All format specific options are adjusted in the diskwriter settings tab.

Step by Step guide:

Setting up Foobar2000 for the conversion of DTS 5.1 to AC3 5.1

Needed Software:

First you have to set up Foobar2000 for the conversion.
To change the settings of the fromats follow these easy steps:

Foobar2000->Preferences->Diskwriter
activate "Use DSP", this ensures foobar2000 applies the DSP filters you insert in the DSP tab

 

Set up Aften AC3 encoder

You need the Aften AC3 Encoder
-Copy the file into the Foobar2000 directory
-Under "Output Presets" click on "Add New" and choose "Commandline Encoder" from the drop down list



-Select "Aften.exe" from the directory
-Adjust the settings for AC3 conversion according to the figure shown below (adjust path to Aften)



-Extension: "ac3"
-Parameters:
-v 0 -b 448 - %d

For other bitrates as 448KBit/s use desired number from list below!
Allowed bitrates: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 448, 512,  576, 640

-Dispay name: Aften


Conversion:

In the playlist right click on the file/files you'd like to convert and choose "Convert->Run conversion". Select "Aften" from the list. Choose directory and name your output file.

Finished.

 


[1] Foobar2000 / Tranzcode Method
(Foobar special installer)

This general method can be used for every Dolby Digital encoder which supports separate WAV files for every channel as input:

Methods in detail (in suggested order):

(1) DTS nach AC3 mit BeSweet
(2) DTS nach AC3 mit FFMPEG
(3) DTS nach AC3 mit SoftEncode

(1) Procedure for converting into AC3 with BeSweet:

  1. First: Separate into 6 mono WAVs with Foobar2000, steps 1-7
    or Separate into 6 mono WAVs with Tranzcode (fast method)

  2. Use a text editor to create a text file with the 6 mono Wavs for BeSweet. Use exact order. Change extension to ".MUX"
    Dateiname.wavFL.wav
    Dateiname.wavC.wav
    Dateiname.wavFR.wav
    Dateiname.wavSL.wav
    Dateiname.wavSR.wav
    Dateiname.wavLFE.wav

    Extension has to be ".mux"

    Or use BeSweet Mux Wizzard to create such a file (in BeLight it's already integrated):

  3. Load MUX-file into BeSweet.
    Choose AC3 as destination format under AC3/OGG/PCM options and click "Create 5.1". Choose desired bitrate. Finished.

    If you used Tranzcode to separate DTS into 6 mono WAVs zu, you can now use SSRC in BeSweet to change the sampling frequency. Only use SSRC if you need to!
    DVD->CD 48Khz->44,1KHz
    CD->DVD 44,1KHz->48KHz
    Adjust settings in GUI or append this to the commandline: "-ssrc( --rate 44100 )" od. "-ssrc ( --rate 48000 )"

     

 

(2) Procedur for FFMEPGGUI:

Following software needed:

ffmpeg *latest* CVS version: http://ffdshow.faireal.net/mirror/ffmpeg/
gui4ffmpeg: http://www.videohelp.com/tools?tool=gui4ffmpeg

  1. First: Separate into 6 mono WAVs with Foobar2000, steps 1-7
    or Separate into 6 mono WAVs with Tranzcode (fast method)

  2. Use a text editor to create a text file with the 6 mono Wavs for BeSweet. Use exact order. Change extension to ".MUX"
    Dateiname.wavFL.wav
    Dateiname.wavC.wav
    Dateiname.wavFR.wav
    Dateiname.wavSL.wav
    Dateiname.wavSR.wav
    Dateiname.wavLFE.wav

    Or use BeSweet Mux Wizzard to create such a file (in BeLight it's already integrated):

  3. Load the MUX-file into BeSweet and choose PCM (Wave) 16 Bit 5.1 Wave as destination format


  4. start gui4ffmpeg, deactivate "Process Video Enconding" and activate "6 Channels" in the "Process Audio Encoding" settings.
    Load the multichannel wave file. Choose bitrate and click "Save File". Name AC3 output file. Finished.
    The result will be a Dolby Digital file with correct channel order.
    (ffmpeg.exe and gui4ffmpeg.exe have to be in the same folder).

 

(3) Procedure for high quality conversion using Sonic Foundry Soft Encode:

See english guide in the doom9.org Forum
http://forum.doom9.org/showthread.php?s=&threadid=91239&highlight=azidts

 

[1] GraphEdit ffdshow method

Needed software:

Before we begin we have to install/register the filter once. (E.g..: Start->execute->"cmd"-> "regsrv32 /s dtsac3source.ax"). Registering the filter is only needed once!

Connect filters in Graphedit:

"DTS/AC3 Source Filter" -> "ffdshow Audio Decoder" -> "File Writer"

  1. Start GraphEdit and insert filters one by one.  When inserting filter FileWriter you'll be asked for the destination AC3 filename. Choose path and filename as you like (extension ".ac3"):
     

     
  2. Right click on ffdshow and "properties" and set up ffdshow for Dolby Digital encoding
     

     
  3. If you have to change the sampling frequency (e.g. 48KHz for DVD), click on "Resample" so that it is checked and choose frequency. You may also add other filters if you like (e.g. "Volume normalize" etc.)
     

     
  4. As "Output" choose AC3 and bitrate (i suggest not to go below 448KBit/s if encoding a 5.1 mutlichannel track).
  5. Connect the filters in GraphEdit and click the "Play" button. Wait until it is finished and the AC3 file has been created.
    Finished.

(back)