How to convert DTS Audio into Multi-Channel FLAC
July 27, 2013 by Christopher Silvertooth
If you happen to own some DTS Encoded Audio Discs such as Sting – Ten Summoner’s Tales DTS or have a collection of DVD Audio discs then you may have run into a problem of converting the DTS files into another multi-channel format without loss of quality. DVD Extractor works pretty well for converting DVD Audio to FLAC and I recommend buying it for $40 if you are going to be doing this frequently. But if you managed to get a hold of some DTS encoded music that was in the wav container ( fileaname.wav ) then this may be of use to you.
Step 1. Install brew – http://brew.sh
Step 2. Install ffmpeg – brew install ffmpeg
Step 3. In the terminal.app change to the directory you have your .wav DTS encoded files in.
Step 4. Run the following command:
for file in *.wav; do name=$(echo $file | sed "s/\\.wav//g"); ffmpeg -acodec dts -i "$name".wav -vn -sn -acodec flac "$name".flac; done
This will iterate through each of your DTS encoded *.wav files. It will then process them with ffmpeg and output the result as a multi-channel flac file – you will probably see some errors but it should still convert.
You can validate this by opening the newly created flac file in Audacity. I couldn’t tell you if it is 100% the same quality as the original DTS file but in theory it should be. Maybe someone with some advanced Audio tools could validate this.
The other problem I have run into is you may get a DTS encoded album that is only 1 big .wav with a .cue file. The .cue file is supposed to tell your software the breakpoints for each track. In order to split the DTS .wav file into each of the songs for an album I used the folllowing program XLD.
Step 1. Create a folder to store the .wav and .cue file in. Then place both files in that folder.
Step 2. Open the .cue file with XLD. This should show you all the individual tracks for said album. See below picture.
Step 3. You need to set your preferences in XLD. Open the preferences and set the following. Output : WAV
Step 4. Click Transcode. This should break the single DTS .wav file into multiple .wav files for each track on the album – assuming the .cue was done correctly.
Step 5. Now that you have all the .wav files following my steps above to convert to multi-channel flac.