View Full Version : eac3to - audio conversion tool
pyrates
6th August 2007, 20:01
Is it possible to convert truehd 8 channel from either inside an evo or demuxed to a pcm file and then I can use each3to to convert that to flac 7.1 audio file? I did try renaming the demuxed mlp file to .pcm but it only picks up the first 21-22 minutes of the movie instead of the full 2 hours worth which all the dolby digital plus tracks do. If I can somehow convert that truehd 8 channel track to pcm 7.1, then I can use each3to to convert it to a flac 7.1 audio file.
madshi
6th August 2007, 20:56
The Nero TrueHD decoder can only do 5.1. And the Sonic TrueHD decoder is totally unusable. So currently I don't see how you can decode all 8 channels of a 7.1 TrueHD track.
pyrates
7th August 2007, 03:50
I checked with Powerdvd Ultra and it can only decode Dolby TrueHD 5.1. So that can't be used either.
madshi
7th August 2007, 07:22
I checked with Powerdvd Ultra and it can only decode Dolby TrueHD 5.1. So that can't be used either.
Thanks for testing. Wasn't sure about that myself. However, PowerDVD only outputs 16bits, so it wouldn't have been the optimal solution, anyway.
ACrowley
7th August 2007, 17:32
I checked with Powerdvd Ultra and it can only decode Dolby TrueHD 5.1. So that can't be used either.
And PowerDVD can play eac3 ofcourse , but only in evo, as like as TrueHD only in evo
Nero/WindDVD8 can open/play single eac3 tracks, but truehd again only in evo, with nero.
With winddvd8 no Truehd possible (only fileinfo)
The_Keymaker
7th August 2007, 20:05
For Acrowley and others using EAC3toGUI, I will try and implement changes and release an updated GUI shortly.
I've been working on a WiFi remote for my HTPC and have not followed eac3to much lately.
It would help if Madshi could PM me OR briefly post a list of changes since the last revision of EAC3toGUI.
Regards,
The_Keymaker
pyrates
9th August 2007, 03:29
When using Nero audio decoders 7.10.1.0, I get this output:
eac3to.exe L:\Encoding\PEVOB_1_MERGED.DD+.stream.00.ddp L:\Encoding\movie.ac3 -640 -keepDialnorm -24
E-AC3, 5.1 channels, 1:48:32, 640kbit/s, 48khz, dialnorm: -27dB
Muxing eac3 file to raw. Please wait...
Disabling DRC for Nero E-AC3 decoding...
The file size of the raw file doesn't seem to fit.
Exception EIntOverflow in Modul eac3to.exe bei 0001F6E6.
Integerüberlauf.
And eac3to just crashes with this output when I use sonic audio decoder 4.2.0:
eac3to.exe L:\Encoding\PEVOB_1_MERGED.DD+.stream.00.ddp L:\Encoding\movie.ac3 -640 -sonic -keepDialnorm -24
E-AC3, 5.1 channels, 1:48:32, 640kbit/s, 48khz, dialnorm: -27dB
Muxing eac3 file to raw. Please wait...
Faulting application eac3to.exe, version 1.12.0.0, time stamp 0x2a425e19, faulting module CinemasterAudio.dll, version 4.3.0.169, time stamp 0x466494c3, exception code 0xc0000005, fault offset 0x000efb73, process id 0x450, application start time 0x01c7da2b199021d5.
hanti
9th August 2007, 06:10
D:\dvdrip\eac3to\eac3to.exe D:\dvdrip\work\300\eac3.eac3 D:\dvdrip\work\300\output.ac3 -640
E-AC3, 5.1 channels, 1:56:33, 640kbit/s, 48khz, dialnorm: -27dB
Remove Dialog Normalization information. Please wait...
Muxing eac3 file to raw. Please wait...
The file size of the raw file doesn't seem to fit.
pls help ;)
pyrates
9th August 2007, 07:25
.
pls help ;)
Use sonic audio decoder 4.2.0 instead and add -sonic to the command arguements when encoding, then it should work.
ACrowley
9th August 2007, 08:59
Use sonic audio decoder 4.2.0 instead and add -sonic to the command arguements when encoding, then it should work.
not recommned. With SonicDecoder you get full DRC+gain.
pyrates
9th August 2007, 09:17
not recommned. With SonicDecoder you get full DRC+gain.
Well that's how I got it to work. By default it uses the nero audio decoder.
ACrowley
9th August 2007, 11:50
Well that's how I got it to work. By default it uses the nero audio decoder.
simply the best is to use only NeroDecoder. No RDc and no DialogN= good :)
hanti
9th August 2007, 19:20
so i want to use nero but still getting this error :/
The file size of the raw file doesn't seem to fit.
i have even nero hd/bluray plugin ;)
madshi
9th August 2007, 19:39
Please wait for the next eac3to version. I think I will have the EIntOverflow problem solved there. However, I doubt that it will fix the problem with the unexpected raw file size. It seems there's something wrong with your Nero installation, I'd guess...
bullet_ballet
9th August 2007, 21:11
I must have the same problem with my install because I get the same error consistently. I don't have the HD plug-in, but I understand that's only necessary for TrueHD.
I might just have to call Ahead and try and get my money back.
ACrowley
10th August 2007, 09:49
I must have the same problem with my install because I get the same error consistently. I don't have the HD plug-in, but I understand that's only necessary for TrueHD.
I might just have to call Ahead and try and get my money back.
I would say Nero is necessary for EAC3 to, cause ist the only Way to keep the full Dynamcis
@hanti
Try to rebuild the Evo with only your desired Audio and run eac3to onto it . I think its only your Audio File
calinb
10th August 2007, 19:14
Thanks for the great tool, madshi! Would it be possible to add a -dtswav option? I get mkvmerge errors when I attempt to mux a .dts file but a dts .wav file works okay.
dts2wav.exe doesn't appear to handle 48k / 24-bit .dts files so adding it to my batch file won't help.
-Cal
Edit:
or perhaps the syntax
eac3to.exe <inputfile.xxx> <outputfile.wav> -1536
and
eac3to.exe <inputfile.xxx> <outputfile.wav> -768
could be supported to produce a dtswav output file. Curently, it results in an error.
"Bitrate "1536" is only allowed for DTS encoding."
squal
10th August 2007, 19:15
Don't know if this has been resolved somewhere in the thread but I had this problem and resolved it so I'm posting how I fixed it.
When trying to decode anything to wav (ddp or mlp) I got this:
E-AC3, 5.1 channels, 2:12:32, 640kbit/s, 48khz, dialnorm: -27dB
Remove Dialog Normalization information. Please wait...
Muxing eac3 file to raw. Please wait...
Disabling DRC for Nero E-AC3 decoding...
The file size of the raw file doesn't seem to fit.
Finally I discovered the actual problem was the dtsac3source-full.ax file which was corrupted or something. I had the same exact version on another computer which I had downloaded a couple of weeks before. That one was working, I knew, so I unregistered the old one (don't know if this is necessary)...
regsvr32 /u C:\WINDOWS\system32\dtsac3source-full.ax
...got the new one, and it worked.
If your raw file is 0 bytes and then eac3to crashes, chances are this is your problem.
Get some new dtsac3source from some different mirror or download site, register it and try again. That worked for me.
The version I have is 1.0.0.1, BTW.
Hope this helps.
madshi
10th August 2007, 22:37
Would it be possible to add a -dtswav option? I get mkvmerge errors when I attempt to mux a .dts file but a dts .wav file works okay.
Ehm, now I'm confused. What is a "dtswav" file? Is it a wav file or a dts file or what? :confused:
madshi
10th August 2007, 22:39
Finally I discovered the actual problem was the dtsac3source-full.ax file which was corrupted or something.
That's interesting - thanks! I'm wondering why it happens in the first place, though, because eac3to by default doesn't even use the dtsac3source filter! The filter is only used if you use the "-orbitlee" switch or if the "Nero File Splitter" fails to work. Usually the Nero File Splitter should work just fine.
bullet_ballet
10th August 2007, 23:00
Thanks for the tip, squal. Unfortunately, I still can't get eac3to to work. I tried -orbitlee switch and reinstalling, but nada. Here's hoping something good comes along.
Oh, and thanks for the tool, madshi. Hopefully I get to try it sometime.
tebasuna51
10th August 2007, 23:08
Ehm, now I'm confused. What is a "dtswav" file? Is it a wav file or a dts file or what? :confused:
Really WAV is a container and can contain PCM-uncompressed audio but also compressed audio mp3, dts, ...
Then a dtswav is a .wav file with a wav header continued by the dts stream.
In SurCode DTS v1.0.23 when you select Destination... -> Type you can choose betwen:
DTS Compact (.cpt)
DTS Padded (.dts)
DTS WAV (.wav)
calinb
11th August 2007, 01:33
Thanks for answering madshi's question, tebasuna51. Yes--Surcode allows the GUI user to specify the target file as a .wav file but the .wav contains DTS code rather than the more common PCM or, as you point out, other code.
The only other time I've used dtswav was when I played around with authoring a DTS audio CD. Using dtswav, it was possible to use conventional audio CD burning software--just burn the DTS .wav files like PCM .wav audio files. Now I'm interested in the dtswav format to cleanly mux DTS without errors or audio stuttering using mkvmerge.
The_Keymaker
12th August 2007, 07:53
New Version (v1.25) of EAC3toGUI. Download at:
http://www.sendspace.com/file/yagije
Change log for version 1.25:
- Added -allowDrc option
- Added -keepDialnorm option
As usual, place EAC3toGUI in the same directory as eac4to.exe and run. Alternatively, you can place it anywhere as long as you set the location of eac3to.exe using the "Settings" menu option. Please report any errors or suggestions.
@madshi:
if you like, you may want to consider establishing a permanent link for EAC3toGUI and putting it in the first post or distributing it with eac3to.
Regards,
The_Keymaker
Darth Pinous
12th August 2007, 09:05
Does anyone know a method for decoding truhd from mt2s files? No splitter I have sees that (sonic, nero, cyberlink, etc). Only xport can demux but that doesn't help much as I don't think there is a filter source for that.
I tried some things with a blu-ray trueHD track, but no luck so far.
The file demuxed by xport can't be imported in Scenarist (Scenarist sees it as an AC3 track and refused it because the bitrate is above 448Kb).
However, the file demuxed by xport is seen as a dolby trueHD track by Sonic HD Demuxer in graphedit. So I tried a dump with the graph FileSource(async) -> Sonic HD Demuxer-> Dump. The resulting file is a couple of Kb smaller, and still can't be imported in Scenarist, but the error is different : "Maximum frame size of MLP Audio file exceeds HD DVD limit.", so Scenarist sees it as a TrueHD track, but the file header is certainly wrong...
yonta
12th August 2007, 17:21
filename recognition problem:
command line and eac3to output is;
eac3to.exe f:\innocence.LPCM16.pcm f:\innocence.ac3 -640 -16
RAW, 5.1 channels, 0:01:20, 16 bits, 48khz
Converting the raw file to wav. Please wait...
Converting the wav file to ac3. Please wait...
Aften: A/52 audio encoder
Version SVN - r552
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
error opening input file: f:\innocence.wav
"aften" reported error code "1". A valid *.wav file was created sucessfully, though.
Aften is looking for "innocence.wav" but this file doesn't exist.
the wav file eac3to created is in fact "innocence.LPCM16.wav".
dade49
13th August 2007, 09:45
filename recognition problem:
I see this problem as well. There is an error in eac3to that is sending aften.exe the filename of the output.wav. eac3to is creating the filename as source.wav, so the file doesn't exist.
eac3to.exe LPCM.pcm audio_640k.ac3 -640 -16
RAW, 5.1 channels, 1:37:08, 16 bits, 48khz
Converting the raw file to wav. Please wait...
Converting the wav file to ac3. Please wait...
Aften: A/52 audio encoder
Version SVN
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.
error opening input file: audio_640k.wav
"aften" reported error code "1". A valid *.wav file was created sucessfully, though.
The wav file created is named LPCM.wav in this case. Aften is being fed the wrong filename from eac3to.
As always Madshi, thanks for all your work. I hope to see ver 1.13 soon with this bugfix.
-Dade
big-guy
13th August 2007, 20:57
I am ripping a Blu-Ray movie and am encountering a problem.
There are 3 tracks included: Japanese TrueHD 5.1 (DD5.1 Core), LPCM 2.0 and English DD+ 2.0.
As you can see only the first track is usefull...
Is there any way I can transcode a Dolby TrueHD track from a Blu-Ray disc? I've read that with Blu Ray streams the TrueHD stream has a normal AC3 stream at probably 640kbps weaved in (Like with DTS-HD). Does anyone here know, how I can do that with a TrueHD track?
Thanks.
madshi
14th August 2007, 21:08
Really WAV is a container and can contain PCM-uncompressed audio but also compressed audio mp3, dts, ...
Then a dtswav is a .wav file with a wav header continued by the dts stream.
In SurCode DTS v1.0.23 when you select Destination... -> Type you can choose betwen:
DTS Compact (.cpt)
DTS Padded (.dts)
DTS WAV (.wav)
Ah, thanks!
Would it be possible to add a -dtswav option? I get mkvmerge errors when I attempt to mux a .dts file but a dts .wav file works okay.
I'd prefer if Mosu could fix mkvmerge. However, I've just tried muxing a DTS file encoded by eac3to/Surcode with mkvmerge and it works perfectly fine for me. If all else fails, I can of course add dtswav support.
madshi
14th August 2007, 21:09
@madshi:
if you like, you may want to consider establishing a permanent link for EAC3toGUI and putting it in the first post
Done.
madshi
14th August 2007, 21:10
filename recognition problem
I see this problem as well. There is an error in eac3to that is sending aften.exe the filename of the output.wav. eac3to is creating the filename as source.wav, so the file doesn't exist.
Fixed in latest version (see below).
madshi
14th August 2007, 21:11
Is there any way I can transcode a Dolby TrueHD track from a Blu-Ray disc? I've read that with Blu Ray streams the TrueHD stream has a normal AC3 stream at probably 640kbps weaved in (Like with DTS-HD). Does anyone here know, how I can do that with a TrueHD track?
I've just added this functionality to the latest eac3to version.
madshi
14th August 2007, 21:16
eac3to v1.13 released
http://madshi.net/eac3to.zip
(1) "eac3to src.ac3 dst.ac3" removes Dialog Normalization from AC3 files.
(2) "eac3to src.eac3 dst.eac3" removes Dialog Normalization from E-AC3 files.
(3) "eac3to src.thd dst.ac3" extracts the AC3 frames from a Blu-Ray TrueHD track and removes Dialog Normalization.
(4) some bugfixes
ACrowley
14th August 2007, 21:42
eac3to v1.13 released
http://madshi.net/eac3to.zip
(1) "eac3to src.ac3 dst.ac3" removes Dialog Normalization from AC3 files.
(2) "eac3to src.eac3 dst.eac3" removes Dialog Normalization from E-AC3 files.
(3) "eac3to src.thd dst.ac3" extracts the AC3 frames from a Blu-Ray TrueHD track and removes Dialog Normalization.
(4) some bugfixes
nice :)
Would be great when there would be a solution to remove DialogN on TrueHD..i know youve not enough Infos for TrueHD at the Moment
Is it now possible to decode AC3 with eac3to ?
Sure, its not so important because there are enough stable Methods to decode AC3 without DRC/DialogN
honai
14th August 2007, 22:14
@madshi
I just converted a TrueHD track from an .evo to mono WAVs. eac3to did not print any information about which decoder was used, and if DRC was removed. Is this behavior intentional? Am I to assume that Nero was used, and that all went fine?
madshi
14th August 2007, 23:36
Would be great when there would be a solution to remove DialogN on TrueHD..
Agreed!
i know youve not enough Infos for TrueHD at the Moment
That's true(HD).
Is it now possible to decode AC3 with eac3to ?
No.
Sure, its not so important because there are enough stable Methods to decode AC3 without DRC/DialogN
Right. And since eac3to can now remove dialnorm information from AC3 tracks, too, there should be even more stable methods. E.g. ffdshow should now work, too, I think.
madshi
14th August 2007, 23:38
I just converted a TrueHD track from an .evo to mono WAVs. eac3to did not print any information about which decoder was used, and if DRC was removed. Is this behavior intentional? Am I to assume that Nero was used, and that all went fine?
If you used eac3to v1.12 or v1.13, Nero is the default TrueHD decoder. DRC is not applied by Nero's current TrueHD decoder at all (as far as I can say). So there's nothing eac3to had to remove. You can assume that Nero was used and that all went fine.
Nikos
15th August 2007, 01:50
Usually i convert the .eac3 audio to 6 mono .wav and then i convert them to .ac3 with aften or vegas. I know that the Dialog Normalization value in a .ac3 file is essential.
My question:
Is there any method to find out the Dialog Normalization value of a .eac3 file and then put the same value in the final .ac3 file?
dade49
15th August 2007, 04:11
Removes Dialog Normalization from AC3 tracks.
Madshi,
This worked awesome on most of my AC3 tracks. I do have 2 examples where eac3to detected DialNorm, but it dumps out. EX:
C:\>eac3to.exe old.ac3 new.ac3
AC3, 5.1 channels, 1:48:07, 640kbit/s, 48khz, dialnorm: -27dB
Remove Dialog Normalization information. Please wait...
C:\>
No new file is created. Is there a way to run eac3to in debug mode? If I send you a sample file, is there a certain size you want, and/or is there a specific frame size I should cut to? Do you want the beginning or the middle somewhere?
-Dade
calinb
15th August 2007, 08:24
I'd prefer if Mosu could fix mkvmerge. However, I've just tried muxing a DTS file encoded by eac3to/Surcode with mkvmerge and it works perfectly fine for me. If all else fails, I can of course add dtswav support.
Hmm--With .dts, I get a screenful of these warnings and stuttering playback. No problem with dtswav. I can certainly see what Mosu thinks about it.
Warning: dts_packetizer: skipping 3 bytes (no valid DTS header found). This might make audio/video go out of sync, but this stream is damaged.
Warning: dts_packetizer: skipping 3 bytes (no valid DTS header found). This might make audio/video go out of sync, but this stream is damaged.
madshi
15th August 2007, 08:33
Usually i convert the .eac3 audio to 6 mono .wav and then i convert them to .ac3 with aften or vegas. I know that the Dialog Normalization value in a .ac3 file is essential.
My question:
Is there any method to find out the Dialog Normalization value of a .eac3 file and then put the same value in the final .ac3 file?
Sure. When using eac3to to convert the eac3 audio to 6 mono wavs, eac3to will output the Dialog Normalization value of the eac3to track (see end of first line of output). However, are you sure that you want to put it back in to the AC3 file? Personally, I don't like dialnorm.
madshi
15th August 2007, 08:35
This worked awesome on most of my AC3 tracks. I do have 2 examples where eac3to detected DialNorm, but it dumps out. [...] No new file is created. Is there a way to run eac3to in debug mode? If I send you a sample file, is there a certain size you want, and/or is there a specific frame size I should cut to? Do you want the beginning or the middle somewhere?
If you want to do frame correct cutting, you can drop the track into delaycut. It will tell you how many bytes per frame that AC3 track is using. I'm not sure what I need. I'd suggest that you try copying the first 2MB into a new file. Then simply check whether eac3to fails on that. If yes, those 2MB will be plenty enough. Heck, even 500KB would be enough, as long as the little chunk makes eac3to fail.
madshi
15th August 2007, 08:36
Hmm--With .dts, I get a screenful of these warnings and stuttering playback. No problem with dtswav. I can certainly see what Mosu thinks about it.
Warning: dts_packetizer: skipping 3 bytes (no valid DTS header found). This might make audio/video go out of sync, but this stream is damaged.
Warning: dts_packetizer: skipping 3 bytes (no valid DTS header found). This might make audio/video go out of sync, but this stream is damaged.
Strange, I'm not getting this problem on my PC. Are you encoding with 768 or 1536? I'm always using 1536. Maybe that's the difference? Anyway, I think this is a job for Mosu to fix - unless the DTS file is really buggy.
ACrowley
15th August 2007, 10:22
Usually i convert the .eac3 audio to 6 mono .wav and then i convert them to .ac3 with aften or vegas. I know that the Dialog Normalization value in a .ac3 file is essential.
My question:
Is there any method to find out the Dialog Normalization value of a .eac3 file and then put the same value in the final .ac3 file?
"Dont" set it to the same Value for the reencoded AC3
Heres a little Discussiuon on this Thread a few Sites before
Conclusion about AC3 encoding :
Youve 2 Options
1. Encode with -31db DialogNorm. DRC Profiles "off"
http://forum.doom9.org/showthread.php?t=118759&highlight=sony+vegas
Keeps the VolumeLevels from Wavesource. You get the Full Dynamcis back", but not fully Dolby Compliant, nevermind
2. Measure the RMS Value from the Center Channel and set it for DialogNormalization "with" a DRC preset
http://forum.doom9.org/showthread.php?t=56020
I suggest Method 1
Zelos
15th August 2007, 12:08
MAdshi great job !
Something strange , i tried to extract english channel from bourne identity movie.
I get the wav which is about 1h58 if i believe eac3to.
When i tried to play it with a player i get a 35mins sound channel , even when i try to convert it to ac3 !
For people who had problemns with The file size of the raw file doesn't seem to fit.
It's a registration pb , buy a real serial , i just bought one on Ebay ( i precise a REAL one from an original box ) , and cost me 15€ ;)
madshi
15th August 2007, 12:42
Something strange , i tried to extract english channel from bourne identity movie.
I get the wav which is about 1h58 if i believe eac3to.
When i tried to play it with a player i get a 35mins sound channel, even when i try to convert it to ac3 !
The "wav" format can't really properly handle files > 2GB (or was it 4GB?). I guess that's the problem you're having. eac3to usually works around this problem. Some other software packages do that, too. But some do not. I recommend to directly recode the E-AC3 track to either AC3, DTS or FLAC with eac3to. This way you should get a proper result. If you want to use a different AC3 encoder, you'll have to find out how to make that AC3 encoder properly handle big "wav" files. Or maybe you can use 6 mono "wav" files instead of one big 5.1 file. That should help, too.
tebasuna51
15th August 2007, 13:28
The "wav" format can't really properly handle files > 2GB (or was it 4GB?).
The wav format can handle until 4 GB.
The limit is two fields with 4 bytes (to store filelength and datalength) only can support values until 2^32.
The 2 GB limit is a wrong soft than read/write these 4 bytes with signed int then the limit is 2^31 -> 2 GB, if the fields are read/write with unsigned int the soft can manage until 4 GB.
The workaround to support wav > 4 GB is ignore these two fields in wavheader and read until end of file. The only problem is if the wav file have extrachunks (some extra info) after the audio data, then are converted also to audio with final clicks.
Zelos
15th August 2007, 13:45
thanks for the help.
So the best way is to separate the channels then to mux them ?
Nikos
15th August 2007, 14:41
"Dont" set it to the same Value for the reencoded AC3
Heres a little Discussiuon on this Thread a few Sites before
Conclusion about AC3 encoding :
Youve 2 Options
1. Encode with -31db DialogNorm. DRC Profiles "off"
http://forum.doom9.org/showthread.ph...ght=sony+vegas
Keeps the VolumeLevels from Wavesource. You get the Full Dynamcis back", but not fully Dolby Compliant, nevermind
2. Measure the RMS Value from the Center Channel and set it for DialogNormalization "with" a DRC preset
http://forum.doom9.org/showthread.php?t=56020
I suggest Method 1
Thanks ACrowley for the reply. I had read the above threads. The method 1 is ok but in method 2 there is not an accurate way to measure the right Dialog Norm. value.
I wonter why you say "Dont set it to the same Value for the reencoded AC3", i suppose that the .eac3 file had the correct Dialog Norm value. Correct me if i am wrong.
madshi
15th August 2007, 14:45
I wonter why you say "Dont set it to the same Value for the reencoded AC3", i suppose that the .eac3 file had the correct Dialog Norm value. Correct me if i am wrong.
The problem is that many studios just leave the DialNorm value at their default setting. Because of that it is more or less useless IMHO.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.