Log in

View Full Version : Converting DTS audio


EpheMeroN
6th August 2011, 16:20
Hi all.

I have done a few DTS conversions but only to AC3. For that purpose I found the simple DTS2AC3 package (on here somewhere) works like a charm!

However, I finally stumbled into 1 DTS file it cannot convert to AC3. It spits out a 40mb file. We all know that's not correct.

Are there other free tools that can do DTS to AC3? I'd like to test out another software to see if it can do it.

nixo
6th August 2011, 18:16
eac3to (http://forum.doom9.org/showthread.php?t=125966)

--
Nikolaj

setarip_old
6th August 2011, 22:08
@EpheMeroN

Hi!

Have you played the original source material (Presumably a commercial DVD or Blu-ray disc) to see if the DTS audiostream plays properly?

tebasuna51
7th August 2011, 00:47
For that purpose I found the simple DTS2AC3 package (on here somewhere) works like a charm!.

I can't recommend DTS2AC3.

Only if:

1) Replace Aften.exe and NicAudio.dll with last versions.

2) Delete libaften.dll not used with DTS2AC3.

3) Change DTS.avs with this:
global OPT_AllowFloatAudio=True
LoadPlugin("NicAudio.dll")
NicDTSSource("input.dts")

4) Change DTS2AC3.bat with:
@echo off
If Not Exist input.dts Echo ---INPUT.DTS FILE NOT FOUND--- && PAUSE
bepipe.exe --script "import(^DTS.avs^)" | aften.exe -v 0 -pad 0 -readtoeof 1 - output.ac3

5) make a new DTS2AC3q.bat to convert DTS 1536 to AC3 640:
@echo off
If Not Exist input.dts Echo ---INPUT.DTS FILE NOT FOUND--- && PAUSE
bepipe.exe --script "import(^DTS.avs^)" | aften.exe -v 0 -pad 0 -readtoeof 1 -b 640 -exps 32 -s 1 - output.ac3

yepyep
7th August 2011, 09:23
forget about eac3to or DTS2AC3. too complicated stuffs


just one command line with ffmpeg,and you are done!


ffmpeg -i "C:\sample.DTS" -vn -threads 8 -acodec ac3 -ac 6 -f ac3 -ab 448k sample.ac3

copy the above commandline to windows CMD,and run it, the sample.ac3 will be saved to where ffmpeg.exe is located in.
and you can easily split the sample.DTS audio out using txMuxer.

i have tested this method a few days ago with some bluray discs.
it's the easiest and fastest way.

nixo
7th August 2011, 18:28
Well, eac3 is hardly complicated...

eac3to foo.dts foo.ac3

--
Nikolaj

EpheMeroN
7th August 2011, 20:40
Well, eac3 is hardly complicated...

eac3to foo.dts foo.ac3

--
Nikolaj

Don't I need that ArcSoft DTS plugin for eac3to to decode DTS properly?

TinTime
7th August 2011, 20:49
Don't I need that ArcSoft DTS plugin for eac3to to decode DTS properly?

Only for DTS HD.

EpheMeroN
7th August 2011, 20:53
I can't recommend DTS2AC3.

Only if:

1) Replace Aften.exe and NicAudio.dll with last versions.

2) Delete libaften.dll not used with DTS2AC3.

3) Change DTS.avs with this:
global OPT_AllowFloatAudio=True
LoadPlugin("NicAudio.dll")
NicDTSSource("input.dts")

4) Change DTS2AC3.bat with:
@echo off
If Not Exist input.dts Echo ---INPUT.DTS FILE NOT FOUND--- && PAUSE
bepipe.exe --script "import(^DTS.avs^)" - | aften.exe -v 0 -pad 0 -readtoeof 1 - output.ac3

5) make a new DTS2AC3q.bat to convert DTS 1536 to AC3 640:
@echo off
If Not Exist input.dts Echo ---INPUT.DTS FILE NOT FOUND--- && PAUSE
bepipe.exe --script "import(^DTS.avs^)" - | aften.exe -v 0 -pad 0 -readtoeof 1 -b 640 -exps 32 -s 1 - output.ac3


The version I was using had this info in the .bat file:

@echo off

If Not Exist input.dts Echo ---INPUT.DTS FILE NOT FOUND--- && PAUSE



REM -- AC3
bepipe.exe --script "import(^DTS.avs^)" - | aften.exe -v 0 -b 448 -dynrng 5 - output.ac3

What does the -dynrng 5 do?

EpheMeroN
7th August 2011, 20:55
So if I use eac3to from CLI and type input.dts output.ac3 does it default to a specific bitrate? And are all other default options ok? I know there's concerns from what I've read about DRC and what not during conversions. I'd like the highest quality conversion possible.

manolito
7th August 2011, 22:23
You should give LameXP a try...

Cheers
manolito

tebasuna51
7th August 2011, 22:46
-dynrng 5 put Dynamic Range Compression to None, is ok but is not needed because is the default.

The problem is forget -readtoeof 1, then if decoded audio is greater 4GB (any movie track 5.1 with 32 bit) the output is truncated (your 40 MB file maybe)

The default bitrate with eac3to is 640 Kb/s (you can use -448 .. -192 parameter to change the bitrate), the default bitrate with only Aften is 448 Kb/s for 5.1 and 192 Kb/s for 2.0

-exps 32 -s 1 is the best quality for Aften, only recommended with 640 Kb/s

nibus
19th August 2011, 04:32
eac3to is by far the best choice here... just download the Arcsoft trial and install it. There's a link for it somewhere in this thread.

EpheMeroN
20th August 2011, 18:10
@tebasuna51

Well I changed the files to latest as recommended and I changed the bat / avs files to match what you said and although now the CLI appears to be working during transcode, it never outputs the AC3 file. It just completes and closes. Ideas?

Time to try eac3to.

tebasuna51
20th August 2011, 18:37
...now the CLI appears to be working during transcode, it never outputs the AC3 file. It just completes and closes. Ideas?

Works for me with this info:
***************************************
BePipe by dimzon
***************************************
Script used:
# BEGIN
import("DTS.avs")
# END

Scanning for Audio Stream...
Found Audio Stream
Channels=6, BitsPerSample=32, SampleRate=48000Hz
Writing Header...
Writing Data...
0%
.... SIMD usage: MMX SSE SSE2 SSE3
Threads: 2

Done!

Maybe this DTS is corrupt, try to fix with DelayCut.

EpheMeroN
21st August 2011, 17:04
Well, eac3to worked! Maybe my screenshot below can help figure this all out for me. I think DTS2AC3 can't decode DTS-MA? The CLI prompt from eac3to said this DTS was DTS-MA which had to have the back rear channels mixed into the surround for the AC3. I am guessing this is why DTS2AC3 was struggling.

http://img94.imageshack.us/img94/5320/unledzsdcfghjn1.jpg (http://imageshack.us/photo/my-images/94/unledzsdcfghjn1.jpg/)

tebasuna51
21st August 2011, 19:42
Of course NicAudio.dll can't decode DTS-HD, only standard DTS.

DelayCut can extract the core and after can be decoded, but is better option use eac3to with ArcSoft decoder.