Log in

View Full Version : eac3to - audio conversion tool


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 [226] 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308

nibus
5th September 2011, 07:07
I installed the trail version of the latest ArcSoft TotalMedia Theater to get access to their DTS-MA decoder, but eac3to fails to find the decoder. Do I need some additional configuration?

try this:

http://forum.doom9.org/showthread.php?p=1398577#post1398577

Thunderbolt8
5th September 2011, 10:53
Perhaps try using tsMuxeR to demux the m2ts into elementary streams first. I had difficulty remuxing 1080i60 extras from a bd a year ago, and madshi told me eac3to sometimes didn't work with those sources.hm I guess I'll keep it as .m2ts then for now. dont like to output as elementary stream for some reason.

me7
5th September 2011, 17:12
try this:

http://forum.doom9.org/showthread.php?p=1398577#post1398577

Doesn't work with version 1.1.0.8 (the one I have). I get the following log output when I try to decode a 6.1 DTS-HD track:

[a03] The ArcSoft and Sonic decoders don't seem to work, will use libav instead.
[a03] The libav DTS decoder doesn't decode the back channels. <WARNING>
[a03] The libav DTS decoder doesn't decode the full DTS-HD information. <WARNING>
[a03] Extracting audio track number 3...
[a03] Extracting DTS core...
[a03] Decoding with libav/ffmpeg...
[a03] The AC3 encoder received a non-supported data format (float, 7, 64, -). <ERROR>
Aborted at file position 1048576. <ERROR>

Since 1.1.0.8 supposedly can't handle 6.1 DTS it could be related that bug.

Is there any other way to decode 6.1 DTS?

Thunderbolt8
5th September 2011, 17:44
try 1.1.0.1

tebasuna51
5th September 2011, 21:17
Doesn't work with version 1.1.0.8 (the one I have). I get the following log output when I try to decode a 6.1 DTS-HD track:
...

Please put the full log.
We need know the command line.

me7
5th September 2011, 21:44
Doesn't seem related to eac3to specifically, I can't get the decoder to work with Media Player Classic Home Cinema either.
Is this really the only way to access a 6.1 DTS stream?

asarian
5th September 2011, 23:11
Getting the following error trying to convert 6.1 channel DTS-MA to LPCM:

a03 Blu-Ray PCM doesn't support 6.1 channels. Will upconvert to 7.1.

This is, in itself, normal, except that I had a commandline like this:

"eac3to 1) 3: c:\video\temp.pcm -down6"

Since I'm downcoverting to 5.1 anyway, it seems wiser for eac3to to do so directly, instead of upconverting to 7.1 first.

tebasuna51
6th September 2011, 11:01
"eac3to 1) 3: c:\video\temp.pcm -down6"

Yes I can confirm the bug, work with other output but not with pcm. But isn't the problem, the problem is:

One more time, the eac3to -down6 with 6.1 sources don't work fine, the surround channels have a bad mix.

You need:
eac3to input_6.1 output.wavs

and make the mix manually:

SL' = SL + 0.7071 x BC
SR' = SR + 0.7071 x BC

Thunderbolt8
6th September 2011, 12:20
is there actually any list of bugs which eac3to currently has with 3.24? and maybe also a list of known limitations in regards to other tools like arcsoft etc. (apart from those mentioned at 1st page)?
would be nice if someone with an overview on these things could create such a list, I myself always keep losing track of such things.

might be easier then just to refer back to a certain post which can be kept up to date.

asarian
6th September 2011, 12:36
Yes I can confirm the bug, work with other output but not with pcm. But isn't the problem, the problem is:

One more time, the eac3to -down6 with 6.1 sources don't work fine, the surround channels have a bad mix.

You need:
eac3to input_6.1 output.wavs

and make the mix manually:

SL' = SL + 0.7071 x BC
SR' = SR + 0.7071 x BC

So, I guess I was 'lucky' then, in my case of pcm, that it upconverted to 7.1 first, mix-wise? (assuming downconvert from 7.1 goes fine too).

tebasuna51
7th September 2011, 00:15
So, I guess I was 'lucky' then, in my case of pcm, that it upconverted to 7.1 first, mix-wise? (assuming downconvert from 7.1 goes fine too).

Sorry but the upmix to 7.1 is also wrong because make:

BL' = 0.7 x SR
BR' = 0.7 x SR
SL' = BC
SR' = SL

and after, if you use the -down6, obtain:

SL'' = BC + 0.7 x SR
SR'' = SL + 0.7 x SR

tebasuna51
7th September 2011, 00:22
To avoid the bug we can use a fake remap like this:

eac3to input_6.1 output_5.1 -0,1,2,3,5,6,4 -down6

where input_6.1 can be a DTS 6.1 track, and output_5.1 can be ac3, wav, w64 ...


Edit:
This remap is also needed to upmix 6.1 to 7.1 with the -double7 parameter:

eac3to input_6.1 output_7.1 -0,1,2,3,5,6,4 -double7

asarian
7th September 2011, 00:30
To avoid the bug we can use a fake remap like this:

eac3to input_6.1 output_5.1 -0,1,2,3,5,6,4 -down6

where input_6.1 can be a DTS 6.1 track, and output_5.1 can be ac3, wav, w64 ...

Thanks. Appreciate the help and commandline. :)

nibus
8th September 2011, 08:31
Yes I can confirm the bug, work with other output but not with pcm. But isn't the problem, the problem is:

One more time, the eac3to -down6 with 6.1 sources don't work fine, the surround channels have a bad mix.

You need:
eac3to input_6.1 output.wavs

and make the mix manually:

SL' = SL + 0.7071 x BC
SR' = SR + 0.7071 x BC

tebasuna if I pipe eac3to to another encoder (qaac for example) and set it to -normalize (creating an intermediate wav) and -down6, does this mean 6.1 DTS sources will have a wrong surround channel mix? or is it only when using the .pcm extension? Or is it literally every time you downmix 6.1 to 5.1, no matter what decoder and what output?

tebasuna51
8th September 2011, 10:37
No matter the source/decoder or encoder, when you downmix 6.1 to 5.1 with eac3to need use:

-0,1,2,3,5,6,4 -down6

nibus
8th September 2011, 10:42
No matter the source/decoder or encoder, when you downmix 6.1 to 5.1 with eac3to need use:

-0,1,2,3,5,6,4 -down6

Thanks!

One more question - I use a batch file for my conversions - would -0,1,2,3,5,6,4 -down6 work for 5.1 sources as well?

edit: Could I use the Sonic Decoder for 6.1 without problems?

tebasuna51
8th September 2011, 13:43
One more question - I use a batch file for my conversions - would -0,1,2,3,5,6,4 -down6 work for 5.1 sources as well?
No, this remap don't work with 5.1

edit: Could I use the Sonic Decoder for 6.1 without problems?
Sorry, I can't test Sonic Decoder.
I read that work fine, but also need the remap if use -down6 because is needed also with wav files.

shh
11th September 2011, 13:50
Since jruggle sais libav is now better than aften (quote: http://forum.doom9.org/showthread.php?p=1522077#post1522077),
how is it possible to use libav with eac3to for AC3-encoding?

nurbs
11th September 2011, 14:22
Either let eac3to save a wav and reencode that with libav or pipe the output of eac3to to libav. You can do the latter by adapting this:
eac3to.exe "C:\Movie" 1) 3:stdout.wav | qaac.exe --tvbr 100 --quality 2 --rate keep --no-optimize -o "output.aac" -
You'll have to adapt that for libav, but the most inportant thing is to tell eac3to to output to stdout and to tell the encoder to read from stdin (which works by using "-" as the input in qtaac).

shh
11th September 2011, 14:49
Thanks!
Is there any chance that madshi sometimes adds a -encodeWithLibav switch?

asarian
11th September 2011, 19:57
To avoid the bug we can use a fake remap like this:

eac3to input_6.1 output_5.1 -0,1,2,3,5,6,4 -down6

where input_6.1 can be a DTS 6.1 track, and output_5.1 can be ac3, wav, w64 ...

Just tried this on a DTS-MA 6.1 source, and eac3to still upconverts to 7.1 first (because I remap to pcm). I guess I should map to wav then first, right? (that obviously doesn't trigger intermediate upscale phase).

tebasuna51
12th September 2011, 01:33
Just tried this on a DTS-MA 6.1 source, and eac3to still upconverts to 7.1 first (because I remap to pcm). I guess I should map to wav then first, right?

Yes, but one question, for what you need pcm instead WAV ot W64?

asarian
12th September 2011, 04:17
Yes, but one question, for what you need pcm instead WAV ot W64?

Thanks for the reply.

I always convert DTS-MA/TrueHD to LPCM, as I use my PS3 as media server, and it can't stream DTS audio; so, for my HD audio needs I require a LPCM track.

Thunderbolt8
13th September 2011, 14:58
how is it possible to slow down video and audio of a 50p input file (the source is 720p50)? fps rates of video and audio get changed to 23.976 fps instead of 48p, and of course the output files have ~double the runtime of the input file and sound is ultra slow.

edit: -ChangeTo47.952 works

skinnyq
13th September 2011, 18:46
would anyone help with me neroencaac? I always get that god damn ERROR: could not open AAC encoder.
Full log:
D:\Fraps\Movies>eac3to\eac3to 1.wav 1.aac
WAV, 2.0 channels, 0:00:47, 16 bits, 6144kbps, 192kHz
Reading WAV...
Encoding AAC <0.50> with NeroAacEnc...
The Nero AAC encoder aborted processing.
NeroAacEnc ERROR: could not open AAC encoder
Aborted at file position 262144.

ramicio
13th September 2011, 18:47
AAC supports 192 khz?

Midzuki
13th September 2011, 19:02
AAC supports 192 khz?

Perhaps — BUT if the encoder/decoder was not designed to deal with that, then the answer is "no", of course -.-

Centuries ago :) , I copied the info shown below from the MultimediaWiki (http://wiki.multimedia.cx/index.php?title=MP4A):

There are 13 supported frequencies:

* 0: 96000 Hz
* 1: 88200 Hz
* 2: 64000 Hz
* 3: 48000 Hz
* 4: 44100 Hz
* 5: 32000 Hz
* 6: 24000 Hz
* 7: 22050 Hz
* 8: 16000 Hz
* 9: 12000 Hz
* 10: 11025 Hz
* 11: 8000 Hz
* 12: 7350 Hz
* 13: Reserved
* 14: Reserved
* 15: frequency is written explicitly ?????

/////////////////////////////////////

Channel Configurations

These are the channel configurations:

* 0: Defined in AOT Specifc Config
* 1: 1 channel: front-center [1.0]
* 2: 2 channels: front-left, front-right [2.0]
* 3: 3 channels: front-center, front-left, front-right [3.0]
* 4: 4 channels: front-center, front-left, front-right, back-center [3/1]

* 5: 5 channels:
front-center, front-left, front-right, back-left, back-right [3/2]

* 6: 6 channels:
front-center, front-left, front-right, back-left,
back-right, LFE-channel [3/2/.1]

* 7: 8 channels:
front-center, front-left, front-right, side-left,
side-right, back-left, back-right, LFE-channel [3/2/2/.1]

*
* 8-15: Reserved

Turtleggjp
16th September 2011, 03:46
Just ran across this message while processing the Thor Blu Ray:

DTS Master Audio, 7.1 (strange setup) channels, 24 bits, 48kHz
(core: DTS-ES, 5.1 channels, 24 bits, 1509kbps, 48kHz)
CAUTION: Decoding this track with ArcSoft results in low volume.
Decoding with ArcSoft DTS Decoder...
Encoding FLAC with libFlac...

Searching this thread, I found a good explanation by madshi here (http://forum.doom9.org/showthread.php?p=1216107#post1216107), but the last mention of the message was also dated back in 2008. The version of Arcsoft I'm using is quite old (like from around 2008), since I only use it for decoding DTS Master Audio files with EAC3To, so I had no reason to update it.

So before I go getting a new version of Arcsoft, can anyone tell me if they fixed this little issue in later versions? Or worse, have they locked out their filters from third party programs like Nero does/did? Thanks.

Matt

asarian
16th September 2011, 04:15
If you play a 7.1 track on a 5.1 speaker setup (or if the studio downmixes 7.1 to 5.1) the 5.1 surround channel pair usually contains a mix of the 7.1 SR/SR and BL/BR channel pairs.

Sat wha?! All my life I've been manually downmixing 7.1 tracks to 5.1, thinking I'd otherwise lose 2 channels on playback; and you're saying that isn't even necessary? That's interesting, if the case.

If so, will a 7.1 LPCM track play as 5.1 (without losing channel info) as well?

Thanks.

nibus
16th September 2011, 12:10
Just ran across this message while processing the Thor Blu Ray:

DTS Master Audio, 7.1 (strange setup) channels, 24 bits, 48kHz
(core: DTS-ES, 5.1 channels, 24 bits, 1509kbps, 48kHz)
CAUTION: Decoding this track with ArcSoft results in low volume.
Decoding with ArcSoft DTS Decoder...
Encoding FLAC with libFlac...

Searching this thread, I found a good explanation by madshi here (http://forum.doom9.org/showthread.php?p=1216107#post1216107), but the last mention of the message was also dated back in 2008. The version of Arcsoft I'm using is quite old (like from around 2008), since I only use it for decoding DTS Master Audio files with EAC3To, so I had no reason to update it.

So before I go getting a new version of Arcsoft, can anyone tell me if they fixed this little issue in later versions? Or worse, have they locked out their filters from third party programs like Nero does/did? Thanks.

Matt

AFIAK 1.1.0.0, 1.1.0.7 and 1.1.0.8 all have the same problem. The only solution is to use the Sonic decoder, but it only supports 5.1 so you will have to downmix if you have a 6.1 or 7.1 source. If you are downmixing from 6.1, you will need to use this in the command line as per tebasuna51's instructions:

No matter the source/decoder or encoder, when you downmix 6.1 to 5.1 with eac3to need use:

-0,1,2,3,5,6,4 -down6

asarian
16th September 2011, 12:32
AFIAK 1.1.0.0, 1.1.0.7 and 1.1.0.8 all have the same problem.

Personally, I can't say this 'problem' bothers me a lot. In fact, I hardly notice it (and probably never would have if I hadn't known about it); and if I do, then I just tap the volume on my amp twice to up the volume a bit. I mean to say, don't think you're going to get an extremely low volume.

The way it stands, most of my Blu-Rays play at different volume levels.

Thunderbolt8
16th September 2011, 17:19
AFIAK 1.1.0.0, 1.1.0.7 and 1.1.0.8 all have the same problem. The only solution is to use the Sonic decoder, but it only supports 5.1 so you will have to downmix if you have a 6.1 or 7.1 source. If you are downmixing from 6.1, you will need to use this in the command line as per tebasuna51's instructions:xkodi found out that the sonic decoder decoder drops the XX channel extension and produces a bit-perfect correct 5.1 automatically in case of strange setup(!) 7.1 DTS-HD MA tracks which includes all the channel information and nothing gets dropped. so there should be no need to downmix to 5.1

http://forum.doom9.org/showthread.php?p=1443085#post1443085

there was also a post with a comparison of different arcsoft versions somewhere, stating that 1.1.0.1 might be the most favourable version to use, but I cant find it atm

Turtleggjp
16th September 2011, 20:21
Thanks for the tips guys. I played my FLAC version last night and didn't notice much drop in volume compared to the DTS Core file I also extracted. I guess if you want it to be truly lossless, the best thing to do is just bitstream the original DTS-MA soundtrack to a receiver. Since I don't have one of those yet, I'll just keep converting to FLAC.

You guys mentioned version numbers like 1.1.0.0, and I think Arcsoft is up to version 5. I'm guessing you're referring to the version of the DTS decoding filter. How can I check what version mine is? Thanks.

Matt

Thunderbolt8
16th September 2011, 21:08
eac3to -test

asarian
16th September 2011, 23:01
there was also a post with a comparison of different arcsoft versions somewhere, stating that 1.1.0.1 might be the most favourable version to use, but I cant find it atm

Hmm, I seem to be having 1.1.0.0 installed. :( Can someone please tell me (with certainty) whether this version is okay? Or what other version to use then?

Also, are you people now saying Sonic is better? If so, what version?

Thanks.

nibus
17th September 2011, 00:33
Hmm, I seem to be having 1.1.0.0 installed. :( Can someone please tell me (with certainty) whether this version is okay? Or what other version to use then?

Also, are you people now saying Sonic is better? If so, what version?

Thanks.

There are some differing opinions as to which versions decode properly.

Personally I use 1.1.0.0 for 5.1 and 6.1 DTS-MA, and I use 1.1.0.8 for 7.1 DTS-MA (except strange setup). This is because of this post:

Yes, we need switch in this situation.
In case of non-standart scheme decoder 1.1.0.0 give garbage in some channels. So, i tried other two versions and they are decoded properly. If you have DTS-HD M.A.S. you can try yourself. If not, try decode test sample (http://www.mediafire.com/?kagbxe5zg7tdzg0) of DTS-HD 7.1 (scheme 2) and compare results.
AFAIK, there are only two differences between 1.1.0.0 and 1.1.0.8:
- 1.1.0.0 can decode DTS(-HD) 6.1/6.0 but can't decode non-standart 7.1
- 1.1.0.8 can't decode DTS(-HD) 6.1/6.0 but can decode non-standart 7.1
Both decode DTS(-HD) 1.0 correctly, unlike 1.1.0.7.

However, I believe tebasuna51 has stated that he hasn't had any problems with non-standard 7.1 sources and Arcsoft 1.1.0.0.... So I don't know what to tell you. I use the different versions just to be safe.

For 5.1 content Sonic is identical to Arcsoft AFAIK, but it automatically downmixes 7.1 content to 5.1, and doesn't work on some 6.1 content. For 7.1 Strange setup you will want to use Sonic anyway because like Thunderbolt8 said, Arcsoft doesn't decode it quite right.


The Sonic DTS decoder is very good for DTS, DTS-ES, DTS-96/24, DTS-HD Master Audio and DTS-HD High Resolution tracks. The only problem is that it decodes DTS-HD 7.1 tracks only as 5.1. Most DTS-ES and DTS-HD Master Audio 6.1 tracks are fully decoded as 6.1, though.

asarian
17th September 2011, 00:57
There are some differing opinions as to which versions decode properly.

Personally I use 1.1.0.0 for 5.1 and 6.1 DTS-MA, and I use 1.1.0.8 for 7.1 DTS-MA (except strange setup). This is because of this post:

However, I believe tebasuna51 has stated that he hasn't had any problems with non-standard 7.1 sources and Arcsoft 1.1.0.0.... So I don't know what to tell you. I use the different versions just to be safe.

For 5.1 content Sonic is identical to Arcsoft AFAIK, but it automatically downmixes 7.1 content to 5.1, and doesn't work on some 6.1 content. So if you mix everything down to 5.1 with eac3to, then Sonic should be fine. And in the case of downmixing 6.1 to 5.1 Sonic works properly even without specifying the correct channel map, as stated 4 posts above.

For 7.1 Strange setup you will want to use Sonic anyway because like Thunderbolt8 said, Arcsoft doesn't decode it quite right.

Thanks for the very illuminating clarification! :thanks:

Thunderbolt8
17th September 2011, 04:28
this also http://forum.doom9.org/showthread.php?p=1508578#post1508578 & http://forum.doom9.org/showthread.php?p=1508746#post1508746

And in the case of downmixing 6.1 to 5.1 Sonic works properly even without specifying the correct channel map, as stated 4 posts above.afaik that was for 7.1 DTS-HD MA strange setup and not for 6.1. for 6.1, you'd need to remap channel according to what tebasuna51 said

nibus
17th September 2011, 08:05
this also http://forum.doom9.org/showthread.php?p=1508578#post1508578 & http://forum.doom9.org/showthread.php?p=1508746#post1508746

afaik that was for 7.1 DTS-HD MA strange setup and not for 6.1. for 6.1, you'd need to remap channel according to what tebasuna51 said

ahh, fix'd.

Boulder
17th September 2011, 09:45
Could someone please create a dedicated page for these many different cases for example to the Avisynth wiki?

hdx264
18th September 2011, 06:02
does eac3to decode and reencode the DTS-HD MA track at all when you are just demuxing it or does it just extract a 1 to 1 copy of the track without doing anything to it?

so i guess I'm asking do you need any DTS-HD MA decoders installed if i just want to extract the DTS-HD MA track and not change it at all

nevcairiel
18th September 2011, 08:19
demuxing works fine without any decoder.

mzso
21st September 2011, 13:12
Hi!
I get a "The ArcSoft and Sonic decoders don't seem to work, will use libav instead." message, but I don't know why. Total media theatre is installed and working fine, I even use the very same decoder in combinations with LAV filters to decode lossless when I play movies. Why would this happen?

Midzuki
21st September 2011, 16:20
@ mzso:

Try to include the "relevant" ArcSoft codec folder in the PATH environment variable.

mzso
21st September 2011, 19:03
@ mzso:

Try to include the "relevant" ArcSoft codec folder in the PATH environment variable.

No use. I actually tried to drop the decoder.dll formerly that didn't work either. Also it says "don't seem to work" and not that it doesn't find it. But why doesn't it work? And what "don't seem to work" actually means?

jmonier
21st September 2011, 19:10
I believe that you may have to register the ARCsoft filter. I don't think the ARCsoft installation does this and I know that the LAV Audio filter handles it a different way and doesn't need registration.

I think there's more information in the Wiki (see first post). If not, search the thread.

nibus
21st September 2011, 21:54
No use. I actually tried to drop the decoder.dll formerly that didn't work either. Also it says "don't seem to work" and not that it doesn't find it. But why doesn't it work? And what "don't seem to work" actually means?

1) Copy following files from ArcSoft Total Media Theater 2 to Windows\system32

ASAudioHD.ax
dtsdecoderdll.dll
MagCore.dll
MagPCMac.dll
MagUIEngine.dll
MagUIInter.dll

put checkactivate.dll in \system32 folder as well as eac3to folder

2) Register ASAudioHD.ax -

regsvr32.exe ASAudioHD.ax

me7
22nd September 2011, 16:27
1) Copy following files from ArcSoft Total Media Theater 3.0 to Windows\system32

ASAudioHD.ax
dtsdecoderdll.dll
MagCore.dll
MagPCMac.dll
MagUIEngine.dll
MagUIInter.dll

put checkactivate.dll in \system32 folder as well as eac3to folder

2) Register ASAudioHD.ax -

regsvr32.exe ASAudioHD.ax

I don't seem to have a checkactivate.dll in my TMT 3 installation:confused:

heerschop
22nd September 2011, 20:54
I don't seem to have a checkactivate.dll in my TMT 3 installation:confused:

That's write. The checkactivate.dll was installed with previous version of TMT. The checkactivate.dll is only needed for
eac3to, TMT 3 doesn't need it to function. Eac3to check's if this file is installed, if not then eac3to will not use TMT.
Get hold of an older version of TMT (I think version 2) and extract the checkactivate.dll

mzso
22nd September 2011, 22:14
What about TMT 5?