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

mrr19121970
25th January 2009, 09:41
I tried it 5 times again, and not once have I had the same problem. It must have been a fluke.

Thanks for looking though.

mic64
25th January 2009, 10:31
Thanks for the idea, but I get:


$ ls cdrom
AACS BDMV CERTIFICATE
$ wine /home/me/eac3to cdrom "1)"
The format of the source file could not be detected.


I should have mentioned that 'wine eac3to videofolder "1)"' works perfectly after the disc is decrypted and ripped to the hard disk.

you canīt just use the command like this:
eac3to /mnt/cdrom ....

you have to start with the letter that wine assigned for "My Computer".
it should look like this:
eac3to z:/mnt/cdrom/
then you can append the title.
eac3to z:/mnt/cdrom "1)"

hubblec4
25th January 2009, 13:39
OffTopic:

You know that there is an option to delete doubled Entries automaticly !

Thats an good working Workaround for that case ... not always perfect but an good option.

sorry but i don't know. can you tell me how and which programm you use??

hubble

madshi
25th January 2009, 21:51
eac3to v3.05 released

http://madshi.net/eac3to.zip

* warning is shown if h264 video bitstream contains "full range" flag
* h264 video bitstream "full range" flag is automatically removed
* you can disable removal of the "full range" flag by doing "-keepFullRange"
* added reader for external DVD, HD DVD and Blu-Ray SUP files
* external SUP files can be delayed now
* number of HD DVD and DVD subtitles in SUP track is counted and displayed
* number of forced and non-forced Blu-Ray subtitles in SUP track is displayed
* "-check" option now also works for demuxed audio, video and subtitle tracks
* when reading from physical disk drive, 2KB (instead of 1MB) blocks are read
* improved automatic skipping over damaged first 5MB of TS/m2ts files
* fixed: resampling and Surcode encoding didn't work in one step
* fixed: TRP detection crashed
* fixed: track listing sometimes contained tracks without description
* fixed: h264 with missing framerate in 1st sequence header made eac3to crash
* fixed: some AC3WAV files were not detected correctly
* fixed: video frame count was not displayed when 2nd pass was executed

Espadon
25th January 2009, 22:23
Hello Madshi,

Thanks for your time and your application.

I have been using eac3 version 3.04, trying to convert a normal DTS track to another DTS track (just needed to resample the track to PAL format), but has been experiencing a problem with it.
Here is the message i got after all the wav files were created....

"Encoding DTS <1536kbps> with Surcode...
Found Surcode DTS Encoder version 1.0.23.0.
Surcode says/asks: "At least one valid source file must be specified to encode.".
Pressing the Surcode "Encode" button didn't seem to work...
Closing Surcode..."

I tried using version 1.0.23
I'm trying right now with version 1.0.21....... is this a known issue?

Thanks

Thunderbolt8
25th January 2009, 22:25
thanks!

can you comment on what the difference will be regarding the change to 2KB blocks from 1MB when reading from HDD? I am thinking to get myself another HD to create raid 0 in order to speed up eac3to processing and especially because I hope it will take away some load from the disk. when its reading from the same drive windows is installed on as well, then I hardly can do something else until its finished (especially the more bitrate the streams have and the more tracks are processed at the same time). would raid 0 be able to change that, or would it only speed up the whole process, but the HDD load thing would remain as now?

madshi
25th January 2009, 22:52
I have been using eac3 version 3.04, trying to convert a normal DTS track to another DTS track (just needed to resample the track to PAL format), but has been experiencing a problem with it.
Here is the message i got after all the wav files were created....

"Encoding DTS <1536kbps> with Surcode...
Found Surcode DTS Encoder version 1.0.23.0.
Surcode says/asks: "At least one valid source file must be specified to encode.".
Pressing the Surcode "Encode" button didn't seem to work...
Closing Surcode..."
Surcode sometimes has problems with funny file names. Try renaming the DTS file to something very simple, e.g. "test.dts". Maybe that helps...

can you comment on what the difference will be regarding the change to 2KB blocks from 1MB when reading from HDD?
I found that reading physical discs is much faster when reading 2KB blocks instead of 1MB blocks. Don't ask me why, I don't really understand it. However, reading files from harddisk is about twice as fast with 1MB blocks compared to 2KB blocks. So v3.05 checks which drive the source file is read from. If it's a CDROM/DVD/Blu-Ray/HD DVD drive, 2KB blocks are used. Otherwise 1MB blocks are used.

I am thinking to get myself another HD to create raid 0 in order to speed up eac3to processing and especially because I hope it will take away some load from the disk. when its reading from the same drive windows is installed on as well, then I hardly can do something else until its finished (especially the more bitrate the streams have and the more tracks are processed at the same time). would raid 0 be able to change that, or would it only speed up the whole process, but the HDD load thing would remain as now?
I'd suggest not using raid, but just using a second separate HDD for video processing purposes. Not using the HDD where Windows is installed on should help a lot.

DaMacFunkin
25th January 2009, 23:24
Sorry Bit of a quickie question here: do you still need to have nero 7 installed to use this tool to decode DD+ streams to wavs? Thanks.

Thunderbolt8
25th January 2009, 23:28
I'd suggest not using raid, but just using a second separate HDD for video processing purposes. Not using the HDD where Windows is installed on should help a lot.
hm the way I have it now is that the partition windows is on is the reading partition, but the output is placed on another drive. but still, the reading alone already delays the system quite much.
I thought it might be more effective that way to seperate the reading and writing process to 2 different drives, as its faster to copy stuff from one HD to another than just to different folders on the same drive or also to mux with mkvmerge to another drive than the one you are reading from. so eac3to doesnt behave in the same way?

idbirch2
25th January 2009, 23:30
Great, thanks for the useful update. Being alerted to forced English subs at the time of demuxing will save a lot of time messing around with SupRead/Rip.

bigdog660
26th January 2009, 01:13
...* when reading from physical disk drive, 2KB (instead of 1MB) blocks are read...
* fixed: video frame count was not displayed when 2nd pass was executed

Thanks so much for this!

Chumbo
26th January 2009, 01:16
eac3to v3.05 released

http://madshi.net/eac3to.zip

* fixed: video frame count was not displayed when 2nd pass was executed
Thank you for all the updates and this one in particular. :)

nautilus7
26th January 2009, 01:54
eac3to v3.05 releasedThanks for the weekly update!

rack04
26th January 2009, 02:19
How will the forced subtitles be shown? I have Apocalypto BD and it's doesn't show any subtitles being forced.

odin24
26th January 2009, 04:55
Great, thanks for the useful update. Being alerted to forced English subs at the time of demuxing will save a lot of time messing around with SupRead/Rip.

+1 :thanks:

bkman
26th January 2009, 06:56
Hi madshi,

Excuse me if this is already an option and I've somehow missed it, but can you please add an option to disable the second pass upon clipping being detected?

Eac3to already takes long enough to convert audio of decent length without doing two passes, and I don't always care about some minor clipping artefacts.

madshi
26th January 2009, 08:01
hm the way I have it now is that the partition windows is on is the reading partition, but the output is placed on another drive. but still, the reading alone already delays the system quite much.
I thought it might be more effective that way to seperate the reading and writing process to 2 different drives, as its faster to copy stuff from one HD to another than just to different folders on the same drive or also to mux with mkvmerge to another drive than the one you are reading from. so eac3to doesnt behave in the same way?
I don't know, you can test it for yourself. I think performance will be better with eac3to, too, but it might still slow the OS down. Try reading+writing from/to the non-OS harddisk. That might take a longer time, but I think the OS should be more responsive that way.

You can also try the "-lowPriority" switch. That might also help OS responsiveness (on the cost of longer processing time). This switch should especially well on Vista and Windows 7. It should also help on XP and older OSs, but not as much as with Vista.

Sorry Bit of a quickie question here: do you still need to have nero 7 installed to use this tool to decode DD+ streams to wavs? Thanks.
See first post of this thread.

Excuse me if this is already an option and I've somehow missed it, but can you please add an option to disable the second pass upon clipping being detected?

Eac3to already takes long enough to convert audio of decent length without doing two passes, and I don't always care about some minor clipping artefacts.
I'd suggest to use e.g. "-3db" instead. That will lower volume a bit, which usually gets rid of clipping. As a result a 2nd pass will in most cases not be necessary, anymore. So this basically does what you are asking for, and has the additional bonus of getting rid of clipping. Of course it comes at the cost of generally lowered volume, whenever you use this switch...

How will the forced subtitles be shown? I have Apocalypto BD and it's doesn't show any subtitles being forced.
Here are some possible reports posted by eac3to:

[s07] Counted 23 forced subtitles.
[s08] Counted 167 subtitles.
[s09] Counted 158 normal and 5 forced subtitles.

This information is only posted after full processing has run through! It is not possible for eac3to to report this without reading the complete source files. So don't expect this information in the track listing...

madshi
26th January 2009, 08:06
Question:

Does anybody have a 6.1 or 7.1 speaker setup and a Dolby Digital EX capable AVR and the possibility to send 6.1 or 7.1 PCM via HDMI to the receiver and would be willing to do some tests for me? If so, please PM me (don't post in this thread). Thanks!

jwdaigle
26th January 2009, 11:25
I am having troubles getting the arcsoft decoders to work with eac3to. When I run eac3to -test, I get "ArcSoft DTS Decoder doesn't seem to be installed". Im running 3.04 of eac3to, and just purchased TMT (the download gave me .126). The codecs do work with Graphstudio (using render media file), so that proves they are registered.

So how does eac3to decide if TMT is installed? Does it have anything to do with these 2 lines from a Process Monitor output (the referenced file does not exist in my fresh .126 retail installation):

5:20:13.4001806 PM eac3to.exe 5220 QueryOpen C:\Program Files\Common Files\ArcSoft\Bin\RPAWINET.DLL FAST IO DISALLOWED
5:20:13.4003641 PM eac3to.exe 5220 CreateFile C:\Program Files\Common Files\ArcSoft\Bin\RPAWINET.DLL NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

Is the existence of RPAWINET.DLL in the arcsoft bin directory the test to see if it is installed?

I have already tried adding Program files\common files\arcsoft\bin to the path before running eac3to -test. I have also tried copying the 4 mag*.dll files into the eac3to folder from arcsoft. As I mentioned earlier, the codecs are registered (I had to manually register them using regsvr32). I didnt register all of them (only the ones that seemed to be needed for video and audio playback), but will try that later.

Any help greatly appreciated.

mbcd
26th January 2009, 13:44
Hi Madshi

I didn`t tried new eac3to, but is it possible to "mark" subtitles which have forced subs inside by filename ?

I would like to see if thes special track is ONLY forced, or it is normal subs with forced inside.

Could be nice to know sometimes. Could you add this if it make sence to you?

BTW:

My Virus-Scanner shows now some funny Warning:

Madshi wants to take controll of all our Computers :sly: :angry: :devil: :p

Regards

Sylver
27th January 2009, 00:16
Is it possible to use Neroaacenc.exe and use a bitrate ? (instead of quality)
And profile HEv2 ?

And when i try to convert DTS-MA to AAC (without ArcSoft/Sonic), i have the message : "The libav DTS decoder doesn't decode the full DTS-HD information.". How will be my aac file ? Correct or not ?

Thanks :)

Greif
27th January 2009, 01:01
yeah use search to find the post showing how to pass via stdout to neroaacenc using whatever parameters you want

tebasuna51
27th January 2009, 02:51
@madshi
Please can you solve this 'bug' :cool:
eac3to 6o321.wav dplII.wav -down2

WAV, 5.1 channels, 0:00:20, 16 bits, 4608kbps, 48khz
Can't downmix this channel configuration ($3f).
Internal error - unknown audio output format!

With mask channel $60f work but the output from FAAD decoder and OGGDEC decoder have WAVE_FORMAT_EXTENSIBLE header with mask channel $3f.

I know M$ prefer now $60f but say also to be backward compatible...

The two only free decoders with WAVE_FORMAT_EXTENSIBLE output are punished with this.

Or maybe you prefer support aac,m4a,ogg decode with libav?

madshi
27th January 2009, 08:07
I am having troubles getting the arcsoft decoders to work with eac3to.
There have been many problems getting them to work. Usually manually registering the filters and adding the path to the environment settings (and a reboot afterwards) has helped most people. Some people had success installing the trial version first and then upgrading it to the full version. Don't know what else to say right now.

I didn`t tried new eac3to, but is it possible to "mark" subtitles which have forced subs inside by filename ?

I would like to see if thes special track is ONLY forced, or it is normal subs with forced inside.
eac3to only knows this after processing has run through, but I guess I could rename the sup files as a last step. I'll think about it...

My Virus-Scanner shows now some funny Warning
False alarm. Please write a complaint to your anti virus company.

Is it possible to use Neroaacenc.exe and use a bitrate ? (instead of quality)
Yes. E.g. "eac3to source.whatever dest.aac -192".

And profile HEv2 ?
AFAIK, the Nero encoder automatically chooses which encoding methods to use, depending on the bitrate/quality. Anyway, eac3to currently doesn't let you specify whether HEv2 should be used or not. If you want full control over the Nero AAC encoder, you may want to use piping, see Greif's comment.

And when i try to convert DTS-MA to AAC (without ArcSoft/Sonic), i have the message : "The libav DTS decoder doesn't decode the full DTS-HD information.". How will be my aac file ? Correct or not ?
Correct yes, but slightly lower quality compared to what could be achieved by using a DTS-HD capable decoder.

Please can you solve this 'bug' :cool:
Will be fixed in the next build. This was supposed to work already, so I consider it a clear and simple bug.

Or maybe you prefer support aac,m4a,ogg decode with libav?
m4a and ogg containers are very difficult to support because eac3to doesn't even recognize their format. I'd have to write full mp4/ogg container parsers to make this work with the current eac3to code structure. I could add AAC decoding support with libav. But AFAIK the libav AAC decoder is not yet feature complete, so I'm afraid of adding compatability problems. I rather want to wait until libav's AAC decoder can decode all AAC formats before supporting it.

Sylver
27th January 2009, 10:53
Thanks for ur answers !

mrr19121970
27th January 2009, 15:57
I did some updates in the meantime for Clown_BD GUI:

Selecting Audio/Subtitle streams based on language or type:
http://usera.ImageCave.com/mrr19121970/GUI/New_Step3.jpg

Direct Burning of created BD structure (instead of creating a .ISO):
http://usera.ImageCave.com/mrr19121970/GUI/New_Step1-BURN.jpg

See here eacto, tsMuxer & ImgBurn Made Easy (http://forum.slysoft.com/showthread.php?p=166910) for more details.

Blackadder
27th January 2009, 17:59
Hello. I have a question. I tried to encode dts from an lpcm track, In the middle of the process i got an error. This is only the 2nd time that i've used this program so i don't have much experience with it. I have here the log file and hopefully someone can tell me what i have done wrong. By the way, i have installed Surcode dvd dts.

Thanks in advance !
This is the log file:

eac3to v3.05
command line: "F:\HD Appz\EAC3to\eac3to.exe" "N:\Sin City.m2ts" 2: "N:\SinC.dts" -1536
------------------------------------------------------------------------------
M2TS, 1 video track, 1 audio track, 1 subtitle track, 2:04:01, 24p /1.001
1: h264/AVC, 1080p24 /1.001 (16:9)
2: RAW/PCM, 7.1 channels, 24 bits, 48khz
3: Subtitle (PGS)
[a02] The Surcode DTS encoder doesn't support back channels. Will downmix them.
[a02] Extracting audio track number 2...
[a02] Reading RAW/PCM...
[a02] Swapping endian...
[a02] Remapping channels...
[a02] Mixing surround channels...
[a02] Writing WAVs...
[a02] Creating file "N:\SinC.L.wav"...
[a02] Creating file "N:\SinC.R.wav"...
[a02] Creating file "N:\SinC.LFE.wav"...
[a02] Creating file "N:\SinC.SR.wav"...
[a02] Creating file "N:\SinC.C.wav"...
[a02] Creating file "N:\SinC.SL.wav"...
[a02] The original audio track has a constant bit depth of 24 bits.
[a02] The processed audio track has a constant bit depth of 24 bits.
Encoding DTS <1536kbps> with Surcode...
Found Surcode DTS Encoder version 1.0.23.0.
Surcode says/asks: "At least one valid source file must be specified to encode.".
Pressing the Surcode "Encode" button didn't seem to work...
Closing Surcode...

mikelebron
27th January 2009, 18:01
Why isnt the ArcSoft TrueHD and ArcSoft (E-)AC3 supported but the Arcsoft DTS-HD is?

lexor
27th January 2009, 19:34
Why isnt the ArcSoft TrueHD and ArcSoft (E-)AC3 supported but the Arcsoft DTS-HD is?

Because it's a lot more work, and unlike DTS components there is no better substitute.

TrueHD - libav handles perfectly
AC3 - handled by Nero 7 (yes it's old and unavailable if you don't already have it... but libav is good enough here too)

On the other hand nothing handles the plethora of DTS formats quite as well as ArcSoft.

mikelebron
27th January 2009, 20:30
Makes sense... Question.. I noticed my MKVs that were remuxed from TrueHD, DTS-MA, or PCM to FLAC have a much lower volume... How can I correct this? Any tips?

Snowknight26
27th January 2009, 22:53
Any reason behind patching DTS source bit depth flag?

jwdaigle
27th January 2009, 23:04
I am posting this in the hopes that it helps someone else with a similar configuration to me. Before I got this working, eac3to -test would tell me that it doesnt like like the arcsoft dts decoder is installed.

I am running Vista32 Service Pack1 with no "codec packs" installed. My aim was to have the ability to play video files (usually in mkv files) with a minimum of crud added to my system.

Prerequisites:
- You have successfully installed Arcsoft TMT Retail. This info is not meant to help you pirate the Arcsoft codecs, but rather you bought the product and want to use the codecs outside of the TMT environment.
- You can play video files with the Arcsoft player (I did all my testing with .mkv files with 264 video inside). ie, the arcsoft retail product works on your machine.


If you cant do these 2 things, it is unlikely eac3to can use it.

I also installed the haali media splitter to be able to read mkv files.

Setup:
Really only two things are required.

- The dll files in C:\Program files\Common Files\Arcsoft\Bin need to be accessible in your path. Do this by going to control panel/user accounts. Select "Change My environment variables" from the left hand side. If there is already a Path variable in the top listbox, select it and click edit - if there isnt click on new. Type C:\Program Files\Common Files\Arcsoft\Bin in "variable value" and "Path" in the Variable name. Click ok/ok/ok.
- The Arcsoft audio codecs must be registered. I am not sure if I registered more than I needed to, but the ones I registered are: ASAudio.ax, ASAudioEffectHD.ax, ASAudioHD.ax, ASVid.ax, VideoRenderForEVR.ax, VideoRenderForVMR.ax. You can do this by running a command prompt as administrator (right click on command and select "Run as administrator") and typing regsvr32 "C:\Program Files\Arcsoft\TotalMedia Theater\Codec\each_file_in_my_list.ax"

You should get a "registration of ... was successful.

I then rebooted.

After this brief process, I re-ran eac3to -test (3.05 for me) and it now reported that it can see the arcsoft codecs.

I didnt need to copy any of the dlls around (thats what the path is for).

Success!

I also suggest that you get a copy of the (free) GraphStudio to more fully test that the arcsoft video/audio codecs are working well.

Hope this helps -

Joe

Blue_MiSfit
28th January 2009, 02:03
Hi Folks

*GOSH this thread is getting HUGE!!!

I've got a problematic source, which is a MPEG Program Stream with MPEG-2 video and MP2 audio at 192kbps. I want to transcode the MP2 to an AC3. Usual command results in this output:

I:\Rework\SD_HD\141588>eac3to RiseOfTheFootSoldier_178_2007.mpg 2:audio.ac3 -192

MPG, 1 video track, 1 audio track, 1:59:03
1: MPEG2, 1080i60 /1.001 (16:9)
2: MP2, 2.0 channels, 192kbps, 48khz
a02 Extracting audio track number 2...
a02 Decoding with libav/ffmpeg...
a02 Encoding AC3 <192kbps> with libAften...
a02 Creating file "audio.ac3"...
a02 Audio overlaps for 48ms at playtime 0:00:00.
a02 Audio overlaps for 48ms at playtime 0:00:00.
a02 Audio overlaps for 48ms at playtime 0:00:00.
a02 Starting 2nd pass...
a02 Creating file "audio.ac3"...
Video track 1 contains 214074 frames.
eac3to processing took 15 minutes, 1 second.
Done.


So, it looks like there are some gaps. Fine, there are no sync issues with the source or the resulting AC3. However, the resulting AC3 has some nasty clipping during loud portions! Any way to fix this? I also get the clipping if I decode the MP2 to WAV, so it seems like that's where it's introduced.

I'll be watching. Madishi, if you want the MP2 I can provide it!

~MiSfit

Blue_MiSfit
28th January 2009, 02:47
Okay, so some followup.

I can only get a clean decoded WAV if I decode to 32 bit float (using foobar2000). Unfortunately my DP600 only takes 24 bit WAV or BWF PCM input... :)

Trying more things...

~MiSfit

Blue_MiSfit
28th January 2009, 02:55
Finally, success! I had to demux to MP2 with eac3to, then use foobar to decode to full 32 bit float, then use eac3to to encode this to AC3. It detected the clipping, fixed it, and there was much rejoycing!


D:\Dolby\DolbyInput>eac3to footsoldier_32bit.wav footsoldier.ac3 -192
WAV, 2.0 channels, 1:59:03, 32 bits <float>, 3072kbps, 48khz
Reading WAV...
Encoding AC3 <192kbps> with libAften...
Creating file "footsoldier.ac3"...
Clipping detected, a 2nd pass will be necessary.
Original audio track: max 32 bits, average 30 bits, most common 29 bits.
Starting 2nd pass...
Reading WAV...
Encoding AC3 <192kbps> with libAften...
Creating file "footsoldier.ac3"...
The processed audio track has a constant bit depth of 64 bits.
eac3to processing took 2 minutes, 21 seconds.
Done.

D:\Dolby\DolbyInput>


Hooray!!!! This title has been bugging me for AGES!

The real question is - why couldn't eac3to detect this in the original MP2, and run a second pass to fix the clipping? This roundabout business wasn't much fun..

~MiSfit

DrNein
28th January 2009, 05:32
jwdaigle (Joe),

If only DTS decode is desired then the minimal files required are the filter (registered) ASAudioHD.ax, plus the libraries DtsDec.dll and dtsdecoderdll.dll. The others required in the path to allow using any filters are checkactivate.dll, MagCore.dll, MagPCMac.dll, MagUIEngine.dll, and MagUIInter.dll.

Do you find any of the other filters useful externally such as for playback with MPC-HC?

ACrowley
28th January 2009, 08:41
Makes sense... Question.. I noticed my MKVs that were remuxed from TrueHD, DTS-MA, or PCM to FLAC have a much lower volume... How can I correct this? Any tips?

You get exactly the same Volume when reencoding to FLAC

FLAC reencoding is lossless and no Volume/DynamicRangeCompression etc will be applied from FLAC encoder.

You Problem can only be caused by :

1. Youre using a Decoder in eac3to with Dynamic Range Compression or Dialnorm enabled.
-Which Decoder are you using in ea23to ?

2. Youre using a FLAC Decoder with some other Output Settings.
-Take Madflac !

3. Youre using a DTS/ TrueHD Decoder for Playback with some changed Volume Settings as like Normalization, Gain etc...
Which player/Decoder are you using for Playback

I think Nr 3 and or 2 is your Problem....

madshi
28th January 2009, 08:56
However, the resulting AC3 has some nasty clipping during loud portions! Any way to fix this? I also get the clipping if I decode the MP2 to WAV, so it seems like that's where it's introduced.

I'll be watching. Madishi, if you want the MP2 I can provide it!
Yes, please.

Amefurashi
28th January 2009, 10:20
Hello,

I was trying to convert a 6.1ch DTS-MA track in a AAC-MP4 one using eac3to 3.05, keeping the original channels. Log says:


eac3to.exe English.dtsma English.mp4 -quality=0.30
DTS Master Audio, 6.1 channels, 24 bits, 48khz
(core: DTS-ES, 6.1 channels, 24 bits, 1509kbps, 48khz)
NeroAacEnc doesn't support 6.1 encoding. Will double the 7th channel.
Doubling 7th channel...
Decoding with ArcSoft DTS Decoder...
Remapping channels...
Encoding AAC <0.30> with NeroAacEnc...


Commandline is the following:

eac3to.exe English.dtsma English.mp4 -quality=0.30

IIRC NeroAACEnc manages to encode streams up to 8 channels. Am I doing something wrong?

shambles
28th January 2009, 12:27
with the new version, in case of truehd tracks, eac3to always removes zero-bytes after encoding to flac.. isn't the bluray truehd spec limited to 24bit? so wouldn't it make more sense to always truncate to 24bit and then do the extra pass if it's only 16bits?

madshi
28th January 2009, 12:36
I was trying to convert a 6.1ch DTS-MA track in a AAC-MP4 one using eac3to 3.05, keeping the original channels.

IIRC NeroAACEnc manages to encode streams up to 8 channels. Am I doing something wrong?
AFAIK Nero can encode 5.1 and 7.1, but not 6.1. So eac3to converts your 6.1 track to 7.1 to make it encodable with Nero.

isn't the bluray truehd spec limited to 24bit?
Huh? TrueHD is *always* 24bit. Never lower, never higher. But it's possible that only some of those 24 bits are filled with actual data, with the remaining bits being zeroed out.

shambles
28th January 2009, 12:52
oh right. but then why is this happening:

eac3to v3.05
command line: eac3to E:\D181716D1V2 1) 3: f:\terror.flac
------------------------------------------------------------------------------
M2TS, 1 video track, 6 audio tracks, 2 subtitle tracks, 1:45:33, 24p /1.001
1: Chapters, 31 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: TrueHD/AC3, English, 5.1 channels, 48khz, dialnorm: -27dB
(embedded: AC3, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB)
4: AC3, English, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
5: AC3, Spanish, 5.1 channels, 448kbps, 48khz, dialnorm: -27dB
6: AC3, French, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
7: AC3, English, 2.0 channels, 224kbps, 48khz, dialnorm: -27dB
8: AC3, English, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
9: Subtitle (PGS), English
10: Subtitle (PGS), Spanish
[a03] Extracting audio track number 3...
[a03] Extracting TrueHD stream...
[a03] Removing TrueHD dialog normalization...
[a03] Decoding with libav/ffmpeg...
[a03] Encoding FLAC with libFlac...
[a03] Creating file "f:\terror.flac"...
[a03] The original audio track has a constant bit depth of 24 bits.
[a03] Superfluous zero bytes detected, will be stripped in 2nd pass.
[a03] Starting 2nd pass...
[a03] Decoding FLAC...
[a03] Encoding FLAC with libFlac...
[a03] Creating file "f:\terror.flac"...
Video track 2 contains 151849 frames.
eac3to processing took 26 minutes, 35 seconds.
Done.

bigdog660
28th January 2009, 14:46
I had the chance to demux 3 BD movies last night, and I have attached their logs.

eac3to v3.05
command line: "D:\HDDVDTL\eac3to.exe" "E:\" 1) 2: "D:\DISASTER_MOVIE\feature.mkv" 1: "D:\DISASTER_MOVIE\chapters.txt" 4: "D:\DISASTER_MOVIE\feature.ac3" -core
------------------------------------------------------------------------------
M2TS, 2 video tracks, 2 audio tracks, 3 subtitle tracks, 1:28:28, 24p /1.001
1: Chapters, 17 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: h264/AVC, 480p24 /1.001 (20:11)
4: DTS Master Audio, English, 7.1 channels, 24 bits, 48khz
(core: DTS, 5.1 channels, 24 bits, 1509kbps, 48khz)
5: AC3, English, 2.0 channels, 192kbps, 48khz, dialnorm: -27dB
6: Subtitle (PGS), English
7: Subtitle (PGS), English
8: Subtitle (PGS), Spanish
Creating file "D:\DISASTER_MOVIE\chapters.txt"...
[v02] Extracting video track number 2...
[a04] Extracting audio track number 4...
[a04] Extracting DTS core...
[v02] Muxing video to Matroska...
[a04] Decoding with ArcSoft DTS Decoder...
[a04] Encoding AC3 <640kbps> with libAften...
[a04] Creating file "D:\DISASTER_MOVIE\feature.ac3"...
[a04] The original audio track has a constant bit depth of 24 bits.
Added fps value to MKV header.
Video track 2 contains 127258 frames.
Video track 3 contains 127258 frames.
eac3to processing took 1 hour, 44 minutes.
Done.

eac3to v3.05
command line: "D:\HDDVDTL\eac3to.exe" "E:\" 1) 2: "D:\PRIDE_AND_GLORY\feature.mkv" -stripPulldown 1: "D:\PRIDE_AND_GLORY\chapters.txt" 3: "D:\PRIDE_AND_GLORY\feature.ac3"
------------------------------------------------------------------------------
M2TS, 1 video track, 2 audio tracks, 2 subtitle tracks, 2:10:09, 24p /1.001
1: Chapters, 33 chapters
2: VC-1, 1080p24 /1.001 (16:9)
3: AC3, English, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
4: TrueHD/AC3, English, 5.1 channels, 48khz, dialnorm: -27dB
(embedded: AC3, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB)
5: Subtitle (PGS), English
6: Subtitle (PGS), Spanish
Creating file "D:\PRIDE_AND_GLORY\chapters.txt"...
[v02] Extracting video track number 2...
[a03] Extracting audio track number 3...
[a03] Removing AC3 dialog normalization...
[v02] Muxing video to Matroska...
[a03] Creating file "D:\PRIDE_AND_GLORY\feature.ac3"...
Added fps value to MKV header.
Video track 2 contains 187239 frames.
eac3to processing took 1 hour, 3 minutes.
Done.

eac3to v3.05
command line: "D:\HDDVDTL\eac3to.exe" "E:\" 1) 2: "D:\THE_LOVE_GURU\feature.mkv" 1: "D:\THE_LOVE_GURU\chapters.txt" 3: "D:\THE_LOVE_GURU\feature.ac3" -core
------------------------------------------------------------------------------
M2TS, 1 video track, 3 audio tracks, 5 subtitle tracks, 1:26:41, 24p /1.001
1: Chapters, 20 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: TrueHD/AC3, English, 5.1 channels, 48khz, dialnorm: -27dB
(embedded: AC3, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB)
4: AC3, French, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
5: AC3, Spanish, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
6: Subtitle (PGS), English
7: Subtitle (PGS), English
8: Subtitle (PGS), French
9: Subtitle (PGS), Spanish
10: Subtitle (PGS), Portuguese
Creating file "D:\THE_LOVE_GURU\chapters.txt"...
[v02] Extracting video track number 2...
[a03] Extracting audio track number 3...
[a03] Extracting AC3 stream...
[v02] Muxing video to Matroska...
[a03] Removing AC3 dialog normalization...
[a03] Creating file "D:\THE_LOVE_GURU\feature.ac3"...
Added fps value to MKV header.
Video track 2 contains 124704 frames.
eac3to processing took 1 hour, 22 minutes.
Done.

As you can see the processing took anywhere from 1:03:00 to 1:44:00 which is much better than v3.04, but not as good a v2.87. As previously discussed via email, v2.87 performance was fast enough demux a 1:45 hour movie in 27 minutes.

What size blocks did you use in v2.87? Was it 4K blocks? Maybe it's better to go back to that size or even try 8K blocks?

One of the areas v3.05 really shines is reading disc structure ["E:\" and "E:\" 1)]! Much faster than v2.87 or v3.04.

As always, you work is really appreciated!:thanks:

Amefurashi
28th January 2009, 18:06
AFAIK Nero can encode 5.1 and 7.1, but not 6.1. So eac3to converts your 6.1 track to 7.1 to make it encodable with Nero.

I didn't know that. :(

Changelog of version 2.51 says:

Release Date: Jul 1, 2008
* added (undocum.) option "-no7doubling" to disable 6.1 -> 7.1 channel doubling

This option doesn't exist anymore: may I ask what did it "technically" do?


BTW thanks for this awesome tool, keep up the good work! ;)

nautilus7
28th January 2009, 19:41
oh right. but then why is this happening:This is exactly what madshi explained to you, and because i can't tell in a better way, read it again from him.

Blue_MiSfit
28th January 2009, 19:44
@Madshi:

The clipping MP2 is uploading. I re-verified that both MPG -> MP2 -> AC3 and MPG -> AC3 both produce clipping, but MPG -> MP2 -> 32float WAV (with Foobar) > AC3 (with eac3to) works fine.

I'll update this post with the link when it's done uploading.


http://www.megaupload.com/?d=NNYU3RBX


~MiSfit

shambles
28th January 2009, 20:34
This is exactly what madshi explained to you, and because i can't tell in a better way, read it again from him.

but the log shows that the track has a constant bit depth of 24bits, so why is eac3to detecting zero-bytes and performing the 2nd pass? this is happening with all truehd tracks, i've done like 15 of them in the last couple days

lexor
28th January 2009, 20:55
but the log shows that the track has a constant bit depth of 24bits, so why is eac3to detecting zero-bytes and performing the 2nd pass? this is happening with all truehd tracks, i've done like 15 of them in the last couple days

Consider numbers: 1 , 01, 001, 0001 etc.

They are all the same, they are all 1. Prefixing a number with zeroes does not alter the value. TrueHD tracks are padded to 24 bits. So if source was 16bit PCM it would be padded to 24bits with zeroes by the TrueHD encoder. What eac3to is doing is detecting that padding and removes it on the second pass.

Blue_MiSfit
28th January 2009, 21:02
I ran into another MP2 source that had the same clipping issue today, and the same fix worked. If you need it, let me know.

~MiSfit

shambles
28th January 2009, 21:29
Consider numbers: 1 , 01, 001, 0001 etc.

They are all the same, they are all 1. Prefixing a number with zeroes does not alter the value. TrueHD tracks are padded to 24 bits. So if source was 16bit PCM it would be padded to 24bits with zeroes by the TrueHD encoder. What eac3to is doing is detecting that padding and removes it on the second pass.

there's no padding! the resultant flac tracks are 24bit. i know eac3to removes zero-bytes if there's only 16bits of valid information but these are all tracks that have full 24 valid bits