View Full Version : eac3to - audio conversion tool
laserfan
10th March 2008, 03:55
Which version of the hd dvd do you have? The french one? If this is the one, i will be able to report back in a days (maybe on Thursday).
EDIT: Thunderbolt8 caught me. So the french is working.No, mine is US version. I know I tried joining with eac3to, then w/offsetpts before eac3to, and also evodemux, but I can't recall if I tried offsetpts and then evodemux to join.
But I thought I tried every conceivable combo. :(
new2doom
10th March 2008, 06:28
Madshi, I saw a post about this same issue back in November, but I have not found any solution posted. The problem arises trying to convert an older DTS-ES file to any format.
eac3to v2.30
"E:\Tools\eac3to\eac3to.exe" "E:\movie\audio.DTS" "E:\movie\audio.wavs"
DTS-ES, 6.1 channels, 2:35:29, 24 bits, 768kbit/s, 48khz
The DTS-ES information is stored in an outdated format.
Correcting DTS-ES information...
Decoding with DirectShow (Sonic Audio Decoder)...
DirectShow reports 5.1 channels, 24 bits, 48khz
Writing WAVs...
The channel modder was started with incorrect parameters.
Eac3to does not actually write any output files. I have tried sonic, nero and Libav filters without success.
madshi
10th March 2008, 08:18
Madshi, I saw a post about this same issue back in November, but I have not found any solution posted. The problem arises trying to convert an older DTS-ES file to any format.
eac3to v2.30
"E:\Tools\eac3to\eac3to.exe" "E:\movie\audio.DTS" "E:\movie\audio.wavs"
DTS-ES, 6.1 channels, 2:35:29, 24 bits, 768kbit/s, 48khz
The DTS-ES information is stored in an outdated format.
Correcting DTS-ES information...
Decoding with DirectShow (Sonic Audio Decoder)...
DirectShow reports 5.1 channels, 24 bits, 48khz
Writing WAVs...
The channel modder was started with incorrect parameters.
Eac3to does not actually write any output files. I have tried sonic, nero and Libav filters without success.
nero and libav should handle the file fine. If those two really don't work, could you please upload a little sample for me? 5MB should probably be enough, I guess.
azad
10th March 2008, 11:38
@madshi
Could you please put "-stripPulldown" back in service? :D
It worked very well for me, using vc1conv gives me always the message "The Video is larger than 1MB" and vc1conv quits back to commandline.
Does anybody have the same problem with vc1conv? :confused:
rickardk
10th March 2008, 14:40
Great work madshi!!
Flyboys and Transporter 2 remuxes plays perfect.
But still can't get enron to work. Gaps still reported.
I use "eac3to enron.evo 1: enron.mkv -24p"
madshi
10th March 2008, 14:44
Could you please put "-stripPulldown" back in service? :D
It worked very well for me, using vc1conv gives me always the message "The Video is larger than 1MB" and vc1conv quits back to commandline.
Ok, I'll put it back in.
But still can't get enron to work. Gaps still reported.
I use "eac3to enron.evo 1: enron.mkv -24p"
Strange, it worked in my test with the sample you sent me. Can you reproduce the problem with that sample? Or only with the full movie?
rickardk
10th March 2008, 14:54
Sorry, sorry...
It did work when just using video (actually had audio conversion going despite that I wrote that it was just video...old habit I guess)
Thanks again!!
madshi
10th March 2008, 15:00
Sorry, sorry...
It did work when just using video (actually had audio conversion going despite that I wrote that it was just video...old habit I guess)
Hmmmm... It should also work when doing video + audio. Does it not work there? Also with the "-24p" switch does mkvtoolnix muxing of the audio tracks work correctly now?
Jaja1
10th March 2008, 15:00
No longer gaps reported here with Enron with v2.30. However, it remains stuttery as hell. Audio is in sync though.
And does the -24p option means 23.97p?
madshi
10th March 2008, 15:07
No longer gaps reported here with Enron with v2.30. However, it remains stuttery as hell.
Make sure you delete the "gaps" file!
And does the -24p option means 23.97p?
No, it means 24/1.001 = 23,976023976023976023976023976024. :D
(However, if the original is 30.000Hz, then "-24p" switches that to 24.000Hz.)
BlackJack1
10th March 2008, 15:11
One simple question:
how you put long filenames and strings in CMD window? what is the smartest way to do it?
Thunderbolt8
10th March 2008, 15:19
The problem with this is that the movie is encoded in "interlaced mode" in the beginning of the TS file, but then suddenly switches to "progressive mode" after a few milliseconds. eac3to currently cannot handle this. Maybe I'll add support for that in a future version if it's really needed. For now you can use either mkvmerge or you could try removing the first few milliseconds of the TS file. That should make it work with eac3to, too.
can anyone recommend a good and reliable mpeg2 .ts cutter for this? I only know h264ts_cutter which doesnt work for mpeg2 files.
Jaja1
10th March 2008, 15:19
Make sure you delete the "gaps" file!Duh ..... okay now it reports gaps. But after the second pass there still is a lot of judder.
No, it means 24/1.001 = 23,976023976023976023976023976024. :D
LOL. Are you sure about the number of decimals?
Thunderbolt8
10th March 2008, 15:20
go to 'calc' and type 24 / 1.001 and see whats the result ;)
Jaja1
10th March 2008, 15:20
One simple question:
how you put long filenames and strings in CMD window? what is the smartest way to do it?Just drag them from the folder to the cmd line.
BlackJack1
10th March 2008, 15:30
Just drag them from the folder to the cmd line.
Thank you :)
It works...
nautilus7
10th March 2008, 15:36
I am speechless!! :eek::eek::eek:
MKVtoolnix with DTS-HD support! (http://forum.doom9.org/showpost.php?p=1110772&postcount=492)
Jaja1
10th March 2008, 15:43
go to 'calc' and type 24 / 1.001 and see whats the result ;)Aha, that result is wrong. In fact 24/1.001 is a recurring fraction with a period of 6 digits. To be precise the digits 023976. So to implement 24/1.001 in eac3to is not the trivial task it appears to be at first sight ;).
BlackJack1
10th March 2008, 15:44
Yeah... it works..... but:
eac3to v2.20
"C:\Program Files\eac3to\eac3to.exe" S:\HD\Letters.from.Iwo.Jima.2006.flac N:\HD\Letters.from.Iwo.Jima.2006.dts -1536
FLAC, 5.1 channels, 2:20:37, 16 bits, 48khz
Decoding FLAC...
Writing WAVs...
Creating/writing file "N:\HD\Letters.from.Iwo.Jima.2006.SL.wav"...
Creating/writing file "N:\HD\Letters.from.Iwo.Jima.2006.LFE.wav"...
Creating/writing file "N:\HD\Letters.from.Iwo.Jima.2006.R.wav"...
Creating/writing file "N:\HD\Letters.from.Iwo.Jima.2006.L.wav"...
Creating/writing file "N:\HD\Letters.from.Iwo.Jima.2006.SR.wav"...
Creating/writing file "N:\HD\Letters.from.Iwo.Jima.2006.C.wav"...
Found Surcode DTS Encoder version 1.0.23.0.
Surcode sais/asks: "At least one valid source file must be specified to encode.".
Closing Surcode...
Pressing the Surcode "Encode" button didn't seem to work...
Please advice.
nautilus7
10th March 2008, 15:51
Surcode doesn't like long filenames/paths. Change them and you 'll be ok (assuming -test is working).
rickardk
10th March 2008, 15:51
madshi
are you sure that Enron is 24p?
The raw avc stream played pack with libav or coreavc is reported as 29.97fps
Also the mkv created with eac3to (with -24p switch) is reported as 29.97fps
madshi
10th March 2008, 15:54
can anyone recommend a good and reliable mpeg2 .ts cutter for this? I only know h264ts_cutter which doesnt work for mpeg2 files.
I'm using TsSplitter. It's a fairly simple tool with no preview. It can just split a TS file into multiple parts. I'm usually cutting a big TS file into 128MB pieces. Then I'm cutting the first piece into 8MB pieces. You can go as low as you want. Finally you can simply delete the first few pieces. In order to put everything back up together you can select all files in the Explorer and drag them to the TsSplitter screen. Press "sort", then "join" and you'll have your one big TS file back.
Another alternative would be to use a hexeditor to cut some bytes from the beginning of the stream. For TS files use a multiply of 188 bytes. E.g. try removing ca. 1MB. Maybe that fixes the problem.
I believe VideoRedo can also do the cutting directly.
Duh ..... okay now it reports gaps. But after the second pass there still is a lot of judder.
Delete the gaps file and the mkv and do it again - but this time using the "-24p" switch.
Yeah... it works..... but:
Surcode doesn't like too long filenames. Make them shorter, then it will probably work.
madshi
10th March 2008, 15:58
are you sure that Enron is 24p?
No, I think it's rather 48i... :confused:
The raw avc stream played pack with libav or coreavc is reported as 29.97fps
See? The Sonic HD Demuxer (which was probably used by your raw stream playing graph) is confused in the same way as eac3to is. Both see this movie as being 29.97fps. But actually the movie is playing too fast when muxed this way.
Just compare the runtime of the demuxed audio streams to the muxed MKV runtime. You'll see that with 29.97fps muxing the video runtime is much shorter than the audio runtime. With 23.976fps video and audio runtime match.
Also the mkv created with eac3to (with -24p switch) is reported as 29.97fps
This might be a bug. What does mkvinfo say? It should say 23.976. If it doesn't then it is a bug.
Thunderbolt8
10th March 2008, 16:00
I also thought of tssplitter first, but since it apparently can only split in even parts ill have to split the first part multiple times again, like you said, which I actually would like to avoid because somehow I dont trust all that splitting and rejoining not that much. but I guess it works flawlessly, there isnt anything like funny timestamps which could occur at the split or join points or other problems like with .m2ts files (e.g. sync problems etc)?
rickardk
10th March 2008, 16:06
This might be a bug. What does mkvinfo say? It should say 23.976. If it doesn't then it is a bug.
mkvinfo:
"default duration: 33.367ms (29.970 fps for a video track) at 4457"
But you are correct. It does play at the correct speed (23.976fps).
madshi
10th March 2008, 16:11
I also thought of tssplitter first, but since it apparently can only split in even parts ill have to split the first part multiple times again, like you said, which I actually would like to avoid because somehow I dont trust all that splitting and rejoining not that much. but I guess it works flawlessly, there isnt anything like funny timestamps which could occur at the split or join points or other problems like with .m2ts files (e.g. sync problems etc)?
TsSplitter is really "stupid" in a good way. It cuts and joins without the slightest changes to the data. You can even join e.g. PCM audio tracks with TsSplitter... ;)
Don't worry about timestamps. There's nothing that can brake. Of course you should make a copy of the original file, just in case something goes (unexpectedly) wrong. E.g. you can mess things up if you forget to press the "sort" button!
madshi
10th March 2008, 16:12
mkvinfo:
"default duration: 33.367ms (29.970 fps for a video track) at 4457"
Ok, that's an eac3to bug.
Jaja1
10th March 2008, 16:49
Enron works fine now with -24p. Great.
Just tried Jimi Hendrix at Monterey. Evodemux reports 24/1.001, whereas the mkv made with eac3to is 29,970 fps according to mkvinfo.
madshi
10th March 2008, 16:53
Live concerts are usually natively interlaced (29.97) so I think eac3to is behaving correctly. FWIW, I believe EvoDemux always shows 24/1.001, no matter whether video is really 24/1.001 or 30/1.001. I don't think EvoDemux' framerate detection is working correctly.
Jaja1
10th March 2008, 17:00
Hendrix is shot at film, why use anything else but 24fps for the conversion to video :confused:
madshi
10th March 2008, 17:01
Don't know. Does it play correctly and is audio in sync? Then obviously 29.97 is correct.
nurbs
10th March 2008, 17:12
Does eac3to write audio delays to the log when they are applied? When I encode a track for example
eac3to a.evo 2: stdout.wav -10ms
I am not sure if the delay is actually applied.
Also a feature request:
It would be helpful if eac3to displayed the bitdepth of the audio tracks if you opened a file.
madshi
10th March 2008, 17:21
Does eac3to write audio delays to the log when they are applied?
eac3to doesn't write to the log which delay exactly is applied. But eac3to should write to the log that "a" delay was applied. Also you can see the exact delay in the log either from the command line or from the list of tracks.
When I encode a track for example
eac3to a.evo 2: stdout.wav -10ms
I am not sure if the delay is actually applied.
Also a feature request:
It would be helpful if eac3to displayed the bitdepth of the audio tracks if you opened a file.
When eac3to is asked to output data to stdout there's no proper way for eac3to to write anything to screen. That's just the way it is. However, you can check out log.txt. You should find the bitdepth in there.
nurbs
10th March 2008, 17:31
What I meant in the feature request was when you open a file
eac3to a.evo
It lists all the audio and video tracks with channels, bitrate and sampling rate, but it doesn't display the bitdepth of the audio tracks. I was wondering if that could be added so that I know when I have to apply -down16.
Great programm by the way.
madshi
10th March 2008, 17:43
What I meant in the feature request was when you open a file
eac3to a.evo
It lists all the audio and video tracks with channels, bitrate and sampling rate, but it doesn't display the bitdepth of the audio tracks.
It does!! For those tracks where the information is available (PCM, MLP, DTS). For AC3, E-AC3 and TrueHD tracks there is not such a thing as a fixed bitdepth.
nurbs
10th March 2008, 17:50
Ah, I didn't know it depends on the format. Does it hurt quality if I use the -down16 switch with tracks that are already 16bit?
madshi
10th March 2008, 18:12
Does it hurt quality if I use the -down16 switch with tracks that are already 16bit?
Nope.
Thunderbolt8
10th March 2008, 18:59
I remuxed jimi already and I can say its indeed 1080i and 29.97 fps
azad
10th March 2008, 22:55
Ok, I'll put it back in.
Great news! Thanx alot and keep up the good work!
rickardk
11th March 2008, 21:20
Sum Of All Fears H264:
The mkv created by eac3to plays perfect.
But after using mkvmerge to add flac (from TrueHD) the resulting file will not start. If I skip a second in WMP (by clicking the timeline) it will start.
If I split the mkv (tried to cut the first second) it will still not start.
The length of a mkv is usually shown when opening a mkv in WMP. But not with this one.
If I mux video with mkvmerge everything works.
I tried to cut samples but I can't reproduce. Only way to reproduce seems to be to mux the whole movie.
madshi
11th March 2008, 21:24
@rickard, you reported a similar problem before with Enron (before the -24p switch was there). You reported that the MKV didn't start for you when you added audio. I was not able to reproduce that. I guess when you sent me your MKV, it would also play for me. Have you tried a different media player as a test? Have you tried GraphEdit? Try connecting only video in GraphEdit. And only audio.
rickardk
11th March 2008, 21:30
@rickard, you reported a similar problem before with Enron (before the -24p switch was there). You reported that the MKV didn't start for you when you added audio. I was not able to reproduce that. I guess when you sent me your MKV, it would also play for me. Have you tried a different media player as a test? Have you tried GraphEdit? Try connecting only video in GraphEdit. And only audio.
Yes! Tried with MPC and WMP on a diffrent computer. And as I think I wrote back then. It did start on that sample I sent! BUT not when remuxing the whole movie.
Video and audio plays perfect on their own. But not when merged.
BlackJack1
11th March 2008, 21:31
I'd like to extract DTS 5.1 track 1536kbps already existing in EVO file. What command line must I use:
XXX1.evo+XXX2.evo 4: audio.dts
if 4: is no. of dts track?
Will I receive full DTS 1536k without double decoding and encoding process?
And second: the same situation but want to have the same full DTS but from TrueHD track. Do I need first to make flac and then DTS or straight *.dts track...?
Thanks in advance.
Regards.
madshi
11th March 2008, 21:39
Yes! Tried with MPC and WMP on a diffrent computer. And as I think I wrote back then. It did start on that sample I sent! BUT not when remuxing the whole movie.
Ok. So you said the problem still exists when you split the MKV file? Can you upload the very first split?
madshi
11th March 2008, 21:42
I'd like to extract DTS 5.1 track 1536kbps already existing in EVO file. What command line must I use:
XXX1.evo+XXX2.evo 4: audio.dts
if 4: is no. of dts track?
Will I receive full DTS 1536k without double decoding and encoding process?
Correct. And yes. The DTS track will just be extract without any decoding/encoding going on.
And second: the same situation but want to have the same full DTS but from TrueHD track. Do I need first to make flac and then DTS or straight *.dts track...?
There's no DTS track inside of an EVO TrueHD track. So your only chance would be to decode the TrueHD track and encode it to DTS. The DTS encoding can be done with Surcode, but that software is not cheap. If you have Surcode, eac3to can do what you want in one step. Just use the same command line as for a DTS EVO track. This will only work if you have Surcode installed properly.
rickardk
11th March 2008, 21:43
Ok. So you said the problem still exists when you split the MKV file? Can you upload the very first split?
If I split the file the very first split will play...The rest will not play. Should I still upload?
madshi
12th March 2008, 08:23
If I split the file the very first split will play...The rest will not play. Should I still upload?
No. What happens if you split the movie into two parts: (1) the whole movie except the last second (2) the last second. Does the first part play then and the last part not? Maybe the problem is in the very last part of the movie?
Skinleech
12th March 2008, 11:27
I have another issue for you, but unsure if it is related to eac3to or not. I have a BD sourced file that I want to put into an mkv container.
It's mpeg2 with lcpm audio, so I've demuxed the .m2ts with xport, used eac3to 2.26 to convert the lpcm to flac, and them used mkvmerge to create the mkv. I also tried eac3to to create the mkv, then added the newly created flac in afterwards.
The file seems to be created successfully using both methods, but I get no audio when I try to play the file in MPC HC. Dscaler is loaded as the mpeg2 decoder, madflac loads as the flac decoder, and haali splitter picks up the audio & video streams, but nothing is sent to the speakers, and the audio icon in MPC HC is greyed out as you'd expect in a video only file.
The flac file plays fine by itself.
Any thoughts? Thanks.
shambles
12th March 2008, 18:17
the video muxing frame rate change is a bit odd.. using -slowdown on a 25fps file and it seems to play fine at 24/1.001 and is synced to the the 24/1.001 audio file but mpc hc properties, haali splitter, ffdshow and evr all still report it as 25fps
madshi
12th March 2008, 20:42
I have another issue for you, but unsure if it is related to eac3to or not. I have a BD sourced file that I want to put into an mkv container.
It's mpeg2 with lcpm audio, so I've demuxed the .m2ts with xport, used eac3to 2.26 to convert the lpcm to flac, and them used mkvmerge to create the mkv. I also tried eac3to to create the mkv, then added the newly created flac in afterwards.
The file seems to be created successfully using both methods, but I get no audio when I try to play the file in MPC HC. Dscaler is loaded as the mpeg2 decoder, madflac loads as the flac decoder, and haali splitter picks up the audio & video streams, but nothing is sent to the speakers, and the audio icon in MPC HC is greyed out as you'd expect in a video only file.
The flac file plays fine by itself.
Any thoughts? Thanks.
Hmmmmm... Does this happen only with this specific MPEG2/FLAC combination? Do you have another MPEG2/FLAC movie you could cross check? I'm not sure if this is a problem with madFlac or maybe with the Haali Media Splitter?
You could try GraphEdit. Only connect audio there from Haali Media Splitter to madFlac to DirectSound renderer (or any other audio renderer). Does it play that way?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.