View Full Version : eac3to - audio conversion tool
idbirch2
22nd December 2007, 02:07
Regarding Phantom Of The Opera, I have also obtainted the BluRay version and that suffers from the same issues the HD-DVD did, I really don't think this is a bad rip to blame, more likely bad authoring.
The BluRay .m2ts stream suffers from the same video breakup/rainbow-ness as the HD-DVD unless it is played back with the Sonic decoders, in which case audio sync becomes a major pain in the ass if re-encoding/remuxing. Why can the Sonic decoders handle these seemingly damaged streams?
Chumbo
22nd December 2007, 02:40
@Chumbo, the problem is this:
Because of this there most probably never was a MKV file. I'm wondering why eac3to tried to continue with the whole operation. It should have aborted with the above mentioned error message. It's probably a bug that the operation was not aborted.
Which movie is that? Did you already successfully convert some other movies to MKV with eac3to? Or was this your first try?
Okay, the one thing I left out was that I was using a small clip, i.e., using the -50MB switch to only process the first 50MB of the file(s). I've confirmed that this may be the source of this problem I'm having, because so far, it has not happened when I do a full process on the entire file or files.
The complete process for Stardust completed successfully.eac3to HVDVD_TS\feature_1.evo+HVDVD_TS\feature_2.evo 2: "e:\media\video\movie.mkv"
EVO/VOB, 1 video track, 3 audio tracks, 2:07:40
1: Joined EVO/VOB file
2: h264/AVC
3: E-AC3, 5.1 channels, 1536kbit/s, 48khz, dialnorm: -27dB, -84ms
4: E-AC3, 5.1 channels, 768kbit/s, 48khz, dialnorm: -27dB, -84ms
5: E-AC3, 5.1 channels, 768kbit/s, 48khz, dialnorm: -27dB, -84ms
Muxing video to Matroska...
Rewriting MKV timecodes by using "mkvmerge". Please wait...
mkvmerge v2.1.0 ('Another Place To Fall') built on Aug 19 2007 13:39:56
'e:\media\video\movie.old.mkv': Using the Matroska demultiplexer.
'e:\media\video\movie.old.mkv' track 1: Using the MPEG-4 part 10 (AVC) video output module.
Track 1 of 'e:\media\video\movie.old.mkv': Extracted the aspect ratio information from the MPEG-4 layer 10 (AVC) video data and set the display dimensions to 1920/1080.
The file 'e:\media\video\movie.mkv' has been opened for writing.
progress: 100%
The cue entries (the index) are being written...
Muxing took 2500 seconds.
eac3to processing took 1 hour, 46 minutes.
Timestamp rewriting took 41 minutes, 44 seconds.
Done.
moshmothma
22nd December 2007, 04:47
eac3to v2.11 released
http://madshi.net/eac3to.zip
*
* fixed: delay was not applied to lossless audio tracks
Madshi, I remuxed the Matrix Reloaded (truehd) to mkv and flac. The audio is about -500ms off. I am using 2.11. Do I need to use a timecodes file when muxing to mkv? Thanks
Chumbo
22nd December 2007, 05:12
Madshi, I remuxed the Matrix Reloaded (truehd) to mkv and flac. The audio is about -500ms off. I am using 2.11. Do I need to use a timecodes file when muxing to mkv? Thanks
Based on the log output of my post right before yours, I think the answer is no.
madshi
22nd December 2007, 09:36
Okay, the one thing I left out was that I was using a small clip, i.e., using the -50MB switch to only process the first 50MB of the file(s). I've confirmed that this may be the source of this problem I'm having, because so far, it has not happened when I do a full process on the entire file or files.
So another h264 movie that got converted fine. That's good... :) Originally I was fearing to have a lot of problems with h264 movies.
madshi
22nd December 2007, 09:37
Madshi, I remuxed the Matrix Reloaded (truehd) to mkv and flac. The audio is about -500ms off. I am using 2.11. Do I need to use a timecodes file when muxing to mkv? Thanks
Can you please run "eac3to feature_1.evo+feature_2.evo" just to get eac3to's summary of your movie files (without doing any conversion) and post the summary here? Thanks. Also please double check that you're really using v2.11. The internet brower cache sometimes gives you an old version when you believe you have downloaded the latest one...
nautilus7
22nd December 2007, 10:46
I have matrix reloaded hd dvd. No delay is needed. Unless there are different versions of this disc...
Thunderbolt8
22nd December 2007, 13:26
I can confirm that
PTM of first video frame = 00000DC7
PTM of last video frame = 15D0DB4F
VC-1 video stream 0 found!
First PTS = 00000DC7
Dolby TrueHD audio stream 1 found!
First PTS = 00000DC7
madshi
22nd December 2007, 13:30
Thanks nautilus and Thunderbolt. And is the FLAC track in sync for both of you?
Thunderbolt8
22nd December 2007, 14:01
didnt test it with the new version, it is just what I copied from ~20 pages back :P
but I just made a remux of the eyes wide shut HD DVD, one time using eac3to for remuxing & flac conversion and the other time with the 'old' way with evodemux rebuilding & separate audio (truehd) demuxing + transforming to flac. and in both cases both tracks, audio and video made in both ways had exact the same length, so I guess its fine. guess Ill stick with the eac3to way then, because it saves me quite some time.
nautilus7
22nd December 2007, 14:37
Thanks nautilus and Thunderbolt. And is the FLAC track in sync for both of you?
I made a flac with an earlier version (2.03). Yes it was in sync.
Pink Floyd
22nd December 2007, 15:00
Hi
Can the EAC3to tool be used to downmix DTS 5.1 tracks to normal 2 Channel stereo wav? I need to listen some DTS 5.1 Stuff on the move. I wonder if anyone has the need for stereo downmix.
From the release notes I see that the EAC3to tool uses the Cinemaster Video/ Audio Decoder for DTS Decoding. I messed around the registry keys for the Cinemaster Audio decoder and found that the following key controls the DTS Decoding Options:
HKEY_LOCAL_MACHINE\SOFTWARE\Sonic\CommonMPEGDecoders\4.2\AudioDecoder\DTSOuputOptions. The default for the DTSOuputOptions is 0xb hex. I this is changed to 0x0 hex then the decoded output for a 5.1 Channel DTS file is a 2 Channel downmixed file. I'm not certain whether this is a downmixed output of just the Front Left and Right Channels.
Note that by changing this key value the output can be controlled to 2, 3, 4, 5 and 5.1 Channels.
Regards
madshi
22nd December 2007, 17:49
Can the EAC3to tool be used to downmix DTS 5.1 tracks to normal 2 Channel stereo wav? I need to listen some DTS 5.1 Stuff on the move. I wonder if anyone has the need for stereo downmix.
From the release notes I see that the EAC3to tool uses the Cinemaster Video/ Audio Decoder for DTS Decoding. I messed around the registry keys for the Cinemaster Audio decoder and found that the following key controls the DTS Decoding Options:
HKEY_LOCAL_MACHINE\SOFTWARE\Sonic\CommonMPEGDecoders\4.2\AudioDecoder\DTSOuputOptions. The default for the DTSOuputOptions is 0xb hex.
eac3to is already manipulating these registry values to force the Sonic decoder to output all channels and *not* to downmix. eac3to's purpose is to deliver as many channels as possible. Downmixing to 2 channels is currently not supported. I could probably add that, but I'd need to know how this is usually done technically. Does anybody know? Which channels are mixed in with which volume?
rickardk
22nd December 2007, 18:22
Latest version works like a charm. Thanks for this great tool!
I have problems with two titles though:
Godfellas:
eac3to says that the two evo-files are of unknown format.
I can however demux video and audio with evodemux. But when I try to convert the eac3 audiotrack eac3to complains about the track being dirty.
Kingdom of heaven:
Joined the two m2ts files with copy /b. Then I used TSRemux to extract audio. Eac3to complains again about audiotrack being dirty. So I tried to demux the joined m2ts file with xport and it gives me an error halfway through. Is there any other way to join m2ts files before demuxing?
madshi
22nd December 2007, 18:31
Godfellas:
eac3to says that the two evo-files are of unknown format.
I can however demux video and audio with evodemux. But when I try to convert the eac3 audiotrack eac3to complains about the track being dirty.
It seems that there really is something bad with those EVO files. eac3to is very strict. It doesn't allow dirty files (files with corruption or bit faults). Please try reripping.
Kingdom of heaven:
Joined the two m2ts files with copy /b. Then I used TSRemux to extract audio. Eac3to complains again about audiotrack being dirty. So I tried to demux the joined m2ts file with xport and it gives me an error halfway through. Is there any other way to join m2ts files before demuxing?
If demuxing audio is your only aim then you can use the latest xport version and demux audio separately for both m2ts files. Which audio track format do you want to demux? eac3to can join most formats for you. E.g. you can use "eac3to firstchunk.pcm+secondchunk.pcm destination.flac".
rickardk
22nd December 2007, 18:35
It seems that there really is something bad with those EVO files. eac3to is very strict. It doesn't allow dirty files (files with corruption or bit faults). Please try reripping.
If demuxing audio is your only aim then you can use the latest xport version and demux audio separately for both m2ts files. Which audio track format do you want to demux? eac3to can join most formats for you. E.g. you can use "eac3to firstchunk.pcm+secondchunk.pcm destination.flac".
Already reripped Godfellas. Same problem.
Video stream and decoded dts ma track converted to flac into a mkv container was the goal for Kingdom of Heaven.
Have encounterd problems before when joining m2ts files (from several titles). Sometimes the lenght of the joined m2ts file is reported wrong when played back in WMP or PowerDVD. Don't know if copy /b is the right way to join m2ts files.
Thunderbolt8
22nd December 2007, 19:07
dont use tsremux any more, just join the files with copy /b and then direclty use xport for demuxing. should usually work
madshi
22nd December 2007, 19:18
Already reripped Godfellas. Same problem.
Can you please upload a little sample? Try to create a sample of 50MB. Then please try whether eac3to does not recognize that 50MB sample, either. Only then please upload the sample. If eac3to does handle the sample, you may have to upload a bigger sample (up to 300MB).
rickardk
22nd December 2007, 19:23
dont use tsremux any more, just join the files with copy /b and then direclty use xport for demuxing. should usually work
Tried that but it didnt work.
Im using tsremux to make ts files from the two m2ts right now. Sometime then the lenght of joined m2ts files are all wrong I us to make ts from the m2ts files and then join the ts files. Works sometimes...
Also reripped Kingdom of Heaven and I'm sure the rip is clean.
rickardk
22nd December 2007, 19:27
Can you please upload a little sample? Try to create a sample of 50MB. Then please try whether eac3to does not recognize that 50MB sample, either. Only then please upload the sample. If eac3to does handle the sample, you may have to upload a bigger sample (up to 300MB).
Don't really know how to make a small sample evo...
The errors starts right away so I'm sure 50MB is enough.
Btw. I will really put eac3to to the test the next couple of weeks as I'm planning to rerip my entire collection of Blu-rays and HD DVDs (app 200 discs). Video untouched, will just keep best audio track (High BR audio to FLAC) mkv as container.
Thunderbolt8
22nd December 2007, 19:35
Tried that but it didnt work.
Im using tsremux to make ts files from the two m2ts right now. Sometime then the lenght of joined m2ts files are all wrong I us to make ts from the m2ts files and then join the ts files. Works sometimes...
Also reripped Kingdom of Heaven and I'm sure the rip is clean.
the displayed length should be wrong yes, its only accurate up to the first point where another file was joined. nevertheless, demuxing should be possible and the audio then should only be off for 5ms(LPCM) - 32ms((E)AC3) for the first part.
btw. which audio track do you mean? LPCM or eac3 ? in case of eac3 you might need to use delaycut, before eac3to will accept the input
rickardk
22nd December 2007, 19:41
the displayed length should be wrong yes, its only accurate up to the first point where another file was joined. nevertheless, demuxing should be possible and the audio then should only be off for 5ms(LPCM) - 32ms((E)AC3) for the first part.
btw. which audio track do you mean? LPCM or eac3 ? in case of eac3 you might need to use delaycut, before eac3to will accept the input
It's a DTS-HD Master Audio track...
Thunderbolt8
22nd December 2007, 19:48
are you using xport v1.00?
if it still shouldnt work despite that send a sample to drmpeg and see what he will say regarding that.
rickardk
22nd December 2007, 19:54
are you using xport v1.00?
if it still shouldnt work despite that send a sample to drmpeg and see what he will say regarding that.
Yes Im using 1.00. I will try one more time to rerip and then demux the two m2ts-files one by one.
If it doesnt work I'll send him a sample (don't really know what to sample though as the problem occurs in the joint of the two m2ts-files it seems). Will make a sample of Goodfellas for madshi later today.
Thanks for all help!
madshi
22nd December 2007, 21:01
Don't really know how to make a small sample evo...
You can use a hexeditor for that. E.g. this one:
http://www.mh-nexus.de/
Btw. I will really put eac3to to the test the next couple of weeks as I'm planning to rerip my entire collection of Blu-rays and HD DVDs (app 200 discs). Video untouched, will just keep best audio track (High BR audio to FLAC) mkv as container.
If I was you I'd do the HD DVDs first. Blu-Ray remuxing is still a bit more difficult. When you're done with all your HD DVDs, maybe the software for Blu-Ray remuxing has improved (or not).
moshmothma
22nd December 2007, 21:38
I made a flac with an earlier version (2.03). Yes it was in sync.
Ok, my mistake. Looks like the problem is related to my setup. Twice now on I have played mkvs created through eac3to and twice thought they were out of sync at one point and played later and they seemed fine. Playing reloaded, i had to apply an audio offset to get it to be in sync initially but playing again doesn't require it. I'll try and figure out what is wrong.
Now, if I can figure out why mkvs take so infernally long to open I'll be happy.
Thanks all (esp Madshi)
drmpeg
23rd December 2007, 02:32
Don't really know how to make a small sample evo...
I have a few simple command line tools for cutting files to create samples.
http://www.w6rz.net/head.zip
Creates a file from the first x bytes of a file.
head <infile> <outfile> <length>
head movie.evo clip.evo 50000000
************************************************
http://www.w6rz.net/tail.zip
Creates a file from the last x bytes of a file.
tail <infile> <outfile> <length>
tail movie.evo clip.evo 50000000
************************************************
http://www.w6rz.net/clip.zip
Creates a file of x bytes starting at y bytes into the file.
clip <infile> <outfile> <start offset> <length>
clip movie.evo clip.evo 1000000000 50000000
Ron
Thunderbolt8
23rd December 2007, 03:28
regarding that kingdom of heaven sound might thing, it might be useful to get samples from the end and beginning of those parts, where the other .m2ts files are joined at with copy /b.
so when for example "copy /b a + b + c" then samples from end of a, beginning of b, maybe also end of b, beginning of c and also maybe beginning of a (just as general info).
if you really should have problems with xport regarding (the sound of) this movie, then just send him those samples, probably he can come up with a solution.
another thing, got a question to the conversion of dts-hd ma tracks to flac: the rebuilt .evo with this track only has a size of 1,92GB (16-bit; ~2h30min movie length) for 'the pianist'. the converted flac has a size of 978mb in the end, thats actually reduction of more than 50%. Ive already seen this movie and therefore know that especially later in the movie there are lots of quite scenes with much silence, but could it still be that way that the size shrinks down that much?
tebasuna51
23rd December 2007, 04:56
Downmixing to 2 channels is currently not supported. I could probably add that, but I'd need to know how this is usually done technically. Does anybody know? Which channels are mixed in with which volume?
Here (http://forum.doom9.org/showthread.php?p=1005866#post1005866) there are some ideas. The recommended downmix is the Dolby ProLogic II
shanghai2004
23rd December 2007, 07:34
Does PowerDVD play the PCM track or the DTS-HD track?
The PCM track seems to be corrupt. Haali's splitter doesn't even offer to demux it. Sonic's splitter crashes when trying to demux it. Nero's filter demuxes the track, but it's no valid PCM data. eac3to demuxes it, too, but it's also not valid PCM data.
Maybe EvoDemux corrupted the EVO while rebuilding? Please try eac3to on the original EVO files.
Thanks for trying!
New sample from original disk (disk has no AACS), HxD used to cut 80MB sample. Tried 2.11 on this sample with same result.
http://www.sendspace.com/file/zcz2a6
Seems LPCM on HD-DVD does something special as I'm not able to get the LPCM audio track with any program so far.
calinb
23rd December 2007, 08:19
<snip>
Seems LPCM on HD-DVD does something special as I'm not able to get the LPCM audio track with any program so far.
Yeah--I can't get LPCM to work with eac3to either. Here's an audio-only sample that I made with EVOdemux. eac3to didn't work on the original (video+audio+subs) .evo either.
This sample plays fine with Nero 7 Showtime.
EDIT:
I took drmpeg's idea and used Linux "head" utility to trim all after the first 10MB:
http://www.sendspace.com/file/q1hjgy
Be advised that the first 9 seconds or so is silence.
madshi
23rd December 2007, 10:18
another thing, got a question to the conversion of dts-hd ma tracks to flac: the rebuilt .evo with this track only has a size of 1,92GB (16-bit; ~2h30min movie length) for 'the pianist'. the converted flac has a size of 978mb in the end, thats actually reduction of more than 50%. Ive already seen this movie and therefore know that especially later in the movie there are lots of quite scenes with much silence, but could it still be that way that the size shrinks down that much?
It's a bit hard to say. However, DTS MA has the "problem" that there's always a 1.5Mbps core that eats bandwidth/space. And on top of that comes the lossless data. With lossless compression without such a core with a very silent / dialog oriented movie you can easily get lower than 1.5Mbps. I have to say that 1.92GB -> 978MB sounds quite extreme, but I guess it's possible. Does the FLAC file have the correct length and does it seems to play fine? If so, it's most probably correct.
madshi
23rd December 2007, 10:30
Here (http://forum.doom9.org/showthread.php?p=1005866#post1005866) there are some ideas. The recommended downmix is the Dolby ProLogic II
Thank you!!
Thunderbolt8
23rd December 2007, 15:02
It's a bit hard to say. However, DTS MA has the "problem" that there's always a 1.5Mbps core that eats bandwidth/space. And on top of that comes the lossless data. With lossless compression without such a core with a very silent / dialog oriented movie you can easily get lower than 1.5Mbps. I have to say that 1.92GB -> 978MB sounds quite extreme, but I guess it's possible. Does the FLAC file have the correct length and does it seems to play fine? If so, it's most probably correct.
it has the correct length and also play fine, so then I guess im lucky :P
rickardk
23rd December 2007, 15:18
I have a few simple command line tools for cutting files to create samples.
http://www.w6rz.net/head.zip
Creates a file from the first x bytes of a file.
head <infile> <outfile> <length>
head movie.evo clip.evo 50000000
************************************************
http://www.w6rz.net/tail.zip
Creates a file from the last x bytes of a file.
tail <infile> <outfile> <length>
tail movie.evo clip.evo 50000000
************************************************
http://www.w6rz.net/clip.zip
Creates a file of x bytes starting at y bytes into the file.
clip <infile> <outfile> <start offset> <length>
clip movie.evo clip.evo 1000000000 50000000
Ron
Thanks!
Samples of Godfellas and Kingdom of Heaven are coming today, not enough time for this yestersday.
Thunderbolt8
Ripping The Pianist right now. I will report filesize of flac when done. You used Sonic CinePlayer Decoder v4.3.0 right?
Thunderbolt8
23rd December 2007, 17:08
I used eac3to :P
i installed all these codecs back then when they were still needed for eac3to, dont know if they are also needed with the new versions. I just used the normal command line without any switch.
nautilus7
23rd December 2007, 17:40
For dts (all kinds) sonic is the default-best quality decoder. So... if you have it installed, you used it.
You can type:
eac3to -test
to test the decoders/filters/splitters.
rickardk
23rd December 2007, 19:58
it has the correct length and also play fine, so then I guess im lucky :P
The DTS-HD MA track from The Pianist is 1.87 GB (EU release). The FLAC created with eac3to is 978 MB (1*025*558*426 byte). Length 2h28m.
Thunderbolt8
23rd December 2007, 20:24
almost same for me, length of mine is 1.025.559.456 Bytes :P
calinb
23rd December 2007, 20:37
10MB LPCM audio sample:
http://www.sendspace.com/file/q1hjgy
I trimmed all but the start of the large sample with the Linux "head" utility. This sample plays in Nero Showtime but eac3to fails to produce a playable file, as also reported by shanghai2004. The first 9 seconds is silence.
Chupacabras
23rd December 2007, 20:40
Possibly the DTS file is beginning in the middle of a DTS frame. eac3to only accepts DTS files which begin with a full DTS frame. Please try running the DTS file through delaycut. Afterwards eac3to should be able to handle the file just fine.
Thanks for advice.
delaycut processed source file, but showed many errors:
...
Time 00:00:02.110; Frame#= 199. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:02.132; Frame#= 201. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Too Many Errors. Stop Logging.
Number of written frames = 112737
Number of Errors= 112743
Final (fixed) file is half the original size (original is 571MB, fixed is 216MB). Is that normal?
Then I tryed eac3to with this fixed audio, it wrote this:
X:\eac3to>eac3to.exe "X:\audio_fixed.dts" "X:\audio_fixed.ac3" -448 -sonic
DTS, 5.1 channels, 0:20:07, 24 bits, 1536kbit/s, 48khz
Decoding with DirectShow (Sonic Audio Decoder)...
The DirectShow audio decoder didn't accept the input stream.
nautilus7
23rd December 2007, 20:53
Your dts file is f@cked up. Try demuxing the file again, maybe using a different program.
Chupacabras
23rd December 2007, 21:18
I tryed these:
mencoder
projectx (demuxes only video)
dgindex (throws error)
tsremux (throws error)
I don't know what else could I try...
(unfortunately I don't have original disc, file was downloaded)
nautilus7
23rd December 2007, 21:30
I am not sure, but i think xport can demux .ts files. Try it.
TripleH
23rd December 2007, 22:05
A little off-topic - something strange about Nero Audio Decoder 2 and Blu-ray Disc Dolby TrueHD audio tracks.
I built the following graph with graphedit:
File source (BD m2ts file) ---> Nero Splitter ---> Nero Audio Decoder 2 ---> Renderer.
The graph plays fine, but when I go to the Nero Audio Decoder 2 settings it reports that the bitrate is 640kbps (so I guess it basically gets the DD core).
Is this a mistake or is it really plays the DD core instead of TrueHD audio ?
Thanks.
Edit: I think the problem is even worse.
I took a look at two BD movies with Dolby TrueHD track using TSRemux and it recognized all of the audio streams, including the TrueHD track.
But in Nero splitter and Haali it only shows 4 audio tracks, where there are five actually, so this makes me think that the problem is the splitter.
Which splitter can recognize Dolby TrueHD tracks ?
nautilus7
23rd December 2007, 22:18
Without really know how to help you... What do want to do?
Thunderbolt8
24th December 2007, 04:39
I am not sure, but i think xport can demux .ts files. Try it.
yes, it definately can. just leave out the -h option, which is for blu-ray .m2ts files
madshi
24th December 2007, 10:20
10MB LPCM audio sample:
http://www.sendspace.com/file/q1hjgy
I trimmed all but the start of the large sample with the Linux "head" utility. This sample plays in Nero Showtime but eac3to fails to produce a playable file, as also reported by shanghai2004. The first 9 seconds is silence.
Thanks. LPCM demuxing will be fixed in the next build. I found out that the LPCM headers differ between EVO and VOB. That's why demuxing didn't work: The current eac3to version expects VOB LPCM headers! Doh...
madshi
24th December 2007, 10:21
Thanks for advice.
delaycut processed source file, but showed many errors:
Final (fixed) file is half the original size (original is 571MB, fixed is 216MB). Is that normal?
Ah well, delaycut probably just removed all the DTS-HD information. Delaycut doesn't fully support DTS-HD. But still, decoding should work now.
Then I tryed eac3to with this fixed audio, it wrote this:
X:\eac3to>eac3to.exe "X:\audio_fixed.dts" "X:\audio_fixed.ac3" -448 -sonic
DTS, 5.1 channels, 0:20:07, 24 bits, 1536kbit/s, 48khz
Decoding with DirectShow (Sonic Audio Decoder)...
The DirectShow audio decoder didn't accept the input stream.
Try "eac3to -test" to check whether the Sonic decoder is working correctly on your PC.
madshi
24th December 2007, 10:22
unfortunately I don't have original disc, file was downloaded
In that case I can't help you further since Doom9 is not about pirating but about free rights with the content you legally own. See forum rule 6.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.