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

BLKMGK
8th April 2008, 22:11
You're right nautilus. My "I Am Legend.mkv" is 26,154,776 KB and when I checked it out before I just watched part of the beginning and then dragged the slider towards the end and watched it. I bet if I move the slider to the middle, I'll see the ending credits of the theatrical version, followed by the beginning of the alternate version.

You're right though, I can't believe they put 2 full version of the movie on there. What a waste!

I wouldn't be surprised if they had originally intended to only release on HD-DVD and then just did BD. <shrug> I've got the HD-DVD version on order and it ought to be here any day now so we'll see what that looks like. Maybe they were just lazy? That is pretty funny though, I'll bet we see lots of weird things as time goes on. BD's seamless stuff is kewl but it sure can be a pain when it comes to moving the media. I keep hoping that a DVDShrink type app will come along and preserve the menus etc. in a format that can be played back by something reasonable. One can dream right?:rolleyes:

DoomBot
9th April 2008, 04:31
Why does my encoded lpcm to dts file have a buzzing noise i hardly hear the audio?

bmnot
9th April 2008, 08:09
It is possible to extract the 2 channel mix from eac3 or TrueHD streams? I know you can downmix, but wouldn't the internal 2.0 mix be superior? Not sure of the technical details, but I noticed that when I play TrueHD tracks in PowerDVD with the 2 speaker settings, the track is played at 2.0. Setting PowerDVD to 6 speakers, then it goes to 5.1.

nautilus7
9th April 2008, 10:31
Why does my encoded lpcm to dts file have a buzzing noise i hardly hear the audio?
Use xport to demux the pcm audio. Then try again. If the problem persists post your log and maybe a sample. Maybe eac3to doesn't
detect the pcm parameters correctly.

nautilus7
9th April 2008, 10:35
It is possible to extract the 2 channel mix from eac3 or TrueHD streams? I know you can downmix, but wouldn't the internal 2.0 mix be superior? Not sure of the technical details, but I noticed that when I play TrueHD tracks in PowerDVD with the 2 speaker settings, the track is played at 2.0. Setting PowerDVD to 6 speakers, then it goes to 5.1.There isn't a 2.0 mix. PowerDVD does it's own mix. All i 've seen are instructions on how the player to mix the 5.1 to 2.0, but that's in dvd-audio mlp tracks. Don't know if the same thing applies to hd audio.

bmnot
9th April 2008, 11:31
OK, I got the idea that there is a 2.0 mix from the TrueHD whitepaper: http://www.dolby.com/assets/pdf/tech_library/DPlus_TrueHD_whitepaper.pdf

Says 5.1 tracks are 2.0 mix + 3.1 extension
and 7.1 are 2.0 + 3.1 + 2.0

nautilus7
9th April 2008, 11:54
Well, i don't know where that mentioned in the pdf refers to... but if there was something like a 2.0 core in truehd tracks, madshi would have known. He deals with such stream for 1 year now. :p

I know for sure (madshi told that here) that ALL 7.1 E-AC3 tracks have a 5.1 core inside. That core is extracted/decoded with nero decoder and current libav version. Future libav version will decode full 7.1 E-AC3 streams.

Here's what madshi said:

"Normal" E-AC3 tracks have one E-AC3 frame per audio frame. 7.1 E-AC3 tracks have two E-AC3 frames per audio frame. The first E-AC3 frame is a conventional 5.1 E-AC3 core. The 2nd E-AC3 frame is an E-AC3 frame with 4 channels in it. Two of those channels replace the surround channels of the 5.1 core. The other two channels are the back surround channels. The surround channels of the 5.1 core are totally dropped when a decoder decodes the 7.1 extension. The surround channels of the core contain a downmix of the surround and back surround channels.

shambles
9th April 2008, 12:09
truehd does work in layers apparently.. here's a post (http://www.avsforum.com/avs-vb/showthread.php?p=12046471#post12046471) on avsforum by amirm. don't know about eac3 tho.

nautilus7
9th April 2008, 12:16
I wasn't aware of that. :o I am quite sure that this hasn't mentioned here, though. I have been following this thread since July 2007. :eek:

the_provider
9th April 2008, 14:01
Do you use the keymakers gui? It has a bug and it doesn't put a space between the output filename and the -448. Switch to the alternate gui (eac3to and more gui - see separate thread in the audio section) or use the cmd version.

Best decoder for dts is sonic. If you have it let it decode instead of selecting any other. Don't use the -keepdialnorm option. There's no point.

Greetings and thank you for reply.

As advised I dumped Keymakers GUI although the script have 2 spaces between the output filename and bitrate and the same between the bitrate and filter(...). Tried eac3to and more gui but something must have gone wrong because it run for more than 2 hours until I stopped it and, you guessed, I dumped it too.

SO I gave a try to the CMD version. SO I tried the following and you can see the result, too:
C:\Program Files\eac3to\eac3to "C:\HEART\HEART T01 DELAY 0ms.dts" "C:\HEART\HEART T01 DELAY 0ms.ac3" -378 -sonic
Access is denied.
with a pop-up stating that:
C:\Program Files\eac3to>eac3to.exe is not a Win32 valid application.
Because
C:\Program Files\eac3to>eac3to.exe returns the same warning I guess that something else is wrong...because the parsing of the script stopes at the very first instruction, eac3to.exe...So?

Any idea?
Thank you for the sonic tip.

Best regards.

nautilus7
9th April 2008, 14:19
One space is the right thing, obviously. I've read that keymaker's gui doesn't put any space, not 2. Sonic switch isn't necessary for dts, cause it's the default decoder for dts(-hd).

Where is the eac3to.exe located? Is it in C:\Program Files\eac3to ???
I don't know what's wrong. You can't even run just eac3to without any input. :eek:

the_provider
9th April 2008, 15:15
One space is the right thing. I've read that keymaker's gui doesn't put any space, not 2. Sonic switch isn't necessary for dts, cause it's the default decoder for dts(-hd).

Where is the eac3to.exe located? Is it in C:\Program Files\eac3to ???
I don't know what's wrong. You can't even run just eac3to without any input. :eek:

Greetings and thank you again.

There are several problems:
1. few minutes ago, taking a closer look at the subdirectory I noticed that eac3to.exe has the size equal to 0B!!!
For sure I didn't erased it but yesterday It must have happened at least once more: after the first no-parameters conversion I noticed that the next attempts returns the same errors as today. I imagined that some file must have been screwed up and I simply unzip again the package in the same location/directory without bothering to search what went wrong.
So today I simply unzip the package once more and voilla(as in "It works!")!
2. Sonic is not working anymore probably because I installed ffdshow codec package yesterday. My mistake...
3. A good news: libav works and probably I will not know the difference...
4. The space expected at the end of the destination file is really missing...

In conclusion: CMD version rules! (Anyway I had everything solved from the point of view of conversion with dts2ac3/bepipe/aften from yesterday...)

All the best and thank you once more for patience and time taken to reply, I think we can call the case closed.

wildchild22
9th April 2008, 19:19
Okay I am having problems with beowulf hd-dvd. I have the video and audio demuxed. I am having touble converting the dolby digital plus stream to lpcm.

I have converted it to flac dts ac3 and pcm and lpcm
eac3to beowulf.eac3 beowulf.( using this after the .
flac ac3 -640 dts pcm and lpcm)
the lpcm and pcm files are not recognized by any muxing tool.
I have tried converting the flac file using .pcm amd .lpcm and same results.


How do I make a compatible lpcm file btw the pcm and lpcm files are around 5 gigs in size and the original eac3 file is 1.5 gigs.

the pcm files when played back sounds like it is encoded like dts played back on a cd player.

Do I need to use any other program to do this conversion.

nautilus7
9th April 2008, 19:33
I think you 're a bit confused.

PCM and LinearPCM is the same thing. Or at lest the same for eac3to. It's uncompressed audio while AC3 is compressed. That explains the size difference.

To decode E-AC3 to PCM you jus have to type:

eac3to input.eac3 output.pcm

If this returns any kind of message in eac3to, post the log.

What programs did you try to mux the pcm file and in what container? What is your ultimate goal?

wildchild22
9th April 2008, 20:45
Yeah their are no errors in the file made by eac3to it makes the file fine. tsremuxer and manzanita do not recognize the
stream (pcm file made by eac3to) it does recognize the dts file and ac3 file so I know the demuxed file is fine.


My ultimate goal is to make a file that is lossless in both audio and video from an hd-dvd and playable by everything not just a pc. that is why I dont want to keep it in flac.

What should I use to mux in the pcm file and avc h2.64 file into a blu-ray stream. Tsremuxer doesnt work with the pcm file.

nautilus7
9th April 2008, 20:54
It's has to do with the channel order i think. Blu-ray pcm has different channel order the the usual one.

You can remap channels by typing:

eac3to your.initial.pcm your.final.pcm -0,1,2,3,4,5

Where you have to put these numbers in the right order (which i don't know what is the right one for blu-ray). Sorry!

wildchild22
9th April 2008, 21:01
Okay last thing. Why cant I play back the pcm file?

I can play back the ac3 and dts and flac but the pcm file will not playback using nero showtime, windows media player 11, or vlc. It sounds like a digitaly encoded file.
I am using the newest version of eac3to.

Also should eac3to swap channels and change endian when converting the dolby digital plus file into lpcm

nautilus7
9th April 2008, 21:12
(i changed my previous post, make sure you read it)

Okay last thing. Why cant I play back the pcm file?You can't playback it, i think, because it needs to be put into a container, like wav, m2ts, ts etc.

Also should eac3to swap channels and change endian when converting the dolby digital plus file into lpcmIf it says it does, then it should...:p

Jong
9th April 2008, 23:06
@Madshi,

Hi. I have written a guide for HD-DVD -> mkv on the Slysoft forum that leans heavily on your great tool!

http://forum.slysoft.com/showthread.php?t=15543

The guide works, I believe(!), typos excepted, but:

1) I am not happy with how I get the full stream list from the parsed EVO. Basically I suggest people start a demux of the main movie to get the stream list then break it with ctrl-c, just so they can see all the stream numbers. Then they need to delete the files that had started being created and type a new command line extracting just the streams they want. It is hardly elegant!

I know I could say to type the whole file path to the evo for each title they wish to extract, but that also seems messy. Is there already a way to type something like "eac3to f:\ 1)" or "eac3to f:\ 1) -list" and have that just list the streams in that title with ID#s without doing any demuxing? If not, could there be?!

2) I am not clear how you find subtitle streams. Somewhere in this mammoth thread you talk about parsing the first 300MB for subtitles. My concern is that "Forced" subtitles, such as those that handle conversations in a language other than that of the main soundtrack may only have a few lines in them and these may not be until WELL into the film. In an extreme example there may be just one conversation 5 minutes before the end. EVO Demux is fine with this as it uses the xpl info to list the streams. Is Eac3to also fine, if there is an XPL file? Or will it fail to find the stream if it does not start near the beginning? If the latter, I think this may be a serious problem with subtitle handling.

3) One further question, if I may, that probably should be in the MadFLAC thread, but since it is all about the same guide I thought I'd post here. I currently suggest installing ffdshow for FLAC decoding. I know that MadFLAC can now also decode FLAC in a Matroska container. Is this just so MadFLAC is able to offer a full solution to FLAC decoding or do you feel you have a superior FLAC decoder for use in mkv playback? I know you may find this question amusing - "of course mine is better!" - but I did read in the MadFLAC thread that you doubted you would be able to offer anything over and above what ffdshow offers. Of course if you wish me to repost this in the MadFLAC thread, just say and I will do so!

Thanks for your help.

Jon

boykster
9th April 2008, 23:31
Hi Jong,

You CAN get the track listing for the title set by omitting the output file

eac3to z:\ n)

z = HD-DVD drive or path to files
n = titlenum you want

without having to specify an output file and using CTRL+C to break the process.

Jong
9th April 2008, 23:35
Thanks! I knew I should have actually tried that. In fact I thought I had, but there you go! Doh!

nautilus7
9th April 2008, 23:39
For your 1st question...

If you run eac3to and give it a hd dvd folder (either main or hvdvd_ts) it would list all titles found in the xpl file. It is very easy to get an idea of what's into the hd dvd. After that you can "add" a title # in the command and get more detail description of the contents. E.g:

eac3to "G:\Galapagos HD DVD 1080p VC-1 DD 2.0"
------------------------------------------------------------------------------
1) EPISODE1.EVO+EPISODE2_1.EVO+EPISODE2_2.EVO+EPISODE3.EVO, 2:26:44
"PlayAll"
- VC-1, 1080i (16:9)
- E-AC3, 2.0, 48khz

2) EPISODE1.EVO, 0:49:02
"Episode1"
- VC-1, 1080i (16:9)
- E-AC3, 2.0, 48khz

3) EPISODE2_1.EVO+EPISODE2_2.EVO, 0:48:55
"Episode2"
- VC-1, 1080i (16:9)
- E-AC3, 2.0, 48khz

4) EPISODE3.EVO, 0:48:47
"Episode3"
- VC-1, 1080i (16:9)
- E-AC3, 2.0, 48khz

5) PLANETEARTHTRL.EVO, 0:01:02
"Planet Earth Trailer"
- VC-1, 1080p (16:9)
- E-AC3, 2.0, 48khz

and then

eac3to "G:\Galapagos HD DVD 1080p VC-1 DD 2.0" 3)
------------------------------------------------------------------------------
EVO, 1 video track, 1 audio track, 1 subtitle track, 0:48:58
"Episode2"
1: Joined EVO file
2: Chapters, 6 chapters with names
3: VC-1, 1080i60 /1.001 (16:9)
4: AC3, 2.0 channels, 448kbit/s, 48khz, dialnorm: -27dB
5: Subtitle, English

Note that stream listing from xpl reading (1st case) isn't 100% reliable. To be sure you have to read the actual evo files (2nd case).

EDIT1: I was more detailed, therefore 2nd... :D

EDIT2: Since i started, i can't stop... :D

eac3to "G:\Galapagos HD DVD 1080p VC-1 DD 2.0" 3) 2: galapagos.ep2.chapters.txt 3: galapagos.ep2.mkv 4: galapagos.ep2.ac3 5: galapagos.ep2.sup
------------------------------------------------------------------------------
EVO, 1 video track, 1 audio track, 1 subtitle track, 0:48:58
"Episode2"
1: Joined EVO file
2: Chapters, 6 chapters with names
3: VC-1, 1080i60 /1.001 (16:9)
4: AC3, 2.0 channels, 448kbit/s, 48khz, dialnorm: -27dB
5: Subtitle, English
Creating file "galapagos.ep2.chapters.txt"...
Extracting primary video track...
Muxing video to Matroska...
Extracting audio track number 4...
Removing dialog normalization...
Extracting subtitle track number 5...
Creating file "galapagos.ep2.ac3"...
...
...
...

EDIT3: Put some colors to make it more beautiful and eye catching.

eac3to is great!!! No need to type any input files anymore. All being done automatically. And it's a command line program.

madshi you are my hero!!! :eek:

Jong
9th April 2008, 23:42
Tried it and it works, thanks. Is there any way to specify a path for the log file, rather than it going in the eac3to program directory? Small thing I know.

boykster
9th April 2008, 23:43
Your explanation was better, it had illustrations :)

Jong
10th April 2008, 00:00
Thanks to both of you. I was aware of the xpl generated listing and of the ability to extract without refering to the evo files, just not the ability to list the streams using "eac3to z:\ n)". I really did think I had tried that but clearly not! I have amended the guide.

I'd appreciate any comments/thoughts on points 2) and 3) above.

Cheers.

nautilus7
10th April 2008, 00:00
Your explanation was better, it had illustrations :)
Look again, i added more... :D

btw, galapagos hd dvd is weird. When i mux it to mkv the framerate is set (correct) to 29,97fps but both wmr9 & haali renderers try to playback it at 59,97fps, which results in too fast playback and dropped frames. Evr on the other hand deals correctly with it. Wtf?

In adition, ffdshow can't decode the video, but that's because it's interlaced and it's a limitation of the libav codec.

boykster
10th April 2008, 00:06
Look again, i added more... :D

btw, galapagos hd dvd is weird. When i mux it to mkv the framerate is set (correct) to 29,97fps but both wmr9 & haali renderers try to playback it at 59,97fps, which results in too fast playback and dropped frames. Evr on the other hand deals correctly with it. Wtf?

In adition, ffdshow can't decode the video, but that's because it's interlaced and it's a limitation of the libav codec.


Its interesting you posted that particular disc; I recently got the BluRay version of that disc and am having the devil of a time playing it back without stuttering or dropped frames, etc. It is also 1080i / 29.97 fps.

It plays back just fine as a BD disc using PowerDVD Ultra, but any other form, I just can't get smooth playback. I've muxed it into an mkv, m2ts, ts, etc.

This probably isn't the best thread to discuss that though :)

bmnot
10th April 2008, 02:44
You'll never get Galapagos running perfectly smooth:

If you want to see 60i done wrong, get the us release of Galapagos. 25p source has been converted with frame-blending to 60i. Just like the nasty pal-to-ntsc days (I tought we're rid of those days ). The sad thing is, they could have made it a perfect 50i instead. 50i is part of the Blu-Ray spec so there's noooo reason to make 25 frames into 30. I hope the uk release is 50i

Blue_MiSfit
10th April 2008, 02:50
Yeah. 1080i has to be deinterlaced for playback, and the "best" way to do that is to bob-deinterlace it - in other words separate the interlaced fields, interpolate them to full height, and output double frame rate (since 29.97i has 59.94 images per second due to the interlacing).

Doing this in real-time can be challenging for a decoder! You may get dropped frames / stuttering etc... Technically, the renderer handles all this stuff. EVR likely offloads it to your graphics card, since it can do a nice job. Haali Renderer _should_ also do this, but who knows. PowerDVD has its own system, which talks to EVR / VMR9. I assume, anyway :)

It's also important that the audio doesn't get played at 59.94!

Also,

ffdshow can't decode the video, but that's because it's interlaced and it's a limitation of the libav codec.

Yep. Hopefully the libav guys will gift that one on us eventually!

~MiSfit

boykster
10th April 2008, 03:06
Thanks for the input on Galap guys, I know it's OT, but it's been really bugging me the past week or so.

:thanks:

bullet_ballet
10th April 2008, 08:14
Is there a way to demux an audio stream without demuxing video and subtitles as well? Perhaps if I simply output in the same format the audio stream is encoded in, ie, by outputing ac3 track as output.ac3?

Jong
10th April 2008, 08:28
Yes, just use something like.

eac3to f:\ n) m: "d:\Moviepath\audiostream.ac3" {–libav} where "f:\" is the path to your drive/virtual drive
n) is the title and m: is the stream in that title you wish to convert and "Moviepath" is the working directory you wish to use. Add the -libav switch (without the curly brackets) if you do not have the Nero 7 decoder.

Maybe take a look at my new guide to HD-DVD conversion:

http://forum.slysoft.com/showthread.php?t=15543

bullet_ballet
10th April 2008, 09:13
Thank you very much, Jong. That is very helpful!

madshi
10th April 2008, 09:25
Okay, thanks for the explanation. I wonder then how standalone players work with EVO's. But that is another discussion.
Maybe they just guess better. Or maybe they make use of those MAP files. Not sure...

Are you therefore saying that even in the unlikely event, that you make your splitter available as DS filter, your splitter will have the same problems?
If I wrote a DS EVO splitter I'd add an option to ignore the video timestamps and play the stream back with straight 24/1.001 timestamps. That should solve any stuttering issues. However, there might be audio sync problems with some titles (should be extremely rare, though).

I got a request, could you make eac3to handle at least corrupt TV sources (.ts files)? I understand that it makes sense to improve clean support for disc sources, as a disc can be re-ripped if there should be an error. but in most TV sources theres always at least 1 video or audio error
I might do that sooner or later. But it's difficult. So it's rather down my priority list. BTW, my own TV recordings are totally clean in 99% of the cases. Don't know why you have so many damaged captures? But maybe that differs between different broadcasters/countries...

madshi, can you update your first post to provide examples of how to demux chapters and subtitles.
Changed one of the examples to include chapters and subtitles.

One thing I noticed that is different with M2TS files vs EVO is that when done eac3to isn't reporting a framecount.
Will be fixed in the next build.

I believe the frame count is only returned if your source is VC-1.
No. The framecount should be reported for every primary and secondary video track, regardless of the codec.

I converted Constantine's TrueHD to Flac, but the channel mapping is wrong when I playback through mplayer.
Hmmmmm... Are you sure that this is not a bug in mplayer? What happens if you convert the TrueHD track to another format, e.g. to AC3? Is the channel mapping then wrong, too?

Is it safe to join seamless branching titles by 'copy b method.. Will the future version of eac3to be able to mux the audio without gaps/overlaps on already joined files? Or should we wait with any kind of joining.
I'm not sure yet but I think eac3to will work better if you don't join the files manually with copy /b.

How come there is no sync issues with ''copy /b'' & tsRemux on seamless branching discs (i have made several titles like ratt, deja vu, cars, etc, with no playback problems)?
There are 2 possible reasons:
(1) Either the audio sync issues are so small that they are there but not really noticable.
(2) Or the problem doesn't occur because when joining the m2ts parts the timestamps are still in the container which tell the splitter how to keep audio and video in sync.

If it's (2) then I expect that you might see some (small) video stuttering at the join points. Maybe just a video frame shown twice or video speeding up a little for a few frames or something like that.

What happens if you demux audio and video and then join the demuxed files and mux them to MKV? Are there audio sync problems then? If so, it's (2) from above. If not, it's (1) from above.

madshi
10th April 2008, 09:45
Why does my encoded lpcm to dts file have a buzzing noise i hardly hear the audio?
Where did you get the LPCM file from? With which tool did you demux it? And how did you encode it to DTS? Did you use eac3to for the DTS encoding? If so, please post the eac3to log.

It is possible to extract the 2 channel mix from eac3 or TrueHD streams? I know you can downmix, but wouldn't the internal 2.0 mix be superior?
I don't think that the TrueHD stream format allows extracting of the 2 channel mix into a new TrueHD stream. At least I wouldn't know how. The decoder can decide to only decode 2 channels from the multi channel TrueHD stream and that will give you a good 2 channel downmix. This is currently not supported by eac3to, though.

Yeah their are no errors in the file made by eac3to it makes the file fine. tsremuxer and manzanita do not recognize the stream (pcm file made by eac3to) it does recognize the dts file and ac3 file so I know the demuxed file is fine.
I don't know what format TsRemuxer and Manzanita expect. You need to ask the TsRemuxer and Manzanita programmers which format they accept LPCM data in. Then I can tell how to create that format with eac3to.

Okay last thing. Why cant I play back the pcm file?
Because it's just the raw audio data without *any* information about the format of the data. So the media player doesn't know how to handle the file. The media player doesn't know how many channels are in the LPCM data or what bitdepth the data has. Information about this is stored outside of the LPCM data in the m2ts container.

2) I am not clear how you find subtitle streams. Somewhere in this mammoth thread you talk about parsing the first 300MB for subtitles. My concern is that "Forced" subtitles, such as those that handle conversations in a language other than that of the main soundtrack may only have a few lines in them and these may not be until WELL into the film. In an extreme example there may be just one conversation 5 minutes before the end. EVO Demux is fine with this as it uses the xpl info to list the streams. Is Eac3to also fine, if there is an XPL file? Or will it fail to find the stream if it does not start near the beginning?
In such a situation eac3to will fail to find the subtitle stream. Do you have a list of movies where this can happen? I need a way to reproduce such a problem on my PC, then I can fix it.

3) One further question, if I may, that probably should be in the MadFLAC thread, but since it is all about the same guide I thought I'd post here. I currently suggest installing ffdshow for FLAC decoding. I know that MadFLAC can now also decode FLAC in a Matroska container. Is this just so MadFLAC is able to offer a full solution to FLAC decoding or do you feel you have a superior FLAC decoder for use in mkv playback? I know you may find this question amusing - "of course mine is better!" - but I did read in the MadFLAC thread that you doubted you would be able to offer anything over and above what ffdshow offers.
That was when I wrote madFlac. Later I was told that madFlac works better than ffdshow in some cases. E.g. I got reports that ffdshow sometimes had audio drops or things like that while madFlac worked well.

Also I just checked: ffdshow seems to only output 16bit. This is a limitation of the libav decoder. libav audio processing is generally limited to 16bit (unless it is hacked to support higher bitdepths). madFlac always outputs the native bitdepth of the FLAC file.

EDIT3: Put some colors to make it more beautiful and eye catching.
Nice... :)

eac3to is great!!! No need to type any input files anymore. All being done automatically. And it's a command line program.

madshi you are my hero!!! :eek:
Thanks... :D

Tried it and it works, thanks. Is there any way to specify a path for the log file, rather than it going in the eac3to program directory? Small thing I know.
The latest eac3to version always copies the log file to the destination folder.

Roscoe62
10th April 2008, 10:43
In such a situation eac3to will fail to find the subtitle stream. Do you have a list of movies where this can happen? I need a way to reproduce such a problem on my PC, then I can fix it.

Madshi,

A good example of this happening is in Ocean's Thirteen. One of the gang are in a Mexican town and are speaking Spanish. I only cottoned on because someone I was watching it with had seen the DVD and said "err, I think there are supposed to be subtitles here".

I think the subtitles for this movie won't start until around the 37 minute mark.

Hope this helps! :)

nautilus7
10th April 2008, 11:15
Maybe the same happens to The Shining hd dvd. That's why the sort sample i uploaded in the previous page doesn't include any subs. I'll look into it.

EDIT: Yep... Subs on this evo start after 300MB. Much after 300MB. As i wrote initially, 1st.evo from that movie don't list any subs, while 2nd.evo does, as well as 1st.evo+2nd.evo combination. EVOdemux shows exactly the same behavior with the 2 evo files.

wildchild22
10th April 2008, 13:19
Okay I am making some headway on the lpcm from hd-dvd. Okay now how do the channel mapping work. I have made a .wav file and when I open it sonic scenerist detects it as a lpcm file but complains the channel mapping is wrong. I assume When I make the beowulf.eac3 file I need to add the -0,1,2,3,4,5 at the end.
Sonic expects it to be l c r ls rs lfe

so if anyone can help with the channel mapping
I think where is used the -blu-ray switch on it before it switched the order to l, r, c, sl, sr, lfe
0 1 2 3 4 5

so if my thinking is correct I need to change the order to
-0 2 1 3 4 5

DoomBot
10th April 2008, 14:22
Where did you get the LPCM file from? With which tool did you demux it? And how did you encode it to DTS? Did you use eac3to for the DTS encoding? If so, please post the eac3to log.
.

Its from Ghost Rider blu-ray and i demuxed it with tsremuxer and tried tsmuxer. I have surcode 1.0.23 for the DTS encoding and used eac3to to do this all. I even tried just getting the mono wav files with eac3to and they sound the same having the buzzing noise.


eac3to v2.39
command line: "C:\Documents and Settings\er\Desktop\HD Tools\eac3to239\eac3to.exe" "C:\Documents and Settings\er\Desktop\test\test.pcm" ".wavs"
------------------------------------------------------------------------------
This might be a RAW/PCM file. Trying to figure out the details.
This will probably take a while. Please be patient...
The RAW/PCM file seems to be big endian.
The RAW/PCM file seems to have a bitdepth of 16 bits.
The RAW/PCM file seems to have 6 channels.
RAW/PCM, 5.1 channels, 0:01:19, 16 bits, 48khz
This is probably a Blu-ray PCM track. Will remap channels accordingly.
Reading RAW/PCM...
Swapping endian...
Remapping channels...
Writing WAVs...
Creating file ".R.wav"...
Creating file ".L.wav"...
Creating file ".C.wav"...
Creating file ".SL.wav"...
Creating file ".LFE.wav"...
Creating file ".SR.wav"...
eac3to processing took 1 second.
Done.

nautilus7
10th April 2008, 14:37
1sec??? Try giving a name to the output files (output.wavs, not just .wavs).

Anyway, demux the pcm and convert it to dts in 1 step using eac3to:

eac3to input.m2ts

to list the stream numbers and then:

eac3to input.m2ts 2: output.dts

where you 'll replace 2: with the appropriate one.

DoomBot
10th April 2008, 14:48
I have done this as well converting it to dts in 1 step and get the same results. It took 1 sec because its a small test file i use from ghost rider and as far as the .wav with no name that doesnt really matter at this piont its a test and no more.

Jong
10th April 2008, 15:16
Madshi,

A good example of this happening is in Ocean's Thirteen. One of the gang are in a Mexican town and are speaking Spanish. I only cottoned on because someone I was watching it with had seen the DVD and said "err, I think there are supposed to be subtitles here".

I think the subtitles for this movie won't start until around the 37 minute mark.

Hope this helps! :)Actually although there is no foreign dialogue until well into the film, that one is fine, because they also use the subtitle stream for captions. the first one is right at the start - "Valencia, ca. 2:43am"

One good one though is Mission Impossible iii, where the first is @00:44:02.

The Simpson's movie is great - it has just has two subtitles (forced), for some tweating birds - "We're going to need more birds." and for "Santa's Little Helper" - , "I did things no dog should do". The first is @00:47:18 . That is Blu-ray so doesn't really count, but you can see that it is inevitable this will (and does) happen. We need a way of trapping it.

For DVDs I check with PgcEdit to see if there is a forced stream and if so make sure I rip it, and force it. It should be possible to interrogate HD-DVD in the same way. Isn't it?!

Jong
10th April 2008, 15:24
@Madshi, Thanks very much for your replies.

In such a situation eac3to will fail to find the subtitle stream. Do you have a list of movies where this can happen? I need a way to reproduce such a problem on my PC, then I can fix it.See above for some discs that show the problem. I see you have another from nautilus7. I must admit I just assumed EVO Demux would get it right, but it seems I was wrong about that. Still, it does really need a solution. I hope you can fix it.

That was when I wrote madFlac. Later I was told that madFlac works better than ffdshow in some cases. E.g. I got reports that ffdshow sometimes had audio drops or things like that while madFlac worked well.

Also I just checked: ffdshow seems to only output 16bit. This is a limitation of the libav decoder. libav audio processing is generally limited to 16bit (unless it is hacked to support higher bitdepths). madFlac always outputs the native bitdepth of the FLAC file.Thanks! I will add madFLAC to my guide.

The latest eac3to version always copies the log file to the destination folder.Yep, but my problem is that if I use "eac3to f:\ 1)" to simply get a stream listing I am not specifying a destination directory! Could we add it like "eac3to f:\ 1) c:\destination\log.txt" or even just "eac3to f:\ 1) c:\destination"

Rectal Prolapse
10th April 2008, 17:33
How come there is no sync issues with ''copy /b'' & tsRemux on seamless branching discs (i have made several titles like ratt, deja vu, cars, etc, with no playback problems)?

As was mentioned before, it depends on which soundtrack you are listening to.

If you chose the LPCM track, then the most overlap you will get between segments is 5 ms. So, in the case of rat, there are 8 or so (I can't remember exactly), which means you will get, at most, 40 milliseconds of audio desynchronization. And most people will not notice that.

But if you listen to the AC3 track (up to 32 ms overlap is possible), I bet you will get a desync of 100-200 ms by the end of the movie, and you WILL notice that. :)

DoomBot
10th April 2008, 19:46
So then what is the best way to encode a pcm to dts with out having problems?

nautilus7
10th April 2008, 20:09
You can also try xport to demux the pcm audio and then eac3to to encode to dts. Xport worked for many people before.

You didn't tell (or at least i can't find) what happened with the pcm to wav convertion. Does the wav sound ok?

DoomBot
10th April 2008, 20:15
You can also try xport to demux the pcm audio and then eac3to to encode to dts. Xport worked for many people before.

You didn't tell (or at least i can't find) what happened with the pcm to wav convertion. Does the wav sound ok?


No even the demuxed mono wav files sound bad and i tried xport like you said but it didnt work, it was saying error or bad frame something like that all the way through it. I really want to be able to do this i have many movies with pcm and this is the only one i have tried to convert a pcm track, i did the truehd from this movie with no problems at all sounds great but have many movies that have just pcm and would like to convert them.

Although no i did not try to demux the pcm from the movie file it self with xport maybe ill try that instead. I demuxed the pcm with tsremux i thought that was the same.

madshi
10th April 2008, 20:28
I have made a .wav file and when I open it sonic scenerist detects it as a lpcm file but complains the channel mapping is wrong. I assume When I make the beowulf.eac3 file I need to add the -0,1,2,3,4,5 at the end.
Using the eac3to channel remapping parameter won't make any difference on Scenarist accepting the file! I think Scenarist probably doesn't like the way eac3to writes the WAV file. Try rewriting the WAV file with WaveWizard.

Yep, but my problem is that if I use "eac3to f:\ 1)" to simply get a stream listing I am not specifying a destination directory! Could we add it like "eac3to f:\ 1) c:\destination\log.txt" or even just "eac3to f:\ 1) c:\destination"
Why do you need this?

So then what is the best way to encode a pcm to dts with out having problems?
The best way is to not use TsRemuxer for PCM demuxing because TsRemux is known to make problems with PCM tracks. Use xport or eac3to for demuxing. If you use eac3to, you can even demux and save to WAVs in one step.

Jong
10th April 2008, 20:41
Why do you need this?I would not describe it as urgent by any means at all, but have a look at my guide. I want to get a stream list before doing any demuxing. It is simply inelegant to have to dig this one log file out of the eac3to program folder when all other working files are somewhere else.

Logically it would make sense to be able to type "eac3to f:\ 1) c:\destination\log.txt" and have it stick the list where the others are. By the way, it might also be good if it included the title number in the name automatically e.g. "log(1).txt" so working on a second ot third title does not overwrite the stream list.

But, I do agree this is all third or fourth order stuff!

DoomBot
10th April 2008, 20:59
The best way is to not use TsRemuxer for PCM demuxing because TsRemux is known to make problems with PCM tracks. Use xport or eac3to for demuxing. If you use eac3to, you can even demux and save to WAVs in one step.

Thanks, ill give this a shot and report back.