View Full Version : eac3to - audio conversion tool


Pages : 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16

menlvd
2nd June 2008, 20:04
madshi
about wave64
tech doc http://www.radio.uqam.ca/ambisonic/sony_wave64.pdf
and small sample around 20 seconds desc - 48kHz/24bit/5.1/PCM
http://rapidshare.com/files/119613827/tristan.w64

Tyrod
2nd June 2008, 20:46
I think it is. At least I too have EMC10 and I have it. I cannot think of anywhere else it would have come from. How have you checked?


Well. I loaded EMC10, ran eac3to with the -sonic switch and eac3to reported sonic filter not found.

Thanks anyway, I've found an alternative source.

earl
2nd June 2008, 21:06
i do not make a downconvert from the video, i put the video untouched in the .mkv file
is there a way that eac3to do mux audio in the .mkv file in only one step ?
is it better to let eac3to to create the .mkv file or is it better to make it self with mkvmerge ?

Bluestraw
2nd June 2008, 21:44
i do not make a downconvert from the video, i put the video untouched in the .mkv file
is there a way that eac3to do mux audio in the .mkv file in only one step ?
is it better to let eac3to to create the .mkv file or is it better to make it self with mkvmerge ?eac3to won't do it in one step. Best process, which has produced flawless results for me at least, is to let eac3to make the video MKV and the desired soundtrack, then make the final merge using mkvmerge.

earl
2nd June 2008, 22:03
wine --version
wine-1.0-rc3


wine /home/earl/.wine/drive_c/Programme/eac3to_2-46/eac3to.exe z:/movie.m2ts 1: video.mkv

M2TS, 1 video track, 5 audio tracks, 1:45:58
1: h264/AVC, 1080p24 /1.001 (16:9)
2: RAW/PCM, 5.1 channels, 16 bits, 48khz
3: AC3, 5.1 channels, 640kbit/s, 48khz, dialnorm: -28dB
4: AC3, 5.1 channels, 640kbit/s, 48khz
5: AC3, 2.0 channels, 192kbit/s, 48khz
6: AC3, 2.0 channels, 192kbit/s, 48khz
Hooking WriteConsoleA failed (Erfolg).
[v01] Extracting video track number 1...
[v01] Muxing video to Matroska...
[v01] Starting DirectShow conversion failed.
Aborted at file position 1409024.

in a real windows it runs fine

wine /home/earl/.wine/drive_c/Programme/eac3to_2-46/eac3to.exe -test

Sonic Audio Decoder (2.46.0.0) doesn't seem to be installed
Haali Media Splitter (2008-3-29) is installed
Surcode DTS Encoder (1.0.23.0) is installed
MkvToolnix (v2.2.0) is installed


do i need anything to let eac3to create the .mkv file ? or is it a problem with wine, i hope not ..

asarian
2nd June 2008, 22:51
Actually, where would one get the Nero decoder? It seems the Nero site only has the Nero 8 plugin, which is said not to work with eac3to.

Thanks.

asarian
2nd June 2008, 23:04
^^ I *did* try google, but there's no such archive that has the Nero 7 Blueray (sic!) HD plug-in, which is what I need, right?

And on the Nero site they specifically mention that the Nero 8 plug can't be used outside Nero. So, chances of me finding that old Nero 7 plugin have greatly diminished, I fear.

Yraen
2nd June 2008, 23:32
^^ I *did* try google, but there's no such archive that has the Nero 7 Blueray (sic!) HD plug-in, which is what I need, right?

And on the Nero site they specifically mention that the Nero 8 plug can't be used outside Nero. So, chances of me finding that old Nero 7 plugin have greatly diminished, I fear.

Go to the nero shop, choose plugins on the left, it will ask you what version you own. Once you choose 7, the HD-DVD BD plugin appears.

asarian
2nd June 2008, 23:40
Go to the nero shop, choose plugins on the left, it will ask you what version you own. Once you choose 7, the HD-DVD BD plugin appears.

Sadly, that's just one and the same plugin:

http://www.nero.com/enu/bluray-hddvd-video-plugin.html

I'm not a complete moonbrain. :) It leads to a combined 7 + 8 plugin, where they expressly state:

"The Blu-ray/HD DVD Video Plug-in cannot be used as a stand-alone product. Playback of commercial Blu-ray Disc titles (BD-ROM) is only available with Nero 8."

I guess they simply discontinued the old 7 plugin, and only use a backwards compatible one now: one which can't be accessed from the outside (by eac3to) any more.

Yraen
3rd June 2008, 00:30
What can I tell you. That's where I bought it after Nero 8 was out.

nautilus7
3rd June 2008, 00:33
@ asarian

The plug-in is the same. Actually, there's nothing to install. You just buy a license.

If you had read the 1st post of this thread, you wouldn't ask these questions.

For best AC3 and E-AC3 decoding you need:
(1) Nero 7 (Nero 8 won't work!)
(2) Nero HD-DVD / Blu-Ray plugin

None said anything about nero7 plug-in.

asarian
3rd June 2008, 00:38
@ asarian

The plug-in is the same. Actually, there's nothing to install. You just buy a license.

If you had read the 1st post of this thread, you wouldn't ask these questions.

None said anything about nero7 plug-in.
I guess you're right. :) I just read it that way. Ok, I'm off to buy the plug-in then!

CiNcH
5th June 2008, 08:34
@madshi,

I am currently looking into MPLS parsing. What I want to find out for the time being is the m2ts files making up the playlist and to reliably detect the main movie MPLS. Do you have any information concerning that?

jeffnoone
5th June 2008, 10:06
Also having problems with this Nero Digital Encoder

eac3to reports the folloewing:

eac3to v2.46
command line: "C:\......\eac3to\eac3to.exe" -test
------------------------------------------------------------------------------
Nero Audio Decoder (Nero 7 or older) is not working correctly
Sonic Audio Decoder (4.3.0.169) works fine
Haali Media Splitter (2008-3-29) is installed
Surcode DTS Encoder (1.0.23.0) is installed
MkvToolnix (v2.2.0) is installed


But I do have Nero 7.5.7.0 installed properly
I also have a licenced copy of the "Blu-Ray/HD-DVD Playback Plug-In" showing up as licenced in the licence area of Nero SmartStart

THere does not seem to be any option to buy or obtain the "Nero Audio Decoder"
I have the Nero Digital Audio Pack - which is freeware/shareware, but this is an older commandline utitlity, and cant be actually installed

How do I get this Nero Audio Decoder installed?

Help appreciated
Jeff

B4tm4n
5th June 2008, 11:14
Also having problems with this Nero Digital Encoder

eac3to reports the folloewing:

eac3to v2.46
command line: "C:\......\eac3to\eac3to.exe" -test
------------------------------------------------------------------------------
Nero Audio Decoder (Nero 7 or older) is not working correctly
Sonic Audio Decoder (4.3.0.169) works fine
Haali Media Splitter (2008-3-29) is installed
Surcode DTS Encoder (1.0.23.0) is installed
MkvToolnix (v2.2.0) is installed


But I do have Nero 7.5.7.0 installed properly


I had this problem once and a quick re-boot sorted it out, if that doesn't work you'll have to wait till someone more enlightened posts an answer.

yesgrey
5th June 2008, 12:02
But I do have Nero 7.5.7.0 installed properly

See this link (http://www.nero.com/eng/bluray-hddvd-video-plugin.html)
it seems we need nero 7.8 or higher. Can anyone confirm this?

nautilus7
5th June 2008, 12:47
Yes, nero 7.8.5.0 is needed. The "nero audio decoder 2" comes with that version or newer only. Nero 8 won't work, though.

crazydane
5th June 2008, 16:25
The option is already there! eac3to can demux DD+, TrueHD and DTS-HD MA tracks just fine today.
Madshi, now that it has been confirmed that Asus is coming out with a soundcard that can bitstream TrueHD and DTS-HD MA, I wanted to clarify your reply above.

In order for eac3to to demux TrueHD and DTS-HD MA, do I not need to specify an extension other than .ac3 or .dts?

Would it be:

TrueHD = audio.thd
DTS-HD MA = audio.dma

I mean, if I just use .ac3 or .dts for the extension of the soundtrack I want, is that not telling eac3to to transcode to lossy Dolby or DTS, as opposed to retain the original lossless encode?

Also, for DD+ I would use audio.eac, right? And what about DTS-HD? audio.dhd?

Thanks!

Snowknight26
5th June 2008, 17:16
I think its .thd and .dtshd respectively.

crazydane
5th June 2008, 17:26
Thanks Snow. So to recap:

DD+ = .eac
TrueHD = .thd
DTS-HD/DTS-HD MA = .dtshd

I think it would be great if this info could be added to the:

"Decoded audio data can be stored as / encoded to:"

Section on page 1 of this thread.

rebkell
5th June 2008, 17:53
eac3to will not stripPullDown on HD-DVD AVC streams, only on VC-1, is that correct?

Snowknight26
5th June 2008, 18:34
DD+ = .eac


Actually, that one is .eac3.

nautilus7
5th June 2008, 19:33
.eac3 or .ddp

earl
5th June 2008, 21:33
hi guys, i have 3 little question about eac3to



----
1
----


wine --version
wine-1.0-rc3


wine /home/earl/.wine/drive_c/Programme/eac3to_2-46/eac3to.exe z:/movie.m2ts 1: video.mkv

M2TS, 1 video track, 5 audio tracks, 1:45:58
1: h264/AVC, 1080p24 /1.001 (16:9)
2: RAW/PCM, 5.1 channels, 16 bits, 48khz
3: AC3, 5.1 channels, 640kbit/s, 48khz, dialnorm: -28dB
4: AC3, 5.1 channels, 640kbit/s, 48khz
5: AC3, 2.0 channels, 192kbit/s, 48khz
6: AC3, 2.0 channels, 192kbit/s, 48khz
Hooking WriteConsoleA failed (Erfolg).
[v01] Extracting video track number 1...
[v01] Muxing video to Matroska...
[v01] Starting DirectShow conversion failed.
Aborted at file position 1409024.

in a real windows it runs fine

wine /home/earl/.wine/drive_c/Programme/eac3to_2-46/eac3to.exe -test

Sonic Audio Decoder (2.46.0.0) doesn't seem to be installed
Haali Media Splitter (2008-3-29) is installed
Surcode DTS Encoder (1.0.23.0) is installed
MkvToolnix (v2.2.0) is installed


do i need anything to let eac3to create the .mkv file ? or is it a problem with wine, i hope not ..





----
2
----


eac3to 1.evo+2.evo 2: d:\abc_movie.mkv 4: d:\abc_4audio.eac3 5: d:\abc_5audio.eac3 6: d:\abc_6audio.eac3
EVO, 2 video tracks, 5 audio tracks, 6 subtitle tracks, 2:12:34
1: Joined EVO file
2: h264/AVC, 1080p24 /1.001 (16:9) with pulldown flags
3: VC-1, 480p30 /1.001 (3:2), -80ms
4: E-AC3, 5.1 channels, 1536kbit/s, 48khz, dialnorm: -27dB, -80ms
5: E-AC3, 5.1 channels, 768kbit/s, 48khz, dialnorm: -27dB, -80ms
6: E-AC3, 5.1 channels, 768kbit/s, 48khz, dialnorm: -27dB, -80ms
7: E-AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB, -80ms
8: E-AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB, -11ms
9: Subtitle
10: Subtitle
11: Subtitle
12: Subtitle
13: Subtitle
14: Subtitle
[v02] Extracting video track number 2...
[a05] Extracting audio track number 5...
[a06] Extracting audio track number 6...
[a04] Extracting audio track number 4...
[a06] Removing dialog normalization...
[v02] Muxing video to Matroska...
[a04] Removing dialog normalization...
[a06] Applying (E-)AC3 delay...
[a04] Applying (E-)AC3 delay...
[a05] Removing dialog normalization...
[a05] Applying (E-)AC3 delay...
[a04] Creating file "d:\abc_4audio.eac3"...
[a05] Creating file "d:\abc_5audio.eac3 "...
[a06] Creating file "d:\abc_6audio.eac3 "...


what does pulldown flag mean ? what have i to do if i mux the video into .mkv ?




----
3
----

"[a04] Applying (E-)AC3 delay..."
i convert the .eac3 to .ac3, and i will mux it with mkvmerge with the abc_movie.mkv file, what have i to do with the "-84ms delay" ?
.... i must set -84ms in the mkvmerge(gui) ? or does eac3to change anything on the delay ?

inmetzi
6th June 2008, 20:12
See this link (http://www.nero.com/eng/bluray-hddvd-video-plugin.html)
it seems we need nero 7.8 or higher. Can anyone confirm this?

Hi yesgrey3. All what you really need is the key :-)) The plugin will be installed with your nero but it isnīt activ. On the nero page you can only buy a licence. You must give it in the nero controll center and all is ok. I think the plugins for 7 and 8 are the same.

yesgrey
7th June 2008, 10:58
inmetzi,
My reply was for jeffnoone who referred was using nero 7.5.7.0 and even with the key had problems, but thank you for referring the key, I realize my post was incomplete.:)

So, we need the key for activating the plugin, and nero 7, version 7.8.5.0 or higher, because only those have the plugin included to be activated.

PS: madshi, maybe could be a good idea if you also include the nero 7 version number needed in your first post...

boombastic
7th June 2008, 15:37
I just want to say a big big thanks to the author of this program:with megui and you r tool, backuing up a Blu Ray to a MKV with the best possbile quality is just so easy!!!Many many thanks!

laserfan
7th June 2008, 17:10
So, we need the key for activating the plugin, and nero 7, version 7.8.5.0 or higher, because only those have the plugin included to be activated.

PS: madshi, maybe could be a good idea if you also include the nero 7 version number needed in your first post...Yes. Further, it could be noted in the first post that only "Showtime" needs to be installed, and the HD/BD plugin activated. SmartStart and Nero Scout also get installed but Scout can be de-activated if one works hard enough at it!

I notice there is a new May 30, 2008 update to Nero7, version 7.11.10.0 which is available here (http://www.nero.com/enu/downloads-nero7-update.php). But the Release Notes (http://www.nero.com/enu/support-nero7-release-notes.html) only include to 7.11.6.0 so I can't tell if there is any change at all to Nero Showtime. My own version (updated to 7.10.1) comes with Showtime 3.10.1.0 which does not appear to have changed, not w/7.11.6 anyway.

1. Does anyone here have 7.11.10.0? What version Showtime therein? Release Notes? My gosh it's massive at 388Mb vs. update 7.10.1 which was only 177Mb!?

2. Could Ahead Nero possibly have made things more complex, both for end-users and for themselves? :rolleyes:

yesgrey
7th June 2008, 19:26
Yes, I installed it. Showtime is 3.10.1.0, apparently only BurningRom was updated. The size is 388MB because it's the multi-language pack. Your previous with 177MB was only english, right?

Sorry for the off-topic...

Is there any place with more detailed instructions for using eac3to? Reading more >100 pages for finding what I need it's a real pain...

deathlord
8th June 2008, 09:09
Is there any place with more detailed instructions for using eac3to? Reading more >100 pages for finding what I need it's a real pain...

There is... (http://en.wikibooks.org/wiki/Eac3to/FAQ)

nautilus7
8th June 2008, 09:55
Actually, that page is part of the manual: http://en.wikibooks.org/wiki/eac3to

It's incomplete and kinda out of date though (it doesn't not have latest eac3to features).

yesgrey
8th June 2008, 11:47
That's exactly what I was looking for! Could be outdated, but the basics are all there!
:thanks:

Why is not a link to the manual in the first post?

jeffnoone
8th June 2008, 17:12
Can I get some help with regard to E-AC3 and standard AC3

I have a HD-DVD where all audio tracks are E-AC3, but the English one (the one I'm interested in ) is 1536kbit/s (others are 768)

Now I want to put this into a BD structure

So when I run eac3to on the 2 connected .evo files, and output the ac3 only - eac3to seems to use the Sonic encoder, and convert s the E-AC3 to AC3 at 640. Note I didnt change any buttons on Eac3to and more GUI - left at default - most recent version used

When I run tsRemuxeR, it leaves the E-AC3 intact (and playable?), so its left at 1536

TWO questions:

Q. 1. How do I get eac3to to output the E-AC3?

Q. 2. I know support of E-AC3 is optional in the BD world, I will be using PS3 to play, which I believe supports it.
BUT will a BD with a E-AC3 track only play properly more widely (eg if I was to burn to BD disc)
Or would I be better off putting both the AC3 and the E-AC3 onto the BD disc/folders


Thanks Jeff

Before anyone points out the obvious of why I am using a program called "eac3to" and still wanting to get eac3 out, the reason for this I am a relative noob, and my reading indicated that eac3to gave best demuxed output, remaining in sync, with multipart .evo or branching .evo
This is a straight two part .evo - but overall wanted to make sure whatever AC3 I use, it is fully synced


I demuxed the same file using evodemux, eac3to and tsremuxer:

This is what I got for a 2hr 15min VC-1, E-AC3 original files (FEATURE_1.EVO and FEATURE_2.EVO):

Video (size in Windows Explorer):
tsRemuxer 19,436,556
evodemux 19,436,643
Eac3to 19,436,643


Audio:
tsRemuxer 1,527,399
evodemux 1,527,401
Eac3to 636,418

The diference in size of the video files represent only 0.04 sec, so seems inconsequential
Any comments on why there are minor (probably negligible) differences?


Final question:
What is best tool to give exact lenghts of video and audio files, once demuxed? MediaInfo only gives to the minute for audio files

Thunderbolt8
8th June 2008, 19:36
the remuxing of the cinema paradiso blu-ray results in a problem, eac3to says "This doesn't seem to be a valid h264/AVC stream." and doesnt recognize the video stream.

heres a 100mb sample: http://www.mediafire.com/?uydzmenzsn0

anyone else encountered this problem as well?

jeffnoone
8th June 2008, 19:59
OK, I figured out part of the question 2 posts above

the way I got eac3to to output an E-AC3 (eac3) was to use the enhanced GUI to "pretend" to output an AC3, then use Ctrl-C on the command window area, copy the (long) string of commands into notepad, change .ac3 to .eac3, save as batch fiel and run from command window
File is same size as evodemux

Still interested in answers to:

Q. 2. I know support of E-AC3 is optional in the BD world, I will be using PS3 to play, which I believe supports it.
BUT will a BD with a E-AC3 track only play properly more widely (eg if I was to burn to BD disc)
Or would I be better off putting both the AC3 and the E-AC3 onto the BD disc/folders


q.3 Any comments on why there are minor (probably negligible) differences between different demuxers?


Q4. What is best tool to give exact lengths of video and audio files, once demuxed? MediaInfo only gives to the minute for audio files

itsancho
9th June 2008, 01:57
hi all, again... ;-)
eac3to v2.46
command line: z\eac3to "G:\There Will Be Blood (2007) Blu-ray VC-1 TrueHD" 1) 1: i:\twbb.txt 2: i:\twbb.mkv 3: l:\twbb.flac
------------------------------------------------------------------------------
M2TS, 1 video track, 3 audio tracks, 2:38:26
1: Chapters, 8 chapters
2: VC-1, 1080p24 /1.001 (16:9)
3: TrueHD/AC3, English, 5.1 channels, 48khz, dialnorm: -27dB
4: AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
5: AC3, Spanish, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
Creating file "i:\twbb.txt"...
[v02] Extracting video track number 2...
[a03] Extracting audio track number 3...
[a03] Extracting TrueHD stream...
[a03] Removing dialog normalization...
[a03] Encoding FLAC...
[a03] This audio track contains more than 16 bit of information.
[v02] Muxing video to Matroska...
[a03] Creating file "l:\twbb.24bit.flac"...
[libav] End of stream indicated
[libav] Lossless check failed - expected 0, calculated 21
Added fps value to MKV header.
Video track 2 contains 227909 frames.
eac3to processing took 51 minutes, 32 seconds.
Done. madshi, Flac btw is perfectly OK, but I just wonder what that means...

dburckh
9th June 2008, 05:13
I looked through the archives of this beast of a thread on how to convert HD DVD TrueHD and mux it to TS. It kind of died. Wanted to bring up a couple of things. I know you can have PCM in TS, I've done it with Ratatouille. Plays fine on my Popcornhour.

So converted some TrueHD to .wav, but what I ended up with with 16-bit. eac3to said something about only being 16-bit. I'm using the Nero 7 codecs. Is this due to the source, or did I due something wrong?

I've only ever seen 24-bit BluRay PCM, so I don't know if 16-bit is supported. TsMuxer muxed it, but it did play on my Popcornhour. I don't know if it was the 16-bit or a bug in TsMuxer (I didn't use TsMuxer for Ratatouille.) Anybody had any luck with this?

yonta
9th June 2008, 08:16
@dburckh

You did nothing wrong and it's not a bug in eac3to or tsMuxeR.
There are a lot of 16-bit TrueHD and LPCM tracks in HD DVD and Blu-ray.

nautilus7
9th June 2008, 09:28
madshi, Flac btw is perfectly OK, but I just wonder what that means... It's a bug in libav decoder. Doesn't make any difference though, the track should be fine as you said. If you have nero decoder, you can try it and compare the two tracks.

dburckh
9th June 2008, 15:12
@dburckh

You did nothing wrong and it's not a bug in eac3to or tsMuxeR.
There are a lot of 16-bit TrueHD and LPCM tracks in HD DVD and Blu-ray.

I've only seen 24-bit, but I haven't played with it much. I'll have a look-see at the PMT and see what's up there. There's a lot that can go wrong, decode, muxing, Popcornhour, and Amp. I'll see if I can find a BluRay with 16-bit PCM.

Looks like Casino Royale is 16-bit. I'll run that thought RemuxTool and see what I get. Then I'll compare the PMT to what TsMuxer generated.

3ngel
9th June 2008, 16:33
I want to signal a possible bug. With

eac3to -test

it doesn't work with Sonic CinePlayer HDDVD Decoder v4.3.0.exe, but it works ok with 4.2.2

laserfan
9th June 2008, 16:59
I want to signal a possible bug. With eac3to -test it doesn't work with Sonic CinePlayer HDDVD Decoder v4.3.0.exe, but it works ok with 4.2.2Does here, unless I've misunderstood what you are saying?

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

eac3to -test
Nero Audio Decoder (Nero 7 or older) works fine
Sonic Audio Decoder (4.3.0.169) works fine
Haali Media Splitter (2008-3-29) is installed
Surcode DTS Encoder doesn't seem to be installed
MkvToolnix doesn't seem to be installed

3ngel
9th June 2008, 19:32
Here is my data

Microsoft Windows [Versione 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

eac3to.exe -test

Nero Audio Decoder (Nero 7 or older) doesn't seem to be installed
Find sync word: 7ffe8001
Find sync extension: 3f
Sonic Audio Decoder (4.3.0.169) is not working correctly
Haali Media Splitter (2008-3-29) is installed
Surcode DTS Encoder doesn't seem to be installed
MkvToolnix doesn't seem to be installed

Where did you get your Sonic Decoder? It's some particular version?

xkodi
9th June 2008, 20:46
@madshi

ArcSoft TotalMedia Theatre build 113 Trial:

http://www.arcsoft.com/support/downloads/downloadnow.asp?downloadid=384

can decode DTS-HD MA including DTS-HD MA 7.1 channels using GraphEdit:

FileSource (Async.) -> ArcSoft MPEG Demuxer -> ArcSoft Audio Decoder HD -> Dump.ax

still doing tests, but initial results look very promising, i.e. decodes are bit-perfect.

asarian
9th June 2008, 21:15
Just a quick question. When converting DTS to AC3, using eac3to and the Sonic Audio Decoder (which takes about 9 minutes), I see only 1 of my 4 cores is being used. Does eac3to have a multi-threaded switch by any chance? I couldn't find any. Or maybe the Sonic Audio Decoder is not muti-threaded?

Thanks

nautilus7
10th June 2008, 00:21
It seems xkodi is right. :D

Did some tests also and:
1. Arcosoft decoder decodes the full DTS-HD info
2. It can output 7.1ch 24bit

I used The Orphanage Blu-ray with 7.1 DTS-HD Master Audio sound and i got 7.1 channels using xkodi's graph. When I set the decoder to 5.1 ch, I got bit identical results with Sonic decoder (except from some garbage data at the beginning). Below are screenshots from the 2 decoders (5.1 sonic and 7.1 arcsoft).

http://img136.imageshack.us/img136/2407/71sonicpq2.th.png (http://img136.imageshack.us/my.php?image=71sonicpq2.png) http://img238.imageshack.us/img238/9598/71arcsoftxb2.th.png (http://img238.imageshack.us/my.php?image=71arcsoftxb2.png)

xkodi
10th June 2008, 00:22
still doing tests, but initial results look very promising, i.e. decodes are bit-perfect.

some results:

1) DTS-HD MA, 5.1 channels, 24bits, 48kHz: ArcSoft decodes identical to Sonic, i.e. bit-perfect

2) DTS-HD MA, 5.0 channels, 24bits, 96kHz: ArcSoft decodes as 5.1 channel WAV with silent (all bytes are zero) LFE channel, other 5 channels identical to Sonic, i.e. again it is bit-perfect

3) DTS-HD MA, 5.1 channels, 16bits, 48kHz: ArcSoft decodes always as 24bit, but LSB is not zero, when convert to 16bit with Wavewizard 0.54b it is identical to Sonic. however, because of the rounding error during the 24bit->16bit conversion some byte are greater or lesser with 1 than the corresponding reference byte from the Sonic decode, but still it is it is bit-perfect decode

4) DTS-HD MA, 7.1 channels, 24bits, 48kHz: ArcSoft decodes all 7.1 channels, first 6 channels are identical to the 6 channels decoded by Sonic, so we can assume that the channel 7 and 8 are decoded also bit-perfect, but it is not a proof for that we need good sample like Blu-ray with 7.1 LPCM (or TrueHD) for reference and DTS-HD MA 7.1 24bits track to compare against.

5) DTS-HD MA, 7.1 channels, 16bits, 48kHz: "Dragon Tiger Gate" Blu-ray has TrueHD 7.1 track and DTS-HD MA 7.1 16bits track. the six channels decoded by Sonic are identical to the first 6 channels from the TrueHD 7.1 decoded with libav. however, ArcSoft failed to decode the 16bits DTS-HD MA 7.1 track. the result is very strange, because seems like channel 1 and channel 2 are decoded as all zero.

dorati
10th June 2008, 10:50
@madshi:

When demuxing a m2ts-File with MPEG2-VideoCodec the Videofile is defekt and not playing on Standaloneplayer.

The Problem ist - the Header is 2x at the beginning of the m2v-File.

asarian
10th June 2008, 11:06
@madshi:

When demuxing a m2ts file (extracting DTS sound of "The Matrix"), eac3to reported a 600000ms offset (10 mins). That seems a bit excessive. :) I was able to correct it again by specifying a negative -600000ms delay to compensate. But any idea what might have caused this?

nautilus7
10th June 2008, 12:29
@ Asarian

This isn't a studio made blu-ray. You made with tsmuxer, right? It happens all the time with my tsmuxer made m2ts files. I think it's a problem with tsmuxer, so i recommend you ask there. :)

@ ALL

When asking something or posting a log or whatever, please say which movie it is and if it's not an original disc say how it was made. It's that someone else has that movie and can test it. :thanks:

asarian
10th June 2008, 12:43
@ Asarian

This isn't a studio made blu-ray. You made with tsmuxer, right? It happens all the time with my tsmuxer made m2ts files. I think it's a problem with tsmuxer, so i recommend you ask there. :)
It was an HD-DVD originally, but I demuxed the audio indeed with tsMuxeR (from an mkv). It said it had 0ms delay, but the extracted audio in eac3to said it had a 600000ms delay. So, likely, indeed something went wrong in tsMuxeR.

Thanks.

xkodi
10th June 2008, 14:07
ArcSoft TotalMedia Theatre build 113

today, during the test i found two important properties of ArcSoft Audio HD decoder:

1) when decoding DTS-HD MA, no matter if 16bit or 24bit is selected in the "ArcSoft Audio HD Decoder Setting" the decoder output is always the same and has 24bit

2) for bit-perfect decoding of DTS-HD MA the real number of channels of the DTS track should be selected in "ArcSoft Audio HD Decoder Setting"

these two properties along with:

1.1) DTS-HD MA 16bit files are always decoded as 24bit, but LSB is not zero, when convert them to 16bit, the output is bit-perfect with small rounding error (as i mentioned here: http://forum.doom9.org/showthread.php?p=1147467#post1147467)

allow us to find out the real parameters (number of channels, bit-depth, sample rate) of the DTS-HD MA track with very simple procedure:

- decode the track with eac3to using "Sonic Audio Decoder" and get "DirectShow reports C channels, B bits, Skhz", where S is the real sample rate, B is the real bit-depth and C is the number of channels, but not always the real number, because Sonic do not understand 7.1 channels

- decode the track with "ArcSoft Audio HD Decoder" with different settings for number of channels until the first two decoded channels are byte-by-byte identical with the first two channels decoded with the "Sonic Audio Decoder", then this is the real number of channels

using this procedure managed to find out the real parameters on most of the samples from "DTS-HD 2008 High Definition Audio Demonstration Blu-ray Disc":

00004.m2ts: (Demo Sample: SFX) : DTS-HD MA, 7.1, 24bit, 96kHz

00005.m2ts (Movie Sample - Night At The Museum) : DTS-HD MA, 5.1, 24bit, 48kHz
00006.m2ts (Movie Sample - Eragon) : DTS-HD MA, 5.1, 24bit, 48kHz
00008.m2ts (Movie Sample - Hairspray) : DTS-HD MA, 7.1, 24bit, 48kHz
00009.m2ts (Movie Sample - Rush Hour 3) : DTS-HD MA, 7.1, 24bit, 48kHz
00010.m2ts (Movie Sample - Nature's Journey I) : DTS-HD MA, 5.0, 24bit, 96kHz
00011.m2ts (Movie Sample - Nature's Journey II) : DTS-HD MA, 5.0, 24bit, 96kHz

00013.m2ts (Music Sample: BT - Dynamic Symmetry) : DTS-HD MA, 7.1, 24bit, 48kHz
00015.m2ts (Music Sample: Pixies - Debaser) : DTS-HD MA, 5.1, 16bit, 48kHz
00016.m2ts (Music Sample: The Who - Pinball Wizard) : DTS-HD MA, 5.1, 16bit, 48kHz
00017.m2ts (Music Sample: Chieli Minucci - Daybreak) : DTS-HD MA, 7.1, 24bit, 48kHz

00022.m2ts: (Demo Sample: Orchestra) : DTS-HD MA, 7.1, 24bit, 96kHz

nautilus7
10th June 2008, 17:23
Nice tests. Madshi has some job to do... :D

Did you try any dts-hd hi res tracks? I tried one (5.1, 24bit, 2082 kbps from Testoteron HD DVD), Arcsoft decoded it, but i am not sure what it decoded. Feeding both decoders with the whole dts-hd track, didn't gave the same results. Feeding both decoders with the dts core of that track, didn't gave the same output also. So, either they don't use the same code, or something else is happening.

Jong
11th June 2008, 16:54
@Madshi,

Hi again,

I know this is a bit of a basic question, but there is a small debate over @AVSForums over whether Eac3to automatically applies the delay shown in the audio filename or if it has to be manually applied in mkvmerge. Could you please confirm is the audio delay appplied automatically when a file is demuxed or re-encoded? Is this true for both Blu-ray and HD-DVD? is there a still a bug where for some titles this does not work? How do we know? What action should we take if this problem does still exist?

Thanks.

Snowknight26
11th June 2008, 17:40
If you see something along the liens of "[a01] Applying audio delay..." in the output, then you can sleep soundly knowing that the appropriate delay has been applied to audio stream 01.

Thunderbolt8
11th June 2008, 18:44
@Madshi,

Hi again,

I know this is a bit of a basic question, but there is a small debate over @AVSForums over whether Eac3to automatically applies the delay shown in the audio filename or if it has to be manually applied in mkvmerge. Could you please confirm is the audio delay appplied automatically when a file is demuxed or re-encoded? Is this true for both Blu-ray and HD-DVD? is there a still a bug where for some titles this does not work? How do we know? What action should we take if this problem does still exist?

Thanks.its done automatically, unless when you demux a trueHD track, because you cant delay these track type. but the delay needed is included in the filename then

Jong
11th June 2008, 18:57
If you see something along the liens of "[a01] Applying audio delay..." in the output, then you can sleep soundly knowing that the appropriate delay has been applied to audio stream 01.Thanks, that is what I thought. But wanted to be 100% sure, especially as there was a bug a couple of months ago where it was not always applied.

kurt
11th June 2008, 19:08
I don't get it: If I demux an audio stream which has a delay with sth. like tsmuxer and then process this stream with eac3to, will be the delay ignored or not?

:stupid:

Thunderbolt8
11th June 2008, 21:43
if you dont use eac3to for demuxing or encoding from the source then you have to add the delay yourself, because the delay is determined from its position in the source. so when you use another program for demuxing the audio and only after that use eac3to for encoding then eac3to of course doesnt know how the relationship of that track in the source to the video stream was.

kurt
11th June 2008, 21:54
thanks for clarification! now I will sleep well :)

EPiPH0NE
12th June 2008, 03:54
if you dont use eac3to for demuxing or encoding from the source then you have to add the delay yourself, because the delay is determined from its position in the source. so when you use another program for demuxing the audio and only after that use eac3to for encoding then eac3to of course doesnt know how the relationship of that track in the source to the video stream was.


The thing is when ever I have a delay, say in a EVO file, if I demux the ES streams from the container with EVOdemux then run them through eac3to it seems to remove the delay but my streams always play fine and in synch. Actually when I let eac3to process delay it sometimes makes my files out of synch after remuxing with tsMuxeR. To be safe if my streams have delay reported by eac3to I always demux to get rid of the delay. It has seemed to work every time for me.

xkodi
12th June 2008, 18:59
@madshi

FYI, "ArcSoft Audio Decoder HD" build 113 TrueHD 7.1 decodes are bit-perfect, byte-by-byte identical with libav.

so, looks like the ArcSoft decoder is very interesting.

Thunderbolt8
12th June 2008, 20:41
madshi, would it be possible that you could output more of the undocumented switches (either here or in eac3to) ? I have a problem with a .m2ts file and am looking for that switch to ingore possible errors now, but since its not documented in eac3to I cant find it.

earl
13th June 2008, 02:42
hi guys, i have 3 little question about eac3to



----
1
----


wine --version
wine-1.0-rc3


wine /home/earl/.wine/drive_c/Programme/eac3to_2-46/eac3to.exe z:/movie.m2ts 1: video.mkv

M2TS, 1 video track, 5 audio tracks, 1:45:58
1: h264/AVC, 1080p24 /1.001 (16:9)
2: RAW/PCM, 5.1 channels, 16 bits, 48khz
3: AC3, 5.1 channels, 640kbit/s, 48khz, dialnorm: -28dB
4: AC3, 5.1 channels, 640kbit/s, 48khz
5: AC3, 2.0 channels, 192kbit/s, 48khz
6: AC3, 2.0 channels, 192kbit/s, 48khz
Hooking WriteConsoleA failed (Erfolg).
[v01] Extracting video track number 1...
[v01] Muxing video to Matroska...
[v01] Starting DirectShow conversion failed.
Aborted at file position 1409024.

in a real windows it runs fine

wine /home/earl/.wine/drive_c/Programme/eac3to_2-46/eac3to.exe -test

Sonic Audio Decoder (2.46.0.0) doesn't seem to be installed
Haali Media Splitter (2008-3-29) is installed
Surcode DTS Encoder (1.0.23.0) is installed
MkvToolnix (v2.2.0) is installed


do i need anything to let eac3to create the .mkv file ? or is it a problem with wine, i hope not ..





----
2
----


eac3to 1.evo+2.evo 2: d:\abc_movie.mkv 4: d:\abc_4audio.eac3 5: d:\abc_5audio.eac3 6: d:\abc_6audio.eac3
EVO, 2 video tracks, 5 audio tracks, 6 subtitle tracks, 2:12:34
1: Joined EVO file
2: h264/AVC, 1080p24 /1.001 (16:9) with pulldown flags
3: VC-1, 480p30 /1.001 (3:2), -80ms
4: E-AC3, 5.1 channels, 1536kbit/s, 48khz, dialnorm: -27dB, -80ms
5: E-AC3, 5.1 channels, 768kbit/s, 48khz, dialnorm: -27dB, -80ms
6: E-AC3, 5.1 channels, 768kbit/s, 48khz, dialnorm: -27dB, -80ms
7: E-AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB, -80ms
8: E-AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB, -11ms
9: Subtitle
10: Subtitle
11: Subtitle
12: Subtitle
13: Subtitle
14: Subtitle
[v02] Extracting video track number 2...
[a05] Extracting audio track number 5...
[a06] Extracting audio track number 6...
[a04] Extracting audio track number 4...
[a06] Removing dialog normalization...
[v02] Muxing video to Matroska...
[a04] Removing dialog normalization...
[a06] Applying (E-)AC3 delay...
[a04] Applying (E-)AC3 delay...
[a05] Removing dialog normalization...
[a05] Applying (E-)AC3 delay...
[a04] Creating file "d:\abc_4audio.eac3"...
[a05] Creating file "d:\abc_5audio.eac3 "...
[a06] Creating file "d:\abc_6audio.eac3 "...


what does pulldown flag mean ? what have i to do if i mux the video into .mkv ?




----
3
----

"[a04] Applying (E-)AC3 delay..."
i convert the .eac3 to .ac3, and i will mux it with mkvmerge with the abc_movie.mkv file, what have i to do with the "-80ms delay" ?
.... i must set -80 ms in the mkvmerge(gui) ? or does eac3to change anything on the delay ?

odin24
13th June 2008, 04:46
I just tried to convert a LPCM track @ approx 7MB/s to DTS @1536kbps using eac3to with eac3toGUI. I used the sonic filter and Surcode is intstalled on my PC. Everything started fine, the single 5GB LPCM file was split to six single channels by eac3to then the recode began and finished after about 15 minutes. I then tried to load the file in tsMuxeR but it came back "cannot detect stream", any ideas?

Also, in eac3toGUI the default output was AC3, I changed it to DTS.

Thanks in advance.

bigdog660
13th June 2008, 08:11
I've been using eac3to for some time with no problems on both BD and HD-DVD. Just starting tonight I get the following error:

D:\LIAR_LIAR>D:\HDDVDTL\eac3to feature.evo
The (E-)AC3 reader didn't receive the format information.
The (E-)AC3 reader didn't receive the format information.
The (E-)AC3 reader didn't receive the format information.
EVO, 1 video track, 2 subtitle tracks, 1:25:56
1: VC-1, 1080p24 /1.001 (16:9) with pulldown flags
2: Subtitle
3: Subtitle

D:\LIAR_LIAR>

Here is another example:

D:\THE_LOST_CITY>D:\HDDVDTL\eac3to PEVOB_1.evo+PEVOB_2.evo
The (E-)AC3 reader didn't receive the format information.
This doesn't seem to be a valid (E-)AC3 stream.
The format of the source file could not be detected.

D:\THE_LOST_CITY>

And one more just to be sure:

D:\LICENSE_TO_WED>D:\HDDVDTL\eac3to feature_01.evo+feature_02.evo
The (E-)AC3 reader didn't receive the format information.
The (E-)AC3 reader didn't receive the format information.
The (E-)AC3 reader didn't receive the format information.
The format of the source file could not be detected.

D:\LICENSE_TO_WED>

I checked my codecs and utils with -test, and all seems okay.

D:\HDDVDTL>eac3to -test
Nero Audio Decoder (Nero 7 or older) works fine
Sonic Audio Decoder (4.3.0.169) works fine
Haali Media Splitter (2008-3-29) is installed
Surcode DTS Encoder (1.0.23.0) is installed
MkvToolnix (v2.2.0) is installed

D:\HDDVDTL>

Even if I read directly from the HD-DVD disc, I get the same error. Different titles from other of my HD-DVD discs give the same error too.

Did a check disk, and HDD is fine. Nero is v7.11.10.0. Finally, I'm using Windows XP Pro SP3. And yes, everything was working fine even after I installed SP3... at least for a while.:confused:

Anyone have an idea what's going wrong here?

Thanks.

nautilus7
13th June 2008, 08:15
@ earl

1. Probably wine. Wait until madshi shows up to be sure.
2. Read here (http://en.wikipedia.org/wiki/Telecine).
3. A few posts above is your answer... eac3to can delay all audio tracks. Only exception is truehd demuxing (the delay value is written to the filename then). You don't to do anything in mkvtoolnix.

@ odin24

Post the eac3to log file. Probably surcode didn't start encoding (the processing time is too short).

@ bigdog660

It doesn't have to do anything with the codecs installed (-test) - these are for decoding/encoding, not reading the source files. Perhaps it is caused from bad ripped discs. Did you got all these errors in one day? Can you find a disc that works to ensure that it's not your system's problem? Can you send a sample from one of those movies to test it?

ntk
13th June 2008, 08:45
Hey folks, is BDEdit (or similar manual approach), and then entering each .m2ts filename on the command line, still the only way to figure out and then select which files to include for a branching disc?

Or is there an automatic way to select which .m2ts files to include in my "eac3to 00001.m2ts+00002.evo movie.mkv" command (e.g. if I could just specify a playlist file that would be pretty cool!)

nautilus7
13th June 2008, 11:06
eac3to can read playlist files and find the correct order automatically. Just run eac3to and set as input the root folder of your blu-ray disc. Then select the appropriate title { 1) or 2) or 3) or... } and add it to the previous command line.

mochevolete
13th June 2008, 12:29
sorry for the n00b question, but in what circumstances vc1conv must be used ?

Beastie Boy
13th June 2008, 12:55
sorry for the n00b question, but in what circumstances vc1conv must be used ?

Preparing video to make BluRay, or for creating WMV files for playback on XBox 360.

Cheers, Beastie.

mochevolete
13th June 2008, 13:21
ok, so my "normal" usage for eac3to will be Blu-ray / HD-DVD to mkv, in this case I won't need it.

thanks, Nik

nautilus7
13th June 2008, 15:50
And also the pulldown removal in eac3to is for the same purpose, but as madshi have said latest vc1conv does a better job. That's why he had removed that functionality from eac3to (he put it back by request).

rebkell
13th June 2008, 16:05
eac3to can read playlist files and find the correct order automatically. Just run eac3to and set as input the root folder of your blu-ray disc. Then select the appropriate title { 1) or 2) or 3) or... } and add it to the previous command line.

Can you type in an example command line to do that, I tried that the other day and didn't have any luck. I'll try it out this afternoon when I get home. I like tsmuxer, but eac3to has seemed to always give me better results.

One other question, will eac3to demux m2ts files and produce a raw 264 file?

nautilus7
13th June 2008, 16:26
Can you type in an example command line to do that, I tried that the other day and didn't have any luck. I'll try it out this afternoon when I get home. I like tsmuxer, but eac3to has seemed to always give me better results.Yes, sure. First type this command to get the available titles:

eac3to "F:\Rambo IV 2008 Blu-ray 1080p H.264 DTS-HD MA 7.1"
1) 00041.mpls, 2:00:22
[112+127+115+128+117+129+119+130+121+131+123+132+125].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)
- h264/AVC, 480p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- AC3, English, stereo, 48khz

2) 00042.mpls, 2:00:22
[112+127+115+128+117+129+119+130+121+131+123+132+125].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)
- h264/AVC, 480p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- AC3, English, stereo, 48khz

3) 00040.mpls, 1:31:32
[112+114+115+116+117+118+119+120+121+122+123+124+125].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)
- h264/AVC, 480p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- AC3, English, stereo, 48khz

4) 00037.mpls, 1:10:56
[87+88+89+90+91+92+93].m2ts
- MPEG2, 1080i30 /1.001 (16:9)
- AC3, English, stereo, 48khz

5) 00056.mpls, 00125.m2ts, 0:25:16
- h264/AVC, 1080p24 /1.001 (16:9)
- h264/AVC, 480p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- AC3, English, stereo, 48khz

6) 00046.mpls, 00115.m2ts, 0:22:32
- h264/AVC, 1080p24 /1.001 (16:9)
- h264/AVC, 480p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- AC3, English, stereo, 48khz

7) 00011.mpls, 00087.m2ts, 0:19:45
- MPEG2, 1080i30 /1.001 (16:9)
- AC3, English, stereo, 48khz

Then add the title you want to the previous command:

eac3to "F:\Rambo IV 2008 Blu-ray 1080p H.264 DTS-HD MA 7.1" 1)
M2TS, 2 video tracks, 3 audio tracks, 2:00:22
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, 5.1 channels, 24 bits, 48khz
5: AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
6: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB

Last step is to select the streams inside the title you wanna process:

eac3to "F:\Rambo IV 2008 Blu-ray 1080p H.264 DTS-HD MA 7.1" 1) 1: c:\rambo\rambo.chapters.txt 2: c:\rambo\rambo.mkv 4: c:\rambo\rambo.flac 4: c:\rambo\rambo.dts -core 5: c:\rambo\rambo.comm.ac3
M2TS, 2 video tracks, 3 audio tracks, 2:00:22
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, 5.1 channels, 24 bits, 48khz
5: AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
6: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
Creating file "c:\rambo\rambo.chapters.txt"...
[v02] Extracting video track number 2...
[a04] Extracting audio track number 4...
[a04] Extracting audio track number 4...
[a05] Extracting audio track number 5...
[v02] Muxing video to Matroska...
[a04] Extracting DTS core...
[a04] Decoding with DirectShow (Sonic Audio Decoder)...
[a05] Removing dialog normalization...
[a04] DirectShow reports 5.1 channels, 24 bits, 48khz
[a04] Encoding FLAC...
[a04] Creating file "c:\rambo\rambo.flac"...
[a04] Creating file "c:\rambo\rambo.dts"...
[a05] Creating file "c:\rambo\rambo.comm.ac3"...
----------

One other question, will eac3to demux m2ts files and produce a raw 264 file?Yes, it can. Simply select the video stream and set .264 as output extension. Generally, it's not a good idea to demux video though, because it can lead to audio/video sync problems and other artifacts, but you can always try and see.

EPiPH0NE
13th June 2008, 16:37
^^^Just use Eac3to+and+More+GUI -> select 'stream' folder as input -> done. Much easier.

nautilus7
13th June 2008, 16:40
I wouldn't say that the command line way is difficult... plus the first time i used the gui, I was lost. :D

rebkell
13th June 2008, 16:51
eac3to "F:\Rambo IV 2008 Blu-ray 1080p H.264 DTS-HD MA 7.1"

Wow, that's the root directory, what I tried was just eac3to d: , which works great on HD-DVDs, I didn't see all the other stuff as a folder, I'll look a bit harder when I get off.

I'll probably try the gui, I was like nautilus7 when I tried the gui before, now that I've used eac3to some and am a little more familiar with it, the gui might be great, but I didn't have a clue about eac3to to start with and the gui was overwhelming.

Yraen
13th June 2008, 21:03
That's probably the root folder for a ripped disc. If you're running straight from your HD-DVD/BD drive then d:\ is fine.

rebkell
13th June 2008, 23:29
That's probably the root folder for a ripped disc. If you're running straight from your HD-DVD/BD drive then d:\ is fine.

It won't work for me, eac3to d: or eac3to d:\ always comes back with the message:
HD DVD disc structure not found. I can run eac3to directly on the main m2ts file in D:\BDMV\STREAMS, but that is all it works on the best I can tell, I've tried the mpls files and that doesn't work either.

Running 2.42, ouch, I would have sworn I had 2.46. Anyway, downloaded 2.46 and now all works as it should. Thanks for the replies, I would have suffered through until a newer version was released. :)

BLKMGK
14th June 2008, 00:15
eac3to can read playlist files and find the correct order automatically. Just run eac3to and set as input the root folder of your blu-ray disc. Then select the appropriate title { 1) or 2) or 3) or... } and add it to the previous command line.

Oh man - you just saved me HUGE amounts of work - thank you! I hadn't realized we could do it that easily - I've been stitching commandlines together in Notepad!

nautilus7
14th June 2008, 00:40
That's probably the root folder for a ripped disc. If you're running straight from your HD-DVD/BD drive then d:\ is fine.
Yes, of course. It's a ripped disc and f:\ is one of my many hhds. :cool:

bigdog660
14th June 2008, 01:05
@ bigdog660

It doesn't have to do anything with the codecs installed (-test) - these are for decoding/encoding, not reading the source files. Perhaps it is caused from bad ripped discs. Did you got all these errors in one day? Can you find a disc that works to ensure that it's not your system's problem? Can you send a sample from one of those movies to test it?

I found the problem... and I feel like such an idiot. I didn't have AnyDVD running in the Sys Tray. Doh!

:rolleyes:

Thanks for your help anyways.

kedoughty
14th June 2008, 05:23
I've been converting my hd dvd's for playback on appletv with the following steps:
1. anydvd to rip
2. eac3to to obtain .mkv video file and .ac3 multichannel audio
3. mkvmerge to create .mkv container file
4. visualhub to convert .mkv to .mov file (1280x720@24fps with .ac3 audio passthru)

i've been successful with many dvd's but encountered a few "problem discs" along the way. now that i've hit my 3rd problem disc, i've noticed a trend. all three (Anchorman, TopGun, and now Stardust) have h264/avc video streams. the discs i've been successful with are all vc-1.

the .mkv file created by mkvmerge won't even play on my computer (iMac with windows XP thru parallels). Multiple mkv players (VLC, mPlayer OSX and Media Player Classic). VLC gives the smoothest video playback but the audio falls out of sync. mPlayer OSX reports a progressively increasing a/v sync that maxes out around 4 sec and a larger dropped frame rate. MPC won't even play the files at all, immediately giving some error message.

consequently, the .mov file created by VisHub as played thru the appletv has a stuttering video with smooth audio playback.

the vc-1 discs (at least 10) that i've done all work fine.

thoughts?

thanks,
Kyle

rebkell
14th June 2008, 05:46
I've been converting my hd dvd's for playback on appletv with the following steps:
1. anydvd to rip
2. eac3to to obtain .mkv video file and .ac3 multichannel audio
3. mkvmerge to create .mkv container file
4. visualhub to convert .mkv to .mov file (1280x720@24fps with .ac3 audio passthru)

i've been successful with many dvd's but encountered a few "problem discs" along the way. now that i've hit my 3rd problem disc, i've noticed a trend. all three (Anchorman, TopGun, and now Stardust) have h264/avc video streams. the discs i've been successful with are all vc-1.

the .mkv file created by mkvmerge won't even play on my computer (iMac with windows XP thru parallels). Multiple mkv players (VLC, mPlayer OSX and Media Player Classic). VLC gives the smoothest video playback but the audio falls out of sync. mPlayer OSX reports a progressively increasing a/v sync that maxes out around 4 sec and a larger dropped frame rate. MPC won't even play the files at all, immediately giving some error message.

consequently, the .mov file created by VisHub as played thru the appletv has a stuttering video with smooth audio playback.

the vc-1 discs (at least 10) that i've done all work fine.

thoughts?

thanks,
Kyle

Do they have pulldown flags in them?

rebkell
14th June 2008, 14:42
Oh man - you just saved me HUGE amounts of work - thank you! I hadn't realized we could do it that easily - I've been stitching commandlines together in Notepad!

I agree, it's great, it put together Walk Hard, and synced it, that movie must have 30 or 40 pieces, I had all kinds of a/v sync problems with tsmuxer on that movie.

BLKMGK
14th June 2008, 15:15
I agree, it's great, it put together Walk Hard, and synced it, that movie must have 30 or 40 pieces, I had all kinds of a/v sync problems with tsmuxer on that movie.

no kidding, withut it here's what I had to use for AVP2!

D:\Video\eac3to>eac3to x:\BDMV\STREAM\00010.m2ts+x:\BDMV\STREAM\00050.m2ts+x:\BDMV\STREAM\00011.m2ts+x:\BDMV\STREAM\0005
1.m2ts+x:\BDMV\STREAM\00012.m2ts+x:\BDMV\STREAM\00052.m2ts+x:\BDMV\STREAM\00013.m2ts+x:\BDMV\STREAM\00053.m2ts+x:\BDMV\S
TREAM\00014.m2ts+x:\BDMV\STREAM\00054.m2ts+x:\BDMV\STREAM\00015.m2ts+x:\BDMV\STREAM\00055.m2ts+x:\BDMV\STREAM\00016.m2ts
+x:\BDMV\STREAM\00056.m2ts+x:\BDMV\STREAM\00017.m2ts+x:\BDMV\STREAM\00057.m2ts+x:\BDMV\STREAM\00018.m2ts+x:\BDMV\STREAM\
00058.m2ts+x:\BDMV\STREAM\00019.m2ts+x:\BDMV\STREAM\00059.m2ts+x:\BDMV\STREAM\00020.m2ts+x:\BDMV\STREAM\00060.m2ts+x:\BD
MV\STREAM\00021.m2ts+x:\BDMV\STREAM\00061.m2ts+x:\BDMV\STREAM\00022.m2ts+x:\BDMV\STREAM\00062.m2ts+x:\BDMV\STREAM\00023.
m2ts+x:\BDMV\STREAM\00063.m2ts+x:\BDMV\STREAM\00024.m2ts+x:\BDMV\STREAM\00064.m2ts+x:\BDMV\STREAM\00025.m2ts+x:\BDMV\STR
EAM\00065.m2ts+x:\BDMV\STREAM\00026.m2ts+x:\BDMV\STREAM\00066.m2ts+x:\BDMV\STREAM\00027.m2ts+x:\BDMV\STREAM\00067.m2ts+x
:\BDMV\STREAM\00028.m2ts+x:\BDMV\STREAM\00068.m2ts+x:\BDMV\STREAM\00029.m2ts+x:\BDMV\STREAM\00069.m2ts 2: f:\avp\avp1-vid.mkv + x:\BDMV\STREAM\00010.m2ts+ x:\BDMV\STREAM\00050.m2ts+x:\BDMV\STREAM\00011.m2ts+x:\BDMV\STREAM\00051.m2ts+x:\BDMV\STREAM\00012.m2ts+x:\BDMV\STREAM\00052.m2ts+x:\BDMV\STREAM\00013.m2ts+x:\BDMV\STREAM\00053.m2ts+x:\BDMV\STREAM\00014.m2ts+
x:\BDMV\STREAM\00054.m2ts+x:\BDMV\STREAM\00015.m2ts+x:\BDMV\STREAM\00055.m2ts+x:\BDMV\STREAM\00016.m2ts+x:\BDMV\STREAM\0
0056.m2ts+x:\BDMV\STREAM\00017.m2ts+x:\BDMV\STREAM\00057.m2ts+x:\BDMV\STREAM\00018.m2ts+x:\BDMV\STREAM\00058.m2ts+x:\BDM
V\STREAM\00019.m2ts+x:\BDMV\STREAM\00059.m2ts+x:\BDMV\STREAM\00020.m2ts+x:\BDMV\STREAM\00060.m2ts+x:\BDMV\STREAM\00021.m
2ts+x:\BDMV\STREAM\00061.m2ts+x:\BDMV\STREAM\00022.m2ts+x:\BDMV\STREAM\00062.m2ts+x:\BDMV\STREAM\00023.m2ts+x:\BDMV\STRE
AM\00063.m2ts+x:\BDMV\STREAM\00024.m2ts+x:\BDMV\STREAM\00064.m2ts+x:\BDMV\STREAM\00025.m2ts+x:\BDMV\STREAM\00065.m2ts+x:
\BDMV\STREAM\00026.m2ts+x:\BDMV\STREAM\00066.m2ts+x:\BDMV\STREAM\00027.m2ts+x:\BDMV\STREAM\00067.m2ts+x:\BDMV\STREAM\000
28.m2ts+x:\BDMV\STREAM\00068.m2ts+x:\BDMV\STREAM\00029.m2ts+x:\BDMV\STREAM\00069.m2ts 3: f:\avp\avp1-aud.ac3 -640 -libav
:eek:

mochevolete
14th June 2008, 15:30
some other n00b questions:

as a rule of thumb, when converting a BR / HD-DVD to MKV, apart from DTS/AC3/E-AC3, I'm going to deal with :
- DD TrueHD
- DTS-HD
- LPCM
so what's the best way/thing to do with these audio tracks, convert them all to FLAC ?
My main goal is to mantain the best quality possible.

Slightly OT question:
what's the situation with current audio decoders (outside of SW developed for HD discs like PDVD, Arcsoft, Nero HD), ffdshow, libav, MPV & co., what formats can decode ? AC3/DTS/FLAC/ ... ?
Any chance to see the lossless formats decoded in the short period ? And to be bitstreamed thru HDMI ?

ok, for now.. maybe :D :D

thanks, Nik :)

nautilus7
14th June 2008, 16:00
TrueHD, DTS-HD Master Audio are lossless compression formats, while LPCM is uncompressed. So for all of them FLAC (lossless also) will give best quality (no losses at all).

TrueHD and E-AC3 decoders will be part of the libav codec soon. Then we may see directshow decoders for them. There aren't any freeware DTS-HD decoders though. Best FLAC decoder is madflac.

kedoughty
14th June 2008, 18:24
Do they have pulldown flags in them?

Yes they do.

If it means anything, so do most of, if not all (as far as I can remember), the movies with vc-1 video streams.

rebkell
14th June 2008, 18:36
Yes they do.

If it means anything, so do most of, if not all (as far as I can remember), the movies with vc-1 video streams.

I'm not sure what eac3to does with the pulldowns, but I don't have problems with them on VC-1 tracks, but I have to actually extract the raw 264 stream from the mkv file and then run dgavcindex on it and it will remove the pulldown flags on avc streams. Then I run AVCSource on the dga file and it works great. I had to do that on Beowulf to get it to play correctly.

I'm sure someone here can be of more help, that's been my very limited experience with HD-DVD and avc encodes.

mochevolete
14th June 2008, 18:39
TrueHD, DTS-HD Master Audio are lossless compression formats, while LPCM is uncompressed. So for all of them FLAC (lossless also) will give best quality (no losses at all).

TrueHD and E-AC3 decoders will be part of the libav codec soon. Then we may see directshow decoders for them. There aren't any freeware DTS-HD decoders though. Best FLAC decoder is madflac.
thanks, but I've just realized that for the FLAC is needed a 6 channel analog output :(
And the output of my ALC883 is so poor...

asarian
14th June 2008, 19:45
Okay, I've been using eac3to now too to extract video/audio. And I must admit, it's quite, quite clever in figuring stuff out. :) One question, though, when I had eac3to determine the parts of the main movie ("Enchanted", Bluray), it returned something like this:

4) 00001.mpls, 1:47:28
[120+121+122+123+124+125+126+127+128+130+131+132+133+134+135+136+137+138+139+140+141+142].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)

I had to rename the parts in order to extract the video, like:

"C:\Program Files\eac3to\eac3to.exe" 00120.m2ts+00121.m2ts+00122.m2ts+00123.m2ts+00124.m2ts+00125.m2ts+00126.m2ts+00127.m2ts+00128.m2ts+00130.m2ts+00131.m2ts+00132.m2ts+00133.m2ts+00134.m2ts+00135.m2ts+00136.m2ts+00137.m2ts+00138.m2ts+00139.m2ts+00140.m2ts+00141.m2ts+00142.m2ts 2: enchanted.h264

Which works like a charm. But any chance I can get eac3to to not use 'shorthand' notation for displayed parts? I mean, so I can simply copy & paste the long parts names.

Thanks!

rebkell
14th June 2008, 19:53
Run this line
eac3to <source of disk> 4)
This will return the video tracks, audio tracks, and chapter, etc...

then you can just run a command something like this, depending on what the above command returned:
eac3to <source> 4) 1: chapters.txt 2: movie.mkv 3: movie.ac3

asarian
14th June 2008, 20:10
Run this line
eac3to <source of disk> 4)
This will return the video tracks, audio tracks, and chapter, etc...

then you can just run a command something like this, depending on what the above command returned:
eac3to <source> 4) 1: chapters.txt 2: movie.mkv 3: movie.ac3

Brilliant! Just "4)", how easy! Thanks!

ntk
15th June 2008, 08:03
eac3to can read playlist files and find the correct order automatically. Just run eac3to and set as input the root folder of your blu-ray disc. Then select the appropriate title { 1) or 2) or 3) or... } and add it to the previous command line.

This is SUCH a great tip. eac3to is a great application, but the very first page of this thread should definitely have this usage documented! I think 90% of the people using this app will just want to use these three simple steps, then remux with mkvmerge, and be done!

Thanks again for the tip!

ntk
15th June 2008, 08:07
Another (loosely related) question: where can I buy the Sonic 2.46.0.0 audio decoder that eac3to is looking for? I looked at the Sonic site and only saw a DVD decoder bundle (not bluray or HD-DVD) and the specific codecs included in the bundle weren't called out (that I could find). Any pointers? I want a legal copy, so no bittorrents plz ;)

G_M_C
15th June 2008, 08:28
Hi Madshi,

Just popped in to ask a question;

Lately i' m making some AVCHD-disk; And according to the standard the audio on those disks can only be AC35.1 (up to 640 kbps). Thats no problem, but teh standard also mentiones that the framerate for video can only be 24, 25 or 30 fps.

I' d like to ask if it is possible to implement a function like speedup is now, but only speeds up the audio to 24 fps. This way i can use EAC3to to make to convert the audio i need for my AVCHD disks, cause 24fps is closer to the original (23,976).

mochevolete
15th June 2008, 11:30
I'm a bit confused on what to do with VC1 video.

I have this stream:
3: VC-1, 1080p24 /1.001 (16:9) with pulldown flags

what are the correct steps ?
- diretcly to MKV (with the -stripPulldown ?) ?
- intermediate to VC1, then with Vc1conv to another VC1 and finally to MKV ?

thanks, Nik

nautilus7
15th June 2008, 12:16
I'm a bit confused on what to do with VC1 video.

I have this stream:
3: VC-1, 1080p24 /1.001 (16:9) with pulldown flags

what are the correct steps ?
- diretcly to MKV (with the -stripPulldown ?) ?
- intermediate to VC1, then with Vc1conv to another VC1 and finally to MKV ?

thanks, NikYou need to strip pulldown, if you intend to make the stream blu-ray (or ps3 ?) compatible. If pc playback is your goal you can simply mux it to mkv without removing the pulldown flags.

mochevolete
15th June 2008, 12:25
thanks for reply, I'm making MKVs for the PC, so the "double pass" thru v1conv is useless ?

Nik

nautilus7
15th June 2008, 12:28
Yes, that's right.

Momber
15th June 2008, 12:46
I disagree. Those flags are just plain wrong and they need to go! Vc1conv processing is imperative imho, until madshi finds the time to implement the vc1conv code into eac3to.

laserfan
15th June 2008, 15:15
Yes, sure. First type this command to get the available titles:

eac3to "F:\Rambo IV 2008 Blu-ray 1080p H.264 DTS-HD MA 7.1"
1) 00041.mpls, 2:00:22
[112+127+115+128+117+129+119+130+121+131+123+132+125].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)
- h264/AVC, 480p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- AC3, English, stereo, 48khz

2) 00042.mpls, 2:00:22
[112+127+115+128+117+129+119+130+121+131+123+132+125].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)
- h264/AVC, 480p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- AC3, English, stereo, 48khz

3) 00040.mpls, 1:31:32
[112+114+115+116+117+118+119+120+121+122+123+124+125].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)
- h264/AVC, 480p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- AC3, English, stereo, 48khz

4) 00037.mpls, 1:10:56
[87+88+89+90+91+92+93].m2ts
- MPEG2, 1080i30 /1.001 (16:9)
- AC3, English, stereo, 48khz

5) 00056.mpls, 00125.m2ts, 0:25:16
- h264/AVC, 1080p24 /1.001 (16:9)
- h264/AVC, 480p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- AC3, English, stereo, 48khz

6) 00046.mpls, 00115.m2ts, 0:22:32
- h264/AVC, 1080p24 /1.001 (16:9)
- h264/AVC, 480p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- AC3, English, stereo, 48khz

7) 00011.mpls, 00087.m2ts, 0:19:45
- MPEG2, 1080i30 /1.001 (16:9)
- AC3, English, stereo, 48khz

Then add the title you want to the previous command:

eac3to "F:\Rambo IV 2008 Blu-ray 1080p H.264 DTS-HD MA 7.1" 1)
M2TS, 2 video tracks, 3 audio tracks, 2:00:22
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, 5.1 channels, 24 bits, 48khz
5: AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
6: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB

Last step is to select the streams inside the title you wanna process:

eac3to "F:\Rambo IV 2008 Blu-ray 1080p H.264 DTS-HD MA 7.1" 1) 1: c:\rambo\rambo.chapters.txt
2: c:\rambo\rambo.mkv 4: c:\rambo\rambo.flac 4: c:\rambo\rambo.dts -core
5: c:\rambo\rambo.comm.ac3
M2TS, 2 video tracks, 3 audio tracks, 2:00:22
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, 5.1 channels, 24 bits, 48khz
5: AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
6: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
Creating file "c:\rambo\rambo.chapters.txt"...
[v02] Extracting video track number 2...
[a04] Extracting audio track number 4...
[a04] Extracting audio track number 4...
[a05] Extracting audio track number 5...
[v02] Muxing video to Matroska...
[a04] Extracting DTS core...
[a04] Decoding with DirectShow (Sonic Audio Decoder)...
[a05] Removing dialog normalization...
[a04] DirectShow reports 5.1 channels, 24 bits, 48khz
[a04] Encoding FLAC...
[a04] Creating file "c:\rambo\rambo.flac"...
[a04] Creating file "c:\rambo\rambo.dts"...
[a05] Creating file "c:\rambo\rambo.comm.ac3"...
----------Good grief, just when I think I've been paying attention here, this comes along and I think "where the heck did THAT come from?"!!!??? :confused:

Wow, nothing about this that I can find in the /h info--if this is "tribal knowledge", how can I join the tribe, or does one have to be born into it!? :D

Re: demuxing, you said:

Yes, it can. Simply select the video stream and set .264 as output extension. Generally, it's not a good idea to demux video though, because it can lead to audio/video sync problems and other artifacts, but you can always try and see.But if one needs to demux e.g. to run DGAVCDec on it, then...?

rebkell
15th June 2008, 15:37
Good grief, just when I think I've been paying attention here, this comes along and I think "where the heck did THAT come from?"!!!??? :confused:

Wow, nothing about this that I can find in the /h info--if this is "tribal knowledge", how can I join the tribe, or does one have to be born into it!? :D

Re: demuxing, you said:

But if one needs to demux e.g. to run DGAVCDec on it, then...?

:stupid: LOL, I know, this is the greatest thing since sliced bread and it's got so little documentation about the power inside. The help file only seems to skim the surface of all the things it will do. You can use mkvextract to extract the 264 out of the mkv file, but I'm hoping to use the -demux option in the future, but I'm not sure of the syntax needed, according to the help file, it demuxes the first video track and all audio tracks.

nautilus7
15th June 2008, 16:29
But if one needs to demux e.g. to run DGAVCDec on it, then...?If your source is blu-ray, you don't need to demux the video. Just load the .m2ts file (although this might not work for multiple files).

Do you want to encode the video? Demux it then. Set .264 as extension to the video stream. Alternative, you can use eac3to to convert to matsoska and then build a graph file using haali media splitter --> ffdshow and DirectShowSource() to load in avisynth.

BLKMGK
15th June 2008, 16:42
An odd error on Moody Blues: Lovely to See You (HD-DVD)

D:\Video\eac3to>eac3to y:\HVDVD_TS\L0_MainMovie.EVO+y:\HVDVD_TS\L1_MainMovie.evo 4: f:\moody\moody-aud.ac3 -640 -libav
The (E-)AC3 reader didn't receive the format information.
The (E-)AC3 reader didn't receive the format information.
EVO, 1 video track, 1 audio track, 1:45:26
"mainMovie"
1: Joined EVO file
2: Chapters, 22 chapters without names
3: h264/AVC, 1080i60 /1.001 (16:9)
4: TrueHD, English, 5.1 channels, 48khz, -66ms
This EVO/VOB file contains authoring faults. Will try to work around that.
[a04] Extracting audio track number 4...
[libav] FIR filter has state data specified
[a04] The libav decoder reported an error while decoding.
Aborted at file position 49152.

But it HAD other tracks:


D:\Video\eac3to>eac3to y:\HVDVD_TS\
1) L0_MainMovie.EVO+L1_MainMovie.EVO, 1:45:46
"mainMovie"
- h264/AVC, 1080i (16:9)
- E-AC3, English, 5.1, 48khz
- TrueHD, English, 5.1, 48khz
- E-AC3, English, 2.0, 48khz

2) Tokuten.EVO, 0:29:26
"Spesial"
- h264/AVC, 1080i (16:9)
- E-AC3, English, 2.0, 48khz

3) TaikiMenu.EVO, 0:01:00
"Taiki_menu"
- h264/AVC, 1080i (16:9)
- DTS-HD, English, 5.1, 48khz

I'm not going to keep this one and HD-DVD is pretty much gone it seems but this was the first I'd ever seen such an error so thought I'd note it. Dumping this one Monday <shrug>

nautilus7
15th June 2008, 16:56
The 2nd screen/command takes the stream info from the .xpl file. Because of that it's quick and inacurate. It doesn't read any .evo files. When you load the evos (like you did in the 1st screen or by using title 1), 2), ...) you get the actual streams inside the evos.

So, in your case there's something wrong in the evos. Perhaps they are damaged or the eac3 streams have something different from the usual ones (that eac3to likes). Try only the 2nd evo file. If nothing changes, then it might be useful to make a sample and upload here, so madshi can take a look into it, when he show up (i guess he is too busy right now). Else, try re-ripping the disc.

BLKMGK
15th June 2008, 17:00
The L1 file throws errors but appears to be decoding and then errors, the L0 errors right away. IMO this is a bad authoring job - which is actually part of one of the errors I got. (lol) No biggie as this is a sort of fringe disk I think and I can get rid of it for someone with a "real" HD-DVD player to have <shrug>

laserfan
15th June 2008, 18:07
LOL, I know, this is the greatest thing since sliced bread...Well, nautilus7 didn't respond to my wonderment so I guess I have to consider a new theory: that nautilus7 is actually madshi "in disguise"! ;)

saint-francis
15th June 2008, 18:41
:stupid: LOL, I know, this is the greatest thing since sliced bread and it's got so little documentation about the power inside. The help file only seems to skim the surface of all the things it will do. You can use mkvextract to extract the 264 out of the mkv file, but I'm hoping to use the -demux option in the future, but I'm not sure of the syntax needed, according to the help file, it demuxes the first video track and all audio tracks.

If you know the basics of eac3to you can use the GUI and study the command line that it makes. Yraen certainly knows what he's doing and his tool does it's job well and has all of the options.

nautilus7
15th June 2008, 19:02
I am following this thread (and eac3to development) since July 2007. At that point the thread was already 100 pages long --> I read them too. Don't think i am a guru or something. I am here just a little longer than others. All these commands where well explained by madshi when he implemented them in eac3to, so probably were missed by some.

mochevolete
15th June 2008, 19:55
Hi again, real first trouble...

from the HD-DVD Im' dealing with, I'm extracting two audio tracks, both are DD+, the first is 1536kbs the second is 768kbs, with the last one no troubles getting an AC3 640kbs (just one tenth longer), but no way in convert it to DTS 768, it stutters like crazy and it's longer by almost two minutes (!).

But I could easily live with the AC3 640 result.

The big problem is the bigger one, the 1536kbs track (always DD+) I've tried everything:
- > DTS 1536
- > DTS 768
- > AC3 640

Using Surcode 1.0.21 and .23, Sonic 4.2 and 4.3, Win Xp and Vista, the closest duration of all my attempts is 3 seconds longer than the video, most of them are from 10 to 7 seconds shorter o longer.

After almost two days of "tests" I'm a bit skeptical... :(

What am I missing... ?

Nik

madshi
15th June 2008, 20:41
You can see the WriteHeader routine in Encoder.cs from last BeHappy source code (http://www.codeplex.com/BeHappy/SourceControl/ListDownloadableCommits.aspx), with support for wav, w64 and rf64 headers. Only the header change the audio data is the same.

EDIT: Docs:
w64 (http://www.ambisonia.com/Members/mleese/sony_wave64.pdf)
rf64 (http://www.ebu.ch/CMSimages/en/tec_doc_t3306-2007_tcm6-42570.pdf)
madshi
about wave64
tech doc http://www.radio.uqam.ca/ambisonic/sony_wave64.pdf
and small sample around 20 seconds desc - 48kHz/24bit/5.1/PCM
http://rapidshare.com/files/119613827/tristan.w64
Thanks. Will have a look at this later...

eac3to is unable to demux MP2 audio from .ts
http://x264.nl/h.264.samples/force.php?file=./luxe.hd.ateme.ts
http://x264.nl/h.264.samples/force.php?file=./arte.hd.ts
Fixed. However, I've still trouble with the video in both cases. The luxe video seems to be very strange. The h264 bitstream seems to have a crazy framerate stored in it. Will need to check this properly later...

wine --version
wine-1.0-rc3


[v01] Starting DirectShow conversion failed.
Aborted at file position 1409024.

in a real windows it runs fine
I've no idea why that fails. I'm not a Linux expert at all. It seems to me that Haali's filter doesn't work well in wine. It could be a bug in wine. Or maybe Haali is doing some funny stuff. There's not much I can do about that, unfortunately...

I am currently looking into MPLS parsing. What I want to find out for the time being is the m2ts files making up the playlist and to reliably detect the main movie MPLS. Do you have any information concerning that?
There is just no information available to properly detect the main movie MPLS. eac3to just lists all playlists with a runtime longer than 30 minutes (or something like that), sorted after runtime.

eac3to will not stripPullDown on HD-DVD AVC streams, only on VC-1, is that correct?
Correct. And the VC-1 pulldown stripping is only a partial strip and needs to be manually activated (via command line option).

the remuxing of the cinema paradiso blu-ray results in a problem, eac3to says "This doesn't seem to be a valid h264/AVC stream." and doesnt recognize the video stream.
Will be fixed in next build.

Q. 2. I know support of E-AC3 is optional in the BD world, I will be using PS3 to play, which I believe supports it.
BUT will a BD with a E-AC3 track only play properly more widely (eg if I was to burn to BD disc)
Or would I be better off putting both the AC3 and the E-AC3 onto the BD disc/folders
Blu-Ray and HD DVD E-AC3 tracks are *NOT* compatible (Blu-Ray E-AC3 tracks have an AC3 core, HD DVD E-AC3 tracks don't). You can not reuse HD DVD E-AC3 tracks for Blu-Ray authoring. At least not if you care about PS3 compatability. You'll have to transcode the HD DVD track to another format.

q.3 Any comments on why there are minor (probably negligible) differences between different demuxers?
There are differences. Some demuxers have bugs, others don't. Some demuxers make sure that audio is in sync, others don't. Some demuxers remove garbage data at the beginning of the demuxed tracks, some don't. Some demuxers patch audio/video tracks (e.g. removing dialnorm etc), others don't. Some fix audio overlaps/gaps, others don't.

Q4. What is best tool to give exact lengths of video and audio files, once demuxed? MediaInfo only gives to the minute for audio files
eac3to should give fairly precise information (rounded to seconds) about the runtime of the audio files it supports. Runtime of raw audio/video tracks with variable bitdepth is nearly impossible to "guess" right. A tool trying to find out the correct runtime would have to parse the whole video/audio stream to make sure that the runtime is exact.

ArcSoft TotalMedia Theatre build 113 Trial:

http://www.arcsoft.com/support/downloads/downloadnow.asp?downloadid=384

can decode DTS-HD MA including DTS-HD MA 7.1 channels using GraphEdit:

FileSource (Async.) -> ArcSoft MPEG Demuxer -> ArcSoft Audio Decoder HD -> Dump.ax

still doing tests, but initial results look very promising, i.e. decodes are bit-perfect.
@madshi

FYI, "ArcSoft Audio Decoder HD" build 113 TrueHD 7.1 decodes are bit-perfect, byte-by-byte identical with libav.

so, looks like the ArcSoft decoder is very interesting.
Yeah, it really looks like that!! Will put that on top of my to do list.

Just a quick question. When converting DTS to AC3, using eac3to and the Sonic Audio Decoder (which takes about 9 minutes), I see only 1 of my 4 cores is being used. Does eac3to have a multi-threaded switch by any chance? I couldn't find any. Or maybe the Sonic Audio Decoder is not muti-threaded?
eac3to is using multiple threads whenever it's easily possible. E.g. if you decode two audio tracks at the same time, usually one thread is used for one audio track. The Sonic Audio Decoder doesn't seem to do multi-threading on its own. eac3to cannot force it to do that.

When demuxing a m2ts-File with MPEG2-VideoCodec the Videofile is defekt and not playing on Standaloneplayer.

The Problem ist - the Header is 2x at the beginning of the m2v-File.
Will be fixed in the next build.

When demuxing a m2ts file (extracting DTS sound of "The Matrix"), eac3to reported a 600000ms offset (10 mins). That seems a bit excessive. :) I was able to correct it again by specifying a negative -600000ms delay to compensate. But any idea what might have caused this?
Could be a bug in the m2ts file. But it could also be a bug in eac3to. eac3to v2.46 used such crazy delays if it didn't detect any valid video streams. This will be fixed in the next build.

madshi
15th June 2008, 20:42
madshi, would it be possible that you could output more of the undocumented switches (either here or in eac3to) ? I have a problem with a .m2ts file and am looking for that switch to ingore possible errors now, but since its not documented in eac3to I cant find it.
If an error occurs which you can skip, eac3to will tell you about the option you can use for skipping that error. A lot of errors can simply not be skipped in the current version.

what does pulldown flag mean ? what have i to do if i mux the video into .mkv ?
If you mux to MKV you can ignore the pulldown flags. They are not nice, but they don't harm much because eac3to writes proper timestamps (ignoring the pulldown flags) into the MKV file - and the video decoders only care about the timestamps coming from the container. However, if you want to demux video and mux it to another container with other tools you should better remove the pulldown flags.

"[a04] Applying (E-)AC3 delay..."
i convert the .eac3 to .ac3, and i will mux it with mkvmerge with the abc_movie.mkv file, what have i to do with the "-80ms delay" ?
.... i must set -80 ms in the mkvmerge(gui) ? or does eac3to change anything on the delay ?
As long as you feed eac3to with the original container (TS, m2ts, VOB or EVO) eac3to will automatically take care of any delays. You only need to worry about the delays if you use other tools for demuxing audio.

I just tried to convert a LPCM track @ approx 7MB/s to DTS @1536kbps using eac3to with eac3toGUI. I used the sonic filter and Surcode is intstalled on my PC. Everything started fine, the single 5GB LPCM file was split to six single channels by eac3to then the recode began and finished after about 15 minutes. I then tried to load the file in tsMuxeR but it came back "cannot detect stream", any ideas?
Try running the DTS stream another time through eac3to ("eac3to your.dts anothertry.dts". That might fix the problem. The Surcode DTS encoder sometimes adds zero padding to the DTS stream, which many tools dislike. eac3to will remove the zero padding for you.

Hi Madshi,

Just popped in to ask a question;

Lately i' m making some AVCHD-disk; And according to the standard the audio on those disks can only be AC35.1 (up to 640 kbps). Thats no problem, but teh standard also mentiones that the framerate for video can only be 24, 25 or 30 fps.

I' d like to ask if it is possible to implement a function like speedup is now, but only speeds up the audio to 24 fps. This way i can use EAC3to to make to convert the audio i need for my AVCHD disks, cause 24fps is closer to the original (23,976).
Are you sure that it's really 24.000 and 30.000? Often "24fps" and "30fps" is used when actually 23.976 and 29.970 is meant.

I've been converting my hd dvd's for playback on appletv with the following steps:
1. anydvd to rip
2. eac3to to obtain .mkv video file and .ac3 multichannel audio
3. mkvmerge to create .mkv container file
4. visualhub to convert .mkv to .mov file (1280x720@24fps with .ac3 audio passthru)

i've been successful with many dvd's but encountered a few "problem discs" along the way. now that i've hit my 3rd problem disc, i've noticed a trend. all three (Anchorman, TopGun, and now Stardust) have h264/avc video streams. the discs i've been successful with are all vc-1.

the .mkv file created by mkvmerge won't even play on my computer (iMac with windows XP thru parallels). Multiple mkv players (VLC, mPlayer OSX and Media Player Classic). VLC gives the smoothest video playback but the audio falls out of sync. mPlayer OSX reports a progressively increasing a/v sync that maxes out around 4 sec and a larger dropped frame rate. MPC won't even play the files at all, immediately giving some error message.

consequently, the .mov file created by VisHub as played thru the appletv has a stuttering video with smooth audio playback.

the vc-1 discs (at least 10) that i've done all work fine.

thoughts?
All the h264 HD DVD movies I've converted to MKV played flawlessly for me. However, I'm using Windows. I rather guess that maybe your Mac software is confused by the pulldown flags. You could try remuxing the video, running it through h264info to remove the pulldown flags and then muxing it to MKV.

from the HD-DVD Im' dealing with, I'm extracting two audio tracks, both are DD+, the first is 1536kbs the second is 768kbs, with the last one no troubles getting an AC3 640kbs (just one tenth longer), but no way in convert it to DTS 768, it stutters like crazy and it's longer by almost two minutes (!).

But I could easily live with the AC3 640 result.

The big problem is the bigger one, the 1536kbs track (always DD+) I've tried everything:
- > DTS 1536
- > DTS 768
- > AC3 640

Using Surcode 1.0.21 and .23, Sonic 4.2 and 4.3, Win Xp and Vista, the closest duration of all my attempts is 3 seconds longer than the video, most of them are from 10 to 7 seconds shorter o longer.

After almost two days of "tests" I'm a bit skeptical... :(
The audio doesn't have to be exactly as long as the video is. E.g. sometimes there's some scrolling info text at the end of the movie where no audio is available. Another problem is that when using DTS encoding sometimes the DTS tracks end up having zero padding in it. This confuses many DTS splitters. Remove the zero padding by running the DTS tracks another time through eac3to. That should fix that problem.

Generally don't look for trouble. Don't worry if audio and video runtimes do not match. Just play the movie and check if audio is in sync in the beginning and end of the movie. That's the only thing that is important.

nautilus7
15th June 2008, 20:45
ignore this

Atak_Snajpera
15th June 2008, 20:52
Madshi: Why eac3to does not like TSMuxer output (Blu-Ray). AVC stream not detected + huge audio delay.

madshi
15th June 2008, 21:35
Madshi: Why eac3to does not like TSMuxer output (Blu-Ray). AVC stream not detected + huge audio delay.
Should be fixed in next v2.47, I guess. If not, please let me know.

madshi
15th June 2008, 21:37
eac3to v2.47 released

http://madshi.net/eac3to.zip

* improved detection of AC3/DTS tracks in TS/M2TS container
* added support for Blu-Ray style LPCM tracks in TS container
* fixed 44.1kHz AC3 tracks
* fixed crazy audio delay values when no video track was detected
* sometimes video/audio tracks were not properly detected in (M2)TS container
* MPEG2 demuxing/remuxing incorrectly output the first sequence headers twice
* sequence end codes are removed when demuxing video now, too
* MPEG2 pulldown removal is automatically activated only for EVO HD sources now
* MPEG2 pulldown removal can be manually activated by using "-stripPulldown"
* MPEG2 pulldown removal can be disabled by using "-keepPulldown"
I currently don't have much time for eac3to development. So I've just done some bug fixes for now. Maybe I'll have more time next weekend. Or not.

P.S: Most MPEG2 TV broadcasts and also most DVDs don't have a reliable pulldown pattern. As a result they work best if you don't remove the pulldown at all. Just keep them at 60i. If you're sure that your source has a reliable pulldown pattern you can force removal of pulldown - but then better check if audio is in sync with the final video/audio files. The HD DVD MPEG2 movies (which are extremely rare, though) should have a reliable pulldown, so for those eac3to removes the pulldown by default.

laserfan
15th June 2008, 22:24
eac3to v2.47 releasedI currently don't have much time for eac3to development. So I've just done some bug fixes for now. Maybe I'll have more time next weekend. Or not...Gonna try to be the first to say THANKS! It is appreciated. :)

:thanks:

G_M_C
15th June 2008, 22:40
[...]
list of quotes
[...]


You' ve quoted my question about converting audio to 24 fps, but you might have forgotten the answer ;)

nautilus7
15th June 2008, 22:47
You' ve quoted my question about converting audio to 24 fps, but you might have forgotten the answer ;):D:D:D

All these days without madshi's posts here, i was waiting for his multi quote responses. :p It was almost certain that he would miss a few, but not this way. :D


Thanks for the update madshi. Looking forward for the new dts-hd master audio decoder. I want to make some 7.1 flacs.

madshi
15th June 2008, 22:48
You' ve quoted my question about converting audio to 24 fps, but you might have forgotten the answer ;)
Have edited that post.

G_M_C
15th June 2008, 23:36
Have edited that post.

Yes i'm shure that it really is 24.000

I've tried making a AVCHD with 23,976; Then the audio plays, but the video isnt displayed. Only on 24 fps it works (and on all other rates supported by the format, see here: http://www.avchd-info.org/format/index.html).

The current video i'm working with is 720p @ 23,976. The player i'm trying to get it to work on is the Panasonic DMP-BD30.

xkodi
16th June 2008, 00:26
@madshi

eac3to 2.47 bug report:

LPCM, 7.1ch, 24bit, 96kHz track is decoded by eac3to as WAV file that is reported by players as 48kHz, but looks like only the WAV header is wrong, because eac3to reports the parameters correctly:

2: RAW/PCM, Japanese, 7.1 channels, 24 bits, 96khz

nautilus7
16th June 2008, 01:09
@madshi

eac3to 2.47 bug report:

LPCM, 7.1ch, 24bit, 96kHz track is decoded by eac3to as WAV file that is reported by players as 48kHz, but looks like only the WAV header is wrong, because eac3to reports the parameters correctly:

If you convert it to flac... Is it reported correctly then?

(if the wav header is written accidentally as 48 khz, wouldn't then the track played at half speed? :confused:)

Thunderbolt8
16th June 2008, 01:26
thanks for 2.47, as I said Ill report back in case I should encounter problems

DoomBot
16th June 2008, 02:55
eac3to v2.47 released

http://madshi.net/eac3to.zip

* sequence end codes are removed when demuxing video now, too
.

So this means we dont have to mux to mkv when doing a seamless branching movie correct? Then i can mux my demuxed video and audio with tsmuxer.

madshi
16th June 2008, 07:35
LPCM, 7.1ch, 24bit, 96kHz track is decoded by eac3to as WAV file that is reported by players as 48kHz, but looks like only the WAV header is wrong, because eac3to reports the parameters correctly
Hmmmm... Could I have a small sample of the source file (m2ts or evo), please? 10MB should be plenty. Thanks!

So this means we dont have to mux to mkv when doing a seamless branching movie correct? Then i can mux my demuxed video and audio with tsmuxer.
Yes, that's exactly the purpose I implemented it for. However, depending on how tsmuxer behaves it might still be better (or worse) to choose MKV as an intermediate step instead of demuxing. My recommendation would be to test both solutions (1: eac3to -> MKV -> tsmuxer; 2: eac3to -> demux -> tsmuxer) and see which end result is better. I can't say which will be better. That depends on tsmuxer.

xkodi
16th June 2008, 10:00
Hmmmm... Could I have a small sample of the source file (m2ts or evo), please? 10MB should be plenty. Thanks!

http://rapidshare.de/files/39733929/lpcm712496.m2ts.html

madshi
16th June 2008, 19:31
http://rapidshare.de/files/39733929/lpcm712496.m2ts.html
Thanks, will be fixed in next build.

rickardk
16th June 2008, 21:29
eac3to v2.47 crashed when trying to make a flac out of this one:
www.earselect.se/test.lpcm

eac3to v2.22 can handle it though

madshi
16th June 2008, 21:43
eac3to v2.47 crashed when trying to make a flac out of this one:
www.earselect.se/test.lpcm

eac3to v2.22 can handle it though
That's a crash in the MP2 audio parser when trying to find out whether the file is MP2 or not. v2.22 didn't support MP2 yet. That's why it worked with v2.22. The problem will be fixed in the next build.

Thunderbolt8
17th June 2008, 21:50
the ac3 commentary track from the patton blu-ray has a -9ms delay. but when demuxing that track eac3to writes the 'applying (e)ac3 delay...' message, which actually doesnt/shouldnt happen in that case. if a delay was applied then the sync would be worse than no change at all, because of the 32ms frame size. so is this message in this case basically only generic even though eac3to doesnt add a delay here, its printed out each time any delay is detected, indicating to the user that eac3to looks to solve this issue automatically, even when the solution is not adding a delay at all?

nautilus7
17th June 2008, 22:07
Latest eac3to version crashes with title 1 (main movie) of National Treasure 2 Blu-ray. I think this is because of the PiP function (secondary video stream) of this disc. Previous version simple couldn't detect the dts track of the secondary video stream.

Bug report (http://www.sendspace.com/file/vt8f24)

BLKMGK
17th June 2008, 22:25
Latest eac3to version crashes with title 1 (main movie) of National Treasure 2 Blu-ray. I think this is because of the PiP function (secondary video stream) of this disc. Previous version simple couldn't detect the dts track of the secondary video stream.

Bug report (http://www.sendspace.com/file/vt8f24)

Getting the same sort of error with Jumper :( How exactly did you create the bugreport file? Vista is offering to send it off someplace but umm yeah I dunno' know where :rolleyes: If I view the bug report I see the access violation etc. but no way to copy that data out... DYING to see this movie lol

nautilus7
17th June 2008, 22:58
...but umm yeah I dunno' know where :rolleyes:
That's why newer versions of eac3to copy the bug report to the folder that eac3to is located. :p Jumper has PiP as well.

BLKMGK
18th June 2008, 00:04
That's why newer versions of eac3to copy the bug report to the folder that eac3to is located. :p Jumper has PiP as well.

well in that case! http://pastebin.com/m257da4ce

boykster
18th June 2008, 06:48
I got the same crash/error on Jumper with 2.47 (with the newest AnyDvd update). I was able to successfully process it with 2.46 and so far (about 1 hour in to watching it) everything's looking good.

I processes NT2 with 2.46 also and had no problems other than that DTS error message. My output video/audio streams were just fine.

nautilus7
18th June 2008, 11:53
I noticed that Rambo (2008) blu-ray which uses PiP also doesn't crash with 2.47. Although the PiP audio track is AC3.

eac3to "F:\Rambo IV 2008 Blu-ray 1080p H.264 DTS-HD MA 7.1" 1)

M2TS, 2 video tracks, 3 audio tracks, 2:00:22
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, 5.1 channels, 24 bits, 48khz
5: AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
6: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB


eac3to "F:\Rambo IV 2008 Blu-ray 1080p H.264 DTS-HD MA 7.1" 3)

M2TS, 2 video tracks, 3 audio tracks, 1:31:31
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, 5.1 channels, 24 bits, 48khz
5: AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
6: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB

madshi
18th June 2008, 12:14
the ac3 commentary track from the patton blu-ray has a -9ms delay. but when demuxing that track eac3to writes the 'applying (e)ac3 delay...' message, which actually doesnt/shouldnt happen in that case. if a delay was applied then the sync would be worse than no change at all, because of the 32ms frame size. so is this message in this case basically only generic even though eac3to doesnt add a delay here, its printed out each time any delay is detected, indicating to the user that eac3to looks to solve this issue automatically, even when the solution is not adding a delay at all?
Just checked the source code. The text "applying (e)ac3 delay..." is always shown if the delay is not zero. But a delay is actually only applied if it's at least half of an audio frame. I'll fix this in the next build. The text will then only be shown if delaying actually changes something.

In other words: It's only the text that is wrong. So no need to worry...

Latest eac3to version crashes with title 1 (main movie) of National Treasure 2 Blu-ray.
Getting the same sort of error with Jumper :(
Could I have a small sample of National Treasure 2 and Jumper each? Of course that helps only if the problem also occurs with the sample. The sample doesn't need to be big. Even 5MB is enough, as long as the crash also occurs with the sample.

Thanks!

yesgrey
18th June 2008, 13:35
I have a TS file with a h264 video stream and an ac3 5.1 audio stream.

When processing it with eac3to 2.46 gives this message:
This doesn't seem to be a valid MPEG2 stream.
TS, 1 video track, 1 audio track, 0:23:31
1: h264/AVC, 1080p24 /1.001 (16:9)
2: AC3, English, 5.1 channels, 640kbit/s, 48khz, dialnorm: -29dB

When processing it with eac3to 2.47 gives this message:
This MPEG2 framerate is currently not supported.
TS, 1 video track, 1 audio track, 0:23:31
1: h264/AVC, 1080p24 /1.001 (16:9)
2: AC3, 5.1 channels, 640kbit/s, 48khz, dialnorm: -29dB

Can't we process TS files with other than MPEG2 video streams?

madshi
18th June 2008, 13:55
I have a TS file with a h264 video stream and an ac3 5.1 audio stream.

When processing it with eac3to 2.46 gives this message:
This doesn't seem to be a valid MPEG2 stream.
TS, 1 video track, 1 audio track, 0:23:31
1: h264/AVC, 1080p24 /1.001 (16:9)
2: AC3, English, 5.1 channels, 640kbit/s, 48khz, dialnorm: -29dB

When processing it with eac3to 2.47 gives this message:
This MPEG2 framerate is currently not supported.
TS, 1 video track, 1 audio track, 0:23:31
1: h264/AVC, 1080p24 /1.001 (16:9)
2: AC3, 5.1 channels, 640kbit/s, 48khz, dialnorm: -29dB

Can't we process TS files with other than MPEG2 video streams?
The h264 and AC3 tracks are detected just fine. So I see no reason why eac3to shouldn't be able to handle them correctly. Just give it a try.

The complaint is about an MPEG2 video track, which is not listed in the track listing. I think that there is probably a 3rd track (besides the h264 and AC3 tracks) which eac3to cannot handle properly. If you want me to look into this problem, I need a little sample of this file. 10MB should be enough.

nautilus7
18th June 2008, 19:35
Could I have a small sample of National Treasure 2?Here it is. (http://www.sendspace.com/file/ov1bsw)

madshi
18th June 2008, 20:09
Here it is. (http://www.sendspace.com/file/ov1bsw)
Thanks. The problem is caused by the PiP DTS audio track. Will be fixed in the next build.

canoehead
18th June 2008, 20:10
I've had the same crashing problem with the Blus of Jumper and the Longest Day. I

rebkell
18th June 2008, 20:17
Does eac3to handle standard definition DVDs like blu-ray and/or HD-DVD or do you have to combine all the vob's on the command line?

madshi
18th June 2008, 20:26
Does eac3to handle standard definition DVDs like blu-ray and/or HD-DVD or do you have to combine all the vob's on the command line?
Currently eac3to is not as comfortable to use for standard DVDs as it is for Blu-Ray and HD DVD. That means you have to write down all the vobs to the command line manually. This may change in a future version.

rebkell
18th June 2008, 20:28
Currently eac3to is not as comfortable to use for standard DVDs as it is for Blu-Ray and HD DVD. That means you have to write down all the vobs to the command line manually. This may change in a future version.

Thanks, I'll tough it out. :)

nautilus7
18th June 2008, 21:55
Thanks. The problem is caused by the PiP DTS audio track. Will be fixed in the next build.Will eac3to be able to deal with these tracks (dts express?)? Have you find any specs about this?

yesgrey
19th June 2008, 01:16
If you want me to look into this problem, I need a little sample of this file. 10MB should be enough.

madshi, here (http://www.sendspace.com/file/t5ntqm) it is. It's a 30MB sample, because less than this the problem did not happen.
It should have a 3rd track, a LPCM track.

Thanks.

BLKMGK
19th June 2008, 04:08
Thanks. The problem is caused by the PiP DTS audio track. Will be fixed in the next build.

Do you need additional samples Madshi?

madshi
19th June 2008, 09:59
Will eac3to be able to deal with these tracks (dts express?)? Have you find any specs about this?
I don't have any specs about it. I'm not sure if I can support it. Maybe yes, maybe no. But does anybody really care about PiP audio?

here (http://www.sendspace.com/file/t5ntqm) it is. It's a 30MB sample, because less than this the problem did not happen.
It should have a 3rd track, a LPCM track.
This is a faulty TS file. The LPCM track is stored under the program ID "0x80", which is normally used for MPEG2 video tracks in TS files. As a result eac3to tries to interpret the LPCM data as MPEG2 video, which of course won't work. Still eac3to should be able to handle the h264 and AC3 tracks just fine. But the LPCM track is just plain wrong and as a result eac3to will not be able to handle this track correctly. You can demux it with xport, though. Rename the demuxed file to "audio.pcm" then. Then eac3to will be able to handle the LPCM data.

The latest version of eac3to generally does support LPCM tracks in TS files, but the LPCM track must at least have a Blu-Ray descriptor, so eac3to knows that it's supposed to be an LPCM audio track and not an MPEG2 video track.

Do you need additional samples Madshi?
For the crash problem with PiP movies? Probably not. Although, if you want to be sure that the next build will not have a problem with the specific movie you've got you can upload a sample. I'll double check then. But I think the problem should be fixed, anyway.

Momber
19th June 2008, 10:56
But does anybody really care about PiP audio?
LOL! Good question. I'd say "only as far as safely and permanently trashing it goes" :)

BLKMGK
19th June 2008, 12:30
LOL! Good question. I'd say "only as far as safely and permanently trashing it goes" :)

I guess my question is - where is this actually used in the movie? Is it the Director's comments stuff? If so then meh, I'm not concerned with it - I want to watch the silly movie!:eek: If the previous version could rip it and this one cannot then hopefully the fix is somewhat obvious. :D I generally overwrite old versions and am now kicking myself for that.

Madshi for now I'll hold off as I suspect that you've got it nailed, Jumper is the only movie I need this for - not sure what the sample above is from but fingers crossed.

Any reason why I couldn't copy the files from the disk and "rip" from the copied files? They would be unencrypted <shrug> Just not ever tried that, seems like it ought to work if I am pointing your tool at a directory vs a drive letter. Might try that for fun this evening but I think it would work.

nautilus7
19th June 2008, 13:29
Any reason why I couldn't copy the files from the disk and "rip" from the copied files? They would be unencrypted <shrug> Just not ever tried that, seems like it ought to work if I am pointing your tool at a directory vs a drive letter. Might try that for fun this evening but I think it would work.
Not sure I understand what you mean.. Jumper uses a new version of BD+ and only latest AnyDVD can crack it.

lexor
19th June 2008, 16:29
Hey madshi, I've got a question regarding options for DTS decoding. The OP states that Sonic decoder is preferred due to avoiding the 4 problems commonly encountered. Now I know there is an open source solution for those who don't have Sonic, but since its merits aren't discussed, I'd like to direct your attention to a different DTS decoder that I use in my workflow. It's a plug-in for Foobar2000 player called foo_dts.dll (http://acropolis.lokalen.org/2006/10/foobar2000/my-foobar2000-components/) (which right there could potentially render it useless, if it is too much work to integrate). However, in my tests the plug-in doesn't suffer from problems 3 and 4, it provides user with option for 1 (default DRC=off, which we like). I'm not sure about testing problem 2, but I use SoundForge to encode my AC3 (following the guide in the sticky here) and I get different RMS value for different sections of dialog, which according to the discussion in that thread is indicative (though inconclusive) evidence of the absence of Normalization. The only technical drawback of that plug-in is that it's mostly developed for DTS-CD, so only 5.1 support.

What do you think, madshi, will this be too much work for too little to try to make eac3to use that plug-in? On a related subject, what is the drawback of current free solution that makes you recommend Sonic decoder?

nautilus7
19th June 2008, 16:32
Does it support DTS-HD tracks? That's the main use of Sonic decoder.

lexor
19th June 2008, 16:41
Does it support DTS-HD tracks? That's the main use of Sonic decoder.

Probably not, with the DTS-CDs being it primary target. The main reason I would want to use the DTS decoder in eac3to is to convert DTS to wav (for further processing in SoundForge to get AC3). Since I don't know of pros and cons of eac3to's free DTS decoder I was using fb2k, just because it appears to avoid the 4 problems. That's the only reason I brought this up.

nautilus7
19th June 2008, 17:52
You can also use libav for plain DTS decoding. It works pretty well (non of the 1-2-3-4 problems are present).

rebkell
19th June 2008, 18:04
I have a question about demuxing the video stream, I know that you can use the command line switch (example)
1: movie.mkv and it will mux the video stream into an mkv container, but I was wondering if you can just demux the raw video stream into movie.h264 or movie.mpg or movie.vc1, instead of using the demux which demuxes all streams and from my reading only extracts into the source directory where the m2ts/ts/mpg etc file resides? I like to encode my movies and I use dgavcindex for the 264 files and unfortunately it can't parse mkv containers, so I have to extract the 264 stream from the mkv before I can use it.

If this is in the thread already I apologize, but my eyes glaze over after reading so many pages and a search on the thread didn't really turn up anything definitive to me.

nautilus7
19th June 2008, 18:27
To demux a specific stream you have to set as extension to the output file the actual one. E.g 1: video.264 or 1: video.vc1 (the same goes for audio streams)

Furthermore, DGAVCIndex can handle .m2ts (blu-ray) and .ts containers, so if your source is such, you don't need to demux at all.

rebkell
19th June 2008, 18:37
To demux a specific stream you have to set as extension to the output file the actual one. E.g 1: video.264 or 1: video.vc1 (the same goes for audio streams)

Furthermore, DGAVCIndex can handle .m2ts (blu-ray) and .ts containers, so if your source is such, you don't need to demux at all.

Tried the .264 extension and don't remember the exact message, but something along the lines of not supported, tried mpg same message. The m2ts files are ok, but it isn't much solution for playlists with multiple pieces, etc... eac3to also deals with all those overlaps, etc... I figured since he's muxing the streams into an mkv container, that it might not be that difficult to just demux the raw streams, notice I said might because I have no idea if it would be a major pain or not, and I can live just fine with things the way they are.

boykster
19th June 2008, 18:53
Not sure I understand what you mean.. Jumper uses a new version of BD+ and only latest AnyDVD can crack it.

My current method for all BD's is to make an iso with ImgBurn, mount it with Daemontools, and use eac3to on that mounted iso. AnyDVD can do its magic either during ripping with ImgBurn or when you mount the iso, so its a win either way.

nautilus7
19th June 2008, 19:23
Tried the .264 extension and don't remember the exact message, but something along the lines of not supported, tried mpg same message.Did you select the correct stream number? Can you post the log file please?

rack04
19th June 2008, 19:28
Tried the .264 extension and don't remember the exact message, but something along the lines of not supported, tried mpg same message. The m2ts files are ok, but it isn't much solution for playlists with multiple pieces, etc... eac3to also deals with all those overlaps, etc... I figured since he's muxing the streams into an mkv container, that it might not be that difficult to just demux the raw streams, notice I said might because I have no idea if it would be a major pain or not, and I can live just fine with things the way they are.

Doesn't it have to be .h264 extension?

rebkell
19th June 2008, 19:31
Did you select the correct stream number? Can you post the log file please?

It's on my home PC, but I selected the correct track, because I just changed the existing command line, up arrow and tried another extension (h264) with the same results, up arrowed again to get the command line back and changed the extension to mkv and it muxed it into an mkv file, so I'm sure I didn't select the wrong stream.

Can you do it? It fails pretty quickly, it doesn't even try to demux.
I'll do it again when I get home, but if you've got something close by, I'd be interested if you can make it happen?

Edit: I'm not totally positive, thinking back that I tried h264 as an extension, I'll try it again when I get home, I think I did, but I will double check when I get the chance.

BLKMGK
19th June 2008, 21:25
Not sure I understand what you mean.. Jumper uses a new version of BD+ and only latest AnyDVD can crack it.

Yes, WELL aware of this. However I HAVE that new version and can easily see the files but the existing eac3to software bombs when I attempt to pull put the video and audio tracks for compression. My question is can I simply copy them off of the BD media and then use eac3to to process them at a later time or will I need to have the media in the drive? I am pretty sure the media isn't needed and can be put away but I want to make sure.

nautilus7
19th June 2008, 22:14
@ rebkell

Output should be .h264. Sorry, my bad.

eac3to "F:\Close Encounters of the Third Kind 1977 Collector's Edition Blu-ray 1080p H.264 TrueHD 5.1 DTS-HD MA 5.1\Feature Disc" 1) 2: video.h264
M2TS, 1 video track, 4 audio tracks, 2:17:13
1: Chapters, 20 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: AC3, Spanish, 5.1 channels, 448kbit/s, 48khz, dialnorm: -29dB
4: TrueHD/AC3, English, 5.1 channels, 48khz
5: TrueHD/AC3, French, 5.1 channels, 48khz
6: DTS Master Audio, English, 5.1 channels, 24 bits, 48khz
[v02] Extracting video track number 2...
[v02] Creating file "video.h264"...
---------------


@ BLKMGK

Yes, of course. You can copy the files to the HDD and then use eac3to to process them (that's what I do all the time :rolleyes: ).

73ChargerFan
19th June 2008, 23:34
... can I simply copy them off of the BD media and then use eac3to to process them at a later time
Right click on the fox icon near the clock, and select "Rip Video DVD to Harddisk".
Updated on 6/17/08 for Jumper BD.

yesgrey
20th June 2008, 00:21
You can demux it with xport, though.

Have you tryed it? I have and can't do it. I only can extract the ac3 track.

With: xport sample1.ts 1 1 1
I get the video h264 file and the ac3 audio.

With: xport sample1.ts 1 1 2
I get the video h264 file and no audio file.

Am I using xport wrongly?

Edit: Forget it. I have done it with tsMuxeR. Thanks anyway.

BLKMGK
20th June 2008, 01:46
Right click on the fox icon near the clock, and select "Rip Video DVD to Harddisk".
Updated on 6/17/08 for Jumper BD.

Yah that will take the WHOLE BD disk. However for eac3to I *think* I just need the m2TS files and some of the other stuff in the Stream directory. Not sure how much that will save me though but I'll look. At least it can be decoded now!:cool:

73ChargerFan
20th June 2008, 04:31
The entire Hellboy BD is 46.0GB, and the stream directory is 46.0GB. Draw your own conclusions!

saint-francis
20th June 2008, 04:48
IMO it's a good idea to rip the entire disk. First, it has been shown numerous times throughout this thread that using anydvd to rip the disk leads to less problems with poor rips. Second, it's always good to haave the entire disk on the HDD incas there is a need to go back and work with material you didn't intend to use the first time.

zeropc
20th June 2008, 07:27
i encountered a little problem while encoding dts-hd ma to ac3 and i dunno what to do.

eac3to v2.47
command line: "C:\Program Files\encoding-tools\eac3to\eac3to.exe" "G:\jumper\BDMV\STREAM\00001.m2ts" 3: "C:\dts\jumper.ac3"
------------------------------------------------------------------------------
M2TS, 1 video track, 1 audio track, 1:28:29
1: Chapters, 25 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 5.1 channels, 24 bits, 48khz
[a03] Extracting audio track number 3...
[a03] Decoding with DirectShow (Sonic Audio Decoder)...
[a03] DirectShow reports 5.1 channels, 24 bits, 48khz
[a03] Encoding AC3...
[a03] Creating file "C:\dts\jumper.ac3"...
[a03] This track is not clean. Processing aborted.
[a03] Please clean the track with delaycut and then retry eac3to.
Aborted at file position 25130254336.

i demuxed the audio stream with tsmuxer and opened it in delaycut 1.3 which aborted the clean-up after about 70%

any idea what i can do?

nautilus7
20th June 2008, 08:53
I though 2.47 crashes with Jumper... :confused:

You can re-rip the disc and try again. Or wait a few days and try with the upcoming 2.48. What does the delaycut log say (it outputs the dts core only, but there isn't another way)?

G_M_C
20th June 2008, 09:42
I wouldn't care it crashed with "Jumper";

If it was a very good movie, that was worth backing up, it would be another story ... but now ....

:p

/me runs :D

I'd rather see EAC3To having a option to speedup/lowdown to 24 fps, as 24 fps is the original framerate of movies in general. Because of that, such a feature would be logical to implement imho; Not only because it is very very usefull to us AVCHD-creators ;)

tman24
20th June 2008, 13:12
I'm trying to make an online backup of an HD-DVD. I've ripped the disk using AnyDVD fine, but there are two FEATURE files that make up the movie. I can extract the correct video and audio streams using eac3to, but basically end up with two mkv files and two flac files that need putting back together (in the right order). Normally I use MKVMerge when I have a single mkv and flac file and this works great.

What's the best way to put these files back together, or is there a better way to demux them using eac3to, so I actually only end up with one mkv and one flac file

Thanks

nautilus7
20th June 2008, 13:37
eac3to feature1.evo+feature2.evo 3: video.mkv 4: audio.flac

( 3: and 4: are random, use the proper numbers)

Beastie Boy
20th June 2008, 14:44
Tried the .264 extension and don't remember the exact message, but something along the lines of not supported, tried mpg same message.

Just a thought, but it's not a VC1 video stream is it?

Cheers, Beastie.

rebkell
20th June 2008, 14:57
Just a thought, but it's not a VC1 video stream is it?

Cheers, Beastie.

No, it was an avc/264, the extension needs to be h264 and if you want to extract mpeg2, you need to use the m2v extension and of course vc1 on the vc1 encoded files.

I appreciate all the help and of course cheers to madshi for developing and keeping up such a great program.

tman24
20th June 2008, 16:00
eac3to feature1.evo+feature2.evo 3: video.mkv 4: audio.flac

( 3: and 4: are random, use the proper numbers)

Thanks. Seems easy enough. I'll give it a go.

Isn't eac3to a simply amazing bit of software.

zeropc
20th June 2008, 16:31
I though 2.47 crashes with Jumper... :confused:

i used eac3to more gui for the conversion and got the log i posted.

You can re-rip the disc and try again. Or wait a few days and try with the upcoming 2.48. What does the delaycut log say (it outputs the dts core only, but there isn't another way)?

here is the log from delaycut for the dts-hd ma fix try

[Input info]
Bitrate=1536
Actual rate=1509.750000
Sampling Frec=48000
TotalFrames=1273473
Bytesperframe=2012.0000
Filesize=2562227960
FrameDuration= 10.6614
Framespersecond= 93.7966
Duration=03:46:16.965
Channels mode=C+L+R+SL+SR
LFE=LFE: Present
[Target info]
StartFrame=0
EndFrame=1273472
NotFixedDelay= 0.0000
Duration=03:46:16.964
====== PROCESSING LOG ======================
Time 00:00:00.010; Frame#= 2. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.031; Frame#= 4. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.053; Frame#= 6. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.074; Frame#= 8. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.095; Frame#= 10. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.117; Frame#= 12. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.138; Frame#= 14. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.159; Frame#= 16. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.181; Frame#= 18. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.202; Frame#= 20. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.223; Frame#= 22. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.245; Frame#= 24. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.266; Frame#= 26. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.287; Frame#= 28. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.309; Frame#= 30. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.330; Frame#= 32. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.351; Frame#= 34. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.373; Frame#= 36. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.394; Frame#= 38. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.415; Frame#= 40. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.437; Frame#= 42. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.458; Frame#= 44. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.479; Frame#= 46. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.501; Frame#= 48. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.522; Frame#= 50. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.543; Frame#= 52. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.565; Frame#= 54. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.586; Frame#= 56. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.607; Frame#= 58. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.629; Frame#= 60. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.650; Frame#= 62. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.671; Frame#= 64. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.692; Frame#= 66. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.714; Frame#= 68. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.735; Frame#= 70. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.756; Frame#= 72. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.778; Frame#= 74. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.799; Frame#= 76. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.820; Frame#= 78. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.842; Frame#= 80. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.863; Frame#= 82. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.884; Frame#= 84. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.906; Frame#= 86. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.927; Frame#= 88. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.948; Frame#= 90. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.970; Frame#= 92. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:00.991; Frame#= 94. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.012; Frame#= 96. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.034; Frame#= 98. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.055; Frame#= 100. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.076; Frame#= 102. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.098; Frame#= 104. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.119; Frame#= 106. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.140; Frame#= 108. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.162; Frame#= 110. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.183; Frame#= 112. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.204; Frame#= 114. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.226; Frame#= 116. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.247; Frame#= 118. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.268; Frame#= 120. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.290; Frame#= 122. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.311; Frame#= 124. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.332; Frame#= 126. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.353; Frame#= 128. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.375; Frame#= 130. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.396; Frame#= 132. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.417; Frame#= 134. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.439; Frame#= 136. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.460; Frame#= 138. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.481; Frame#= 140. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.503; Frame#= 142. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.524; Frame#= 144. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.545; Frame#= 146. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.567; Frame#= 148. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.588; Frame#= 150. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.609; Frame#= 152. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.631; Frame#= 154. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.652; Frame#= 156. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.673; Frame#= 158. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.695; Frame#= 160. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.716; Frame#= 162. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.737; Frame#= 164. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.759; Frame#= 166. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.780; Frame#= 168. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.801; Frame#= 170. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.823; Frame#= 172. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.844; Frame#= 174. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.865; Frame#= 176. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.887; Frame#= 178. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.908; Frame#= 180. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.929; Frame#= 182. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.951; Frame#= 184. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.972; Frame#= 186. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:01.993; Frame#= 188. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:02.014; Frame#= 190. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:02.036; Frame#= 192. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:02.057; Frame#= 194. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:02.078; Frame#= 196. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:02.100; Frame#= 198. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:02.121; Frame#= 200. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Time 00:00:02.142; Frame#= 202. Unsynchronized frame...SKIPPED 68 bytes. Found new synch word
Too Many Errors. Stop Logging.
Number of written frames = 423387
Number of Errors= 451362


what worked was extracting the dts core, run it through delaycut without problem and then i used the fixed dts stream in eac3to for the ac3 conversion.

nautilus7
20th June 2008, 18:09
All these "errors" in delaycut are from the hd extensions of the master audio track. If you managed to output the dts core with eac3to, then the problem is in the master audio extensions. You should be fine with the dts core --> ac3 though (regarding sound quality).

todaystudy
20th June 2008, 19:46
Sounds really great, thanks for your efforts!

BTW nice setup there! I'm running standard consumer HW here, but over SPDIF I can also hear the difference between full-bitrate DTS and AC3@640kbps, so TruHD->DTS seems like the only way to go.

BLKMGK
20th June 2008, 22:50
That's jumper, he's apparently not been reading the thread...

bigggt
21st June 2008, 03:38
Hi , Im very new to all this HD stuff but can't figure out how to convert EAC3 to ac3.

I have nero 7 and hd dvd plugin installed and sonic installed, i ripped Knocked up with anydvd and ran the .evo through Eac3to conversion utility GUI and it demuxed all the tracks but no conversion of the eac3 file.

i tried running the EAC3 file through the GUI but get this

eac3to v2.47
command line: "C:\Tools\eac3to\eac3to.exe" "K:\KNOCKEDUP\HVDVD_TS\FEATURE_1_MERGED.rebuilt - 3 - E-AC3, 5.1 channels, 1536kbps, 48khz.eac3" "K:\KNOCKEDUP\HVDVD_TS\FEATURE_1_MERGED.rebuilt - 3 - E-AC3, 5.1 channels, 1536kbps, 48khz.ac3"-192 -nero
------------------------------------------------------------------------------
E-AC3, 5.1 channels, 2:12:56, 1536kbit/s, 48khz
This audio conversion is not supported.

I know its something stupid that i'm doing wrong ,so any help would be appreciated

thanks

Snowknight26
21st June 2008, 04:44
GUI support should go in the GUI thread, but.. add a space between the " and -192.

nautilus7
21st June 2008, 09:17
@ s26

This is the keymaker's gui, not Yraen's. It doesn't have its own thread.

@ bigggt

This is a known bug in Keymaker's gui, which is also outdated. Switch to the alternate gui (http://forum.doom9.org/showthread.php?t=135095).

bigggt
21st June 2008, 12:13
OK thanks

all sorted out now

rack04
22nd June 2008, 05:00
When demuxing h264 is there a way to keep 23.976? I keep getting 29.97 when demuxing h264.

Encoder888
22nd June 2008, 05:11
I have a question, I tried extracting the PCM audio of Stranger Than Fiction (seamless branching, has only 2 parts), but eac3to didn't detect any gaps, which i thought was weird, cause it always does with seamless branching movies. I tried both FLAC and AC3, no gaps... Then I tried extracting the AC3 stream, and it detected one 32ms gap (naturally, since it only has 2 parts). I tried muxing together the video with each and both sound well-synced after the joint point... I guess 32ms is really hard to tell, even if one was off, so... My question is - is it possible for a seamless branching title to have its AC3 overlap/gap and its PCM be perfect without any gaps... Or is it eac3to that's not detecting it? I need to know if its in perfect sync, I'm really anal about this LoL

rebkell
22nd June 2008, 05:59
When demuxing h264 is there a way to keep 23.976? I keep getting 29.97 when demuxing h264.

tsmuxer might possibly remove the pulldowns, I'm assuming hd-dvd, blu-ray doesn't normally have pulldowns in their h264 files.

madshi
22nd June 2008, 07:40
Hey madshi, I've got a question regarding options for DTS decoding. The OP states that Sonic decoder is preferred due to avoiding the 4 problems commonly encountered. Now I know there is an open source solution for those who don't have Sonic, but since its merits aren't discussed, I'd like to direct your attention to a different DTS decoder that I use in my workflow. It's a plug-in for Foobar2000 player called foo_dts.dll (http://acropolis.lokalen.org/2006/10/foobar2000/my-foobar2000-components/) (which right there could potentially render it useless, if it is too much work to integrate). However, in my tests the plug-in doesn't suffer from problems 3 and 4, it provides user with option for 1 (default DRC=off, which we like). I'm not sure about testing problem 2, but I use SoundForge to encode my AC3 (following the guide in the sticky here) and I get different RMS value for different sections of dialog, which according to the discussion in that thread is indicative (though inconclusive) evidence of the absence of Normalization. The only technical drawback of that plug-in is that it's mostly developed for DTS-CD, so only 5.1 support.

What do you think, madshi, will this be too much work for too little to try to make eac3to use that plug-in? On a related subject, what is the drawback of current free solution that makes you recommend Sonic decoder?
I've adjusted the first post of this thread to document how well the libav/ffmpeg DTS decoder works - which is supported by eac3to. I don't see a reason for looking for open source alternatives - unless you find one which can handle DTS-HD.

Have you tryed it? I have and can't do it. I only can extract the ac3 track.

With: xport sample1.ts 1 1 1
I get the video h264 file and the ac3 audio.

With: xport sample1.ts 1 1 2
I get the video h264 file and no audio file.

Am I using xport wrongly?

Edit: Forget it. I have done it with tsMuxeR. Thanks anyway.
FWIW, xport also sees the PCM track as being "video", for the reasons I explained in my previous post. So you would have had to use "xport sample1.ts 1 2 1" and then the mpv file would have been the PCM track. But of course using tsMuxeR is fine if that works for you.

I'd rather see EAC3To having a option to speedup/lowdown to 24 fps, as 24 fps is the original framerate of movies in general. Because of that, such a feature would be logical to implement imho; Not only because it is very very usefull to us AVCHD-creators ;)
I'll put that on my todo list. However, I'm not sure how useful it actually is (other than AVCHD, I mean), cause Blu-Ray is usually 23.976. So all newer displays are also optimized for 23.976 and not for 24.000.

When demuxing h264 is there a way to keep 23.976? I keep getting 29.97 when demuxing h264.
You're talking about HD DVD, I guess? All HD DVD video tracks are 23.976 with pulldown flags - which looks like 29.97. There's no way to "keep" this at 23.976 because it's not pure 23.976 to start with. You can however "change" it to 23.976 by removing the pulldown flags. eac3to cannot do that for h264 right now. But you can use the tool "h264info" to remove the pulldown flags.

I have a question, I tried extracting the PCM audio of Stranger Than Fiction (seamless branching, has only 2 parts), but eac3to didn't detect any gaps, which i thought was weird, cause it always does with seamless branching movies. I tried both FLAC and AC3, no gaps... Then I tried extracting the AC3 stream, and it detected one 32ms gap (naturally, since it only has 2 parts). I tried muxing together the video with each and both sound well-synced after the joint point... I guess 32ms is really hard to tell, even if one was off, so... My question is - is it possible for a seamless branching title to have its AC3 overlap/gap and its PCM be perfect without any gaps... Or is it eac3to that's not detecting it? I need to know if its in perfect sync, I'm really anal about this LoL
The gaps are always biggest for AC3 tracks, simply because AC3 audio frames are so long. One AC3 frame is 32ms long. One DTS frame is usually only 10ms. With PCM an audio frame is even shorter. When you have only 2 m2ts parts it's usual that there are no gaps detected for PCM while there may be a gap detected for AC3 tracks - or not. PCM gaps are reported and fixed only if they are bigger than 7ms. So don't worry. In your case the PCM gap must be smaller than 7ms.

Atak_Snajpera
22nd June 2008, 11:16
Madshi: Why whole demuxing process is terminated (files removed) with just one corrupted audio stream? (log says something about using delay cut)
It would be better if eac3to could skip damaged audio stream and continue with the rest of streams.

rickardk
22nd June 2008, 11:17
Is the lfe channel always mixed at -10dB for all formats (AC3, E-AC3, TrueHD, DTS, DTS-HD (MA), LPCM)?

DVD-A tracks (MLP)?

Does any of the default decoders apply the +10dB for the lfe channel? (I hope not)

madshi
22nd June 2008, 12:56
# MLP Channel Assignments Mask and MS channels order Detect-MaskCh eac3to libav remap Samples
-- ------------------------ -------------------------- -------------------- ----------- ----------
0 M 0x0004 FC 1.0 0x0004 ok not needed 00_100.mlp
1 L R 0x0003 FL FR 2.0 0x0003 ok not needed 01_200.mlp
2 Lf Rf (S) 0x0103 FL FR BC 3.0 0x0007 (1) not needed 02_210.mlp
3 Lf Rf (Ls Rs) 0x0033 FL FR BL BR 4.0 0x0033 ok not needed 03_220.mlp
4 Lf Rf (LFE) 0x000B FL FR LF 2.1 0x0007 (1) not needed 04_201.mlp
5 Lf Rf (LFE S) 0x010B FL FR LF BC 3.1 0x0033 (1) not needed 05_211.mlp
6 Lf Rf (LFE Ls Rs) 0x003B FL FR LF BL BR 4.1 0x0037 (1) not needed 06_221.mlp
7 Lf Rf (C) 0x0007 FL FR FC 3.0 0x0007 ok not needed 07_300.mlp
8 Lf Rf (C S) 0x0107 FL FR FC BC 4.0 0x0033 (1) not needed 08_310.mlp
9 Lf Rf (C Ls Rs) 0x0037 FL FR FC BL BR 5.0 0x0037 ok not needed 09_320.mlp
10 Lf Rf (C LFE) 0x000F FL FR FC LF 3.1 0x0033 (1) not needed 10_301.mlp
11 Lf Rf (C LFE S) 0x010F FL FR FC LF BC 4.1 0x0037 (1) not needed 11_311.mlp
12 Lf Rf (C LFE Ls Rs) 0x003F FL FR FC LF BL BR 5.1 0x003F ok not needed 12_321.mlp
13 Lf Rf C (S) 0x0107 FL FR FC BC Can't detect (3) not needed 13_310.mlp
14 Lf Rf C (Ls Rs) 0x0037 FL FR FC BL BR Can't detect (3) not needed 14_320.mlp
15 Lf Rf C (LFE) 0x000F FL FR FC LF Can't detect (3) not needed 15_301.mlp
16 Lf Rf C (LFE S) 0x010F FL FR FC LF BC Can't detect (3) not needed 16_311.mlp
17 Lf Rf C (LFE Ls Rs) 0x003F FL FR FC LF BL BR 5.1 0x003F ok not needed 17_321.mlp
18 Lf Rf Ls Rs (LFE) 0x003B FL FR LF BL BR 4.1 0x0037 (1) (2) -0,1,4,2,3,5 18_221.mlp
19 Lf Rf Ls Rs (C) 0x0037 FL FR FC BL BR 5.0 0x0037 (2) -0,1,4,2,3,5 19_320.mlp
20 Lf Rf Ls Rs (C LFE) 0x003F FL FR FC LF BL BR 5.1 0x003F ok already done 20_321.mlp
(1) Need more complete detection (2/2.1 type) to assign the correct MaskCh.
(2) When decoded with libav need remapping channels.
(3) Can't decode these samples with eac3to:
"The format of the source file could not be detected."
This will be added/fixed in the next build.

Do you happen to also have samples for all the funny DTS channel formats? :)

:thanks:

madshi
22nd June 2008, 13:00
Madshi: Why whole demuxing process is terminated (files removed) with just one corrupted audio stream? (log says something about using delay cut)
It would be better if eac3to could skip damaged audio stream and continue with the rest of streams.
This has been discussed multiple times. eac3to is currently extremely picky and only handles 100% clean files well. This might be improved in a future version. But right now I prefer to make clean sources work perfectly. Only afterwards I might work on improving support for damaged files.

Is the lfe channel always mixed at -10dB for all formats (AC3, E-AC3, TrueHD, DTS, DTS-HD (MA), LPCM)?

DVD-A tracks (MLP)?

Does any of the default decoders apply the +10dB for the lfe channel? (I hope not)
I think tebasuna51 can probably answer this best. However, I've just done some tests with funny AC3 channel formats and sometimes the Nero decoder boosted volume on some channels. But normally in my experience the decoders recommended to be used by eac3to (see first post of this thread) do not do any do anything "wrong". In other words: I tried encoding a WAV file in AC3 and DTS. And decoded them again. And encoded them again. And decoded them again. The volume of all channels were unchanged in my tests. I didn't test this with all decoders, but I think the decoders recommended for use with eac3to should be fine.

lexor
22nd June 2008, 14:26
I didn't test this with all decoders, but I think the decoders recommended for use with eac3to should be fine.
Is the default free decoder in eac3to (libav?) among the ones you tested or do you mean only the recommended paid ones?

madshi
22nd June 2008, 15:02
Is the default free decoder in eac3to (libav?) among the ones you tested or do you mean only the recommended paid ones?
libav works fine. See first post of this thread.

madshi
22nd June 2008, 15:20
eac3to v2.48 released

http://madshi.net/eac3to.zip

v2.48
* 96kHz LPCM tracks in (M2)TS and EVO/VOB containers didn't work correctly
* "Applying (E-)AC3 delay" now only shows if the bitstream is actually modified
* fixed crash in MP2 reader when checking some PCM tracks
* added support for MLP formats 13 - 16
* improved/corrected MLP channel descriptions
* MLP parser sets correct channel mask
* added proper channel remaps for libav MLP decoding of "funny" channel formats
* added proper channel remaps for Nero MLP decoding of "funny" channel formats
* added proper channel remaps for Nero AC3 decoding of "funny" channel formats
* when doubling 7th channel the channel mask is set correctly now
* channel mask is corrected if a decoder doesn't output all channels
* channel mask is corrected if a channel downmixing is performed
I've checked out the ArcSoft Audio Decoder. It seems to work well enough - but only when using it in GraphEdit and when manually adjusting the parameters to the correct values. When accessing the decoder from within eac3to the ArcSoft Audio Decoder always outputs stereo, only. I've not found a (documented/official) way how eac3to could convince the decoder to output more than 2 channels, sadly...

menlvd
22nd June 2008, 15:27
madshi
when rename w64 file 2 pcm file -> eac3to detecting file fine, but the channel masking is't right
original -> produced by eac3to
L -> SL
R -> SR
C -> L
LFE -> R
SL -> C
SR -> LFE
maybe U can look at this :)
simple need channel remaping -4,5,0,1,2,3

rack04
22nd June 2008, 16:39
tsmuxer might possibly remove the pulldowns, I'm assuming hd-dvd, blu-ray doesn't normally have pulldowns in their h264 files.

Yes it is Transformers HD DVD.

Thunderbolt8
22nd June 2008, 16:54
eac3to v2.48 released
thanks! :)

regarding all those mlp changes/fixes, does that mean that some former converted flac tracks could possible be 'wrong' or not working correctly?

and regarding the problematic mpeg2 .ts files, is this already adressed here as well and I can try it again with 2.48?

rebkell
22nd June 2008, 16:54
Yes it is Transformers HD DVD.

madshi recommended h264info, and he would be a much better source than I ever hope to be on the subject. If you plan on re-encoding the h264, then DGAVCDec will recognize the pulldowns and frame serve them minus the pulldowns.

I've used tsmuxer in the past, but found that eac3to seems to always keep audio and video in sync and I never have any problems dealing with anything it ouputs.

I'm probably not the normal eac3to user, I normally just extract the video track and convert one of the English audio tracks to a lower bitrate ac3 stream.

rack04
22nd June 2008, 16:59
madshi recommended h264info, and he would be a much better source than I ever hope to be on the subject. If you plan on re-encoding the h264, then DGAVCDec will recognize the pulldowns and frame serve them minus the pulldowns.

I've used tsmuxer in the past, but found that eac3to seems to always keep audio and video in sync and I never have any problems dealing with anything it ouputs.

I'm probably not the normal eac3to user, I normally just extract the video track and convert one of the English audio tracks to a lower bitrate ac3 stream.

Yes I'm going to re-encode. Using eac3to I change the container to mkv the pulldown is removed, i.e 23.976. When I extract the h264 and use DGAVCDec to index it reports 29.97 and audio video is out of sync. I'll try h264info and report back.

rebkell
22nd June 2008, 17:08
Yes I'm going to re-encode. Using eac3to I change the container to mkv the pulldown is removed, i.e 23.976. When I extract the h264 and use DGAVCDec to index it reports 29.97 and audio video is out of sync. I'll try h264info and report back.

Does it report 29.97 after you let it(DGAVCIndex) finish? It will report 29.97, but when it finishes it will say that it has pulldowns and would you like to remove them(or something similar to that), click yes and it will then serve them without the pulldowns, at least that was my experience, I think it was with Beowulf that I used it for.

rack04
22nd June 2008, 17:13
Does it report 29.97 after you let it(DGAVCIndex) finish? It will report 29.97, but when it finishes it will say that it has pulldowns and would you like to remove them(or something similar to that), click yes and it will then serve them without the pulldowns, at least that was my experience, I think it was with Beowulf that I used it for.

Don't think I let it finish. I'll try again thanks.

EDIT1: I just re-ran DGAVCDec and it never asked to remove the pulldowns.

EDIT2: Change the setting to FORCE FILM and it appears to have worked. Thanks.

rickardk
22nd June 2008, 18:38
I think tebasuna51 can probably answer this best. However, I've just done some tests with funny AC3 channel formats and sometimes the Nero decoder boosted volume on some channels. But normally in my experience the decoders recommended to be used by eac3to (see first post of this thread) do not do any do anything "wrong". In other words: I tried encoding a WAV file in AC3 and DTS. And decoded them again. And encoded them again. And decoded them again. The volume of all channels were unchanged in my tests. I didn't test this with all decoders, but I think the decoders recommended for use with eac3to should be fine.

I asked because I read that some software decoders boost the lfe channel with +10dB (just as hardware ac3/dts decoders does in your regular av receiver).

Great to know that this is not the case with eac3to. Because then you can have your receiver or software like ffshow do the lfe +10dB boost on all remuxes created with eac3to.



This might be ot, but how do I use Graph Edit to decode my 7.1 DTS-HD MA tracks with Arcsoft TMT audio decoder?

I extracted the audio tracks long ago to .dts files. I can't connect the output pin from Sonic HD Demuxer to Arcsoft HD Audio decoder without having Sonic Cinemaster Audio decoder or ffdshow conncted in between.

madshi
22nd June 2008, 19:03
when rename w64 file 2 pcm file -> eac3to detecting file fine, but the channel masking is't right
original -> produced by eac3to
L -> SL
R -> SR
C -> L
LFE -> R
SL -> C
SR -> LFE
maybe U can look at this :)
simple need channel remaping -4,5,0,1,2,3
w64 files are simply not supported yet.

regarding all those mlp changes/fixes, does that mean that some former converted flac tracks could possible be 'wrong' or not working correctly?
Blu-Rays and HD DVDs are TrueHD and *not* MLP. So for most people all the MLP related changes have no effect whatsoever. MLP is mainly used by DVD-Audio.

and regarding the problematic mpeg2 .ts files, is this already adressed here as well and I can try it again with 2.48?
Yes.

how do I use Graph Edit to decode my 7.1 DTS-HD MA tracks with Arcsoft TMT audio decoder?

I extracted the audio tracks long ago to .dts files. I can't connect the output pin from Sonic HD Demuxer to Arcsoft HD Audio decoder without having Sonic Cinemaster Audio decoder or ffdshow conncted in between.
Don't know if you can directly decode demuxed DTS files in GraphEdit with ArcSoft. Maybe it's possible somehow, not sure.

In the meanwhile I've found a way to make the ArcSoft DTS Decoder work inside of eac3to. However, I have to tell the decoder how many channels I want to have decoded. That's problematic because my DTS-HD channel detection isn't really reliable... :(

yesgrey
22nd June 2008, 20:01
madshi,
My PC has 2 disks, and I usually work with eac3to from one disk to the other and vice-versa until all the processing needed is terminated. From my experience with eac3to it appears that some of the tasks use temp files.
I believe this should be a very simple thing to change, so is it possible for you to create some kind of setting to be used by people like me who uses two disks? It would be great for processing speed and also for disk protection.

For example:
Demuxing 1 video and 2 tracks for the raw streams took 9m16s.
Demuxing 1 video track to mkv and 2 audio tracks for raw streams took 11m18s.

It appears the video to mkv has some kind of temp file, I only don't know if it's located in the source disk or the target disk.

Thanks for your great work!

rickardk
22nd June 2008, 20:38
Yes.


Don't know if you can directly decode demuxed DTS files in GraphEdit with ArcSoft. Maybe it's possible somehow, not sure.

In the meanwhile I've found a way to make the ArcSoft DTS Decoder work inside of eac3to. However, I have to tell the decoder how many channels I want to have decoded. That's problematic because my DTS-HD channel detection isn't really reliable... :(

I re-ripped one movie with DTS-HD MA 7.1 audio. But still I can't connect to Arcsoft Audio Decoder HD. Do I have use more filters in the graph?

nautilus7
22nd June 2008, 23:47
In the meanwhile I've found a way to make the ArcSoft DTS Decoder work inside of eac3to. However, I have to tell the decoder how many channels I want to have decoded. That's problematic because my DTS-HD channel detection isn't really reliable... :(Wow!! That's good news, after the bomb you dropped earlier! :p I am certain that we will get over any problems we come across. :)

I am quite sure I have dts-ma 4ch track (don't know if it's 4.0 or 3.1) but I can't find it right now. I guess that counts as "funny" format.
I re-ripped one movie with DTS-HD MA 7.1 audio. But still I can't connect to Arcsoft Audio Decoder HD. Do I have use more filters in the graph?
See 4-5 pages back, where xkodi posts his findings + graph.

madshi
23rd June 2008, 07:07
For example:
Demuxing 1 video and 2 tracks for the raw streams took 9m16s.
Demuxing 1 video track to mkv and 2 audio tracks for raw streams took 11m18s.

It appears the video to mkv has some kind of temp file, I only don't know if it's located in the source disk or the target disk.
There is no temp file involved when doing MKV muxing. It's just that the MKV muxer costs a bit of performance.

I am quite sure I have dts-ma 4ch track (don't know if it's 4.0 or 3.1) but I can't find it right now. I guess that counts as "funny" format.
Yes, it does. If you find, can you please upload a small sample (5MB is enough)? Thanks...

ideas_man69
23rd June 2008, 07:40
just a quick question guys.. not sure if it has been asked - i've skimmed through quite a few pages of this thread already.

when converting tracks to DTS - is the general consensus that:

TrueHD to DTS > E-AC3 to DTS?

or

TrueHD to AC3 > E-AC3 to AC3?

TrueHD is decoded using ffmpeg, eac3 decoded by nero. Are nero's eac3 decoders better quality? Which mode retains the most information?

EPiPH0NE
23rd June 2008, 08:17
just a quick question guys.. not sure if it has been asked - i've skimmed through quite a few pages of this thread already.

when converting tracks to DTS - is the general consensus that:

TrueHD to DTS > E-AC3 to DTS?

or

TrueHD to AC3 > E-AC3 to AC3?

TrueHD is decoded using ffmpeg, eac3 decoded by nero. Are nero's eac3 decoders better quality? Which mode retains the most information?

What I use for HD-DVD:

1. TrueHD -> PCM
2. TrueHD -> DTS
3. 640K/> EAC3 -> AC3 (core for BluRay)
4. 768k/< EAC3 -> DTS


BluRay:

1. TrueHD -> PCM
2. TrueHD -> DTS
3. TrueHD -> AC3 (core)
4. EAC3 (see HD-DVD)

IMHO, best quality is these orders. Depends on your hardware.

G_M_C
23rd June 2008, 08:30
eac3to v2.48 released

http://madshi.net/eac3to.zip

v2.48
* 96kHz LPCM tracks in (M2)TS and EVO/VOB containers didn't work correctly
* "Applying (E-)AC3 delay" now only shows if the bitstream is actually modified
* fixed crash in MP2 reader when checking some PCM tracks
* added support for MLP formats 13 - 16
* improved/corrected MLP channel descriptions
* MLP parser sets correct channel mask
* added proper channel remaps for libav MLP decoding of "funny" channel formats
* added proper channel remaps for Nero MLP decoding of "funny" channel formats
* added proper channel remaps for Nero AC3 decoding of "funny" channel formats
* when doubling 7th channel the channel mask is set correctly now
* channel mask is corrected if a decoder doesn't output all channels
* channel mask is corrected if a channel downmixing is performed
I've checked out the ArcSoft Audio Decoder. It seems to work well enough - but only when using it in GraphEdit and when manually adjusting the parameters to the correct values. When accessing the decoder from within eac3to the ArcSoft Audio Decoder always outputs stereo, only. I've not found a (documented/official) way how eac3to could convince the decoder to output more than 2 channels, sadly...

Hi Madshi,
I see that you havent made a reply to my post. Do you haveyou plans/time/possibillties to fullfill my request (converting to 24fps), or shall i simply keep using AviSynth + SoundOut () ?

madshi
23rd June 2008, 08:40
I see that you havent made a reply to my post.
Yes, I have. Look again...

G_M_C
23rd June 2008, 09:47
Yes, I have. Look again...

:o

Oops, sorry i overlooked that. My bad ...

:o

Regarding the 24 fps though; More and more displays are beinig "optimized" for 24 fps. Many newer display-manuafacturers even market those functions ("Real cinema 24fps" kind of features). My Panasonic 42pz85 is made for/accepts 1080p24 (and other 24 fps), and so are all displays from this years (2008) generation.

And not only displays are made to work on 24 fps, so are the (newer) players. My dpm dp30 has a specific setting to let it output at 24 fps; But also the PS3 has had an update to output @ 24 fps, and many other players recently been made fit to work on 24fps.

I do not know on what fps movies are encoded and/or stored on the physical disk, if it is 23,976 or not; But even PC-apps & rippers prodce 24 fps these days (and even the "less legal" full BD-rips / torrents often seem to be 24 fps). But now i'm rambling on ... but i think 24 fps will be seen more often in the future.

tebasuna51
23rd June 2008, 09:50
Do you happen to also have samples for all the funny DTS channel formats? :)

I make the samples for ac3/mlp with the encoders but with the Surcode DTS v1.0.23 only can make 5.0/5.1 samples and I can't check the eac3to detection and libav channelmap behaviour.

With less channels Surcode put empty channels. For instance:
eac3to v2.48
command line: "D:\Test\AudioN\eac3to\eac3to.exe" "E:\Test\wavs\2w200.wav" "E:\Test\wavs\2w200.dts"
------------------------------------------------------------------------------
WAV, 2.0 channels, 0:00:20, 16 bits, 48khz
Reading WAV...
Writing WAVs...
Creating file "E:\Test\wavs\2w200.L.wav"...
Creating file "E:\Test\wavs\2w200.R.wav"...
Found Surcode DTS Encoder version 1.0.23.0.
Surcode encoding successfully started. Please wait...
Closing Surcode...
eac3to processing took 1 second.
Surcode encoding took 6 seconds.
Done.


eac3to v2.48
command line: "D:\Test\AudioN\eac3to\eac3to.exe" "E:\Test\wavs\2w200.dts"
------------------------------------------------------------------------------
DTS, 5.0 channels, 0:00:20, 24 bits, 1536kbit/s, 48khz
With FC,BL,BR empty

Is the lfe channel always mixed at -10dB for all formats (AC3, E-AC3, TrueHD, DTS, DTS-HD (MA), LPCM)?

Does any of the default decoders apply the +10dB for the lfe channel? (I hope not)

I never see this fixed attenuation/amplification in encoders/decoders.

AFAIK, the encoders can use only (forced or optional) a lowpass filter for LFE channel. Other question is the recommended relative volume level between channels, but is a free choice for the soundtrack author.

madshi
23rd June 2008, 10:46
Regarding the 24 fps though; More and more displays are beinig "optimized" for 24 fps. Many newer display-manuafacturers even market those functions ("Real cinema 24fps" kind of features). My Panasonic 42pz85 is made for/accepts 1080p24 (and other 24 fps), and so are all displays from this years (2008) generation.
That's a good argument. For NOT implementing 24.000 support. Because all what you mentioned above is 23.976 and not 24.000, just like Blu-Ray and HD DVD are...

I make the samples for ac3/mlp with the encoders but with the Surcode DTS v1.0.23 only can make 5.0/5.1 samples and I can't check the eac3to detection and libav channelmap behaviour.
That's what I feared... :( I guess I'll recheck the source code then and do my best to set correct channel masks etc without being able to actually test it.

nautilus7
23rd June 2008, 11:42
If you find, can you please upload a small sample (5MB is enough)? Thanks...I found it. It's from Edward Scissorhands Blu-ray Disc. The movie menu states it is a 4.0 and eac3to a 3/1. That seems correct, except that the surround channel is empty (I checked a big part of the track to be sure about this).

Here (http://www.sendspace.com/file/e073sw) is a sample.

* Any ETA about blu-ray subtitle demuxing? It would be really useful for seamless branching titles.

yesgrey
23rd June 2008, 11:54
There is no temp file involved when doing MKV muxing. It's just that the MKV muxer costs a bit of performance.

I've considered that, but since the size of the mkv file only changes after completed I thought it was some kind of temp file during the process. Thanks for the clarification.

But what about the situations where the temp files exist? For example when converting EAC3 5.1 -> DTS 5.1 the 6 wav files created for feeding surcode will be in the same directory as the final dts file... or is it possible to do:
EAC3 5.1 -> 6 wav -> DTS 5.1 ? (not so user friendly)

Thanks.

tebasuna51
23rd June 2008, 13:09
I found it. It's from Edward Scissorhands Blu-ray Disc. The movie menu states it is a 4.0 and eac3to a 3/1. That seems correct, except that the surround channel is empty (I checked a big part of the track to be sure about this).

Here (http://www.sendspace.com/file/e073sw) is a sample.

Thanks for the sample.

eac3to detection is ok (3/1) without lfe channel, and the surround channel is not empty. Using eac3to v2.48 (libav) -extensible the channel mask is 0x0033=FL FR BL BR, but must be 0x0107=FL FR FC BC.

nautilus7, can you upload a little fragment with dialogs to identify the center channel? I think libav decode need remapping but I'm not sure.

deathlord
23rd June 2008, 13:33
madshi,

But normally in my experience the decoders recommended to be used by eac3to (see first post of this thread) do not do any do anything "wrong".
Actually, I have found quite the opposite. (Ignoring for the moment the question what is really "wrong" or "true".)
I have used cyberlink audio decoder for decoding the ac3 from DVD's for a long time. As this decoder doesn't do a 10dB boost, I have added this boost into my setup. However, with eac3to-remuxed blurays I often felt the lfe was much too loud. Deactivating my boost for BD seemd to solve this problem.

I tried encoding a WAV file in AC3 and DTS. And decoded them again. And encoded them again. And decoded them again. The volume of all channels were unchanged in my tests.

Have you tried ordinary ac3/dts only, or also lpcm, truehd, dts-hd?

nautilus7
23rd June 2008, 14:17
I did a search around the net and found some info about the dts PiP track we found in some blu-rays (the info is not enough for adding support in eac3to though):

DTS Express: Previously known as DTS-HD Low Bit Rate, the DTS Express provides low bit rate audio coding for applications with 2- to 5.1-channel audio, focusing primarily on bandwidth constrained audio applications, such as Internet, broadcast audio, and secondary audio on next generation optical disc players. It's currently used in picture-in-picture, director commentaries and other Blu-ray's interactive features.

Also from DTS Master Audio Suite Manual, i found that:
* It is used as secondary audio track in BD and HD DVD media and contains metadata for the amount of attenuation of the primary audio track of the movie (0 to -40 dB)
* bitrate can be from 24 to 510 kbps
* can have 1, 2, or 5,1 channels
* samplerates can be 12, 24, 48 KHz

The one in National Treasure 2 is 2.0 48 KHz (don't know the bitrate) and Arcsoft decoder can decode it correctly.

@ tebasuna51

Here (http://www.sendspace.com/file/v3m12k)'s the new sample. What do you mean that the surround channel isn't empty? It is!

tebasuna51
23rd June 2008, 14:39
I have used cyberlink audio decoder for decoding the ac3 from DVD's for a long time. As this decoder doesn't do a 10dB boost, I have added this boost into my setup. However, with eac3to-remuxed blurays I often felt the lfe was much too loud.

Can you supply any document about this 'magic' 10 db boost?
The core streams ac3/dts are the same in DVD or HD/BD and also the decoders.

Have you tried ordinary ac3/dts only, or also lpcm, truehd, dts-hd?

Lpcm is uncompressed data then we can't decode/encode.
Truehd and dts-hd-ma are lossy formats then can't modify the audio data.
Dts-hd-hr, the extra info over dts core is not related with lfe channel.

tebasuna51
23rd June 2008, 15:02
I@ tebasuna51

Here (http://www.sendspace.com/file/v3m12k)'s the new sample. What do you mean that the surround channel isn't empty? It is!

Thanks.

There are 4 channels with audible info (in first sample):
Center Left Right and Surround

In this sample the surround is only low volume noise, and the first channel (libav decoded) is the Center (dialog) channel then we need remap -1,2,0,3,4,5.

rickardk
23rd June 2008, 22:50
I never see this fixed attenuation/amplification in encoders/decoders.

AFAIK, the encoders can use only (forced or optional) a lowpass filter for LFE channel. Other question is the recommended relative volume level between channels, but is a free choice for the soundtrack author.

I think that the lfe channel is MIXED at -10dB relative to other channels when (e)ac3/dts audiotracks is authored/encoded. This is to give a little more headroom for the lfe channel.

Then the decoder (in your A/V receiver/preamp) should apply a +10dB boost on the lfe channel to get the levels right. But I don't know how this is handled by software decoders.


Im not sure, but I think the same goes for TrueHD, DTS-HD (MA)... But for LPCM I have no idea. I've read somewhere that DVD-As did not have the lfe mixed at -10dB. So most player applied a -10dB attenuation to handle the +10dB boost applied by most A/V receivers.


I hope the boost is not applied when using eac3to to create flacs. I apply this boost in ffdshow audio OR in my A/V receiver.

But I would like to know that this is handled in the same way for all formats. Because once decoded and encoded to flac ffdshow really can't tell if the source is TrueHD, LPCM or whatever (if I would like this +10dB applied to just some formats). So if this -10dB mixing is not used in every format or if a +10dB boost is applied for just some formats when using eac3to there is no way to have this boost handle correctly when playing back my mkvs.

Example 1:
I have two movies on blu-ray. One that uses LPCM and one with TrueHD.
Let's say that the -10dB lfe mixing is not used when LPCM are mixed and encoded but it is used when TrueHD tracks are created (I really don't know about this).


I use eac3to to create mkvs with FLAC tracks. Lets say that the libav TrueHD decoding does not apply the +10db boost.

My system is setup to apply a +10dB boost at the A/V reciever stage.

This will result in having the right lfe level on the TrueHD track but having to high lfe volume on the LPCM track.


Example 2:
I have two movies on blu-ray. One that uses DTS-HD and one with TrueHD.
Let's say that the -10dB lfe mixing is used when both TrueHD and DTS-HD tracks are created (I really don't know about this).


I use eac3to to create mkvs with FLAC tracks. Lets say that the libav TrueHD decoding does not apply the +10db boost but the Sonic DTS decoder DO apply the +10dB boost.

My system is setup to apply a +10dB boost at the A/V reciever stage.

This will result in having the right lfe level on the TrueHD track but having to high lfe volume on the DTS-HD track.



I think it's a good idea to keep the lfe mixed at -10dB as long as possible because otherwise the whole point of lfe headroom is ruined.

I hope that lfe is mixed at -10dB in all formats including LPCM. And that no decoder used by eac3to applies a +10dB lfe boost. This way I can setup ffdshow to add a +10dB lfe boost for all multichannel FLAC sources if I connect directly into a power amp (not ideal though as this will lower the level of all the other channels by 10dB). Or let my receiver apply a +10dB lfe boost for multichannel via LPCM (HDMI connection).



http://www.avsforum.com/avs-vb/showthread.php?t=748147

EPiPH0NE
23rd June 2008, 23:35
^^^What's funny is that it seems that when I do DTS-MA/TrueHD -> (L)PCM LFE seems to lacking, unless I turn it up, compared to when I do DTS-MA/TrueHD/LPCM -> DTS using Sonic/libav. Would what your saying have something to do with this?

rickardk
23rd June 2008, 23:57
^^^What's funny is that it seems that when I do (1) DTS-MA/TrueHD -> (L)PCM LFE seems to lacking, unless I turn it up, compared to when I do (2) DTS-MA/TrueHD/LPCM -> DTS using Sonic/libav. Would what your saying have something to do with this?

Hmm...

Setup?
Using a A/V receiver there is often an option to apply +10dB lfe boost for digital and analog connections. Do you use it?


(1) Might indicate that a +10dB lfe boost is not applied by decoders used by eac3to for DTS-HD MA and TrueHD.

(2) Might indicate that a +10dB lfe boost is not applied by decoders used by eac3to for DTS-HD MA and TrueHD. BUT a 10dB lfe boost is applied by your DTS decoder (software or hardware) when you are playing back the by eac3to encoded DTS stream.




I know there is a reference disc with 7.1 tracks in E-AC3, TrueHD, DTS-HD MA and LPCM format. I don't have it myself at this time. But if someone can test to decode and compare thoose track then we would know if all formats is mixed with -10dB lfe (because I'm now pretty sure that TrueHD tracks are mixed with the lfe at -10dB). We would then also know if any decoder used by eac3to does apply a +10dB lfe boost.

I guess some guys already performed bit-by-bit comparison on that disc?

Thunderbolt8
24th June 2008, 01:11
I have some problems with silver HD tv caps (h264 1080i 50hz), they just dont play (with ffdshow), no matter if as .ts or remuxed to .mkv. though this problem is most likely ffdshow related (since it works with coreavc and powerdvd), when I rightlick -> properties -> media for the .mkv info then it just loads and loads and nothing happens (like those old ratatouille files when remuxed with mkvmerge). so maybe theres something in the muxing process which could be improved as well? would you like a little .ts sample?

G_M_C
24th June 2008, 08:11
That's a good argument. For NOT implementing 24.000 support. Because all what you mentioned above is 23.976 and not 24.000, just like Blu-Ray and HD DVD are...
[...]

That what i wrote in the last part of my post; That i didn't know on what fps BR's / HDDVD were encoded/stored in the real world. But the AVCHD specs are clear; 24 fps. And since i'm makeing some AVCHD's, i asked it is was possible that you implemented the 24p speedup/slowdown feature (independend on whatever BR etc. handles or not)

EDIT:
On this page, section "24p in high definition disc formats", there is mentioned that BR supports 24p in its native timing (if it is actually applied though, i dont know) ---> http://en.wikipedia.org/wiki/24p
But it really doesnt matter in the case of my request, i'm just confused :?

Beastie Boy
24th June 2008, 08:14
A frame rate of 23.976 is often abreviated to 24fps.

1080/23.976p just doesn't look good to the marketing men :)

Cheers, Beastie.

yesgrey
24th June 2008, 10:12
But the exact original film rate is 24fps or 24000/1001 fps?
The 24000/1001 fps is not the slowdown applied to the original film 24fps before the 3:2 pulldown for the conversion to NTSC?

Joniii
24th June 2008, 10:20
24000/1001=23,976023976023976023976023976024

deathlord
24th June 2008, 12:09
Can you supply any document about this 'magic' 10 db boost?
I don't have a document, so far it is just my listening experience.

The core streams ac3/dts are the same in DVD or HD/BD and also the decoders.
But the decoders might behave differently e.g. when decoding the whole dts-hd track rather than the core only.


Lpcm is uncompressed data then we can't decode/encode.
Truehd and dts-hd-ma are lossy formats then can't modify the audio data.
Dts-hd-hr, the extra info over dts core is not related with lfe channel.
Ok, but that tells us neither if the lfe channel was meant to be raised by 10dB nor if the decoder raises it or not. The problem lies somwhere else and I think rickardk has described it very well in post #5233 .



I know there is a reference disc with 7.1 tracks in E-AC3, TrueHD, DTS-HD MA and LPCM format.

Any idea where I could get this disc?

I think it's a good idea to keep the lfe mixed at -10dB as long as possible because otherwise the whole point of lfe headroom is ruined.
I agree. Still the most important point is, as you said, that all sources are treated equally.

Maybe lpcm doesn't use -10dB in the lfe track, while all other sources do? I will check whether the BD's where I felt the 10dB boost was inapropriate were all lpcm.
The presence of 10dB too much in the lfe is of course much more audible than -10dB, because there is also a lot of bass in the other channels.

tebasuna51
24th June 2008, 13:32
I think the +/- 10 dB to lfe channel is not concerning to eac3to conversion.

I am sure about libav decoders, of course lpcm and encoders like Aften (ac3), flac, Surcode (dts) or oggenc2, neroaacenc, ct_aacplus than can be used with ac3to stdout.

I can't test nero or sonic decoders but I think don't apply the +10 dB to LFE.

Like eac3to don't touch the lfe channel and this is the desired behaviour we can close the discussion in this very big thread. We can open other thread to speak about:
- All audio tracks in BD have the lfe channel attenuated 10 dB?
- How the audio equipment (receivers, ...) do the bass management? Must include the +10 dB lfe for any kind of audio source?

Jaja1
24th June 2008, 14:57
I have a TS stream with an AVC video track and a TrueHD audiotrack. Eac3to sees the TrueHD stream but doesn't include it in its tracklist. See attachment.

What's happening here?

Beastie Boy
24th June 2008, 15:07
See attachment.

What's happening here?

Attachments can take a long time to get approved, it's better to paste your log file.

Jaja1
24th June 2008, 15:12
Yes, I know. I didn't get a logfile however... I thought. But it appears to be hidden in the Eac3folder. Didn't know it ends up there if there isn't a run.

So here is round two:

eac3to v2.48
command line: eac3to Broken.ts
------------------------------------------------------------------------------
This is a TrueHD/AC3 stream and not an AC3 stream.
TS, 1 video track, 1:31:15
1: h264/AVC, 1080p24 /1.001 (16:9)

EPiPH0NE
24th June 2008, 20:21
Hmm...

Setup?
Using a A/V receiver there is often an option to apply +10dB lfe boost for digital and analog connections. Do you use it?


I am using an NMT -> Sony DG720 via HDMI and I'm not sure if it's using the boost or not I would have to check. When I do DTS encodes with Surcode via eac3to I can keep my sub level at 0 but when I do DTS-MA/TrueHD -> PCM I usually have to turn up the sub level to +1 and sometimes +2.

zakhounet
24th June 2008, 22:56
Hi,

I have installed NERO 8 with the HDVD/BluRay plugin install (on windows XP sp3) but when i am trying to convert using eactoGui (3.2.10) i am having the following error message :
Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

K:\test2>"E:\PCH\EAC3toGUI\eac3to.exe" "K:\test2\Film.DTSHD.stream.01.eac3" "K:\
test2\Film.DTSHD.stream.01.ac3" -nero
DTS Master Audio, 5.1 channels, 16 bits, 48khz
I'd like to use the Nero decoder, but it doesn't seem to work.

Does anyone knows if I have to copy any .dll file to the eacto directory to be able to use the nero plugin ?

Thanks

nautilus7
24th June 2008, 23:11
First of all: Nero 8 isn't good. You need nero 7 and the plug-in.
The log you posted shows that your file is a dts-hd ma track and not a eac3. Default and best quality dts decoder is sonic.

Welcome.

deacon crusher
25th June 2008, 17:47
I feel like I'm missing something.

Eac3to can mux video streams into mkv files, but it seems like you can't also mux the audio streams into the same mkv.

How come? I know I can use mkvmerge and I do, but I've had problems with it on some files and I'm finding that eac3to solves all of those problems so I'd love to not have to use mkvmerge at all??

Hopefully someone can clue me in to some obvious switch I'm missing that will allow me to do this, or explain why it can't be done or that this feature is maybe coming soon??

Thanks

nautilus7
25th June 2008, 18:44
No, you don't miss anything and audio muxing wont come (in the near future at least). Mkvmerge works quite well and can be used afterwards.

deacon crusher
25th June 2008, 19:10
oh well, better to know then not know.

Just by way of example. National treasure when split into h264 and ac3 with tsmuxer or eac3to and then muxed into mkv with mkvmerge has major problems.

If you split with eac3to and have it create the mkv with the h264 already in there and then mkvmerge in the ac3 stream it does work fine, just felt like I should be able to do it all with one tool, but I'll live.

Eac3to is an amazing tool and really glad I've switched to it.

Thanks

yesgrey
26th June 2008, 10:17
If you split with eac3to and have it create the mkv with the h264 already in there and then mkvmerge in the ac3 stream it does work fine...

Well, that's the way you should do it...
I've read somewhere (maybe in this thread) that it's better keeping the h264 streams inside a container than as a raw stream. I don't know if this still applies, but in your case aparently it does.
I understand that would be better if you could do it in one step, but I also understand that the existence of a simple working alternative (using mkvmerge) keeps madshi for not doing it.

madshi
26th June 2008, 18:18
* Any ETA about blu-ray subtitle demuxing?
No. I don't give ETAs... ;)

But what about the situations where the temp files exist?
The only situation is with DTS encoding. And I don't want to add a parameter just for that.

I have some problems with silver HD tv caps (h264 1080i 50hz), they just dont play (with ffdshow), no matter if as .ts or remuxed to .mkv. though this problem is most likely ffdshow related (since it works with coreavc and powerdvd)
If the problem only occurs with ffdshow and not with coreavc and powerdvd then it's most probably a ffdshow problem. There's nothing I can do.

I have a TS stream with an AVC video track and a TrueHD audiotrack. Eac3to sees the TrueHD stream but doesn't include it in its tracklist. See attachment.
What does "eac3to sourcefile -logpids" say?

I am using an NMT -> Sony DG720 via HDMI and I'm not sure if it's using the boost or not I would have to check. When I do DTS encodes with Surcode via eac3to I can keep my sub level at 0 but when I do DTS-MA/TrueHD -> PCM I usually have to turn up the sub level to +1 and sometimes +2.
As far as I remember, receivers apply that +10db boost to the LFE when you send bitstream to the receiver. However, if you send multichannel uncompressed data, the receivers sometimes apply a +10db boost and sometimes not. It depends on your receiver and also on the receiver settings. The problem is that with Audio-DVD sources an LFE boost must not be done (AFAIK). However, with uncompressed movie audio data an LFE boost must be done. The receiver cannot possible know where the data is coming from. So you may need to change the settings. You should tell your receiver that it shall apply a +10db boost for HDMI LPCM data and for analog multichannel audio input, too.

madshi
26th June 2008, 18:22
I need DTS-HD samples.

They can be rather small. 5MB per sample is plenty. What I need is especially this:

- DTS-HD High Resolution 5.1, 6.1 and 7.1
- DTS-HD Master Audio 5.1, 6.1 and 7.1

Especially 6.1 and 7.1 samples are needed. The more the better. If possible also from different studios. IIRC the Fox tracks are slightly different compared to some other studios.

eac3to is currently not able to properly detect the correct channel configuration of DTS-HD tracks. The information shown by eac3to can be correct - or not. So please check the backside of your Blu-Rays (/ HD DVDs) to find out which channel format the DTS-HD tracks really have.

Thanks!

xkodi
26th June 2008, 18:53
I need DTS-HD samples.

madshi, i will provide to you all samples that i have. i will start preparing them, but it will took several days to cut and upload them.

should we cut the first 5MB of EVOB/M2TS files or demux and then cut from the raw dts tracks?

nautilus7
26th June 2008, 20:26
No. I don't give ETAs... ;)
Well, I wont give you my DTS-HD samples then... :p
Seriously, is it much different from HD DVD sub demuxing that needs time to be implemented?

should we cut the first 5MB of EVOB/M2TS files or demux and then cut from the raw dts tracks? Raw dts tracks is fine.



Here's pack 1 (http://www.sendspace.com/file/82hdgd). Rambo4 sample is 7.1 ch but i named it 5.1 by mistake!!!

Here's pack 2 (http://www.sendspace.com/file/b6cpe4).


Here is a list of the samples included in the 2 packs:

* Rambo 2 HD DVD (Master Audio 5.1 16 bit 48 KHz)
* Rambo 3 HD DVD (Master Audio 5.1 16 bit 48 KHz)
* Studio Canal trailer from the above discs (Master Audio 2.0 16 bit 48 KHz)
* Rambo 4 Blu-ray (Master Audio 7.1 24 bit 48 KHz)
* Sexy Beast HD DVD (High Resolution 5.1 24 bit 48 KHz)
* Testosteron HD DVD (High Resolution 5.1 24 bit 48 KHz)
* Mr Brooks Blu-ray (US) (Master Audio 5.1 24 bit 48 KHz)
* Master & Commander Blu-ray (EUR) (Master Audio 5.1 24 bit 48 KHz)
* The Orphanage Blu-ray (Master Audio 7.1 24 bit 48 KHz)


I have a few more discs with DTS-HD sound and will upload if necessary.

madshi
26th June 2008, 23:22
Cool - thanks! (raw dts files are fine for this purpose, evo/m2ts is not needed)

BLKMGK
27th June 2008, 01:01
Stupid question - when ripping some audio - DTS I think it was - I get an error that Libav cannot handle it and that just the "core" is being ripped. What exactly is the core? Is it stereo or 5.1 or what? Just curious as occasionally this is all I'm able to use on some vids.

madshi
27th June 2008, 07:20
Stupid question - when ripping some audio - DTS I think it was - I get an error that Libav cannot handle it and that just the "core" is being ripped. What exactly is the core? Is it stereo or 5.1 or what? Just curious as occasionally this is all I'm able to use on some vids.
DTS-HD tracks have a conventional DTS core, which can be 5.1 or 6.1. The libav decoder cannot decode DTS-HD, it can however decode the core. If you just "rip" (which is a term commonly used for lossless extraction) libav is not involved at all. If you transcode audio by using libav then the additional DTS-HD information is been lost.

madshi
27th June 2008, 07:21
Does anybody have the "Queen Rock Montreal" Blu-Ray/HD DVD? This one is special cause the core is 48khz while the DTS-HD packages seem to be 96khz. Would be great to get a small sample of that DTS track!

umaximus
27th June 2008, 07:29
^^i have that one.. will try to upload it later on today, if someone doesn't beat me to it

rickardk
27th June 2008, 07:33
Cool - thanks! (raw dts files are fine for this purpose, evo/m2ts is not needed)
I can upload a few 7.1 tracks.

How do cut raw dts files?
How big?

Encoder888
27th June 2008, 08:04
@madshi

take a look at this:

eac3to v2.48
command line: D:\eac3to\eac3to.exe 00026.m2ts 4: TrueHD.flac
------------------------------------------------------------------------------
M2TS, 1 video track, 6 audio tracks, 1:56:33
1: Chapters, 31 chapters
2: VC-1, 1080p24 /1.001 (16:9)
3: AC3, English, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
4: TrueHD/AC3, English, 5.1 channels, 48khz, dialnorm: -27dB
5: AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
6: AC3, Spanish, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
7: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
8: RAW/PCM, English, 5.1 channels, 16 bits, 48khz
[a04] Extracting audio track number 4...
[a04] Extracting TrueHD stream...
[a04] Removing dialog normalization...
[a04] Encoding FLAC...
[a04] Creating file "TrueHD.24bit.flac"...
[libav] Lossless check failed - expected 0, calculated 69
[a04] This audio track contains only 16 bit of information.
[a04] The zero bytes were successfully removed.
Video track 2 contains 167654 frames.
eac3to processing took 34 minutes, 12 seconds.
Done.

im getting the lossless check failed error again when i tried to convert TrueHD to flac for some reason. i know this used to show up on the join spots of seamless branching movies, but it turned out to be a problem with nero and was fixed. Here however i got the error with a non-seamless branching movie (it's 300)... really weird, its the first time ive seen it like this and i was just wondering what could be causing it (i really doubt the TrueHD stream is damaged) or if it affected the flac in any way.

i dont think it did because 300 also comes with an uncompressed PCM and when i converted that to flac, i got no errors and the file size is completely identical to what i got from the truehd.

but... still pls look into it. if it turns out the error is irrelevant, u can have it not show up in your next release :)

oh and thx for u answer to my pcm gap question.

madshi
27th June 2008, 08:07
^^i have that one.. will try to upload it later on today, if someone doesn't beat me to it
Great - thanks!

I can upload a few 7.1 tracks.
Appreciated!

How do cut raw dts files?
A hex editor would do. Just cut off the file after the first few MBs. E.g. this one is nice and freeware:

http://www.mh-nexus.de/

Or I think this one should work, too:

"eac3to source.dts dest.dts -5mb"

How big?
5MB would be plenty.

madshi
27th June 2008, 08:08
im getting the lossless check failed error again when i tried to convert TrueHD to flac for some reason.
Where is the progress bar when this complaint appears?

rickardk
27th June 2008, 09:01
www.earselect.se/dts.rar

Rush Hour 3 (DTS-HD Master Audio 7.1, 24bit, 48kHz)
Shoot 'Em Up (DTS-HD Master Audio 7.1, 24bit, 48kHz)

powerwow
27th June 2008, 09:48
Their are a couple of dts trailers with dts-ma 7.1 sound at http://www.demo-world.eu/trailers/high-definition-trailers.php

xkodi
27th June 2008, 10:47
Their are a couple of dts trailers with dts-ma 7.1 sound at http://www.demo-world.eu/trailers/high-definition-trailers.php

on this site "DTS - Orchestra" and "DTS - SFX" trailers are byte by byte identical respectively with 00022.m2ts and 00004.m2ts from "DTS-HD 2008 High Definition Audio Demonstration Blu-ray Disc", but on the disc covers the number of channels for these two demos are not marked. however, i managed to find out that they are 7.1 with simple test as i mentioned here:

http://forum.doom9.org/showthread.php?p=1147644#post1147644

the site also says that they are 7.1, so it is double confirmation.

i have 3-4 DTS-HD MA samples that failed the test, i.e. ArcSoft can't decode them bit-perfectly.

madshi
27th June 2008, 11:09
www.earselect.se/dts.rar

Rush Hour 3 (DTS-HD Master Audio 7.1, 24bit, 48kHz)
Shoot 'Em Up (DTS-HD Master Audio 7.1, 24bit, 48kHz)
Their are a couple of dts trailers with dts-ma 7.1 sound at http://www.demo-world.eu/trailers/high-definition-trailers.php
Thanks!

It seems that I got proper DTS-HD channel, bitdepth and sample rate detection working now. At least it seems to work on all samples I've received as of yet.

I think I don't need any more 5.1 and 7.1 Master Audio samples. However, I'm a bit short on DTS-HD High Resolution tracks. Also if you can find some 6.1 DTS-HD tracks (either High Resolution or Master Audio), that would be nice, as well.

on this site "DTS - Orchestra" and "DTS - SFX" trailers are byte by byte identical respectively with 00022.m2ts and 00004.m2ts from "DTS-HD 2008 High Definition Audio Demonstration Blu-ray Disc", but on the disc covers the number of channels for these two demos are not marked. however, i managed to find out that they are 7.1
They are 7.1 with 96kHz. At least the latest eac3to work in progress version tells me that... ;)

i have 3-4 DTS-HD MA samples that fails with the test, i.e. ArcSoft can't decode them correctly.
Can you please upload those 3-4 samples? Thanks!

xkodi
27th June 2008, 11:52
Can you please upload those 3-4 samples? Thanks!

will upload them in a few hours.

nautilus7
27th June 2008, 13:12
I am preparing these samples:

DTS-HD MA 6.1 24 bit 48 KHz
DTS-HD MA 5.0 24 bit 96 KHz

xkodi
27th June 2008, 13:14
I am preparing these samples:

DTS-HD MA 6.1 24 bit 48 KHz
DTS-HD MA 5.0 24 bit 96 KHz

are they from "X-Men: The Last Stand" and "Nature's Journey"?

i am asking, so i don't upload them as well.

Thunderbolt8
27th June 2008, 13:31
Queen Rock Montreal Blu-ray DTS-HD 5.1 96kHz http://www.sendspace.com/file/c6xrdb :p
Herbert Grönemeyer 12 live HD DVD DTS-HD 7.1 96kHz http://www.sendspace.com/file/9a38wi
Basic Insinct Blu-ray DTS-HD 6.1 48kHz 24-bit http://www.sendspace.com/file/hw4vok

xkodi
27th June 2008, 13:50
Can you please upload those 3-4 samples? Thanks!

here: http://rapidshare.de/files/39846389/dtshd_samples.rar.html

these should have very weird headers, because are the only DTS-HD MA 7.1 samples that i found so far that ArcSoft can't decode correctly, i.e. bit-perfect:

1) Title: Dragon Tiger Gate, Blu-ray, HK release
Studio: DELTAMAC, Mandarin Films
Format marked on the cover: DTS-HD MA 7.1 (has the same track also in TrueHD, so it is good for reference)

2) Title: Flash Point, Blu-ray, HK release
Studio: DELTAMAC, Mandarin Films
Format marked on the cover: DTS-HD MA 7.1 (has the same track also in LPCM, so it is good for reference)

3) Title: Hi-Definition Reference Disc, Blu-ray, Japan release
Studio: Qtec
Format marked on the cover: DTS-HD MA 7.1 (has the same track also in TrueHD, so it is good for reference)

nautilus7
27th June 2008, 13:55
are they from "X-Men: The Last Stand" and "Nature's Journey"?

i am asking, so i don't upload them as well.Yes they are. They are are from DTS Demo Disc:

File 00007.m2ts ----------------- DTS-HD MA 6.1 24 48 (X-Men: Last Stand)
File 00010.m2ts & 00011.m2ts --- DTS-HD MA 5.0 24 96 (Nature's Journey)
File 00004.m2ts & 00022.m2ts --- DTS-HD MA 5.1 24 96 (DTS logo)


If you have the disc please upload them as I don't have it in my HDD currently.

xkodi
27th June 2008, 14:18
Yes they are. If you have the disc please upload them as I don't have in my HDD currently.

i don't have the disc, but sound samples from those movies are included on "DTS-HD 2008 High Definition Audio Demonstration Blu-ray Disc". so, i am uploading the samples from there:

http://rapidshare.de/files/39846641/dtshd_samples_2.rar.html

madshi
27th June 2008, 15:24
Queen Rock Montreal Blu-ray DTS-HD 5.1 96kHz http://www.sendspace.com/file/c6xrdb :p
Herbert Grönemeyer 12 live HD DVD DTS-HD 7.1 96kHz http://www.sendspace.com/file/9a38wi
Basic Insinct Blu-ray DTS-HD 6.1 48kHz 24-bit http://www.sendspace.com/file/hw4vok
these should have very weird headers, because are the only DTS-HD MA 7.1 samples that i found so far that ArcSoft can't decode correctly
Thanks guys, good samples.

nautilus7
27th June 2008, 15:35
i don't have the disc, but sound samples from those movies are included on "DTS-HD 2008 High Definition Audio Demonstration Blu-ray Disc".I have that disc also. The files I mention before are from that disc.


Another DTS-HD MA 5.1 24bit 96 KHz with a 24/48 core (http://www.sendspace.com/file/dpxjmq)
(It turned out to be 7.1ch)

itsancho
27th June 2008, 15:57
C:\Documents and Settings\iTSAN>z\eac3to "J:\House of 1000 Corpses (2003) Blu-ray VC-1 DD-EX dts-HD Hi-Res 7.1\HOUSE_1000_CORPSES"
1) 00000.mpls, 00000.m2ts, 1:28:57
- VC-1, 1080p24 /1.001 (16:9)
- DTS Hi-Res, English, multi-channel, 48khz
- AC3, English, multi-channel, 48khz
- AC3, English, stereo, 48khz

eac3to v2.48
command line: z\eac3to "J:\House of 1000 Corpses (2003) Blu-ray VC-1 DD-EX dts-HD Hi-Res 7.1\HOUSE_1000_CORPSES" 1) 3: e:\ho1000c.sample.dts -50mb
------------------------------------------------------------------------------
M2TS, 1 video track, 3 audio tracks, 1:28:57
1: Chapters, 17 chapters
2: VC-1, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 5.1 channels, 24 bits, 48khz
4: AC3, English, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
5: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
[a03] Extracting audio track number 3...
[a03] Creating file "e:\ho1000c.sample.dts"...
Video track 2 contains 354 frames.
eac3to processing took 1 second.
Done. http://rapidshare.de/files/39847478/ho1000c.sample.rar.html

i used -50mb 'couse with -5mb dest.dts was 470kb, now is 4.71MB ;-)

one more: C:\Documents and Settings\iTSAN>z\eac3to "J:\Saw II (2005) UnRated Blu-ray MPEG-2 dts-HD Hi-Res DD-EX"
1) 00010.mpls, 00013.m2ts, 1:34:33
- MPEG2, 1080p24 /1.001 (16:9)
- AC3, English, multi-channel, 48khz
- DTS Hi-Res, English, multi-channel, 48khz
- AC3, English, stereo, 48khz
- AC3, English, stereo, 48khz

eac3to v2.48
command line: z\eac3to "J:\Saw II (2005) UnRated Blu-ray MPEG-2 dts-HD Hi-Res DD-EX" 1) 4: e:\sawII.sample.dts -50mb
------------------------------------------------------------------------------
M2TS, 1 video track, 4 audio tracks, 1:34:32
1: Chapters, 22 chapters
2: MPEG2, 1080p24 /1.001 (16:9)
3: AC3, English, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
4: DTS Hi-Res, English, 5.1 channels, 24 bits, 3093kbit/s, 48khz, dialnorm: -4dB
5: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
6: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
[a04] Extracting audio track number 4...
[a04] Removing dialog normalization...
[a04] Creating file "e:\sawII.sample.dts"...
Video track 2 contains 427 frames.
eac3to processing took 1 second.
Done. http://rapidshare.de/files/39847537/sawII.sample.rar.html

and last one i have, and it's 6.1 :-)
eac3to v2.48
command line: z\eac3to "E:\Weeds (2005) The Complete First Season (2005) Blu-ray MPEG-2 dts-HD Hi-Res" 2) 3: c:\weeds.sample.dts -35mb
------------------------------------------------------------------------------
M2TS, 1 video track, 3 audio tracks, 0:31:42
1: Chapters, 6 chapters
2: MPEG2, 1080p24 /1.001 (16:9)
3: DTS Hi-Res, English, 6.1 channels, 24 bits, 3093kbit/s, 48khz, dialnorm: -4dB
4: AC3, English, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
5: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
[a03] Extracting audio track number 3...
[a03] Removing dialog normalization...
[a03] Creating file "c:\weeds.sample.dts"...
Video track 2 contains 389 frames.
eac3to processing took 1 second.
Done. http://rapidshare.de/files/39847597/weeds.sample.rar.html

Jaja1
27th June 2008, 16:14
What does "eac3to sourcefile -logpids" say?

Here's the log.
eac3to v2.48
command line: eac3to Broken_Part1.ts -logpids
------------------------------------------------------------------------------
PID: 256/4129 ($1b), h264/AVC
PID: 256/4133 ($81), "AC-3", eng, AC3
This is a TrueHD/AC3 stream and not an AC3 stream.
TS, 1 video track, 1:32:53
1: h264/AVC, 1080p24 /1.001 (16:9)



eac3to is currently not able to properly detect the correct channel configuration of DTS-HD tracks.I hope this doesn't mean that conversion of those tracks to DTS or AC3 could be wrong.

madshi
27th June 2008, 19:15
http://rapidshare.de/files/39847478/ho1000c.sample.rar.html

i used -50mb 'couse with -5mb dest.dts was 470kb, now is 4.71MB ;-)

one more: http://rapidshare.de/files/39847537/sawII.sample.rar.html

and last one i have, and it's 6.1 :-)
http://rapidshare.de/files/39847597/weeds.sample.rar.html
Thanks, these are good samples. Especially the first one: It was misidentified by the current official eac3to version as being Master Audio while in reality it's High-Resolution. The next eac3to version will identify it correctly.

Here's the log.
The file is clearly incorrectly structured. The TrueHD track is stored under the ID "0x81" which is the ID commonly used for AC3 tracks. TrueHD tracks are supposed to use the ID "0x83". That's why eac3to complains.

I hope this doesn't mean that conversion of those tracks to DTS or AC3 could be wrong.
Not really. But the next eac3to version will properly detect the channel configuration etc, anyway.

madshi
27th June 2008, 19:58
eac3to v2.49 released

http://madshi.net/eac3to.zip

* DTS parser sets correct channel mask now
* DTS-HD parser now properly detects format, channels and samplerate
* added support for ArcSoft DTS(-HD) Decoder
* added several tweaks to make ArcSoft Decoder behave correctly
* added ArcSoft test to the "-test" processing
* made ArcSoft Decoder default for DTS and DTS-HD decoding
As xkodi already found out, the ArcSoft DTS-HD decoder decodes everything we throw at it. So now we finally have full 7.1 DTS-HD Master Audio decoding!

If you guys find any DTS-HD tracks which are not properly detected by eac3to or which do not decode correctly, please let me know. All the samples that have been uploaded seem to work fine, though.

xkodi
27th June 2008, 20:29
eac3to v2.49 released

thank you, madshi! the changelog looks amazing!

i am so eager to use it, but run into troubles:

first, time when i run with "-test" switch:

C:\eac3to249>eac3to.exe -test
Nero Audio Decoder (Nero 7 or older) doesn't seem to be installed
Sonic Audio Decoder (4.3.0.169) works fine
ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) is not working correctly
.....

second, time when i run with "-test" switch:

C:\eac3to249>eac3to.exe -test
Sonic Audio Decoder (4.3.0.169) works fine
ArcSoft Audio Decoder (1.3.2.49, 2.49.0.0) is not working correctly
.....

what should i do in order to get ArcSoft working? ASAudioHD.ax on the system is version 1.3.2.49, but which files should be 1.1.0.0 and/or 2.49.0.0?

madshi
27th June 2008, 20:37
@xkodi, I'm slightly confused. The "1.1.0.0" version number is correct. That's the version number of the ArcSoft "dtsdecoderdll.dll" which is doing all the work. The "2.49.0.0" indicates that eac3to didn't even find the "dtsdecoderdll.dll" dll. As a result (that's a bug) eac3to lists its own version number. Very strange. Why does it sometimes find the dll and sometimes not?

You could try adding search paths to these 2 directories:

C:\Program Files\ArcSoft\TotalMedia Theatre
C:\Program Files\Common Files\ArcSoft\MPEG Engine

Maybe that helps? FWIW, I had some trouble to get the decoder working in the beginning. I had to change some paths to make it work. But later I undid the path changes and still everything works fine for me now? :confused:

xkodi
27th June 2008, 20:46
adding:

C:\Program Files\ArcSoft\TotalMedia Theatre
C:\Program Files\Common Files\ArcSoft\MPEG Engine

to the search path doesn't help.

do my dtsdecoderdll.dll and ASAudioHD.ax are same as yours:

dtsdecoderdll.dll
MD5 52191f0d600ba19065ace3720b76ed87

ASAudioHD.ax
MD5 bc9bc77e6ba97f43de5f0d739c07e114

P.S. desperate step - reboot the machine, but still ArcSoft is not recognized.

EPiPH0NE
27th June 2008, 20:48
As xkodi already found out, the ArcSoft DTS-HD decoder decodes everything we throw at it. So now we finally have full 7.1 DTS-HD Master Audio decoding!

Other then doing 7.1 decoding is there any other difference from the Sonic decoders? I only have a 5.1 set-up so I don't need 7.1.

madshi
27th June 2008, 20:57
adding:

C:\Program Files\ArcSoft\TotalMedia Theatre
C:\Program Files\Common Files\ArcSoft\MPEG Engine

to the search path doesn't help.
Ok, now my suggestions are getting dramatic:

(1) What happens if you point the command line to "C:\Program Files\ArcSoft\TotalMedia Theatre" and run eac3to with that directory as the active directory?

(2) As a last test does copying all files of the two ArcSoft folders mentioned above fix the problem?

do my dtsdecoderdll.dll and ASAudioHD.ax are same as yours:

dtsdecoderdll.dll
MD5 52191f0d600ba19065ace3720b76ed87

ASAudioHD.ax
MD5 bc9bc77e6ba97f43de5f0d739c07e114
Don't know how to calculate an MD5. But I'm using the official ArcSoft trial version for now. So if you're using the same one, there should be no difference in the dlls.

Other then doing 7.1 decoding is there any other difference from the Sonic decoders? I only have a 5.1 set-up so I don't need 7.1.
The Sonic decoder is pretty perfect for 5.1 decoding. However, with 7.1 tracks (and some 6.1 tracks) the Sonic decoder simply drops the back channels. If you used eac3to with the ArcSoft decoder you could ask eac3to to downconvert the 8 (or 7) channels to 5.1. eac3to would then mix the back channels into the surround channels. I think that's the better solution...

nautilus7
27th June 2008, 21:04
Madshi, you are absolutely amazing. Thank you very much for the new features!!!

Arcsoft decoder works fine here. My demo version expired so I ad to install it again to make it work:

C:\>eac3to -test
Nero Audio Decoder (Nero 7 or older) doesn't seem to be installed
Sonic Audio Decoder (4.3.0.169) works fine
ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) works fine
Haali Media Splitter (2008-3-29) is installed
Surcode DTS Encoder (1.0.29.0) is installed
MkvToolnix (v2.2.0) is installed


Did I miss anything about the search paths? What are they? If, that helps, I run eac3to as environment variable (I can run it from everywhere).

madshi
27th June 2008, 21:22
Did I miss anything about the search paths? What are they? If, that helps, I run eac3to as environment variable (I can run it from everywhere).
The environment variable is what I meant with "search path".

xkodi
27th June 2008, 21:27
Ok, now my suggestions are getting dramatic:

(1) What happens if you point the command line to "C:\Program Files\ArcSoft\TotalMedia Theatre" and run eac3to with that directory as the active directory?

my path is actually "C:\Program Files\ArcSoft\TotalMedia Extreme", because i uninstalled the "Arcsoft TotalMedia Theatre Intro version" and installed "Arcsoft TotalMedia Extreme Trial version" which includes "TotalMedia Theatre". i've done this, because i am under the impression that the "Intro version" can't be purchased and registered and sooner or lated expires. so, probably that is the problem - eac3to works correctly with the "Intro version" only.

i've tried, what you suggested and here is the output of two subsequent runs of "eac3to.exe -test":

C:\Program Files\ArcSoft\TotalMedia Extreme>eac3to.exe -test
Nero Audio Decoder (Nero 7 or older) doesn't seem to be installed
Sonic Audio Decoder (4.3.0.169) works fine
ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) is not working correctly
Haali Media Splitter doesn't seem to be installed
Surcode DTS Encoder doesn't seem to be installed
MkvToolnix doesn't seem to be installed

C:\Program Files\ArcSoft\TotalMedia Extreme>eac3to.exe -test
Nero Audio Decoder (Nero 7 or older) doesn't seem to be installed
Sonic Audio Decoder is not working correctly
ArcSoft Audio Decoder is not working correctly
Haali Media Splitter doesn't seem to be installed
Surcode DTS Encoder doesn't seem to be installed
MkvToolnix doesn't seem to be installed


(2) As a last test does copying all files of the two ArcSoft folders mentioned above fix the problem?


do not understand where to copy those files, to the eac3to directory or somewhere else?

so, the right question is what is the difference between the "Arcsoft TotalMedia Theatre Intro version" and "Arcsoft TotalMedia Extreme Trial version" and how to make eac3to to work with the later?

nautilus7
27th June 2008, 21:34
I am using TotalMedia Theatre Trial version here.

madshi
27th June 2008, 21:36
my path is actually "C:\Program Files\ArcSoft\TotalMedia Extreme", because i uninstalled the "Arcsoft TotalMedia Theatre Intro version" and installed "Arcsoft TotalMedia Extreme Trial version" which includes "TotalMedia Theatre". i've done this, because i am under the impression that the "Intro version" can't be purchased and registered and sooner or lated expires.
But the ArcSoft decoder still works in GraphEdit for you?

i've tried, what you suggested and here is the output of two subsequent runs of "eac3to.exe -test"
Strange! Now even the Sonic decoder fails in the 2nd test run??

do not understand where to copy those files, to the eac3to directory or somewhere else?
Sorry, I was unclear. Yes, I meant to copy all those files to the eac3to folder (only as a test).

so, the right question is what is the difference between the "Arcsoft TotalMedia Theatre Intro version" and "Arcsoft TotalMedia Extreme Trial version" and how to make eac3to to work with the later?
Where can I download the Extreme Trial version?

xkodi
27th June 2008, 21:41
I am using TotalMedia Theatre Trial version here.

and i uninstall the Trial and install the Intro again and still have the problem. apparently, something is wrong on my system. maybe because recently installed WinXP SP3.

what OSes you are running?

Thunderbolt8
27th June 2008, 21:44
eac3to v2.49 released
thanks! :)

so is eac3to basically now able to transport each lossless format (dts-hd(ma), truehd, lpcm) with each number of channels and each bitrate & khz 1:1 to flac or is there still something missing/not working out correctly atm?

edit: dts-hd is not completely lossless yes, but I meant this as well -.-

crazydane
27th June 2008, 21:45
I'm having the same issue as xkodi.

1st test - TMT trial installed
2nd test - TMT trial uninstalled
3rd test - same as 2
4th test - TMT re-installed

http://www.cstone.net/~dk/arcsoftissue.JPG

The trial I'm using is "arcsoft_totalmediatheater_engintro.exe" that I downloaded on 6/11.

During all of the tests above, I had dtsdecoderdll.dll and ASAudioHD.ax copied to my eac3to install library.

I'm running Vista Ultimate 32-bit SP1.

xkodi
27th June 2008, 21:45
But the ArcSoft decoder still works in GraphEdit for you?

yes, works perfectly in GraphEdit. is there any chance that WinXP SP3 causes the problem?

Where can I download the Extreme Trial version?

Extreme Trial build 110:

http://base.arcsoft.com/downloads//tbyb/totalmediaextreme_retail_trial_e.exe

update to build 113 that adds DTS-HD MA support:

http://base.arcsoft.com/downloads/totalmediaextreme/arcsoft/TotalMediaExtreme_1.0.6.23_1.0.6.29_Update_ALL.exe

P.S. madshi, please download http://www.slavasoft.com/hashcalc/ and calculate the MD5 hash of your Arcsoft decoder files.

nautilus7
27th June 2008, 21:46
Where can I download the Extreme Trial version?http://www.arcsoft.com/support/downloads/downloadnow.asp?downloadid=411

and i uninstall the Trial and install the Intro again and still have the problem. apparently, something is wrong on my system. maybe because recently installed WinXP SP3.

what OSes you are running?Win XP SP2



I have installed this version here: http://www.arcsoft.com/support/downloads/downloadnow.asp?downloadid=384 (I mention it as I see that xkodi's links are different that mines).

EPiPH0NE
27th June 2008, 21:47
I have ArcSoft TotalMedia Extreme v1.0.6.28 RETAiL will this work with eac3to? If so should I be setting it as default for everything or just DTS-MA?

xkodi
27th June 2008, 21:57
I have installed this version here: http://www.arcsoft.com/support/downloads/downloadnow.asp?downloadid=384 (I mention it as I see that xkodi's links are different that mines).

this is the "Intro version", it can't be purchased, but can be used for 15 days.

the links in my previous post are for the "Trial version" that can be used for 15 days and purchased after that.

I have ArcSoft TotalMedia Extreme v1.0.6.28 RETAiL will this work with eac3to? If so should I be setting it as default for everything or just DTS-MA?

1.0.6.28 do not have DTS-HD MA support, it only decodes the DTS core, you should update to 1.0.6.29. instead the version numbers i use the build numbers:

1.0.6.28 = build 110
1.0.6.29 = build 113

xkodi
27th June 2008, 22:02
madshi, i've solved the problem:

C:\>c:\eac3to249\eac3to.exe -test
Nero Audio Decoder (Nero 7 or older) doesn't seem to be installed
Sonic Audio Decoder (4.3.0.169) works fine
ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) works fine

the only different file in C:\Program Files\Common Files\ArcSoft\MPEG Engine

between the "Intro version" and the "Trial version" is: ArcDemux.ax

eac3to doesn't work with ArcDemux.ax from the "Trial version".

P.S. both ArcDemux.ax are version 1.0.2.68, the working one has MD5 sum: abf8200f9d35b7be9dee79ff23a4ba52 and the broken one is with MD5 sum ef37767a2bd8faa20b13722a05ec2ae5. maybe the difference is because of the registration capabilities of the "Trial version".

madshi
27th June 2008, 22:04
so is eac3to basically now able to transport each lossless format (dts-hd(ma), truehd, lpcm) with each number of channels and each bitrate & khz 1:1 to flac
Yes... :)

is there any chance that WinXP SP3 causes the problem?
Not sure. Still using XPSP2 here.

P.S. madshi, please download http://www.slavasoft.com/hashcalc/ and calculate the MD5 hash of your Arcsoft decoder files.
I get the same hashes as you.

I have ArcSoft TotalMedia Extreme v1.0.6.28 RETAiL will this work with eac3to?
Why don't you give it a try and report back if it works? :)

If so should I be setting it as default for everything or just DTS-MA?
You don't need to set it as default, eac3to has changed defaults already. If you don't tell eac3to otherwise, it will now use ArcSoft for DTS, DTS-MA and DTS-HR decoding.

EPiPH0NE
27th June 2008, 22:05
this is the "Intro version", it can't be purchased, but can be used for 15 days.

So i guess the filters become unusable after 15 days aswell?



1.0.6.28 do not have DTS-HD MA support, it only decodes the DTS core, you should update to 1.0.6.29. instead the version numbers i use the build numbers:

1.0.6.28 = build 110
1.0.6.29 = build 113

Thnx for the heads up :)

madshi
27th June 2008, 22:08
madshi, i've solved the problem:

the only different file in C:\Program Files\Common Files\ArcSoft\MPEG Engine

between the "Intro version" and the "Trial version" is: ArcDemux.ax

eac3to doesn't work with ArcDemux.ax from the "Trial version".
Argh. I don't know why ArcDemux.ax has any effect on eac3to. I'm not accessing it from within eac3to. Maybe the ASAudioHD.ax uses it internally?

Which ArcDemux.ax is newer? The one from the Intro version or from the Trial version?

And does the full retail version work?

xkodi
27th June 2008, 22:18
Which ArcDemux.ax is newer? The one from the Intro version or from the Trial version?

they are both the same version 1.0.2.68, but comparing them byte by byte shows that are very very different.

And does the full retail version work?

AFAIK the Retail version is the same as purchased and registered Trial version.

btw is Arcsoft better for other formats like (E-)AC3 or currently it is unknown?

xkodi
27th June 2008, 22:23
they are both the same version 1.0.2.68, but comparing them byte by byte shows that are very very different.

i made a mistake:

ArcDemux.ax from the Intro is: 1.0.2.66

and

ArcDemux.ax from the Trial is: 1.0.2.68

Yraen
27th June 2008, 23:00
eac3to v2.49 released

Very nice. Thanks once more for a great program and great support for it.

xkodi
27th June 2008, 23:18
@madshi

about the 3 DTS-HD MA 7.1 samples that ArcSoft can't decode bit-perfectly using GraphEdit:

http://rapidshare.de/files/39846389/dtshd_samples.rar.html

1) Title: Dragon Tiger Gate, Blu-ray, HK release

2) Title: Flash Point, Blu-ray, HK release

3) Title: Hi-Definition Reference Disc, Blu-ray, Japan release

eac3to 2.49 decodes 1) and 2) bit-perfectly, but fails with 3)

btw what is the eac3to 2.49 secret here, do you patch the DTS headers to achieve bit-perfect decode for sample 1) and 2) or do something else?

EPiPH0NE
28th June 2008, 03:20
madshi, i've solved the problem:



the only different file in C:\Program Files\Common Files\ArcSoft\MPEG Engine

between the "Intro version" and the "Trial version" is: ArcDemux.ax

eac3to doesn't work with from the "Trial version".

P.S. both ArcDemux.ax are version 1.0.2.68, the working one has MD5 sum: abf8200f9d35b7be9dee79ff23a4ba52 and the broken one is with MD5 sum ef37767a2bd8faa20b13722a05ec2ae5. maybe the difference is because of the registration capabilities of the "Trial version".

I am also having this problem:



P:\>P:\eac3to_2.49\eac3to.exe -test
Nero Audio Decoder (Nero 7 or older) works fine
Sonic Audio Decoder (4.3.0.169) works fine
ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) is not working correctly
Haali Media Splitter (2007-11-18) is installed
Surcode DTS Encoder (1.0.23.0) is installed
MkvToolnix (v2.2.0) is installed

P:\>P:\eac3to_2.49\eac3to.exe -test
Sonic Audio Decoder (4.3.0.169) works fine
ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) is not working correctly
Nero Audio Decoder is not working correctly
Haali Media Splitter (2007-11-18) is installed
Surcode DTS Encoder (1.0.23.0) is installed
MkvToolnix (v2.2.0) is installed

P:\>P:\eac3to_2.49\eac3to.exe -test
Nero Audio Decoder (Nero 7 or older) works fine
Sonic Audio Decoder (4.3.0.169) works fine
ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) is not working correctly
Haali Media Splitter (2007-11-18) is installed
Surcode DTS Encoder (1.0.23.0) is installed
MkvToolnix (v2.2.0) is installed


How exactly did you solve it? I have 1.0.6.28 + update -> 1.0.6.29. Can you upload the proper ArcDemux.ax and PM me the link? Would I just have to replace this file? I don't care about the actual app I'm only installing it for the filters so if it screws up that app I don't care.

xkodi
28th June 2008, 06:30
I am also having this problem:

How exactly did you solve it? I have 1.0.6.28 + update -> 1.0.6.29. Can you upload the proper ArcDemux.ax and PM me the link? Would I just have to replace this file? I don't care about the actual app I'm only installing it for the filters so if it screws up that app I don't care.

it turns out that the root cause of the problem is not the ArcDemux.ax, i am still searching for the cause and what really fix the problem on my computer, but i am not sure. however, i think it is something to do with the following DLLs:

MagCore.dll
MagUIInter.dll
MagUIEngine.dll
MagPCMac.dll

so, please, copy them from "C:\Program Files\ArcSoft\TotalMedia Extreme" to the directory where your eac3to.exe is, try again with "eac3to.exe -test" and report back the results.

@madshi

so, until now 3 problems with 2.49:

1) http://forum.doom9.org/showthread.php?p=1153102#post1153102
2) "ArcSoft Audio Decoder is not working correctly" - can't find what exactly fix initially the problem, but still it is here and has random effect in one minute it is there in the next it is gone
3) "ArcSoft Audio Decoder doesn't seem to be installed" - on my other computer, no matter what i do eac3to reports this error

madshi, please, tell more about how eac3to test for 2) and 3), so we can figure out what is wrong.

itsancho
28th June 2008, 07:44
i think SP3 is doing some shit...
i did exactly the same installation of ArcSoft TotalMedia Extreme, first 1.0.6.28 then 1.0.6.29 update on 2 PCs, one with SP2 and the other with SP3, guess what...

with SP2 :eac3to -test
Nero Audio Decoder (Nero 7 or older) works fine
Sonic Audio Decoder (4.3.0.169) works fine
ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) works fine
Haali Media Splitter (2008-3-29) is installed
Surcode DTS Encoder (1.0.29.0) is installed
MkvToolnix (v2.2.0) is installed with SP3 eac3to -test
ArcSoft Audio Decoder (2.49.0.0, 2.49.0.0) doesn't seem to be installed
Nero Audio Decoder (Nero 7 or older) works fine
Sonic Audio Decoder (4.3.0.169) works fine
Haali Media Splitter (2008-3-29) is installed
Surcode DTS Encoder (1.0.29.0) is installed
MkvToolnix (v2.2.0) is installed

xkodi
28th June 2008, 07:48
i think SP3 is doing some shit...
i did exactly the same installation of ArcSoft TotalMedia Extreme, first 1.0.6.28 then 1.0.6.29 update on 2 PCs, one with SP2 and the other with SP3, guess what...

with SP2 : with SP3

if you run "eac3to.exe -test" many times is always reported:

"ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) works fine"

because on my computer sometimes it is:

"ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) works fine"

and sometimes it is:

"ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) is not working correctly"

itsancho
28th June 2008, 07:59
if you run "eac3to.exe -test" many times is always reported:
"ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) works fine"
because on my computer sometimes it is:
"ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) works fine"
and sometimes it is:
"ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) is not working correctly" yeap! i've run it 10 times one after another and the message always was that is working fine...

ACrowley
28th June 2008, 09:29
Will ArcSoft TotalMedia™ Extreme work with Vista x64 ? So far i can see not..too bad
Maybe the single .ax Decoders are working when i register them manually ?

Maybe this helps ?
http://www.arcsoft.com/support/downloads/download_patches/vista.asp

What is the newest Version ? 1.0.6.29/ build 113 ?
On the Website/Update are newer Versions
http://www.arcsoft.com/support/downloads/download_patches_menu.asp

EDIT:
All Filters are working on Vista X64 :)

Can i use The AudioHH Decoder for THD,EAC3 in mpc ?

Encoder888
28th June 2008, 14:20
im getting the lossless check failed error again when i tried to convert TrueHD to flac for some reason.
Where is the progress bar when this complaint appears?

it happens immediately after the conversion is complete, not until the progress bar has gone all the way across. today i got the same error with I Am Legend (with 2.49).

If possible, let me know if I need to worry about it... :)

Thanks and im sorry i couldnt reply earlier.

deathlord
28th June 2008, 15:03
madshi,

Great job with the new version! Thank you very much!

I have just downloaded and installed the TMT intro version on xp sp2. It seems to work flawlessly, the test is successful even when repeated several times:
ArcSoft Audio Decoder (1.3.2.49, 1.1.0.0) works fine

The version of the .exe file is 2.1.0.106, ASAudioHD.ax is 1.3.2.49.

Has anyone figured out which files are really needed, yet? I don't need the whole program, the filters alone would do.

madshi
28th June 2008, 15:27
about the 3 DTS-HD MA 7.1 samples that ArcSoft can't decode bit-perfectly using GraphEdit

1) Title: Dragon Tiger Gate, Blu-ray, HK release

2) Title: Flash Point, Blu-ray, HK release

eac3to 2.49 decodes 1) and 2) bit-perfectly

what is the eac3to 2.49 secret here, do you patch the DTS headers to achieve bit-perfect decode for sample 1) and 2) or do something else?
Not sure what the secret is, actually. I'm doing the usual eac3to magic :), but nothing special to make those 2 tracks work...

3) Title: Hi-Definition Reference Disc, Blu-ray, Japan release

eac3to 2.49 fails with 3)
From what I can see the difference is that the decoded DTS track has a lower volume compared to the TrueHD track. I see 3 possible reasons for why that could happen:

(1) Either the DTS track has more than 8 channels in it. As a result the ArcSoft decoder might mix the additional channels into the first 8 channels. I think this is rather unlikely.

(2) Or the DTS track has dialnorm activated in the DTS-HD blocks and the ArcSoft decoder applies this dialnorm. There's an additional dialnorm field in the DTS-HD blocks, which eac3to can not handle.

(3) Or the DTS encoder was actually fed with audio data which was already lowered in volume compared to the data fed to the TrueHD encoder.

Can you post the eac3to detail information for the m2ts file this problematic dts/thd combo was demuxed from?

2) "ArcSoft Audio Decoder is not working correctly" - can't find what exactly fix initially the problem, but still it is here and has random effect in one minute it is there in the next it is gone
That should be fixed by the next build (v2.50).

3) "ArcSoft Audio Decoder doesn't seem to be installed" - on my other computer, no matter what i do eac3to reports this error
If that occurs at a 2nd run when doing "eac3to -test" then this should also be fixed with the next build. However, if you never ever got the decoder to ever show anything else besides "doesn't seem to be installed" then v2.50 will probably not fix this.

What is the newest Version ? 1.0.6.29/ build 113 ?
With v2.50 the only important thing is the version of the "dtsdecoderdll.dll" file. File version 1.1.0.0 works perfectly for me.

Can i use The AudioHH Decoder for THD,EAC3 in mpc ?
Yes, but only together with the ArcSoft demuxers/splitters, I think.

it happens immediately after the conversion is complete, not until the progress bar has gone all the way across.
In that case you can safely ignore the warning.

madshi
28th June 2008, 15:33
eac3to v2.50 released

http://madshi.net/eac3to.zip

* ArcSoft DTS Decoder DLL is now directly accessed instead of using DirectShow
This should work around some of the problems with the ArcSoft DirectShow filters.

BTW, I've noticed that the ArcSoft DTS decoder is a lot faster than the Sonic DTS decoder:

Conventional DTS tracks: 50% faster
DTS-HD High Resolution tracks: 55% faster
DTS-96/24 tracks: 79% faster
DTS-HD Master Audio tracks: 175% faster

Especially the Master Audio decoding performance is in another world compared to the Sonic decoder. The Sonic takes almost 3x as much time for decoding MA tracks!

hubblec4
28th June 2008, 15:37
Hi madshi



Quote:
Originally Posted by hubblec4 View Post
hi Yraen

there is a small problem and i hope you understand what i mean.

Movie: Waterworld for example

the eac3to log shows me 14 subtitles but it is 18 subtitels.

14 normal subs and 4 forced subs. (evodemux shows me the 18 subs but canīt right demux them)

the 4 forced subs started later as the normal subs and i think thats the problem.

is there a way to fix that??? maybe by large scanning the feature.evo file or is that a problem of the eac3to.exe?


Quote:
original by Yraen

Unfortunately that is an eac3to limitation and you're right about what the problem is. Eac3to, to the best of my knowledge, only reads so much of the .evo/.m2ts files to see the streams contained within. Since they start later, eac3to never sees them. You might post in the eac3to thread and see if madshi might want a sample or there is a command line switch that will let eac3to read deeper into the files.


i hope you have time to fix that.

hubble

Thunderbolt8
28th June 2008, 15:42
can someone please enlighten me which arcsoft is advised to be used? the theatre or the extreme version? does it have to be a full version or is a(n) (re)install of the trial version fine as well?

nautilus7
28th June 2008, 15:53
@ madshi

New version works here (as before). Could you tell which .dll and .ax filters are used by eac3to for dts decoding with Arcsoft decoder (and in what paths are they are located if possible)? I am trying to make it work in my other pc without installing the whole program (just registering the filters).

And yes, Arcsoft decoder is much faster than Sonic.


@ Thunderbolt8

I use TotalMedia Theatre 15 days trial (http://www.arcsoft.com/support/downloads/downloadnow.asp?downloadid=384). This is also described as intro version in the previous posts. After expired once, I re-installed it and everything was fine. Good luck.

deathlord
28th June 2008, 15:53
can someone please enlighten me which arcsoft is advised to be used? the theatre or the extreme version? does it have to be a full version or is a(n) (re)install of the trial version fine as well?

At the moment I'm using this version (eac3to_2.49.0.0) (without registration). I don't know if it the filters will continue to work after it expires. Maybe it is also possible to just register the dtsdecoderdll.dll?

Edit: Registering the .dll only doesn't work (eac3to v2.50).

B4tm4n
28th June 2008, 15:56
eac3to v2.50 released

Thank you. :thanks:

hubblec4
28th June 2008, 16:13
Hi madshi



Quote:
Originally Posted by hubblec4 View Post
hi Yraen

there is a small problem and i hope you understand what i mean.

Movie: Waterworld for example

the eac3to log shows me 14 subtitles but it is 18 subtitels.

14 normal subs and 4 forced subs. (evodemux shows me the 18 subs but canīt right demux them)

the 4 forced subs started later as the normal subs and i think thats the problem.

is there a way to fix that??? maybe by large scanning the feature.evo file or is that a problem of the eac3to.exe?


Quote:
original by Yraen

Unfortunately that is an eac3to limitation and you're right about what the problem is. Eac3to, to the best of my knowledge, only reads so much of the .evo/.m2ts files to see the streams contained within. Since they start later, eac3to never sees them. You might post in the eac3to thread and see if madshi might want a sample or there is a command line switch that will let eac3to read deeper into the files.


i hope you have time to fix that.

hubble

xkodi
28th June 2008, 16:20
Can you post the eac3to detail information for the m2ts file this problematic dts/thd combo was demuxed from?


they are two separate m2ts file from the Qtec Hi-Definition Reference Disc made for testing purposes - the same sound in the both formats:

C:\eac3to250>eac3to.exe 00005.m2ts
M2TS, 1 video track, 1 audio track, 0:03:27
1: h264/AVC, 1080i60 /1.001 (16:9)
2: DTS Master Audio, Japanese, 7.1 channels, 24 bits, 96khz

C:\eac3to250>eac3to.exe 00004.m2ts"
M2TS, 1 video track, 1 audio track, 0:03:27
1: h264/AVC, 1080i60 /1.001 (16:9)
2: TrueHD/AC3, Japanese, 7.1 channels, 96khz

the Sonic decodes the 5.1 channels byte by byte identical to the decoded TrueHD track, but i suspect the problem is somehow related to DTS-HD MA channel order, because the decoded files has the following channel order:

sample 3)

TrueHD channel 0 = Sonic channel 0
TrueHD channel 1 = Sonic channel 1
TrueHD channel 2 = Sonic channel 2
TrueHD channel 3 = Sonic channel 3
TrueHD channel 4 = not decoded by Sonic
TrueHD channel 5 = not decoded by Sonic
TrueHD channel 6 = Sonic channel 4
TrueHD channel 7 = Sonic channel 5

for example the other TrueHD/DTS-HD MA 7.1 sample that we have from the "Dragon Tiger Gate" aka "sample 1)" has:

sample 1)

TrueHD channel 0 = Sonic channel 0
TrueHD channel 1 = Sonic channel 1
TrueHD channel 2 = Sonic channel 2
TrueHD channel 3 = Sonic channel 3
TrueHD channel 4 = Sonic channel 4
TrueHD channel 5 = Sonic channel 5
TrueHD channel 6 = not decoded by Sonic
TrueHD channel 7 = not decoded by Sonic

so, for the working file looks like Sonic decodes the BL and BR and for not working SL and SR, which is quite interesting, that is what i have found till now, i hope that will help. i am sure you will figure out what is going on.

madshi
28th June 2008, 16:20
Movie: Waterworld for example

the eac3to log shows me 14 subtitles but it is 18 subtitels.

14 normal subs and 4 forced subs. (evodemux shows me the 18 subs but canīt right demux them)

the 4 forced subs started later as the normal subs and i think thats the problem.
This is on my to do list. Will be fixed sooner or later...

can someone please enlighten me which arcsoft is advised to be used? the theatre or the extreme version?
Theatre should do.

madshi
28th June 2008, 16:21
does it have to be a full version or is a(n) (re)install of the trial version fine as well?
I use TotalMedia Theatre 15 days trial. This is also described as intro version in the previous posts. After expired once, I re-installed it
At the moment I'm using this version (eac3to_2.49.0.0) (without registration). I don't know if it the filters will continue to work after it expires. Maybe it is also possible to just register the dtsdecoderdll.dll?
Guys, in this thread please don't discuss how to avoid buying commercial software you're using.

I don't want eac3to to be connected with such topics. Besides, this thread is long enough as it is without discussion about licensing other software...

You can test the ArcSoft DTS decoder by installing the ArcSoft trial version. The decoder in the trial version should work with eac3to. But once the trial period is over and you still want to continue using the decoder, please buy the software.

Thanks!

madshi
28th June 2008, 16:30
the Sonic decodes the 5.1 channels byte by byte identical to the decoded TrueHD track
Oh, I didn't check that. You're quite right. In that case I think that the problem is most likely to be (once again) dialnorm. The funny thing is that according to the log you posted there's no dialnorm in the core. But I can only guess that there's dialnorm activated in the DTS-HD headers. <sigh>

xeonicxpression
28th June 2008, 17:15
I have a quick question about demuxing the audio. When I scan my evo it shows 2503ms at the end of each audio track (as seen below). When I demux the audio should I be adding +2503ms or -2503ms to the end of the command or should I be doing it in mkvmerge or do I ignore it all together?

3: E-AC3, English, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB, 2503ms

Madshi, thanks for all the great work you've done. You have made this process so simple.

madshi
28th June 2008, 17:17
I have a quick question about demuxing the audio. When I scan my evo it shows 2503ms at the end of each audio track (as seen below). When I demux the audio should I be adding +2503ms or -2503ms to the end of the command or should I be doing it in mkvmerge or do I ignore it all together?

3: E-AC3, English, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB, 2503ms
eac3to will automatically correct that audio delay when you demux the audio track. So just ignore it (as long as you're using eac3to for demuxing).

EPiPH0NE
28th June 2008, 21:49
eac3to v2.50 released


* ArcSoft DTS Decoder DLL is now directly accessed instead of using DirectShow



Works fine now :)


P:\>P:\eac3to_2.50\eac3to.exe -test
Nero Audio Decoder (Nero 7 or older) works fine
ArcSoft DTS Decoder (1.1.0.0) works fine
Sonic Audio Decoder (4.3.0.169) works fine
Haali Media Splitter (2007-11-18) is installed
Surcode DTS Encoder (1.0.23.0) is installed
MkvToolnix (v2.2.0) is installed

P:\>P:\eac3to_2.50\eac3to.exe -test
Nero Audio Decoder (Nero 7 or older) works fine
ArcSoft DTS Decoder (1.1.0.0) works fine
Sonic Audio Decoder (4.3.0.169) works fine
Haali Media Splitter (2007-11-18) is installed
Surcode DTS Encoder (1.0.23.0) is installed
MkvToolnix (v2.2.0) is installed

P:\>P:\eac3to_2.50\eac3to.exe -test
Nero Audio Decoder (Nero 7 or older) works fine
ArcSoft DTS Decoder (1.1.0.0) works fine
Sonic Audio Decoder (4.3.0.169) works fine
Haali Media Splitter (2007-11-18) is installed
Surcode DTS Encoder (1.0.23.0) is installed
MkvToolnix (v2.2.0) is installed



Thnx!

madshi
28th June 2008, 21:56
Works fine now :)
You're Haali splitter is outdated... ;)

EPiPH0NE
29th June 2008, 00:36
You're Haali splitter is outdated... ;)

I'm an 'outdated' kind of guy :p

All fixed up now with 2008-3-29.

Thunderbolt8
29th June 2008, 02:02
madshi, the DTS-HD 6.1 track from the basic instinct blu-ray is still changed to a 7.1 FLAC track with 1 channel being doubled. is this the way it is meant to work correctly?

G:\eac3to>eac3to H:\instinct 1) 3: H:\instinct.flac
M2TS, 1 video track, 4 audio tracks, 2:08:15
1: Chapters, 17 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Hi-Res, English, 6.1 channels, 24 bits, 3093kbit/s, 48khz, dialnorm: -4dB
4: AC3, English, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
5: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
6: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
[a03] Doubling 7th channel...
[a03] Extracting audio track number 3...
[a03] Removing dialog normalization...
[a03] Decoding with ArcSoft DTS Decoder...
[a03] Creating file "H:\instinct.flac"...

madshi
29th June 2008, 08:01
madshi, the DTS-HD 6.1 track from the basic instinct blu-ray is still changed to a 7.1 FLAC track with 1 channel being doubled. is this the way it is meant to work correctly?
That is how it is meant to work. The problem with 6.1 tracks is that it's not totally clear which channel is which. With 7.1 there can be no confusion about which channel is which speaker.

xkodi
29th June 2008, 10:13
Oh, I didn't check that. You're quite right. In that case I think that the problem is most likely to be (once again) dialnorm. The funny thing is that according to the log you posted there's no dialnorm in the core. But I can only guess that there's dialnorm activated in the DTS-HD headers. <sigh>

madshi, maybe it is dialnorm, but more interesting is which channels Sonic decodes, because on all other DTS-HD MA 7.1 samples that i have:

Dragon Tiger Gate (DTS-HD MA, 7.1, 16bit, 48kHz)
Flash Point (DTS-HD MA, 7.1, 16bit, 48kHz)

Rush Hour 3 (DTS-HD MA, 7.1, 24bit, 48kHz)
Rambo 4 (DTS-HD MA, 7.1, 24bit, 48kHz)
The Orphanage (DTS-HD MA, 7.1, 24bit, 48kHz)
Hairspray (DTS-HD MA, 7.1, 24bit, 48kHz)
BT - Dynamic Symmetry (DTS-HD MA, 7.1, 24bit, 48kHz)
Chieli Minucci - Daybreak (DTS-HD MA, 7.1, 24bit, 48kHz)

SFX Demo (DTS-HD MA, 7.1, 24bit, 96kHz)
Orchestra Demo (DTS-HD MA, 7.1, 24bit, 96kHz)

the decodes are bit perfect and Sonic decodes the following channels:

decoded by ArcSoft channel 0 = decoded by Sonic channel 0
decoded by ArcSoft channel 1 = decoded by Sonic channel 1
decoded by ArcSoft channel 2 = decoded by Sonic channel 2
decoded by ArcSoft channel 3 = decoded by Sonic channel 3
decoded by ArcSoft channel 4 = decoded by Sonic channel 4
decoded by ArcSoft channel 5 = decoded by Sonic channel 5
decoded by ArcSoft channel 6 = not decoded by Sonic
decoded by ArcSoft channel 7 = not decoded by Sonic

but on "Qtec Hi-Definition Reference Disc" not only the Arcsoft decode is not bit-perfect, but Sonic decodes the following channels:

decoded by ArcSoft channel 0 <--> decoded by Sonic channel 0
decoded by ArcSoft channel 1 <--> decoded by Sonic channel 1
decoded by ArcSoft channel 2 <--> decoded by Sonic channel 2
decoded by ArcSoft channel 3 <--> decoded by Sonic channel 3
decoded by ArcSoft channel 4 <--> not decoded by Sonic
decoded by ArcSoft channel 5 <--> not decoded by Sonic
decoded by ArcSoft channel 6 <--> decoded by Sonic channel 4
decoded by ArcSoft channel 7 <--> decoded by Sonic channel 5

we can't deny that this is very interesting and strange. so, what cause this: on 10 samples Sonic decodes one subset of 5.1 channels out of 7.1 and only in 1 sample it decodes different subset of 5.1 channels out of 7.1 and on the same sample Arcsoft fails?

p.s.

"<-->" denotes how channels from one decode map to the other and that both decodes are not identical, i.e. not bit-perfect

"=" denotes how channels from one decode map to the other and that both decodes are identical, i.e. bit-perfect

deathlord
29th June 2008, 10:48
That is how it is meant to work. The problem with 6.1 tracks is that it's not totally clear which channel is which. With 7.1 there can be no confusion about which channel is which speaker.

Don't you think the volume of the two back channels should be lowered when doubling a channel? I believe simply doubling the 6th channel from a 6.1 track will make it too loud. If both back channels are attenuated by 3dB they will add up to the original volume.
I do agree that doubling this channel is the best solution, though.
I have asked that question before, you might have overlooked it.

nautilus7
29th June 2008, 11:24
That is how it is meant to work. The problem with 6.1 tracks is that it's not totally clear which channel is which. With 7.1 there can be no confusion about which channel is which speaker.

Could you explain a bit further? Why it's not clear which channel is which?

xkodi
29th June 2008, 11:35
Could you explain a bit further? Why it's not clear which channel is which?

at first i was thinking that this is because Microsoft don't define channel mapping mask for 6.1 in the WAVEX header, but actually they do define such mask:

channels: 6.1, order: FL, FR, C, LFE, BL, BR, BC, mask: 0x13F

so, now i am confused too.


Don't you think the volume of the two back channels should be lowered when doubling a channel? I believe simply doubling the 6th channel from a 6.1 track will make it too loud. If both back channels are attenuated by 3dB they will add up to the original volume.
I do agree that doubling this channel is the best solution, though.
I have asked that question before, you might have overlooked it.

here:

http://forum.doom9.org/showthread.php?p=1144930#post1144930

are some calculations for 5.1 -> 7.1 conversion, maybe 6.1 -> 7.1 is best to be done with similar calculations, but probably it is better to leave it as 6.1, after all Microsoft define channel mapping mask for 6.1.

nautilus7
29th June 2008, 12:21
And according to DTS there can be only one 6.1 speaker configuration, while there's a variety of 7.1: http://www.dts.com/DTS_In_Consumer_Products/HD_Home_Theater/Speaker_Options.aspx

If I recall correctly, madshi has chosen doubling the rear channel because all 7.1 PCM tracks he had found (at that time) had 2 identical back channels and there were no 6.1 channel pcm tracks (maybe I am wrong though). Anyway, I have 2-3 7.1 PCM tracks with all channels unique and also have seen 6.1 pcm here (http://bluray.highdefdigest.com/463/descent.html) and here (http://bluray.highdefdigest.com/dirtydancing.html).

xkodi
29th June 2008, 12:45
If I recall correctly, madshi has chosen doubling the rear channel because all 7.1 PCM tracks he had found (at that time) had 2 identical back channels and there were no 6.1 channel pcm tracks (maybe I am wrong though). Anyway, I have 2-3 7.1 PCM tracks with all channels unique and also have seen 6.1 pcm here (http://bluray.highdefdigest.com/463/descent.html) and here (http://bluray.highdefdigest.com/dirtydancing.html).

plus PS3 outputs all DTS-HD HR and MA 6.1 track as LPCM 6.1:

http://www.avsforum.com/avs-vb/showthread.php?p=13605209#post13605209

tebasuna51
29th June 2008, 12:54
at first i was thinking that this is because Microsoft don't define channel mapping mask for 6.1 in the WAVEX header, but actually they do define such mask:

channels: 6.1, order: FL, FR, C, LFE, BL, BR, BC, mask: 0x13F

so, now i am confused too.

For me the problem is know if all decoder do your channel order or can use this other:

channels: 6.1, order: FL, FR, C, LFE, BC, SL, SR mask: 0x70F

@madshi
Like 7.1 is clearly: FL, FR, C, LFE, BL, BR, SL, SR
When you double the 6th channel to 7th channel:

1) if you have FL, FR, C, LFE, BL, BR, BC you obtain
FL, FR, C, LFE, BL, BR, BC, BC'
Then BC, BC' is send to SL, SR, something is wrong.

2) if you have FL, FR, C, LFE, BC, SL, SR you obtain
FL, FR, C, LFE, BC, SL, SR, SR'
Then BC, SL, SR, SR' is send to BL, BR, SL, SR, now is worse.

Thunderbolt8
29th June 2008, 13:56
That is how it is meant to work. The problem with 6.1 tracks is that it's not totally clear which channel is which. With 7.1 there can be no confusion about which channel is which speaker.
is this a temporary problem, meaning it could be fixed in the future with other decoders, more information or samples or is it just the way that studios sometimes you one, sometimes the other channel as 6th channel so that it can vary each time?

madshi
29th June 2008, 18:08
madshi, maybe it is dialnorm
No, it's not. In the meanwhile I'm able to read out the dialnorm information of the DTS-HD blocks, too. And dialnorm is not active in that problem track.

but more interesting is which channels Sonic decodes, because on all other DTS-HD MA 7.1 samples that i have
You're right. I think the channel configuration is causing ArcSoft to lower the volume of this specific track somehow. My latest eac3to build (not uploaded yet) can now output the detailed speaker configuration stored in the DTS-HD header. Here's what I found (please ignore the order of the channels):

All DTS 5.1 movies: C L R Ls Rs LFE
All DTS 6.1 movies: C L R Ls Rs LFE Cs
Most DTS 7.1 movies: C L R LFE Lsr Rsr Lss Rss
Shoot 'em Up movie: C L R Ls Rs LFE Lw Rw
Hi-Def 7.1 demo: C L R Ls Rs LFE Lsr Rsr

I think that the ArcSoft decoder is trying to remap "Ls Rs" to "Lss Rss" and lowers the volume to avoid clipping. Probably there is no need to worry, because for most movies the problem does not exist. The Hi-Def demo is just encoded strangely.

Don't you think the volume of the two back channels should be lowered when doubling a channel? I believe simply doubling the 6th channel from a 6.1 track will make it too loud. If both back channels are attenuated by 3dB they will add up to the original volume.
I'm not sure about that. I wish I knew what receiver manufacturers are doing, or what DTS/Dolby recommend. Anyway, I've chosen this solution because of the way 6.1 PCM is stored in Blu-Ray: It's stored as 7.1 PCM where the back surround channels have identical data. This is why I implemented the same logic in eac3to.

Could you explain a bit further? Why it's not clear which channel is which?
at first i was thinking that this is because Microsoft don't define channel mapping mask for 6.1 in the WAVEX header, but actually they do define such mask:

channels: 6.1, order: FL, FR, C, LFE, BL, BR, BC, mask: 0x13F

so, now i am confused too.
As tebasuna51 has already hinted, there's some confusion (even at Microsoft!) about "SL <-> BL" and "SR <-> BR". E.g. for 5.1 content Microsoft originally recommended the use of the channel mask "0x3f" which uses BL/BR. But with XPSP2 Microsoft suddenly changed their mind and now recommends "0x60f" which is SL/SR. Still most software uses 0x3f, but I think it's actually not correct. Now for 6.1 the same problem exists. Do we use 0x13f or do we use 0x70f? The latter is the correct solution IMO, but not everyone agrees. There have already been complains about madFlac playing audio on the wrong speakers due to this channel mask problem.

There's one channel combination where there's no doubt and that is 7.1. That is why I think converting 6.1 to 7.1 works around the channel mask problems nicely.

Like 7.1 is clearly: FL, FR, C, LFE, BL, BR, SL, SR
Yep.

When you double the 6th channel to 7th channel:

1) if you have FL, FR, C, LFE, BL, BR, BC you obtain
FL, FR, C, LFE, BL, BR, BC, BC'
Then BC, BC' is send to SL, SR, something is wrong.
I think this is a wrong channel configuration, anyway. When there's a BC channel (or BL/BR channels) the surround channels should be SL/SR and not BL/BR. Having BL/BR/BC in combination is all wrong IMHO. There can only be either BL+BR or BC, but not both at the same time. At least that's my opinion...

2) if you have FL, FR, C, LFE, BC, SL, SR you obtain
FL, FR, C, LFE, BC, SL, SR, SR'
Then BC, SL, SR, SR' is send to BL, BR, SL, SR, now is worse.
I'm basing my channel doubling on what DTS decoders give me for 6.1 tracks. I'm remapping the channels so that I get this:

FL, FR, C, LFE, BC, BC', SL, SR

That should be correct, right?

xkodi
29th June 2008, 18:34
My latest eac3to build (not uploaded yet) can now output the detailed speaker configuration stored in the DTS-HD header. Here's what I found (please ignore the order of the channels):

All DTS 5.1 movies: C L R Ls Rs LFE
All DTS 6.1 movies: C L R Ls Rs LFE Cs
Most DTS 7.1 movies: C L R LFE Lsr Rsr Lss Rss
Shoot 'em Up movie: C L R Ls Rs LFE Lw Rw
Hi-Def 7.1 demo: C L R Ls Rs LFE Lsr Rsr

I think that the ArcSoft decoder is trying to remap "Ls Rs" to "Lss Rss" and lowers the volume to avoid clipping. Probably there is no need to worry, because for most movies the problem does not exist. The Hi-Def demo is just encoded strangely.

is there any chance to patch that info in the header and for example make "C L R Ls Rs LFE Lsr Rsr" of the Hi-Def 7.1 demo to "C L R LFE Lsr Rsr Lss Rss", so it decodes correctly?

btw meanwhile i'm doing tests of Dolby Digital Plus decoding with Arcsoft and here is what i have found out until now:

- Dolby Digital Plus 7.1 channel decoding is working (tested on "7.1 Dolby Digital Plus Channel Check" sample)
- on my samples Nero outputs 24bit, but i think this is wrong because if set Arcsoft to 24bit there is noise, so i believe these samples are actually 16bit and Arcsoft is correct
- the same EAC3 files decoded with Nero (and converted to 16bit) in GraphEdit and with Arcsoft are byte by byte identical, so Arcsoft is using the same reference decoder as Nero
- Dolby Digital Plus 7.1 in M2TS is not detected by eac3to

i am preparing Dolby Digital Plus 7.1 samples and will upload shortly, so you can do your magic :)

rickardk
29th June 2008, 18:38
All DTS 5.1 movies: C L R Ls Rs LFE
All DTS 6.1 movies: C L R Ls Rs LFE Cs
Most DTS 7.1 movies: C L R LFE Lsr Rsr Lss Rss
Shoot 'em Up movie: C L R Ls Rs LFE Lw Rw
Hi-Def 7.1 demo: C L R Ls Rs LFE Lsr Rsr


Does this mean that Shoot 'em Up is handled incorrect with v2.49?

xkodi
29th June 2008, 18:41
Does this mean that Shoot 'em Up is handled incorrect with v2.49?

no, it is handled correctly i tested it before a minute. only 7.1 channel tracks with order "C L R Ls Rs LFE Lsr Rsr" are handled incorrectly and there is only one such track from "Qtec Hi-Definition Reference Disc". so, all known movie track are handled perfectly correctly.

p.s.
you can always do the following test to check:

decode the track with Sonic (only 5.1 channels) to wavfile1
decode the track with Arcsoft (all 7.1 channels) to wavfile2

split the channels of the wavfile1 and wavfile2 with Wavewizard. compare wavfile1_ch0 with wavfile2_ch0 and if they are byte by byte identical then eac3to handles the track correctly.

nautilus7
29th June 2008, 18:44
- Dolby Digital Plus 7.1 in M2TS is not detected by eac3to

i am preparing Dolby Digital Plus 7.1 samples and will upload shortly, so you can do your magic :)I have sent these samples (we have the same disc) to madshi a long time ago, but he has forgot to add support for them. :eek: If he doesn't have them anymore, i have samples cut and ready from the first time, so you can count on me for that.

madshi
29th June 2008, 18:44
is there any chance to patch that info in the header and for example make "C L R Ls Rs LFE Lsr Rsr" of the Hi-Def 7.1 demo to "C L R LFE Lsr Rsr Lss Rss", so it decodes correctly?
Possible, but difficult. I think I'll rather post a warning if such a track is decoded. If the problem really occurs with a real movie (and not just a demo track) I might look into that.

- on my samples Nero outputs 24bit, but i think this is wrong because if set Arcsoft to 24bit there is noise, so i believe these samples are actually 16bit and Arcsoft is correct
No. AC3 and E-AC3 tracks do not have a fixed bitdepth. If there is noise when decoding the tracks to 24bit with ArcSoft then this is a clear bug in ArcSoft. The native output of any AC3/E-AC3 decoder is floating point. Which is much more than 24bit.

- Dolby Digital Plus 7.1 in M2TS is not detected by eac3to
I know. I don't think it's important because there's not a single movie in the world (at least as far as I know) which uses 7.1 E-AC3. There's only a Dolby demo. Or am I wrong?

Does this mean that Shoot 'em Up is handled incorrect with v2.49?
I think it's decoded correctly. At least the volume is identical between Sonic and ArcSoft. It seems that ArcSoft gets along with the speaker setup used by Shoot 'em Up, although it's not the one used by most other movies. The only track where I've seen a volume difference between Sonic and ArcSoft is that one demo track.

I have sent these samples (we have the same disc) to madshi a long time ago, but he has forgot to add support for them. :eek:
No, I didn't... :) I just decided that there are more important things to do.

nautilus7
29th June 2008, 18:53
split the channels of the wavfile1 and wavfile2 with Wavewizard
You do know that eac3to can output mono wavs, right? :p

I don't think it's important because there's not a single movie in the world (at least as far as I know) which uses 7.1 E-AC3. There's only a Dolby demo


No, I didn't... :) I just decided that there are more important things to do.
That's why I didn't bugged you with this earlier. :)

tebasuna51
29th June 2008, 18:54
I'm basing my channel doubling on what DTS decoders give me for 6.1 tracks. I'm remapping the channels so that I get this:

FL, FR, C, LFE, BC, BC', SL, SR

That should be correct, right?

Yep, but this is for next version? Or only for dts-hd/eac3?

Now with:

eac3to seven_channel.wav output.wav -extensible

the 7th channel is doubled to 8th channel without remapping then is always wrong.

xkodi
29th June 2008, 18:58
Possible, but difficult. I think I'll rather post a warning if such a track is decoded. If the problem really occurs with a real movie (and not just a demo track) I might look into that.

i agree, it doesn't worth the effort until there is only one demo track with that channel order and warning is perfectly good, after all the same track is available in TrueHD too.


No. AC3 and E-AC3 tracks do not have a fixed bitdepth. If there is noise when decoding the tracks to 24bit with ArcSoft then this is a clear bug in ArcSoft. The native output of any AC3/E-AC3 decoder is floating point. Which is much more than 24bit.

ok, but if the E-AC3 track is made from 16bit WAV file then it is a waste of space to output to 24bit or am i wrong?

i am still testing and not sure, but i think that on one of the sample ArcSoft do not output noise when is set to 24bit. is there any chance that ArcSoft can detect from what source WAV file the E-AC3 track is made - 16bit or 24bit?


I know. I don't think it's important because there's not a single movie in the world (at least as far as I know) which uses 7.1 E-AC3. There's only a Dolby demo. Or am I wrong?

yes, i also have only demo files.

You do know that eac3to can output mono wavs, right? :p

:) yes, i know, but to be honest totally forgot about that, thanks to remind me.

deathlord
29th June 2008, 19:11
madshi,

I've chosen this solution because of the way 6.1 PCM is stored in Blu-Ray: It's stored as 7.1 PCM where the back surround channels have identical data.
I'm not sure if I understand correctly. Are you sure these are tracks were originally recorded in 6.1 and the back channel was doubled without applying any attenuation?

I wish I knew what receiver manufacturers are doing, or what DTS/Dolby recommend.
I doubt there is an agreement on the 6.1 to 7.1 conversion.
However, I find the idea proposed by tebasuna51 (here (http://forum.doom9.org/showthread.php?p=1144930#post1144930)), based on the distribution of acoustic power, very convenient.
For 6.1-->7.1 it would mean:
Back_new(l,r) * cos(30) = 0.5 * Back_old
==> Back_new(l,r) = 0.5 * Back_old / cos(30)
taking sqrt:
Back_new(l,r) should be 0.76 * Back_old

In theory we should also subtract the newly added x-component from the side channel, but I think this can be neglected.

xkodi
29th June 2008, 19:21
i am still testing and not sure, but i think that on one of the sample ArcSoft do not output noise when is set to 24bit. is there any chance that ArcSoft can detect from what source WAV file the E-AC3 track is made - 16bit or 24bit?

i confirm that there are E-AC3 tracks that ArcSoft output without noise when set to 24bit and that there are E-AC3 tracks that ArcSoft output without noise only when set to 16bit. ArcSoft decodes the DTS-HD MA correctly only when the right parameters are set, so maybe it is the same with the E-AC3 track and somehow ArcSoft finds the resolution of the source WAV file from which the E-AC3 track is made. probably, the best is madshi to look at that, when there are no more important things to do, i will be happy to provide the samples when the time comes.

EPiPH0NE
29th June 2008, 19:38
@madshi

Are you going to be adding support for the rest of Arcsoft decoders ie., TrueHD/EAC3?

kartman_canada
29th June 2008, 21:51
Hi, all...

I've installed ArcSoft's TotalMedia Theater 15-day trial... and have eac3to v2.50. I'm trying to rip my copy of Ice Age 2. I thought this one would be easy as it's not seamless branched and it's only MPEG2 instead of x264! It's a WinXP Pro SP2 box.

The curveball here is that the audio is DTS MA... I've had success with AC3 but DTS-MA is new for me...

eac3to log:
eac3to v2.50
command line: "E:\Video_Encoding\eac3to\eac3to.exe" "E:\Ice_Age_2\BDROM\BDMV\STREAM\00001.m2ts" 3: "E:\Ice_Age_2\BDROM\BDMV\STREAM\test3.wav" -down2
------------------------------------------------------------------------------
M2TS, 1 video track, 5 audio tracks, 1:30:36
1: Chapters, 25 chapters
2: MPEG2, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 5.1 channels, 24 bits, 48khz
4: AC3, French, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB
5: AC3, Spanish, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB
6: AC3, English, 2.0 channels, 224kbit/s, 48khz, dialnorm: -27dB
7: AC3, English, 2.0 channels, 224kbit/s, 48khz, dialnorm: -27dB
[a03] Extracting audio track number 3...
[a03] Downmixing multi channel audio to stereo...
Loading white noise (needed for dithering)...
[a03] Decoding with ArcSoft DTS Decoder...
[a03] Writing WAV...
[a03] Creating file "E:\Ice_Age_2\BDROM\BDMV\STREAM\test3.wav"...
Video track 2 contains 130338 frames.
eac3to processing took 15 minutes, 50 seconds.
Done.

Everything is good except that the demuxed video finishes as 1:30:36 but I get 1:31:08 for the audio no mater how I try to demux/convert it. Until I figure this out, I've stopped but the plan was to continue with MeGUI to encode in x264 and 2-channel AAC and mux into MP4 for PS3 playback.

I've not bothered just chopping the tail off the audio yet... more puzzled at the moment. What happens if I try to mux the audio as it it stands?

madshi
29th June 2008, 22:10
Yep, but this is for next version? Or only for dts-hd/eac3?

Now with:

eac3to seven_channel.wav output.wav -extensible

the 7th channel is doubled to 8th channel without remapping then is always wrong.
Hmmmm... I'll recheck that.

I'm not sure if I understand correctly. Are you sure these are tracks were originally recorded in 6.1 and the back channel was doubled without applying any attenuation?
I don't know what the studio did. But what I can say is that there are some movies where the studio advertises 6.1 on the backside of the Blu-Ray (e.g. The Descent, just to name one) and which is 7.1 on the disk with the back channels being identical. I don't really think that the studio did attenuation because I guess that some Blu-Ray players may only output one back channel and ignore the other one. But I don't really know...

I doubt there is an agreement on the 6.1 to 7.1 conversion.
However, I find the idea proposed by tebasuna51 (here (http://forum.doom9.org/showthread.php?p=1144930#post1144930)), based on the distribution of acoustic power, very convenient.
For 6.1-->7.1 it would mean:
Back_new(l,r) * cos(30) = 0.5 * Back_old
==> Back_new(l,r) = 0.5 * Back_old / cos(30)
taking sqrt:
Back_new(l,r) should be 0.76 * Back_old
It sounds reasonable. But I'm not sure if that's what Dolby/DTS and the receiver manufacturers are doing. I'm not really an expert in audio theory... I guess I'll check what the ArcSoft DTS decoder does when I ask it to output 7.1 for a 6.1 track. The decoder upconverts then. I guess that they use a "DTS authorized" method for that. So whatever they are doing might be what I'll implement in eac3to, too. Not sure yet, though...

i am still testing and not sure, but i think that on one of the sample ArcSoft do not output noise when is set to 24bit. is there any chance that ArcSoft can detect from what source WAV file the E-AC3 track is made - 16bit or 24bit?
i confirm that there are E-AC3 tracks that ArcSoft output without noise when set to 24bit and that there are E-AC3 tracks that ArcSoft output without noise only when set to 16bit. ArcSoft decodes the DTS-HD MA correctly only when the right parameters are set, so maybe it is the same with the E-AC3 track and somehow ArcSoft finds the resolution of the source WAV file from which the E-AC3 track is made.
I've already answered all this. Let me copy&paste:

"AC3 and E-AC3 tracks do not have a fixed bitdepth. If there is noise when decoding the tracks to 24bit with ArcSoft then this is a clear bug in ArcSoft. The native output of any AC3/E-AC3 decoder is floating point. Which is much more than 24bit."

ok, but if the E-AC3 track is made from 16bit WAV file then it is a waste of space to output to 24bit or am i wrong?
You need to stop thinking about (E-)AC3 as having anything to do with a specific integer PCM bitdepth. That's just not the case. The (E-)AC3 encoders convert the original PCM data to something completely different before encoding the data. Any resemblence to a specific integer PCM bitdepth is lost during this process.

Are you going to be adding support for the rest of Arcsoft decoders ie., TrueHD/EAC3?
I see no reason to add support for the TrueHD decoder, as the libav decoder is virtually perfect. I might consider adding support for the (E-)AC3 decoder later. But xkodi's reports don't really encourage me to do that. I don't like wasting hours on integrating a buggy decoder. FWIW, integrating the ArcSoft decoders into eac3to is a pain in the ***. So I will do that only if it's really worthwhile...

madshi
29th June 2008, 22:12
Everything is good except that the demuxed video finishes as 1:30:36 but I get 1:31:08 for the audio no mater how I try to demux/convert it.
Well, is the audio in sync with the video at the beginning and end of the movie? That's the only thing that counts.

xkodi
29th June 2008, 22:46
@madshi

two interesting DTS-HD MA samples, both decode perfectly with eac3to, but the first one is the only 16bit, 6.1 channels DTS-HD MA track i found so far and the second has some weird channel order i think it is the same as Shoot 'Em Up

Internal Affairs II, DTS-HD MA, 6.1, 16bit, 48kHz:
http://rapidshare.de/files/39868411/int.affairs2.61ch.ma.dtshd.html

Pan's Labyrinth, DTS-HD MA, 7.1, my tests made me think it has interesting channel order:
http://rapidshare.de/files/39868422/panslaby.71ch.ma.dtshd.html

I might consider adding support for the (E-)AC3 decoder later. But xkodi's reports don't really encourage me to do that.
i found a workaround for the noise problem - if i set the bit depth in ArcSoft decoder control panel before connect the graph there is no noise and the decoded sound is normal. other than that i don't know how to test the ArcSoft (E-)AC3 decoder, because of that not integer thing that you have explained.

Yraen
30th June 2008, 01:59
madshi,
"Program too big to fit in memory" (http://www.mediafire.com/imageview.php?quickkey=9gg2mnl9sxy&thumb=4)
I get this error no matter what I run, be it on files, a folder, -test or just eac3to by itself for help. This is about the third time I've gotten this error. The first time(s) I've attributed it to something I did, but this time I was just trying to list the contents of a folder after successfully muxing/converting another folder. No matter what I do after this, this is all eac3to will return. I solved it in the past by deleting eac3to and replacing it. Is there something else I can do on my end to fix it when this happens or is deleting it the best course of action?

I've currently got the bad eac3to in a separate folder and I'll keep it until I know if there is anything you want me to check it for. The current one I just unzipped back into my 2.50 folder works fine.

edit: Took a closer look at the files, eac3to.exe weighs in at 141,284 bytes instead of 1,484,288 bytes as it should. Not sure why this happened.

ramki067
30th June 2008, 08:57
Hi madshi,
I tried converting from .dtshd file which i have to .ac3and its giving me an error as below:

C:\Documents and Settings\ramki\Desktop\tools\eac3to_v2.48>"C:\Documents and Se
ttings\ramki\Desktop\tools\eac3to_v2.48\eac3to.exe" "C:\Documents and Settings\
ramki\Desktop\tools\eac3to_v2.48\12-24kbps-32tone-10.dtshd" "C:\Documents and S
ettings\ramki\Desktop\tools\eac3to_v2.48\12-24kbps-32tone-10.ac3"-64
The format of the source file could not be detected.

I'm attaching the .dtshd file, please help.

12-24kbps-32tone-10.dtshd (http://www.filefactory.com/file/21e5df/n/12-24kbps-32tone-10_dtshd)

Regards,
Ramki.

madshi
30th June 2008, 09:18
the second has some weird channel order i think it is the same as Shoot 'Em Up
Yep. The speaker config is "C L R Ls Rs LFE Lw Rw".

i found a workaround for the noise problem - if i set the bit depth in ArcSoft decoder control panel before connect the graph there is no noise and the decoded sound is normal.
Ok, in that case there should be no problem when integrating the decoder into eac3to.

edit: Took a closer look at the files, eac3to.exe weighs in at 141,284 bytes instead of 1,484,288 bytes as it should. Not sure why this happened.
So the files on your harddisk suddenly go corrupt? I'd say you should urgently do a scandisk... :) Other than that I don't know what to say. I never had such a problem yet...

I tried converting from .dtshd file which i have to .ac3and its giving me an error as below:

The format of the source file could not be detected.
This file is "DTS-HD Low Bitrate" which is not supported by eac3to yet. These files do not have a conventional DTS core. They only consist of DTS-HD packages. That's not a stream type which eac3to supports right now. But this type of audio track is usually only used for PiP audio. So is this DTS track PiP audio? Or where did you get it from?

Yraen
30th June 2008, 10:36
Hi madshi,
I tried converting from .dtshd file which i have to .ac3and its giving me an error as below:


Along with what madshi said, that gui has a known bug. The -640 (I'm assuming you dropped the 0 when copying) needs a space in front of it, just for future reference.


So the files on your harddisk suddenly go corrupt? I'd say you should urgently do a scandisk... :) Other than that I don't know what to say. I never had such a problem yet...


I would have thought that also except for two bits of information I accidently left off, probably due to lack of sleep. I've ran scandisk and it finds no errors. And one time this happened was on a separate computer. It probably is something I'm doing since no one else has reported anything like this.

ramki067
30th June 2008, 12:56
This file is "DTS-HD Low Bitrate" which is not supported by eac3to yet. These files do not have a conventional DTS core. They only consist of DTS-HD packages. That's not a stream type which eac3to supports right now. But this type of audio track is usually only used for PiP audio. So is this DTS track PiP audio? Or where did you get it from?


Yes madshi, it is used for PiP audio which is used in our product. Its actually a file from our Customer. We have many such files which needs to be converted to .wav file ultimately. Is their any such tool for converting this low bitrate .dtshd file or can you please include support in the next release of your application?

Thanks,
Ramki.

madshi
30th June 2008, 13:20
Yes madshi, it is used for PiP audio which is used in our product. Its actually a file from our Customer. We have many such files which needs to be converted to .wav file ultimately. Is their any such tool for converting this low bitrate .dtshd file or can you please include support in the next release of your application?
I'll have to check if the ArcSoft audio decoder can decode such tracks. I'm not sure about that.

If I may ask - just for my interest (but not really important): Who is "we" and what is "our product"? You don't need to answer if you don't want to.

nautilus7
30th June 2008, 13:22
I was able to decode such tracks to .raw using Arcsoft decoder (from TotalMedia theatre) in graphedit.

The graph I used was the same xkodi used for his tests: FileSource (Async.) -> ArcSoft MPEG Demux -> ArcSoft Audio Decoder HD -> Dump.ax

Then you can use eac3to to convert .raw to .wav

madshi
30th June 2008, 13:32
I was able to decode such tracks to .raw using Arcsoft decoder (form TotalMedia theatre) in graphedit.

The graph I used was the same xkodi used for his tests: FileSource (Async.) -> ArcSoft MPEG Demux -> ArcSoft Audio Decoder HD -> Dump.ax

Then you can use eac3to to convert .raw to .wav
Good to know. In that case it shouldn't be too difficult to add support for that to eac3to.

ramki067
30th June 2008, 13:40
I'll have to check if the ArcSoft audio decoder can decode such tracks. I'm not sure about that.

If I may ask - just for my interest (but not really important): Who is "we" and what is "our product"? You don't need to answer if you don't want to.

Hmm... very tricky to answer such a question on public forum. I shall just mention that i work for a embedded product development company and we are the employees,not further details will be given please...sorry!

Is their any way i can download this software and use it? Please provide me if any such link to software is their.

Thanks,
Ramki.

madshi
30th June 2008, 13:53
I shall just mention that i work for a embedded product development company and we are the employees,not further details will be given please...sorry!
Ok, thanks.

Is their any way i can download this software and use it? Please provide me if any such link to software is their.
What do you mean with "this software"? If you can wait a bit, I think the next eac3to version will be able to handle DTS-HD Low Bitrate tracks...

ramki067
30th June 2008, 13:55
Ok, thanks.


What do you mean with "this software"? If you can wait a bit, I think the next eac3to version will be able to handle DTS-HD Low Bitrate tracks...

Oh thanks Madshi, i shall surely wait.thanks very much.

Regards,
Ramki

nautilus7
30th June 2008, 14:16
I think the next eac3to version will be able to handle DTS-HD Low Bitrate tracks...Since you are preparing a new version...

DTS Low Bit Rate (LBR) was the initial name of the format. Now it's called DTS Express (without -HD).

Plus, I want to mention a typo:


eac3to "F:\Die Hard 4 2007 US Blu-ray 1080p H.264 DTS-HD MA 5.1"
1) 00000.mpls, 00000.m2ts, 2:08:43
- h264/AVC, 1080p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48khz
- AC3, English, multi-channel, 48khz
- AC3, Spanish, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- AC3, English, stereo, 48khz


eac3to "F:\Die Hard 4 2007 US Blu-ray 1080p H.264 DTS-HD MA 5.1" 1)
M2TS, 1 video track, 5 audio tracks, 2:08:43
1: Chapters, 37 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 5.1 channels, 24 bits, 48khz
4: AC3, English, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB
5: AC3, Spanish, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB
6: AC3, French, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB
7: AC3, English, 2.0 channels, 224kbit/s, 48khz, dialnorm: -27dB


It should be DTS-HD Master Audio. I guess the same happens with DTS-HD Hi Res. :p

madshi
30th June 2008, 15:37
DTS Low Bit Rate (LBR) was the initial name of the format. Now it's called DTS Express (without -HD).
Good to know, thanks.

Plus, I want to mention a typo:

It should be DTS-HD Master Audio. I guess the same happens with DTS-HD Hi Res. :p
You forgot to mention that conventional "DTS" is actually named "DTS Digital Surround". Do you want me to replace "DTS" with "DTS Digital Surround" everywhere, too? ;)

I've intentionally dropped the "-HD" from the MA and HR format track listings because I wanted the track listings to fit into one line of the command window. Also I've shorted "High Resolution" to "Hi-Res". If I ever do a GUI I'll surely use the full names...

nautilus7
30th June 2008, 15:53
Alright then. Thanks and sorry. :)

madshi
30th June 2008, 16:04
No need to apologize... :)

kartman_canada
30th June 2008, 18:01
I know this isn't really an EAC3TO issue... but I'm trying to get the ArcSoft filters working. As soon as I install the "intro" version of TotalMedia Theater. DirectShow can't seem to render AAC from an MP4.

Without ArcSoft installed, I get the following path:
Haali MP4 Splitter --> ffdshow Video/Audio decoder --> Video/Audio Renderer

With ArcSoft installed, I get:
ArcSoft MP4 Splitter --> ffdshow Video decoder --> Video Renderer (and no audio with GSpot reporting "partial render failure")

Again, I realize this isn't likely the right forum for this. Please feel free to point me in the correct direction. Ideally, I'd like to find a guide so I can learn more about filters and how they are prioritized. I understand the basics but not much more. Can I get the ArcSoft filters working with eac3to for DTS decoding but leave the TotalMedia Theater package uninstalled? If not, how do I stop the ArcSoft MP4 splitter from jumping on top of Haali?

madshi
30th June 2008, 18:14
I know this isn't really an EAC3TO issue...
Exactly. I'm sorry, but please open your own thread or something. This is one of the biggest threads on Doom9. It doesn't need to grow even bigger by people asking out of topic questions...

kartman_canada
30th June 2008, 18:20
I've been dragging my heels on buying Nero (w/ BD plugin) and/or ArcSoft TotalMedia Theater. I want a software player for the HTPC and I'd like the filters that come with both tools for use with eac3to as well!

I know the current favourites are ArcSoft for DTS and Nero for (E)AC3. Is this going to move to ArcSoft for both? If so, how soon? The reason I'm asking is obvious.

With the Nero, no matter what I try, I can't seem to get eac3to see the filters as correctly installed. That said, I'm not sure I 100% understand what is required. I have Nero 7 but I've never upgraded/purchased the BD-HDDVD plugin. Do I have what I need or does eac3to require some thing I don't own for AC3 support?

madshi
30th June 2008, 18:50
That said, I'm not sure I 100% understand what is required. I have Nero 7 but I've never upgraded/purchased the BD-HDDVD plugin.
<sigh> Why don't you read the eac3to help text? Or why don't you read the first post of this thread? It is clearly stated in both places that you do need the plugin.

madshi
30th June 2008, 18:53
Yep, but this is for next version? Or only for dts-hd/eac3?

Now with:

eac3to seven_channel.wav output.wav -extensible

the 7th channel is doubled to 8th channel without remapping then is always wrong.
You are right. 7th channel doubling did result in a wrong channel order. Now this is embarassing... http://madshi.net/icon_redface.gif

Anyway, I've fixed this now. Furthermore I've added an (undocumented) option "-no7doubling" for people who don't like the channel doubling.

madshi
30th June 2008, 18:59
eac3to v2.51 released

http://madshi.net/eac3to.zip

* DTS Express bitstream parser added
* DTS Express auto detection added
* DTS Express bitstream delay added
* DTS Express bitstream gap/overlap correction added
* DTS Express decoding (Nero & ArcSoft) added
* fixed: 6.1 -> 7.1 channel doubling resulted in wrong channel order
* added (undocum.) option "-no7doubling" to disable 6.1 -> 7.1 channel doubling
* DTS tracks with funny speaker settings are displayed as "7.1 (strange setup)"
* warning is displayed when decoding "7.1 (strange setup)" tracks with ArcSoft
Adding DTS Express support was not too difficult after all...

However, it's interesting to note that the Sonic decoder doesn't like DTS Express at all. The ArcSoft decoder gets along fine with Blu-Ray style DTS Express tracks. But ArcSoft chokes on the special track posted by ramki067. However, the Nero decoder surprisingly decodes both DTS Express samples I have just fine.

@ramki067, you'll need to install Nero 7 (not 8!!) and also the Nero HD DVD/Blu-Ray plugin. Afterwards you can use "eac3to yourtrack.dts whatever.wav -nero" to decode your track to wav. BTW, do you happen to have some more DTS Express samples? That would be helpful. Especially different bitrates, channel configurations and samplingrates always make useful samples. Thanks!

Thunderbolt8
30th June 2008, 19:34
im not sure in how far I understood it with that 6.1 -> 7.1 channel doubling, but if it can be disabled I guess it might not always work correctly when leaving it at 6.1 (or represent the original disc channel order), otherwise it could be default?

rickardk
30th June 2008, 19:50
I did a couple of 6.1 movies (LPCM and DTS) like 5 months ago. Does this mean that the channel order (of my by eac3to created 8 channel flac tracks) is wrong?

yonta
30th June 2008, 19:56
Thanks for the update!

By the way, there's log.txt in the zip file.
I don't think you meant to include it there?

madshi
30th June 2008, 21:04
im not sure in how far I understood it with that 6.1 -> 7.1 channel doubling, but if it can be disabled I guess it might not always work correctly when leaving it at 6.1 (or represent the original disc channel order), otherwise it could be default?
As explained earlier with 6.1 tracks there's the problem with MS channel masks. With 7.1 tracks there is not.

I did a couple of 6.1 movies (LPCM and DTS) like 5 months ago. Does this mean that the channel order (of my by eac3to created 8 channel flac tracks) is wrong?
I fear that the channel order is wrong. Basically the side surround channels are where the back channels should be and vice versa. You can correct the problem by doing "eac3to source.flac dest.flac -0,1,2,3,6,7,4,5".

By the way, there's log.txt in the zip file. I don't think you meant to include it there?
No, I didn't. But it's doesn't harm, either.

Thunderbolt8
30th June 2008, 21:10
As explained earlier with 6.1 tracks there's the problem with MS channel masks. With 7.1 tracks there is not.
yes, but what does this mean for the use? will the 6th channel be wrong for example when using microsoft sound drivers? or when using a microsoft player? or when its generally used in windows? or just in general and always?

sorry, but im not that much into the technical stuff :S

K1ngp1ng
30th June 2008, 21:39
hi!
there is no channel remapping done when using -no7doubling.

Thunderbolt8
30th June 2008, 21:55
hi!
there is no channel remapping done when using -no7doubling.
which then again means? sorry, but I only have a 2 channel system right now, but I like to be prepaired for the future :)

kartman_canada
30th June 2008, 22:31
Well, is the audio in sync with the video at the beginning and end of the movie? That's the only thing that counts.

Nope... seems to be in sync at the beginning and audio seems to be lagging the video after muxing. The original M2TS reports as 1:30:37 and all the of the audio tracks that I've managed to extract/convert are reported as 1:31:08.

The lag, as it goes out of sync, is nowhere near the ~30sec difference between the reported audio and video streams though.

nautilus7
30th June 2008, 22:41
@ Kartaman_canada, give me 1 hour to test with my Ice Age 2 copy and report back.

EDIT: Well, first of all everything is fine here. I remuxed the movie into .mkv and tested with both dts-hd master audio converted to flac and dts core. Absolute sync with both. There's no need to say that playing the original .m2ts file in mpc resulted in no sync issues.

Despite that, I have to say that I got different runtimes in it's case. Loading the .mkv file eac3to created in mpc gave me 1:30:36. The .mkv+audio track gave me 1:31:07, while the .m2ts file 1:31:12. In any case the video stopped at 1:30:36, so it's obvious that the audio tracks are a little longer (they are silent though). I believe that's why your media player or the software you used to mux audio and video is confused and causes sync problems.

You can try cutting the last ~30 secs of your audio track, so it stops before the video.


@ madshi, thanks again for the new version. eac3to is getting new features day by day. It's awesome.
(have you figured out all the needed things regarding dts formats by your own, or did you found any documentation?)

kartman_canada
1st July 2008, 01:25
Well, first of all everything is fine here. I remuxed the movie into .mkv and tested with both dts-hd master audio converted to flac and dts core. Absolute sync with both. There's no need to say that playing the original .m2ts file in mpc resulted in no sync issues.

Despite that, I have to say that I got different runtimes in it's case. Loading the .mkv file eac3to created in mpc gave me 1:30:36. The .mkv+audio track gave me 1:31:07, while the .m2ts file 1:31:12. In any case the video stopped at 1:30:36, so it's obvious that the audio tracks are a little longer (they are silent though). I believe that's why your media player or the software you used to mux audio and video is confused and causes sync problems.

You can try cutting the last ~30 secs of your audio track, so it stops before the video.

@nautilus7 - Just about everything you found is 100% the same result. I'm muxing with MP4Box (as part of fully updated MeGUI). Just curious, could the conversion from DTS to "whatever" be my issue? My audio file is 1:31:07 as with yours though. I've been going to WAV using the -down2 option and then feeding the WAV file into MeGUI for conversion to AAC before muxing into MP4.

I don't see the sync becoming noticeable until very late in the movie but I too found the that "extra" ~30secs is silence. What are you using for muxing and playback?

@ madshi - excellent tool... awesome support too! I've been on the steep part of the learning curve and every time I sit down there seems to be a new version. Many thanx.

ramki067
1st July 2008, 05:13
eac3to v2.51 released

http://madshi.net/eac3to.zip


@ramki067, you'll need to install Nero 7 (not 8!!) and also the Nero HD DVD/Blu-Ray plugin. Afterwards you can use "eac3to yourtrack.dts whatever.wav -nero" to decode your track to wav. BTW, do you happen to have some more DTS Express samples? That would be helpful. Especially different bitrates, channel configurations and samplingrates always make useful samples. Thanks!

thanks madshi for such a fast support!

One question though, is Nero 7 and HD DVD/Blu-Ray plugin essential for conversion? Or can i use any other plugin instead? I don't have these softwares with me now, thereby can't eac3to work without these tools?


I've some tracks with me which i've added below:

24-48kbps-32tone-20.dtshd (http://www.filefactory.com/file/7ad748/n/24-48kbps-32tone-20_dtshd)

48-192kbps-WhiteNoise-20.dtshd (http://www.filefactory.com/file/b3f4b4/n/48-192kbps-WhiteNoise-20_dtshd)

Regards,
Ramki

madshi
1st July 2008, 07:43
yes, but what does this mean for the use? will the 6th channel be wrong for example when using microsoft sound drivers? or when using a microsoft player? or when its generally used in windows? or just in general and always?
Some media players/decoders may be confused and play the channels in the wrong order. It's hard to predict what will happen exactly. But there's potential for confusion. There is no potential for confusion with 7.1.

there is no channel remapping done when using -no7doubling.
Does there need to be channel remapping? I think the channels are in the correct order with 6.1 when not doing channel doubling. Or am I wrong?

I'm muxing with MP4Box (as part of fully updated MeGUI).
Try using eac3to for muxing the video to MKV. Just as a test. If you get perfect sync with eac3to's MKV then the problem is caused by mp4box. I think that's the most likely scenario...

One question though, is Nero 7 and HD DVD/Blu-Ray plugin essential for conversion? Or can i use any other plugin instead? I don't have these softwares with me now, thereby can't eac3to work without these tools?
eac3to itself knows the bitstream format (= detailed structure of the compressed audio files) of the various codecs. However, eac3to itself can not actually decode any of these codecs. For decoding eac3to needs to use external decoders. eac3to is shipping with the "libav" library which is a free decoder package which can decode many formats. But DTS Express is not one of them. So if you want to decode DTS Express you need to have an external decoder which can do the decoding. There are 2 options: ArcSoft and Nero. Both are commercial packages. eac3to can make use of both the ArcSoft and Nero (must be version 7) DTS decoders, if they are installed on the local PC. Without Nero and ArcSoft eac3to can tell you the parameters of your samples (like samplerate, channel format etc) but it cannot actually decode the samples.

I've some tracks with me which i've added below:

24-48kbps-32tone-20.dtshd (http://www.filefactory.com/file/7ad748/n/24-48kbps-32tone-20_dtshd)

48-192kbps-WhiteNoise-20.dtshd (http://www.filefactory.com/file/b3f4b4/n/48-192kbps-WhiteNoise-20_dtshd)
Thanks! eac3to can handle those 2 just fine. I've found that the Nero DTS decoder can decode all your 3 samples and also the Blu-Ray sample I got. The ArcSoft DTS decoder can decode the Blu-Ray sample and also these 2 new samples of yours, but it cannot decode the first sample you uploaded. So it seems that for DTS Express decoding your best bet is the Nero DTS decoder. The ArcSoft decoder works, too, but it may fail to decode some samples. Not sure what's causing the failure. Maybe the ArcSoft decoder doesn't like 1.0 channel configurations. Or maybe it doesn't like a samplerate of only 12khz. Not sure...

rickardk
1st July 2008, 08:35
I fear that the channel order is wrong. Basically the side surround channels are where the back channels should be and vice versa. You can correct the problem by doing "eac3to source.flac dest.flac -0,1,2,3,6,7,4,5".

Thanks for your fast response!
You are sure that this is the case from day one with eac3to with 6.1->7.1 support?

I have like 7 titles with 6.1 DTS tracks. So I plan to rerip them if this is the case.

K1ngp1ng
1st July 2008, 09:37
Does there need to be channel remapping? I think the channels are in the correct order with 6.1 when not doing channel doubling. Or am I wrong?
i use ffdshow and the level meters show that lfe ist "backL" (which is "SL" in ac3filter) and the back surround isn't recognized as backC.
with doubling i see that both "backL" and "backR" are mono.
but having two mono back srds in a 7.1 setup would give a worse result than a 5.1 or 6.1 movie upmixed with pl2x.

madshi
1st July 2008, 10:20
You are sure that this is the case from day one with eac3to with 6.1->7.1 support?

I have like 7 titles with 6.1 DTS tracks. So I plan to rerip them if this is the case.
I think it would be better to rerip those, just to be safe. But maybe you should wait a bit because:

i use ffdshow and the level meters show that lfe ist "backL" (which is "SL" in ac3filter) and the back surround isn't recognized as backC.
I'm not sure if ffdshow is doing everything correctly with 6.1 content. Which format (e.g. FLAC, WAV, ...) are you reencoding the 6.1 source to with eac3to?

with doubling i see that both "backL" and "backR" are mono.
What do you mean with that? Do you mean backL and backR are identical?

but having two mono back srds in a 7.1 setup would give a worse result than a 5.1 or 6.1 movie upmixed with pl2x.
How does pl2x upconvert a 6.1 track to 7.1?

deathlord
1st July 2008, 10:45
How does pl2x upconvert a 6.1 track to 7.1?
Good question, because on the dolby page (http://www.dolby.com/consumer/technology/prologic_IIx.html) it says nothing about this conversion.
It only says dp2x does an upmix from 2- or 5.1-channel sources to 6.1 or 7.1.

Edit: madshi, maybe you can find out by looking at the PL2XDLL.dll, the way you did with the arcsoft dts decoder. Also have a look at this (http://www.hydrogenaudio.org/forums/index.php?showtopic=50713).

K1ngp1ng
1st July 2008, 11:13
- Do you mean backL and backR are identical?
- How does pl2x upconvert a 6.1 track to 7.1?

- yes, that's what i meant.
- since phantom images are placed by interchannel level and phase differences, i guess to get a channel e.g. exactly between srd an backC the matrix decoder would subtract the mono signal from both an place it on the new channel.

madshi
1st July 2008, 11:15
- yes, that's what i meant.
- since phantom images are placed by interchannel level and phase differences, i guess to get a channel e.g. exactly between srd an backC the matrix decoder would subtract the mono signal from both an place it on the new channel.
Ouch, that sounds complicated. So I'd better drop 6.1 -> 7.1 channel doubling then?

K1ngp1ng
1st July 2008, 11:34
doubling is not correct imho.
i know there are some early releases that had pcm tracks with mono back srds but just like mpeg2 got displaced by avc/vc1,
i think we won't see such weird tracks with lossless codecs anymore.

rickardk
1st July 2008, 13:05
Ouch, that sounds complicated. So I'd better drop 6.1 -> 7.1 channel doubling then?
Please keep the 6.1 -> 7.1 until better option is available.

nautilus7
1st July 2008, 16:32
eac3to doesn't show any chapters with Shoot 'Em Up Blu-ray. cli and mpls files here (http://www.sendspace.com/file/edtpgp).

Yraen
1st July 2008, 22:18
Ouch, that sounds complicated. So I'd better drop 6.1 -> 7.1 channel doubling then?

You've got the -no7doubling switch in, I'd either leave it as is until you have a better understanding of what the specs are.

ramki067
2nd July 2008, 04:49
eac3to itself knows the bitstream format (= detailed structure of the compressed audio files) of the various codecs. However, eac3to itself can not actually decode any of these codecs. For decoding eac3to needs to use external decoders. eac3to is shipping with the "libav" library which is a free decoder package which can decode many formats. But DTS Express is not one of them. So if you want to decode DTS Express you need to have an external decoder which can do the decoding. There are 2 options: ArcSoft and Nero. Both are commercial packages. eac3to can make use of both the ArcSoft and Nero (must be version 7) DTS decoders, if they are installed on the local PC. Without Nero and ArcSoft eac3to can tell you the parameters of your samples (like samplerate, channel format etc) but it cannot actually decode the samples.


Hi madshi,
I installed Arcsoft decoder and when i tried to convert my samples (the two which worked fine as you said) its giving an error as eac3to crashed...please see the below message and an error report was generated.

C:\Documents and Settings\ramki\Desktop\tools\eac3to_v2.48>"C:\Documents and Se
ttings\ramki\Desktop\tools\eac3to_v2pt51\eac3to.exe" "C:\Documents and Settings
\ramki\Desktop\tools\eac3to_v2.48\48-192kbps-WhiteNoise-20.dtshd" "C:\Documents
and Settings\rkiran\Desktop\tools\eac3to_v2.48\48-192kbps-WhiteNoise-20.ac3" -6
4 -test
Nero Audio Decoder (Nero 7 or older) doesn't seem to be installed
ArcSoft DTS Decoder (1.1.0.0) works fine
Sonic Audio Decoder (2.51.0.0) doesn't seem to be installed
Haali Media Splitter doesn't seem to be installed
Surcode DTS Encoder doesn't seem to be installed
MkvToolnix doesn't seem to be installed
The source file reader couldn't allocate enough memory.
The format of the source file could not be detected.

C:\Documents and Settings\rkiran\Desktop\tools\eac3to_v2.48>"C:\Documents and Se
ttings\rkiran\Desktop\tools\eac3to_v2pt51\eac3to.exe" "C:\Documents and Settings
\rkiran\Desktop\tools\eac3to_v2.48\48-192kbps-WhiteNoise-20.dtshd" "C:\Documents
and Settings\rkiran\Desktop\tools\eac3to_v2.48\48-192kbps-WhiteNoise-20.ac3" -6
4
DTS Express, 2.0 channels, 0:00:10, 24 bits, 192kbit/s, 48khz
eac3to crashed...

and one more thing i tried sending the error report and it said "Sorry, sending the bug report didn't work". Thereby i'm attaching a pic of the error report which might help you to debug.



Ramki.

K1ngp1ng
2nd July 2008, 05:50
There is your problem ...
Nero Audio Decoder (Nero 7 or older) doesn't seem to be installed
http://forum.doom9.org/showthread.php?p=1154106#post1154106

ramki067
2nd July 2008, 06:10
There is your problem ...
Nero Audio Decoder (Nero 7 or older) doesn't seem to be installed
http://forum.doom9.org/showthread.php?p=1154106#post1154106

Yes, but Arcsoft decoder seems to work fine, so it should have been able to decode!

madshi
2nd July 2008, 07:36
I installed Arcsoft decoder and when i tried to convert my samples (the two which worked fine as you said) its giving an error as eac3to crashed...please see the below message and an error report was generated.
Can you please upload the "bugreport.txt" (located in the same folder where eac3to.exe is stored) somewhere? Thanks...

ramki067
2nd July 2008, 08:41
Can you please upload the "bugreport.txt" (located in the same folder where eac3to.exe is stored) somewhere? Thanks...

Please see the attachment below:

bugreport.txt (http://www.filefactory.com/file/e55b4d/n/bugreport_txt)

madshi
2nd July 2008, 09:28
Please see the attachment below:

bugreport.txt (http://www.filefactory.com/file/e55b4d/n/bugreport_txt)
The ArcSoft DirectShow filter crashes during initialization. Don't know why. It works for me and seems to work for everyone else. Have you tried restarting your PC? Also try uninstalling and reinstalling ArcSoft. There's nothing I can do if ArcSoft's DirectShow filter crashes...

looney
3rd July 2008, 09:27
I have installed TotalMedia Extreme and it installs all decoders in %ProgFiles%/CommonFiles/ArcSoft/MPEG Engine but somehow it doesnt seem to work for eac3to. Can you enable end user to link/point to whatever folder he/she stores plugins cause this way isn't exactly user friendly that prog expects to put all the files in its expected places. NTM that Ahead also puts its decoders in CF bu prog didn't find it for some reason, and even mkvtoolnix wasn't found

Nero Audio Decoder (Nero 7 or older) is not working correctly
ArcSoft DTS Decoder doesn't seem to be installed
Sonic Audio Decoder (2.51.0.0) doesn't seem to be installed
Haali Media Splitter (2007-12-29) is installed
Surcode DTS Encoder (1.0.21.0) is installed
MkvToolnix doesn't seem to be installed

madshi
3rd July 2008, 09:31
I have installed TotalMedia Extreme and it installs all decoders in %ProgFiles%/CommonFiles/ArcSoft/MPEG Engine but somehow it doesnt seem to work for eac3to. Can you enable end user to link/point to whatever folder he/she stores plugins cause this way isn't exactly user friendly that prog expects to put all the files in its expected places. NTM that Ahead also puts its decoders in CF bu prog didn't find it for some reason, and even mkvtoolnix wasn't found
eac3to does NOT expect the files to be located in a specific folder. eac3to simply tries to get an instance of the ArcSoft audio decoder DirectShow filter by using win32 APIs. As long as the ArcSoft DirectShow filter is properly installed, eac3to should be able to find it. Can you please check whether you can find the "ArcSoft Audio Decoder HD" in GraphEdit and whether you can use it in GraphEdit?

Thunderbolt8
3rd July 2008, 21:00
madshi, that mpeg2 .ts cap 'the killing fields' still crashes, though not that early as it used to be, but approx when being 1/5 done. heres the log:
http://www.sendspace.com/file/kh9t6w

xeonicxpression
3rd July 2008, 21:22
so I read that it's better to use madflac but I was wondering how I know if eac3to is using madflac. I downloaded and installed it, but do I have to do anything beyond that?

nautilus7
3rd July 2008, 22:07
No, eac3to uses libflac (official flac encoder and decoder). Madflac is the best flac directshow decoder as far as i know. Very good for playback.

xeonicxpression
3rd July 2008, 22:15
ok yea I'm an idiot. I used this post http://forum.slysoft.com/showthread.php?t=15543 to get the gist of how to use eac3to and saw it mentioned using madflac. I failed to notice it was under the playback section. Thanks for setting me straight.

lchiu7
5th July 2008, 05:50
Trying to extract the AC-3 audio from a ts file that is a DVB-T capture containing AVC video and AC-3 audio..

When I run eac3to on the file I get the following error messags

Sonic Audio Decoder (2.20.0.0) doesn't seem to be installed
Nero Audio Decoder (Nero 7 or older) is not working correctly
Haali Media Splitter (2008-3-30) is installed
Surcode DTS Encoder doesn't seem to be installed
MkvToolnix (v2.2.0) is installed
The format of the source file could not be detected.


The machine has Nero 7 installed and I don't have any problem playing files with AC-3 audio.

Tried to extact the audio using dgavcindex and also TSConverter but in both instances the audio comes out a few seconds shorter than the video and therefore when remuxed I get audio/video sync issues.

Any ideas what I could be doing wrong here?

Thanks

K1ngp1ng
5th July 2008, 10:53
i tried madflac now and i'm going to stick with it since it also decodes flac files that are not in a container.
but it also doesn't recognize a track with "no7doubling" as 6.1
instead it says "channels: 7" and i get an error msg unless i check "5.1 downmix"
or connect to ffdshow (mixer tab enabled) which treats it like 5.1 with the backC being discarded.

bmnot
6th July 2008, 05:57
I'm trying to reencode raw pcm from a DVD to flac with eac3to. How do I find if the PCM file is "little" or "big" endian.

EDIT: Setting it to -big, the resulting flac file size is smaller than the source (700MB vs 1.1GB). At -little the flac file size does not decrease. So I assume big is the correct setting?

nautilus7
6th July 2008, 11:34
I'm trying to reencode raw pcm from a DVD to flac with eac3to. How do I find if the PCM file is "little" or "big" endian.

EDIT: Setting it to -big, the resulting flac file size is smaller than the source (700MB vs 1.1GB). At -little the flac file size does not decrease. So I assume big is the correct setting?I believe the assumption you make is correct, but anyway choosing wrong endian will result in noise during playback. Have you played back the flac tracks you made?

tman24
6th July 2008, 14:02
Hopefully a quick answer...

I'm trying to backup one of my blu-ray disks to mkv. I'm fine when the move is all in one file, as it's straightforward extracting the video and audio streams.

This disc is causing me problems though, as eac3to lists many parts to the movie. If I just run 'eac3to' against the ripped folder, I can identify what I think is the movie part (I guess read from the mpls file), but I get this output;

2) 00094.mpls, 2:06:27
[48+49+35+37+78+32+88+36+38+40+41].m2ts
- VC-1, 1080p24 /1.001 (16:9)
- RAW/PCM, English, multi-channel, 48khz
- AC3, English, multi-channel, 48khz
- DTS, French, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- DTS, Spanish, multi-channel, 48khz
- AC3, Spanish, multi-channel, 48khz
- AC3, English, stereo, 48khz

I want to extract the VC-1 movie stream and the PCM audio stream into one file each, which I'll then re-mux using mkvmerge.

Can anyone assist with the eac3to command line to sort this out?

azad
6th July 2008, 14:39
Processing a BD PCM audiofile eac3to shows two times endian swapping and channel remapping in the logfile. Is this an indication for a problem with the PCM file?

Logfile:
eac3to v2.51
command line: eac3to J:\BDMV\STREAM\00032.m2ts 2: "E:\Videostreams\filename.mkv" -speedup -seekToIFrames
7: "D:\Work\Blu-ray Assets\Audio\filename.pcm"
------------------------------------------------------------------------------
M2TS, 1 video track, 6 audio tracks, 2:12:29
1: Chapters, 16 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: AC3, English, 5.1 channels, 448kbit/s, 48khz
4: RAW/PCM, English, 5.1 channels, 16 bits, 48khz
5: AC3, French, 5.1 channels, 448kbit/s, 48khz, dialnorm: -30dB
6: AC3, German, 5.1 channels, 448kbit/s, 48khz, dialnorm: -30dB
7: RAW/PCM, German, 5.1 channels, 16 bits, 48khz
8: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -26dB
[v02] Extracting video track number 2...
[a07] Extracting audio track number 7...
[a07] Reading RAW/PCM...
[a07] Swapping endian...
[a07] Remapping channels...
[a07] Swapping endian...
[a07] Remapping channels...
[v02] Muxing video to Matroska...
[a07] Creating file "D:\Work\Blu-ray Assets\Audio\filename.pcm"...

BLKMGK
6th July 2008, 16:20
Hopefully a quick answer...

I'm trying to backup one of my blu-ray disks to mkv. I'm fine when the move is all in one file, as it's straightforward extracting the video and audio streams.

This disc is causing me problems though, as eac3to lists many parts to the movie. If I just run 'eac3to' against the ripped folder, I can identify what I think is the movie part (I guess read from the mpls file), but I get this output;

2) 00094.mpls, 2:06:27
[48+49+35+37+78+32+88+36+38+40+41].m2ts
- VC-1, 1080p24 /1.001 (16:9)
- RAW/PCM, English, multi-channel, 48khz
- AC3, English, multi-channel, 48khz
- DTS, French, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- DTS, Spanish, multi-channel, 48khz
- AC3, Spanish, multi-channel, 48khz
- AC3, English, stereo, 48khz

I want to extract the VC-1 movie stream and the PCM audio stream into one file each, which I'll then re-mux using mkvmerge.

Can anyone assist with the eac3to command line to sort this out?

First run something like "eac3to 2)" to list out the exact structure of the second video. Since you didn't post original command I cannot give exact paths etc.

After that the commandline will look SOMETHING like this "eac3to 2) 2: x:\path\movie.mkv 3: x:\path\audio.ac3 1: x:\path\chapters.txt -640 -libav" the 640 and -libav may not be needed but I use the eac3to internal codecs right now and thus specify them.

Oh and you will likely have to run the EXACT command twice in order to remove overlap gaps in audio etc. - eac3to will tell you this and at the commandline just hit the up arrow to bring the command back from history to repeat it.

Does that help?

madshi
6th July 2008, 17:28
Trying to extract the AC-3 audio from a ts file that is a DVB-T capture containing AVC video and AC-3 audio..

When I run eac3to on the file I get the following error messags

Sonic Audio Decoder (2.20.0.0) doesn't seem to be installed
Nero Audio Decoder (Nero 7 or older) is not working correctly
Haali Media Splitter (2008-3-30) is installed
Surcode DTS Encoder doesn't seem to be installed
MkvToolnix (v2.2.0) is installed
The format of the source file could not be detected.
Can I please have a sample of this file? Maybe the first 10MB would already be enough? But before you upload such a sample please check whether you can reproduce the problem with the sample, otherwise the sample won't help. Thanks...

The machine has Nero 7 installed and I don't have any problem playing files with AC-3 audio.
Nero has nothing to do with this. eac3to doesn't even recognize the format of the source file.

i tried madflac now and i'm going to stick with it since it also decodes flac files that are not in a container.
but it also doesn't recognize a track with "no7doubling" as 6.1
instead it says "channels: 7" and i get an error msg unless i check "5.1 downmix"
or connect to ffdshow (mixer tab enabled) which treats it like 5.1 with the backC being discarded.
I can play such "no7doubling" 6.1 FLAC tracks just fine in MPC HC with madFlac. Don't know why it doesn't work for you... Anyway, if there's a bug in madFlac, please post this in the madFlac thread. Thanks.

Processing a BD PCM audiofile eac3to shows two times endian swapping and channel remapping in the logfile. Is this an indication for a problem with the PCM file?
No, that's just fine.

tman24
6th July 2008, 20:17
First run something like "eac3to 2)" to list out the exact structure of the second video. Since you didn't post original command I cannot give exact paths etc.

After that the commandline will look SOMETHING like this "eac3to 2) 2: x:\path\movie.mkv 3: x:\path\audio.ac3 1: x:\path\chapters.txt -640 -libav" the 640 and -libav may not be needed but I use the eac3to internal codecs right now and thus specify them.

Oh and you will likely have to run the EXACT command twice in order to remove overlap gaps in audio etc. - eac3to will tell you this and at the commandline just hit the up arrow to bring the command back from history to repeat it.

Does that help?

Awesome. Thanks BLKMGK :thanks: Another way of using eac3to that I wasn't aware of. Rather than stream 2) as I thought it was, running eac3to 1) produced;

d:\eac3to 1)
M2TS, 2 video tracks, 8 audio tracks, 2:04:32
1: Chapters, 19 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: h264/AVC, 480p24 /1.001 (20:11)
4: TrueHD/AC3, English, 5.1 channels, 48khz
5: AC3, English, 2.0 channels, 192kbit/s, 48khz
6: AC3, French, 5.1 channels, 640kbit/s, 48khz
7: AC3, Spanish, 5.1 channels, 640kbit/s, 48khz
8: AC3, Portuguese, 5.1 channels, 640kbit/s, 48khz
9: AC3, Thai, 5.1 channels, 640kbit/s, 48khz
10: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
11: DTS Express, English, 2.0 channels, 24 bits, 192kbit/s, 48khz

So then I simply did;

eac3to 1) 2:movie.mkv 4:movie.pcm

and away it went

madshi
6th July 2008, 20:35
madshi, that mpeg2 .ts cap 'the killing fields' still crashes, though not that early as it used to be, but approx when being 1/5 done. heres the log:
http://www.sendspace.com/file/kh9t6w
This will be fixed in the next build.

rebkell
6th July 2008, 20:41
Awesome. Thanks BLKMGK :thanks: Another way of using eac3to that I wasn't aware of. Rather than stream 2) as I thought it was, running eac3to 1) produced;

d:\eac3to 1)

So then I simply did;

eac3to 1) 2:movie.mkv 4:movie.pcm

and away it went

You do realize that if you just run eac3to <path to bd or hd disk>: that it will list all the playlists and then you can select the most appropriate one. For instance if your blu-ray drive was d:

then the command
eac3to d:
would produce all the playlists with pertinent info about each list
from that you can usually figure out what you want, then if it is playlist 1

you run
eac3to d: 1)
and it will return all the streams you are interested in, like you did above.

If you know all this, sorry to be redundant.

SpaceAgeHero
6th July 2008, 21:29
Is there any chance that eac3to will recognize and be able to extract bluray subtitles in the future? Thanks for this wonderful tool anyway. =)

madshi
6th July 2008, 21:45
Is there any chance that eac3to will recognize and be able to extract bluray subtitles in the future?
That is quite on top of my to do list.

madshi
6th July 2008, 21:50
eac3to v2.52 released

http://madshi.net/eac3to.zip

* fixed muxing of MPEG2 broadcasts where "temporal_reference" overruns
* MPEG2 bitstream headers are now updated correctly when speedup is performed
* MPEG2 bitstream headers are now updated correctly when slowdown is performed
* MPEG2 bitstream headers are now updated correctly when pulldown is removed
* pulldown removal is now automatically disabled for MPEG2 broadcasts
* AC3WAV (SPDIF formatted) support added
I hope that MPEG2 video handling will now be in final state.

rebkell
6th July 2008, 22:51
I have a silly question, what do the ------'s represent when eac3to is processing the input command. How are they calculated, sometimes is seems like eac3to finishes well before the ---'s reach the end of the screen width, but I could be mistaken.

tebasuna51
6th July 2008, 23:18
eac3to v2.52 released
...
* AC3WAV (SPDIF formatted) support added
...


Quick and good job. Thanks madshi.

nordesmic
7th July 2008, 14:13
Madshi,

Thanks very much for your efforts with this program. I've been using it a lot and haven't had any problems until now when I've been trying to work with "Unforgievn (HD-DVD)".

I usually use the program to get the VC-1 track and then feed that into tsMuxer and then MeGUI in a M2TS. However, with Unforgiven in MeGUI the M2TS track is all discoloured (rainbow). I read this thread and the issue was mentioned in update 2.20 but I couldn't seem to find how to fix it.

I was joining the EVO files and then muxing to MKV. I then demuxed the VC-1 stream using MKVextract. I didn't use the "skip" option or any other option.

Could you please suggest a better workflow to get this to work.

Thanks very much

rebkell
7th July 2008, 15:42
Madshi,

Thanks very much for your efforts with this program. I've been using it a lot and haven't had any problems until now when I've been trying to work with "Unforgievn (HD-DVD)".

I usually use the program to get the VC-1 track and then feed that into tsMuxer and then MeGUI in a M2TS. However, with Unforgiven in MeGUI the M2TS track is all discoloured (rainbow). I read this thread and the issue was mentioned in update 2.20 but I couldn't seem to find how to fix it.

I was joining the EVO files and then muxing to MKV. I then demuxed the VC-1 stream using MKVextract. I didn't use the "skip" option or any other option.

Could you please suggest a better workflow to get this to work.

Thanks very much

On VC-1, you can extract the vc1 directly and avoid the extra step of extracting from the mkv file if you want.

I normally just mux the vc1 disks into an mkv container and use directshowsource in an avs file and feed that too megui. I always use stripPullDown on the vc1 tracks. I've not had any problems using this technique on HD-DVDs.

Thunderbolt8
7th July 2008, 16:40
eac3to v2.52 released
thanks, that killing fields .ts file works fine now!

madshi
7th July 2008, 16:59
Thanks very much for your efforts with this program. I've been using it a lot and haven't had any problems until now when I've been trying to work with "Unforgievn (HD-DVD)".

I usually use the program to get the VC-1 track and then feed that into tsMuxer and then MeGUI in a M2TS. However, with Unforgiven in MeGUI the M2TS track is all discoloured (rainbow). I read this thread and the issue was mentioned in update 2.20 but I couldn't seem to find how to fix it.

I was joining the EVO files and then muxing to MKV. I then demuxed the VC-1 stream using MKVextract. I didn't use the "skip" option or any other option.
Unforgiven is a special case. First of all you don't (ever) need to join the EVO files. Just use "eac3to file1.evo+file2.evo ...". But that aside, the issue is that the sequence headers are changing in this movie. That means that the sequence headers need to be muxed into the container, too, and they need to be output by the splitter, too. I'd suggest trying to mux the movie to MKV with eac3to. If playing back that MKV file works fine then eac3to is working correctly. In that case if you get problems when demuxing the raw VC-1 track and muxing it to a container with a program other than eac3to then obviously you have to ask those people for help who wrote whatever other software you're using.

Thunderbolt8
7th July 2008, 17:05
thanks, that killing fields .ts file works fine now!
aerf, it only works fine for the time of processing with eac3to. but the video remux doesnt play, mpc (ffdshow libavcodec/libmpeg) and the normal windows media player, vlc just work and work, but nothing happens. theres also no information displayed in the explorer status bar (so basically its similar to the h264 problem mkvmerge once had)

madshi
7th July 2008, 17:32
aerf, it only works fine for the time of processing with eac3to. but the video remux doesnt play, mpc (ffdshow libavcodec/libmpeg) and the normal windows media player, vlc just work and work, but nothing happens. theres also no information displayed in the explorer status bar (so basically its similar to the h264 problem mkvmerge once had)
Is this just the video MKV without audio? Can you please try doing: "mkvinfo -v -o info.txt killingfields.mkv"? That should create a very long info.txt file. Look inside and check whether the time information is slowly growing. If you can't make heads and nails out of the info.txt, please zip and upload it. Thanks...

Thunderbolt8
7th July 2008, 19:11
uploaded the info. at the beginning the timecodes are between 0-1 sec and after a while this changes to 10-12 second timecodes. dont know how to describe that though, so heres the file.

http://www.sendspace.com/file/g33230

Thunderbolt8
7th July 2008, 20:38
whats actually the order when I want to apply delay to an ac3 track, which also needs a delay? is the delay applied first and then everything slowed down?
im asking, because I have such a cap, but the track is not clean, so I have to demux with xport and use delaycut and then slow and add delay with eac3to manually, only for this track seperately then. would there be a difference in order compared to when the track is still part of the .ts file?


another problem with the boogie night mpeg2 .ts cap, it has video gaps, but when I re-run eac3to with the gaps info file playback is not really possible any more, the picture basically stops at one scene and wont continue futher. this is not the case at the 1st mux though and luckily the audio is still in sync so that a 2nd mux shoudlnt be needed at all. but I guess that problem at the 2nd run still shouldnt occur?

scarbrtj
9th July 2008, 03:33
Madshi:

Thought you might be interested to know...

On a dual quad-core 2.5 GHz Xeon machine with 4GB RAM, a 1.3 GB 5.1 WAV file is decoded by eac3to to 6 mono WAVs in about 4 seconds.
:)

saint-francis
9th July 2008, 06:23
What's the switch to trim only a certain amount of a file with eac3to? I want to upload a sample of a DTS MA track that seem to have eac3to stumped. It just sits there and doesn't do anything accept use processing power. It's from the predator BTW in case anyone else has tried it or is thinking of trying it.

Snowknight26
9th July 2008, 07:01
What's the switch to trim only a certain amount of a file with eac3to? I want to upload a sample of a DTS MA track that seem to have eac3to stumped. It just sits there and doesn't do anything accept use processing power. It's from the predator BTW in case anyone else has tried it or is thinking of trying it.

http://forum.doom9.org/showthread.php?p=1133382

Yraen
9th July 2008, 10:18
What's the switch to trim only a certain amount of a file with eac3to? I want to upload a sample of a DTS MA track that seem to have eac3to stumped. It just sits there and doesn't do anything accept use processing power. It's from the predator BTW in case anyone else has tried it or is thinking of trying it.

I've got that one and had no trouble with it at all. Post your command line and I'll try it and see what I get.

saint-francis
9th July 2008, 15:12
I've got that one and had no trouble with it at all. Post your command line and I'll try it and see what I get.

Yraen no command lines work. I have tried to just convert that one track. I have tried to convert it in my normal process of demuxing, remuxing and converting audio. I have even tried demuxing it with DGIndex and converting it from there. I tried re ripping the disk and doing all of the above procedures again. All to no avail. I tried this all with Sonic. I just got the Arcsoft trial and am trying it with that right now.

EDIT: Arcsoft works just fine. I actually left eac3to running overnight trying to decode with Sonic and aside from using 1/4 of my CPU it did nothing at all.

xkodi
9th July 2008, 15:31
... running overnight trying to decode with Sonic and aside from using 1/4 of my CPU it did nothing at all.

check that you have Sonic Audio Decoder version 4.3.0.169:

C:\eac3to251>eac3to.exe -test

Sonic Audio Decoder (4.3.0.169) works fine

with older version of Sonic eac3to frequently hangs the same way like you described on my machine and versions newer than 4.3.0.169 do not decode DTS-HD MA correctly, i.e. bit-perfect, so in short the recommended version of Sonic is 4.3.0.169.

EPiPH0NE
9th July 2008, 17:01
versions newer than 4.3.0.169 do not decode DTS-HD MA correctly, i.e. bit-perfect

That doesn't make sense. I wonder what they changed after 4.3.0.169.

saint-francis
9th July 2008, 17:16
No I have the older version of the Sonic decoder. I am not going to buy scenarist just to decode DTS tracks. I would just wait until there was a decent open source decoder. But it seems that Arcsoft works fine so I'm all set I guess. Thanks for the heads up on the old version of Sonic.

nordesmic
9th July 2008, 17:51
Unforgiven is a special case. First of all you don't (ever) need to join the EVO files. Just use "eac3to file1.evo+file2.evo ...". But that aside, the issue is that the sequence headers are changing in this movie. That means that the sequence headers need to be muxed into the container, too, and they need to be output by the splitter, too. I'd suggest trying to mux the movie to MKV with eac3to. If playing back that MKV file works fine then eac3to is working correctly. In that case if you get problems when demuxing the raw VC-1 track and muxing it to a container with a program other than eac3to then obviously you have to ask those people for help who wrote whatever other software you're using.

Hi Madshi,

I tried your advice and am still having some problems. You were right, the rainbow frames have do not appear if I just drop the mkv into MeGUI. But I can't get a VC-1 file that has had the pulldown removed. I did evo1+evo2 movie.mkv -strippulldown. Then I also tried to mux to mkv and remove the pulldown with tsmuxer.

Trying to remove the pulldown with eac3to didn't seem to work. Using tsMuxer (to mux to m2ts) it tells me that my film has 375000 frames, or double the number in the actual film.

I know I must be doing something wrong but I can't work out what exactly. All I want to do is to use MeGUI to encode the VC-1 stream to a 1080p24 h.264 stream which can be played on the PS3.

How could I use the combination of eac3to, tsMuxer and MeGUI to get my desired result?

Thanks again for your efforts. I'm getting to that stage where you just want to give up:confused:

EPiPH0NE
9th July 2008, 20:04
^^^It seems that eacto doesn't want to remove pulldown if your muxing to MKV. I have had this issue as well. Your best bet would be to run the MKV through tsMuxeR and demux the VC-1 then run that through vc1conv to remove the pulldown if going from EVO -> .vc1 with eac3to is giving you the 'rainbow' problem.

Yraen
9th July 2008, 21:57
@nordesmic

My process for this movie was to extract the video into an mkv with eac3to, run that through vc1conv and then mux video and audio with tsmuxer into a .ts file. I have no rainbow frames. Just like EPiPH0NE says.

nordesmic
10th July 2008, 04:09
@nordesmic

My process for this movie was to extract the video into an mkv with eac3to, run that through vc1conv and then mux video and audio with tsmuxer into a .ts file. I have no rainbow frames. Just like EPiPH0NE says.

Thanks EPIPHONE and Yraen. I have already tried the process you recommended and at the end VC1conv says that I have 375,000 frames and the running time of the film is 4 hours. Does this mean that it is also not removing the pulldown? I am giving it another go with vc1conv but it is taking forever which is an indication of the double frame count I think.

I don't think rainbow frames is an issue anymore for me, its all about the frames and pulldown. Yraen were you able to get a 24p VC-1 file for this film? If possible could you list the version number of each piece of software so I can try to replicate your exact procedure.

Thanks very much

inmetzi
10th July 2008, 10:27
Players causes rainbow frames. -
I played a mkv movie (1080, dts/ac3,not compressed) with the codecs in the windows media player (and others). rainbow frames, stuttering, sync problems are the results. Iīm using a Dual Core 2,4 GHz.
Randomly I was looking in the taskmanager and :eek: the mediaplayer is using only 1 core with 100%! I seached and found an dual core player (cool dvd player) and it plays "almost" all my mkvs without problems :D . Only - it canīt play dts and vc1 :rolleyes: . But they want to integrate it. (I asked for)
Iīm thinking this helps some guys to solve there problems.
Bernd

xkodi
10th July 2008, 11:43
That doesn't make sense. I wonder what they changed after 4.3.0.169.

i don't know exactly what they have changed, but based on countless test i run it is a fact for me that something is changed and it is changed in the wrong way.

i'm aware of two versions of Sonic Audio Decoder after 4.3.0.169:

- 4.3.0.192: doesn't work at all
- 5.0.0.203: works for some samples and the decoded output is bit-perfect, but for some samples the decoded output is NOT bit-perfect, i suspect that for those samples the DTS core is decoded instead of the HD extension

didn't find any problems with version 4.3.0.169, except that it decodes only 5.1 channels for 7.1 channel tracks and versions older than 4.3.0.169 cause eac3to to hang, so that leaves only 4.3.0.169 as usable version.

[edit]

here is a DTS-HD MA sample (and the same sample in TrueHD for reference) with which everyone can verify that what i'm saying is true:

DTS-HD MA:
http://rapidshare.de/files/39964243/dragon.71ch.ma.dtshd.html

same sample in TrueHD for reference:
http://rapidshare.de/files/39964265/dragon.71ch.thd.html

1) the DTS-HD MA sample decoded with Arcsoft is byte by byte identical (checked with hex editor) with the decoded reference TrueHD sample.
2) the DTS-HD MA sample decoded with Sonic 4.3.0.169 is byte by byte identical (checked with hex editor) with the first 5.1 channels from the DTS-HD MA sample decoded with Arcsoft
3) the DTS-HD MA sample decoded with Sonic 5.0.0.203 is NOT byte by byte identical (checked with hex editor) with the first 5.1 channels from the DTS-HD MA sample decoded with Arcsoft

1) proves that Arcsoft build 113 is bit-perfect and decodes full 7.1 channels
1) and 2) prove that Sonic 4.3.0.169 is bit-perfect and decodes only up to 5.1 channels
1) and 3) prove that Sonic 5.0.0.203 is NOT bit-perfect or it does decode the DTS core instead of the DTS HD extension and decodes only up to 5.1 channels

so, not always the latest version is the greatest one ;)

EPiPH0NE
10th July 2008, 16:36
so, not always the latest version is the greatest one ;)

Ain't that the truth :) Well now we have the 'latest' being Arcsoft which is bit perfect + 7.1 so I guess we're all set for DTS-MA decoding for quite a while now which is a good thing.

K1ngp1ng
10th July 2008, 18:06
the DTS-HD MA sample decoded with Sonic 4.3.0.169 is byte by byte identical with the first 5.1 channels from the DTS-HD MA sample decoded with Arcsoft
doesn't that mean that the back surrounds are being discarded?
a 5.1 downmix is not the same as 7.1 - obviously - so it can't be bit-perfect...

EPiPH0NE
10th July 2008, 19:12
doesn't that mean that the back surrounds are being discarded?
a 5.1 downmix is not the same as 7.1 - obviously - so it can't be bit-perfect...

He's just saying that the 5.1 channels that it can decode are bit perfect. Sonic doesn't down mix it just drops the 2rs channels so I since I only have 5.1 I am gonna take madshi's advice and use ArcSoft to do DTS-MA 7.1 -> 5.1 which, according to him, will mix the 2rs channels into the 5.1 which should be better then just dropping the rear surrounds all together. I'll find out next week when I finally watch Rambo BLuRay :cool:

nautilus7
10th July 2008, 19:12
Epiphone was faster.

EPiPH0NE
10th July 2008, 20:39
Epiphone was faster.

That's what she said :p

73ChargerFan
11th July 2008, 03:52
"Warning: -blu-ray should only be used with LPCM files"

I just wasted a bunch of time, trying to remap the channels from a BD DTS Master Audio track...
eac3to 00001.dtsma lxg.dts -blu-ray -core

I knew something was wrong, because using the -core option is fast, and this time it was extracting 6 wav files so it could re-encode them. Long story short, I re-learned that the "-blu-ray" option is only to be used with BD LPCM tracks. (its in the first post)

So, I'd like to request that a warning message be posted when the "-blu-ray" option is used on anything other than LPCM source files.

Thanks for everything you do, madshi.

K1ngp1ng
11th July 2008, 05:49
mix the 2rs channels into the 5.1
maybe the latest sonic does exactly that, thus the result not being bit-identical any more?

EPiPH0NE
11th July 2008, 07:22
maybe the latest sonic does exactly that, thus the result not being bit-identical any more?


Seems a possibility but not sure how you would verify it.

xkodi
11th July 2008, 08:46
mix the 2rs channels into the 5.1maybe the latest sonic does exactly that, thus the result not being bit-identical anymore?Seems a possibility but not sure how you would verify it.

i've already explained in details what older (4.3.0.169) and newer (5.0.0.203) Sonic decoders do, but clearly it wasn't clear enough for you.

depending on the channel order in the DTS header for most samples Sonic Decoder 4.3.0.169 decodes:

decoded by ArcSoft channel 0 = decoded by Sonic channel 0
decoded by ArcSoft channel 1 = decoded by Sonic channel 1
decoded by ArcSoft channel 2 = decoded by Sonic channel 2
decoded by ArcSoft channel 3 = decoded by Sonic channel 3
decoded by ArcSoft channel 4 = decoded by Sonic channel 4
decoded by ArcSoft channel 5 = decoded by Sonic channel 5
decoded by ArcSoft channel 6 = not decoded by Sonic
decoded by ArcSoft channel 7 = not decoded by Sonic

where "=" denotes how channels from one decode map to the other and that both decodes are identical, i.e. bit-perfect: channelX from the one decode is byte by byte identical to channelX from the other decode.

and Sonic Decoder 5.0.0.203 decodes:

decoded by ArcSoft channel 0 <--> decoded by Sonic channel 0
decoded by ArcSoft channel 1 <--> decoded by Sonic channel 1
decoded by ArcSoft channel 2 <--> decoded by Sonic channel 2
decoded by ArcSoft channel 3 <--> decoded by Sonic channel 3
decoded by ArcSoft channel 4 <--> decoded by Sonic channel 4
decoded by ArcSoft channel 5 <--> decoded by Sonic channel 5
decoded by ArcSoft channel 6 <--> not decoded by Sonic
decoded by ArcSoft channel 7 <--> not decoded by Sonic

where "<-->" denotes how channels from one decode map to the other and that both decodes are NOT identical, i.e. NOT bit-perfect: channelX from the one decode is NOT byte by byte identical to channelX from the other decode.

K1ngp1ng
11th July 2008, 09:06
if you downmix the backsurrounds, the whole soundtrack has to be attenuated to prevent clipping -> no channel is the same any more... or am i wrong?

xkodi
11th July 2008, 12:31
if you downmix the backsurrounds, the whole soundtrack has to be attenuated to prevent clipping -> no channel is the same any more... or am i wrong?

let's assume you are right, then what about 5.1 channel samples like this one:

http://rapidshare.com/files/128862937/mr.brooks.bd.us.mgm.51.24.48.dtshd.html

Sonic 5.0.0.203 decode of this sample is not bit-perfect. so, believe or not Sonic 5.0.0.203 doesn't do any down-mixing, it simply doesn't work correctly, most probably it decodes the DTS core instead of the DTS HD extension.

K1ngp1ng
11th July 2008, 16:47
ok, that is weird indeed...

but since you brought up mr. brooks:
why is this track reported as 24bit when filesize and bitrate suggest that it can't be more than 16bit?
when i use the -down16 cmd i get about the same filesize.
i have never seen this with any other dts master track.
does eac3to check this or does it always use the header info?

EPiPH0NE
11th July 2008, 19:31
let's assume you are right, then what about 5.1 channel samples like this one:

http://rapidshare.com/files/128862937/mr.brooks.bd.us.mgm.51.24.48.dtshd.html

Sonic 5.0.0.203 decode of this sample is not bit-perfect. so, believe or not Sonic 5.0.0.203 doesn't do any down-mixing, it simply doesn't work correctly, most probably it decodes the DTS core instead of the DTS HD extension.


This makes sense as do the rest of your posts know that I see it all in context. All I can say is that I just tested Rambo BluRay DTS-MA 7.1 -> PCM 5.1 (Downmixed) and it sounded like I had a 7.1 set up and sounded better then anything I ever got from Sonics decoder. I'm liken it :)

xkodi
11th July 2008, 19:56
but since you brought up mr. brooks:
why is this track reported as 24bit when filesize and bitrate suggest that it can't be more than 16bit?
when i use the -down16 cmd i get about the same filesize.
i have never seen this with any other dts master track.
does eac3to check this or does it always use the header info?

i've checked with hex editor and the files decoded with Arcsoft and Sonic 4.3.0.169 are the same and on the first sight resolution maybe seems like 16bit - for most of the file in every group of 3 byte, every last significant byte (LSB) is 0, but still there are some parts of the file that look like 24bit and the LSB is not 0. so, everything looks correct just the nature of the sound is such that at the first sight looks like 16bit.

BTW realized how to proof that Sonic 5.0.0.203 decodes the DTS core instead of the DTS HD extension - it is very easy actually, but until now i haven't thought about it:

1)
eac3to mr.brooks.bd.us.mgm.51.24.48.dtshd c:\01.wav -sonic

2)
eac3to mr.brooks.bd.us.mgm.51.24.48.dtshd c:\core.dts -core
eac3to c:\core.dts c:\02.wav -sonic

01.wav and 02.wav are byte by byte identical and thus Sonic 5.0.0.203 for sure decodes the DTS core instead of the DTS HD extension.

so, the final status of different Sonic versions is:

version < 4.3.0.169: eac3to hangs
version = 4.3.0.169: everything works great for 5.0, 5.1 and 6.1 files, 7.1 files are decoded as 5.1, the last two channels are not decoded, but those 5.1 channels that are decoded are bit-perfect
version = 4.3.0.192: doesn't work at all
version = 5.0.0.203: decodes the DTS core instead of the DTS HD extension

and thus the only usable version of Sonic is 4.3.0.169, but it is still better to use Arcsoft in any case.

nautilus7
12th July 2008, 00:23
i've checked with hex editor and the files decoded with Arcsoft and Sonic 4.3.0.169 are the same and on the first sight resolution maybe seems like 16bit - for most of the file in every group of 3 byte, every last significant byte (LSB) is 0, but still there are some parts of the file that look like 24bit and the LSB is not 0. so, everything looks correct just the nature of the sound is such that at the first sight looks like 16bit.It's very interesting what you found... It reminds me the pcm track from PotC (don't remember which movie of the three though), which is exactly the same.

xkodi
12th July 2008, 09:45
It's very interesting what you found... It reminds me the pcm track from PotC (don't remember which movie of the three though), which is exactly the same.

yes, it is interesting, but it is only the nature of the sound and those files are really 24bit. for example i made small program that counts how many groups of 3bytes have the LSB=0 and for the mr. brooks sample the result is:

Left channel:
29.04% of the samples are 16bit
70.96% of the samples are 24bit

Right channel:
33.13% of the samples are 16bit
66.87% of the samples are 24bit

Center:
27.49% of the samples are 16bit
72.51% of the samples are 24bit

LFE:
32.40% of the samples are 16bit
67.60% of the samples are 24bit

Surround Left:
53.18% of the samples are 16bit
46.82% of the samples are 24bit

Surround Right:
59.48% of the samples are 16bit
40.52% of the samples are 24bit

so, overall only 40% of the file looks like 16bit and the rest is 24bit, that is why on the first sight with hex editor the file looks like 16bit, but it is not.

nautilus7
12th July 2008, 17:33
Thanks for the detailed info.

madshi
13th July 2008, 16:28
uploaded the info. at the beginning the timecodes are between 0-1 sec and after a while this changes to 10-12 second timecodes. dont know how to describe that though, so heres the file.

http://www.sendspace.com/file/g33230
Thanks. This problem will be fixed in the next build. I've tested with Killing Fields myself now and with the next eac3to version Killing Fields should work just fine.

whats actually the order when I want to apply delay to an ac3 track, which also needs a delay? is the delay applied first and then everything slowed down?
:confused: I'm not sure what you mean...

another problem with the boogie night mpeg2 .ts cap, it has video gaps, but when I re-run eac3to with the gaps info file playback is not really possible any more, the picture basically stops at one scene and wont continue futher. this is not the case at the 1st mux though and luckily the audio is still in sync so that a 2nd mux shoudlnt be needed at all. but I guess that problem at the 2nd run still shouldnt occur?
Yeah, that problem should not occur. Would it be possible to create a sample which covers the video gaps somehow? I guess it might be difficult to create such a sample, though...

"Warning: -blu-ray should only be used with LPCM files"

I just wasted a bunch of time, trying to remap the channels from a BD DTS Master Audio track...
eac3to 00001.dtsma lxg.dts -blu-ray -core

I knew something was wrong, because using the -core option is fast, and this time it was extracting 6 wav files so it could re-encode them. Long story short, I re-learned that the "-blu-ray" option is only to be used with BD LPCM tracks. (its in the first post)

So, I'd like to request that a warning message be posted when the "-blu-ray" option is used on anything other than LPCM source files.
The "-blu-ray" option was originally intended for LPCM tracks demuxed by other tools which may not have remapped the channels. But actually this option is just a specific channel remapping matrix. It may be useful in specific other situations. E.g. just imagine if somebody created an AC3 track from the original LPCM track without having remapped the channels properly. In this case you could do "eac3to source.ac3 dest.ac3 -blu-ray" and that would fix the channel mapping. So I don't really think I should limit the use of the "-blu-ray" option or post any warnings. Using specific options is always your choice. You should never use a specific option if you don't know which exact purpose it has. If you do, it's your own fault... ;) eac3to is written in such a way that you don't need *any* options when doing the usual tasks. The options are only for corner cases. So if in doubt, don't use any special options...

madshi
13th July 2008, 16:33
version = 4.3.0.169: everything works great for 5.0, 5.1 and 6.1 files, 7.1 files are decoded as 5.1, the last two channels are not decoded, but those 5.1 channels that are decoded are bit-perfect
Actually with the Sonic 4.3.0.169 decoder it's not 6.1 vs. 7.1. Instead it's XCh vs. XXCh extension. The Sonic decoder supports the XCh extension, but it doesn't support the XXCh extension. The XCh extension is the older one and only supports 6.1. The XXCh extension is newer and supports both 6.1 and 7.1 (and maybe even more channels). Most 6.1 tracks are using the XCh extension, which the Sonic decoder supports. But there are some 6.1 tracks which are using the XXCh extension instead of the XCh extension. These XXCh 6.1 tracks are decoded by the Sonic decoder as 5.1, only.

Fortunately the ArcSoft decoder supports every extension we can throw at it... :)

(If you want to know which extension a specific DTS track is using, you can use the undocumented "-logdts" option.)

Ranguvar
13th July 2008, 20:03
I'm wondering about the Blu-ray channel remapping...

Is this advisable to use with ALL Blu-ray discs, or do only some have the odd channel mappings?

madshi
13th July 2008, 20:52
I'm wondering about the Blu-ray channel remapping...

Is this advisable to use with ALL Blu-ray discs, or do only some have the odd channel mappings?
As long as you're using eac3to for handling Blu-Rays you don't need to worry. eac3to will automatically do everything correctly for you. You only need to worry about channel mapping if you use other tools for demuxing...

madshi
13th July 2008, 22:17
eac3to v2.53 released

http://madshi.net/eac3to.zip

* Blu-Ray PGS subtitle demuxing support added
* added support for EVO/VOB subtitles which begin very late in the file
* MPEG2 video muxing doesn't rely on GOP headers, anymore
* all (M2)TS discontinuities are now reported with exact file position
* fixed: reading language information from TS files didn't work correctly

rickardk
13th July 2008, 22:54
Blu-Ray PGS subtitle demuxing support added

Thanks alot!!!

nautilus7
13th July 2008, 22:57
Me thanks for BD subtitle demuxing, also.

rebkell
13th July 2008, 23:05
eac3to v2.53 released

http://madshi.net/eac3to.zip

* Blu-Ray PGS subtitle demuxing support added
* added support for EVO/VOB subtitles which begin very late in the file
* MPEG2 video muxing doesn't rely on GOP headers, anymore
* all (M2)TS discontinuities are now reported with exact file position
* fixed: reading language information from TS files didn't work correctly

What extension do we use for the subtitles? I don't use subtitles, so sorry if that's a dumb question.

nautilus7
13th July 2008, 23:21
I used to name HD DVD subs *.sup. Don't know if anything is different for Blu-ray. You can also try *.pgs if that doesn't work.

73ChargerFan
13th July 2008, 23:30
Check out the extensions it uses, by doing "eac3to filename.ext -demux", then after it starts cancel ^C it.

SpaceAgeHero
14th July 2008, 00:19
What extension do we use for the subtitles? I don't use subtitles, so sorry if that's a dumb question.

Use .sup as extension. Then you can use SupRip to convert your subtitles to .srt via optical character recognition.

Thanks for BD-Subtitle demuxing from me too. Been waiting for this. :) No need for tsMuxer anymore.

rebkell
14th July 2008, 00:42
Dont' know if it's intentional or not, but demux seems to only be demuxing one subtitle track:

C:\Users\X2-6000\Desktop\eac3to\garbage>..\eac3to d: 1)
M2TS, 1 video track, 3 audio tracks, 8 subtitle tracks, 2:05:54
1: Chapters, 16 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: TrueHD/AC3, English, 5.1 channels, 48khz
4: RAW/PCM, English, 5.1 channels, 16 bits, 48khz
5: AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -29dB
6: Subtitle (PGS), English
7: Subtitle (PGS), French
8: Subtitle (PGS), Spanish
9: Subtitle (PGS), Portuguese
10: Subtitle (PGS), Chinese
11: Subtitle (PGS), Thai
12: Subtitle (PGS), English
13: Subtitle (PGS), English

C:\Users\X2-6000\Desktop\eac3to\garbage>..\eac3to d: 1) -demux
M2TS, 1 video track, 3 audio tracks, 8 subtitle tracks, 2:05:54
1: Chapters, 16 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: TrueHD/AC3, English, 5.1 channels, 48khz
4: RAW/PCM, English, 5.1 channels, 16 bits, 48khz
5: AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -29dB
6: Subtitle (PGS), English
7: Subtitle (PGS), French
8: Subtitle (PGS), Spanish
9: Subtitle (PGS), Portuguese
10: Subtitle (PGS), Chinese
11: Subtitle (PGS), Thai
12: Subtitle (PGS), English
13: Subtitle (PGS), English
Creating file "00001 - Chapters.txt"...
[v02] Extracting video track number 2...
[a03] Extracting audio track number 3...
[a03] Extracting audio track number 3...
[a04] Extracting audio track number 4...
[a05] Extracting audio track number 5...
[s06] Extracting subtitle track number 6...
[s07] Extracting subtitle track number 7...
[s08] Extracting subtitle track number 8...
[s09] Extracting subtitle track number 9...
[s10] Extracting subtitle track number 10...
[s11] Extracting subtitle track number 11...
[s12] Extracting subtitle track number 12...
[s13] Extracting subtitle track number 13...
[a03] Extracting TrueHD stream...
[a03] Extracting AC3 stream...
[a04] Reading RAW/PCM...
[a03] Removing dialog normalization...
[a04] Swapping endian...
[a04] Remapping channels...
[a04] Swapping endian...
[a04] Remapping channels...
[a05] Removing dialog normalization...
[a04] Creating file "00001 - 4 - PCM, English, 5.1 channels, 16 bits, 48khz.pcm"...
[v02] Creating file "00001 - 2 - h264, 1080p24.h264"...
[a03] Creating file "00001 - 3 - TrueHD+AC3, English, 5.1 channels, 48khz.thd"...
[a03] Creating file "00001 - 3 - TrueHD+AC3, English, 5.1 channels, 48khz.ac3"...
[a05] Creating file "00001 - 5 - AC3, French, 5.1 channels, 640kbps, 48khz.ac3"...
[s13] Creating file "00001 - 13 - Subtitle (PGS), English.sup"...
-^C


you can select individual subtitle tracks and it seems to work just fine.

Ranguvar
14th July 2008, 02:01
Is there a way to scan for gap/overlap information and use it before demuxing?

madshi
14th July 2008, 07:05
Dont' know if it's intentional or not, but demux seems to only be demuxing one subtitle track.

you can select individual subtitle tracks and it seems to work just fine.
Will check that.

Is there a way to scan for gap/overlap information and use it before demuxing?
Not really. What would that be good for? Just to save a little bit of time? The problem with this approach is that you never know whether there are any gap/overlaps to start with. So if you asked eac3to to search for gaps/overlaps before demuxing that might take quite a while and result in no gaps/overlaps being found. In this situation doing it this way would actually cost more time than doing it the way it's implemented right now...

bmnot
14th July 2008, 09:02
What's the best way to convert the PGS subs to SRT?

himan2001
14th July 2008, 11:41
Still an old cosmetic Bug in 2.53:

MPEG2 M2TS files often shown as 1080i60/1001 instead 1080i30/1001

madshi
14th July 2008, 11:53
What's the best way to convert the PGS subs to SRT?
Don't know. I just tested whether eac3to's output was comparable to xport's and TsRemux' output. Personally, I'm not really interested in subtitles so much. As a result I don't really know how to convert them in the best possible way...

Still an old cosmetic Bug in 2.53:

MPEG2 M2TS files often shown as 1080i60/1001 instead 1080i30/1001
Even the experts don't agree on whether it should be called 1080i30 or 1080i60. Some use the term 1080i30, others use the term 1080i60. Personally, I prefer 1080i60. After all, outputting such a stream in interlaced format means we get 60 interlaced fields per second. If you output it progressively, it can be 24 frames per second, or 30 frames per second or 60 frames per second. Also, some streams are encoded internally with 30 progressive frames per second, while others are encoded with true 60 interlaced fields per second. Again others are encoded with 24 progressive frames per second, but with pulldown flags. And even others are a funny mixture of all I mentioned before. That's why it's kind of hard to decide on a proper term...

SpaceAgeHero
14th July 2008, 13:13
What's the best way to convert the PGS subs to SRT?

There is no universal way to "convert" blu-ray subtitles since PGS subs are no binary data but more like an image format. Therefore you can only use OCR programs like SupRip I already recommended. With SupRip you can Auto-OCR your subs to *.srt. But since no OCR software is perfect I learned you may need to adjust some characters manually (teach OCR).

nautilus7
14th July 2008, 13:40
Madshi, seamless branching subtitle timing is not correct. I demuxed the subtitles from "Open Season" Blu-ray (which is seamless brancing) and covert them to .srt. The timings where auto reset to 0 for each .m2ts part.

1
00:01:21,874 --> 00:01:24,376
Νοw, that's a rοar, Βοοg.

2
00:01:24,835 --> 00:01:26,587
Νοw get in. We're gοnna be late.

3
00:01:28,046 --> 00:01:32,801
Νο denying. Τhe girl's gοt grοwl.
Βut can she get dοwn like this?

4
00:00:00,042 --> 00:00:02,753
Can yοu get dοwn like this?
Βring it here. Βring it.

5
00:00:02,920 --> 00:00:05,714
Τhen bring it right back, huh?
Lοοk at that. Lοοk at that.

6
00:00:20,562 --> 00:00:22,189
Ηere it cοmes.

7
00:01:09,153 --> 00:01:11,071
Ηey, Gοrdy.

8
00:01:12,072 --> 00:01:13,782
Μοrning, Βeth.

9
00:01:23,625 --> 00:01:27,045
Welcοme tο Τimberline's
Wilderness Εxtraνaganza.

10
00:00:00,042 --> 00:00:02,586
Ι'm Ranger Βeth.

11
00:00:02,753 --> 00:00:05,464
Ρlease, put yοur hands tοgether
fοr Βοοg.

12
00:00:05,631 --> 00:00:08,842
Βehοld, the mighty grizzly.

As you can see there are 2 join points (3 .m2ts files) and the timings are reset there. Is there anything that can be done?

madshi
14th July 2008, 13:54
seamless branching subtitle timing is not correct. I demuxed the subtitles from "Open Season" Blu-ray (which is seamless brancing) and covert them to .srt. The timings where auto reset to 0 for each .m2ts part.
Ouch, will fix that in the next build.

zakhounet
14th July 2008, 15:13
Hi,

I desperately trying to convert an DTSHD to DTS or AC3 without success. I have download Sonic 4.3 and i can't convert, I am having the following message:

K:\BRD\Bronzes3\HVDVD_TS>"E:\PCH\EAC3toGUI\eac3to.exe" "K:\BRD\Bronzes3\HVDVD_TS
\Film.EVO" "K:\BRD\Bronzes3\HVDVD_TS\Film.ac3"-640 -sonic
EVO, 1 video track, 2 audio tracks, 1:36:20
"Film"
1: Chapters, 18 chapters with names
2: VC-1, 1080p24 /1.001 (16:9) with pulldown flags
3: DTS Master Audio, English, 2t channels, 16 bits, 48khz
4: DTS Master Audio, English, 5.1 channels, 16 bits, 48khz
Track 3 is used for destination file "Film.ac3".
[a03] Extracting audio track number 3...
[a03] Decoding with DirectShow (Sonic Audio Decoder)...
eac3to crashed...


Any ideas ?

nautilus7
14th July 2008, 15:43
First of all, drop keymaker's GUI (outdated) and use Yraen's GUI (http://forum.doom9.org/showthread.php?t=135095). Furthermore, as you can see, eac3to automatically selects track 3 as source track, which is a stereo track. Select track 4 by changing your command line to:

eac3to.exe" "K:\BRD\Bronzes3\HVDVD_TS\Film.EVO" 4: "K:\BRD\Bronzes\HVDVD_TS\Film.ac3" -640 -sonic

To make a DTS track instead of an AC3, use:

eac3to.exe" "K:\BRD\Bronzes3\HVDVD_TS\Film.EVO" 4: "K:\BRD\Bronzes\HVDVD_TS\Film.dts" -core

jj666
14th July 2008, 18:23
Nautilus,

Whats the difference quality wise between extracting the core from a DTS-MA file with the -core command versus re-encoding to DTS with Surcode -1536 option. I assume the Core is lossless and would contain the "same" 5.1 output as Surcode? The same would apply to HDDVD EAC3 1536kb/sec files, I was wondering whether to extract the core or convert to same bitrate DTS :-)

Possibly a stupid question, apologies in advance if so!

Cheers,

-jj-

EPiPH0NE
14th July 2008, 18:33
^^^^HD-DVD DD+ tracks are not built on core + extension so they do not have a core. I get perfect, to my ears, results with:


768k/1536K EAC3 -> 768k/1536k DTS

jj666
14th July 2008, 18:43
Thats great, thanks for the answer, the same as I was hearing then :-).

I'm normally just using EAC3TO for converting LPCM on Bluray to DTS 1536k and EAC3 on HDDVD to DTS 1536k dependant on bitrate, for the DTS-MA conversion, I just normally downconvert with TSMuxer. Sounds like I would be able to use just one utility for my audio requirements then, which is nice. (I'm remuxing the video lossless to .TS, so unfortunately EAC3TO isn't of a use there as MKV is not the best container for Istar/Tvix playback).

I'm really liking the batch facilities on the new EAC3TO frontend, it's really easy to use.

Thanks again for the help :-)

-jj-

zakhounet
14th July 2008, 19:03
First of all Than you Nautilus for taking into consideration my issue. I followed your advise from the DOS comand line and i got the following message :

E:\PCH\EAC3toGUI>eac3to.exe K:\BRD\Bronzes3\HVDVD_TS\Film.EVO 4: K:\BRD\Bronzes\
HVDVD_TS\Film.dts -core
EVO, 1 video track, 2 audio tracks, 1:36:20
"Film"
1: Chapters, 18 chapters with names
2: VC-1, 1080p24 /1.001 (16:9) with pulldown flags
3: DTS Master Audio, English, 2t channels, 16 bits, 48khz
4: DTS Master Audio, English, 5.1 channels, 16 bits, 48khz
[a04] Extracting audio track number 4...
[a04] Extracting DTS core...
[a04] Patching bitdepth to 24 bits...
[a04] Creating file "K:\BRD\Bronzes\HVDVD_TS\Film.dts"...
[a04] The destination file "K:\BRD\Bronzes\HVDVD_TS\Film.dts" could not be creat
ed.
[a04] Writing the destination file failed.
Aborted at file position 11403264.

Any recommendations ?

jj666
14th July 2008, 19:19
Did you create a directory called Bronzes? I see the original file is located in Bronzes3... Could be a simple file creation error like that :-)

-jj-

zakhounet
14th July 2008, 20:00
Thank you, you was just right ....

:p :stupid:


By the way I am trying to Download "the Eac3to And More GUI only" and my Bitdefender (anti-vitrus) warned me saying the file is infected with :

BackDoor.Generic.56393

Therefore I can't download .... Do you have also the same issue ?

XhmikosR
14th July 2008, 20:03
Just false alarm. You can check here:

http://www.virustotal.com/analisis/ffcd88dc30fda76fab36af57729477ff

nautilus7
14th July 2008, 21:59
[a04] The destination file "K:\BRD\Bronzes\HVDVD_TS\Film.dts" could not be created.
[a04] Writing the destination file failed.
Aborted at file position 11403264.

Any recommendations ?Do you have enough space on your hard drive?

EPiPH0NE
14th July 2008, 22:31
Thats great, thanks for the answer, the same as I was hearing then :-).

I'm normally just using EAC3TO for converting LPCM on Bluray to DTS 1536k and EAC3 on HDDVD to DTS 1536k dependant on bitrate, for the DTS-MA conversion, I just normally downconvert with TSMuxer. Sounds like I would be able to use just one utility for my audio requirements then, which is nice. (I'm remuxing the video lossless to .TS, so unfortunately EAC3TO isn't of a use there as MKV is not the best container for Istar/Tvix playback).

I'm really liking the batch facilities on the new EAC3TO frontend, it's really easy to use.

Thanks again for the help :-)

-jj-


Yeah I used to do the same thing with my NMT (PCH A-100) as I also use lossless video in TS/M2TS but now that I have an HDMI AVR I can just use the LPCM as is and I also do DTS-MA/TrueHD -> PCM to retain all lossless HD audio tracks :)

nwg
15th July 2008, 00:19
I got a HD DVD where I cannot demux the subtitles using evodemux into subrip (also crashes supread). If I rebuild the evo with just the subtitles. What is the command to demux it with eac3to?

Thanks.

G_M_C
15th July 2008, 10:03
Is there no news on my feature-request, to be able to convert to audio to match a framerate of 24 fps (for making AVCHD's) ?

inThralled
15th July 2008, 15:56
is there a switch for gain or autogain similar to besweet?

nautilus7
15th July 2008, 16:05
No, there isn't.

act.anon
15th July 2008, 22:51
Is there be any way to use the hacked eac3to dlls in ffdshow for E-AC3 decoding when playing a movie back? I'd like the option to disable DRC, which is not available in the commercial decoders.

I tried copying the avcodec eac3to dll to my ffdshow directory, and renamed it to libavcodec.dll, but that didn't work.

I also tried to compile a new ffdshow build myself with the Google Summer of Code E-AC3 decoder merged in...with no luck.
(edit: I made make a thread requesting help with that here (http://forum.doom9.org/showthread.php?t=139536))

Any suggestions?

nautilus7
15th July 2008, 23:04
The libav decoder form eac3to isn't a directshow decoder, therefore it doesn't work for realtime decoding.

Beastie Boy
16th July 2008, 08:16
Is there no news on my feature-request, to be able to convert to audio to match a framerate of 24 fps (for making AVCHD's) ?

24fps is an abbreviation for 23.976fps which eac3to already supports. Blueray is also often quoted as 24fps but is in fact 23.976fps.

Cheers, Beastie.

G_M_C
16th July 2008, 09:29
24fps is an abbreviation for 23.976fps which eac3to already supports. Blueray is also often quoted as 24fps but is in fact 23.976fps.

Cheers, Beastie.

Nope, that wont fly; Its got to be 24.00000 fps, or video wont display (audio will though). Setting 24.0000 fps in tsMuxer is easy, but converting the audio to match the framerate remains the problem (syncing subs is easy too).

B4tm4n
16th July 2008, 12:35
Nope, that wont fly; Its got to be 24.00000 fps, or video wont display (audio will though). Setting 24.0000 fps in tsMuxer is easy, but converting the audio to match the framerate remains the problem (syncing subs is easy too).


I've made plenty of AVCHD's from 23.976fps MKV's and never had to convert to 24fps to playback on my PS3.

G_M_C
16th July 2008, 13:36
I've made plenty of AVCHD's from 23.976fps MKV's and never had to convert to 24fps to playback on my PS3.

Ye. that can be ... But i dont own anything with a Sony-brand on top, so no PS3 here. I have the Panasonic DMP-BD30, wich accepts only AVCHD that adhere to the standard perfectly (see here: http://www.avchd-info.org/format/index.html)

Atak_Snajpera
16th July 2008, 13:44
I have the Panasonic DP30, wich accepts only AVCHD that adhere to the standard perfectly (see here: http://www.avchd-info.org/format/index.html)
So how come PAL AVCHD camcorders like Canon record in progressive 25 fps ? :) (NTSC version also supports 30p)

24 fps is in fact 23.976 !
60 fps is 59.94 , 30 fps is 29.97

Do not change frame rate for god sake.

rickardk
16th July 2008, 13:57
24 fps is in fact 23.976 ! Do not change frame rate for god sake.

I know that when talking about 24 fps you often mean 23.976fps. Most manufacturer also talks about 24fps and means 23.976fps (24/1.001).

But I read in some document (a while ago) discussing correct timings for consumer electronics that 23.976fps are actually called 23fps and 24.0fps are called 24fps.

Arn and Relvolver uses 24.0fps. I know I have seen at least 5 or 6 of my blu-rays that uses 24.0fps.

Atak_Snajpera
16th July 2008, 14:03
23.976fps are actually called 23fps
Stupid idiots do not know how math works :)

G_M_C
16th July 2008, 14:03
So how come PAL AVCHD camcorders like Canon record in progressive 25 fps ? :) (NTSC version also supports 30p)

24 fps is in fact 23.976 !
60 fps is 59.94 , 30 fps is 29.97

Do not change frame rate for god sake.

Well, realise that i thought that too at first; But ive made AVCHD's with 23,976, and they dont work. Only when converted to 24.000 fps do they work, so what i say is based on actual fact.

I can try to see is speeding up to PAL works, but i doubt it; Based on my experiances; Bur 24 fps is closer to original than 25 fps, so i would still prefer 24 fps.

But we'd better get back on topic ;)

dorati
16th July 2008, 18:09
I have Problems with gaps.
I can run eac3to many times, but alwas the same message:

[a03] Audio overlaps for 5ms at playtime 0:19:08.
[a03] Audio overlaps for 5ms at playtime 1:20:15.
[a03] The audio file was demuxed without making use of the gap/overlap information.
[a03] Please rerun the same eac3to command line. That will correct the gaps/overlaps.

Here is the complete log:
eac3to v2.53
command line: eac3to f:\cars_fra 3) -demux
------------------------------------------------------------------------------
M2TS, 1 video track, 12 audio tracks, 8 subtitle tracks, 1:56:35
1: Chapters, 33 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: TrueHD/AC3, English, 5.1 channels, 48khz
4: AC3, English, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
5: DTS-ES, Italian, 5.1 channels, 24 bits, 1536kbit/s, 48khz, dialnorm: -4dB
6: AC3, Italian, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
7: DTS-ES, German, 5.1 channels, 24 bits, 1536kbit/s, 48khz, dialnorm: -4dB
8: AC3, German, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
9: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
10: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
11: AC3, Italian, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
12: AC3, Italian, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
13: AC3, German, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
14: AC3, German, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
15: Subtitle (PGS), English
16: Subtitle (PGS), English
17: Subtitle (PGS), Italian
18: Subtitle (PGS), German
19: Subtitle (PGS), Italian
20: Subtitle (PGS), German
21: Subtitle (PGS), English
22: Subtitle (PGS), English
Creating file "00147 - Chapters.txt"...
Audio gap description file detected, can't be used for TrueHD/MLP, though.
Audio gap description file detected, will be used for processing...
Audio gap description file detected, will be used for processing...
Audio gap description file detected, will be used for processing...
Audio gap description file detected, will be used for processing...
Audio gap description file detected, will be used for processing...
Audio gap description file detected, will be used for processing...
Audio gap description file detected, will be used for processing...
Audio gap description file detected, will be used for processing...
Audio gap description file detected, will be used for processing...
Audio gap description file detected, will be used for processing...
Audio gap description file detected, will be used for processing...
Audio gap description file detected, will be used for processing...
[v02] Extracting video track number 2...
[a03] Extracting audio track number 3...
[a03] Extracting audio track number 3...
[a04] Extracting audio track number 4...
[a05] Extracting audio track number 5...
[a06] Extracting audio track number 6...
[a07] Extracting audio track number 7...
[a10] Extracting audio track number 10...
[a09] Extracting audio track number 9...
[a08] Extracting audio track number 8...
[a12] Extracting audio track number 12...
[a14] Extracting audio track number 14...
[a11] Extracting audio track number 11...
[a13] Extracting audio track number 13...
[s15] Extracting subtitle track number 15...
[s16] Extracting subtitle track number 16...
[s17] Extracting subtitle track number 17...
[s18] Extracting subtitle track number 18...
[s19] Extracting subtitle track number 19...
[s21] Extracting subtitle track number 21...
[s20] Extracting subtitle track number 20...
[s22] Extracting subtitle track number 22...
[a03] Extracting TrueHD stream...
[a03] Extracting AC3 stream...
[a03] Removing dialog normalization...
[a03] Realizing (E-)AC3 gaps...
[a05] Removing dialog normalization...
[a07] Removing dialog normalization...
[a05] Realizing DTS gaps...
[a07] Realizing DTS gaps...
[a04] Removing dialog normalization...
[a06] Removing dialog normalization...
[a08] Removing dialog normalization...
[a08] Realizing (E-)AC3 gaps...
[a06] Realizing (E-)AC3 gaps...
[a04] Realizing (E-)AC3 gaps...
[a11] Removing dialog normalization...
[a10] Removing dialog normalization...
[a12] Removing dialog normalization...
[a14] Removing dialog normalization...
[a14] Realizing (E-)AC3 gaps...
[a13] Removing dialog normalization...
[a11] Realizing (E-)AC3 gaps...
[a10] Realizing (E-)AC3 gaps...
[a12] Realizing (E-)AC3 gaps...
[a09] Removing dialog normalization...
[a13] Realizing (E-)AC3 gaps...
[a09] Realizing (E-)AC3 gaps...
[v02] Creating file "00147 - 2 - h264, 1080p24.h264"...
[a05] Creating file "00147 - 5 - DTS-ES, Italian, 5.1 channels, 24 bits, 1536kbps, 48khz.dts"...
[a07] Creating file "00147 - 7 - DTS-ES, German, 5.1 channels, 24 bits, 1536kbps, 48khz.dts"...
[a03] Creating file "00147 - 3 - TrueHD+AC3, English, 5.1 channels, 48khz.thd"...
[a03] Creating file "00147 - 3 - TrueHD+AC3, English, 5.1 channels, 48khz.ac3"...
[a04] Creating file "00147 - 4 - AC3, English, 5.1 channels, 640kbps, 48khz.ac3"...
[a06] Creating file "00147 - 6 - AC3, Italian, 5.1 channels, 640kbps, 48khz.ac3"...
[a08] Creating file "00147 - 8 - AC3, German, 5.1 channels, 640kbps, 48khz.ac3"...
[s21] Creating file "00147 - 21 - Subtitle (PGS), English.sup"...
[a10] Creating file "00147 - 10 - AC3, English, 2.0 channels, 192kbps, 48khz.ac3"...
[a09] Creating file "00147 - 9 - AC3, English, 2.0 channels, 192kbps, 48khz.ac3"...
[a11] Creating file "00147 - 11 - AC3, Italian, 2.0 channels, 192kbps, 48khz.ac3"...
[a12] Creating file "00147 - 12 - AC3, Italian, 2.0 channels, 192kbps, 48khz.ac3"...
[a13] Creating file "00147 - 13 - AC3, German, 2.0 channels, 192kbps, 48khz.ac3"...
[a14] Creating file "00147 - 14 - AC3, German, 2.0 channels, 192kbps, 48khz.ac3"...
[s22] Creating file "00147 - 22 - Subtitle (PGS), English.sup"...
[s16] Creating file "00147 - 16 - Subtitle (PGS), English.sup"...
[s18] Creating file "00147 - 18 - Subtitle (PGS), German.sup"...
[s15] Creating file "00147 - 15 - Subtitle (PGS), English.sup"...
[s17] Creating file "00147 - 17 - Subtitle (PGS), Italian.sup"...
[a03] Audio overlaps for 5ms at playtime 0:19:08.
[a03] Audio overlaps for 5ms at playtime 1:20:15.
[a03] The audio file was demuxed without making use of the gap/overlap information.
[a03] Please rerun the same eac3to command line. That will correct the gaps/overlaps.
[s19] Creating file "00147 - 19 - Subtitle (PGS), Italian.sup"...
[s20] Creating file "00147 - 20 - Subtitle (PGS), German.sup"...
Video track 2 contains 167736 frames.
eac3to processing took 32 minutes, 8 seconds.
Done.

BLKMGK
17th July 2008, 00:48
Pastebin might be a good idea for long log posts...

Warrex
17th July 2008, 11:26
@ Madshi

Any chance you could include an option to demux the audio AND subtitle streams (thanks for including pgs support btw.) only?

I am asking this because:


m2ts files work fine for me in MeGui without remuxing them or indexing them with DGAVCDec.
Remuxing them is slow and wastes a lot of disk space.
Using "1:filename ..." is annoying and wastes time when having to enumerate all streams of interest (especially as there does not seem to be an option to let eac3to autoname the files)


****

Enumerating is also somewhat of a hassle for me concerning video streams that consist of multiple .m2ts files. It would be cool if eac3to would accept .mpls files as a source like tsMuxer does and get the correct files names and file order from it.

Rectal Prolapse
17th July 2008, 17:55
Keep in mind that there are a few titles out there where the video is explicitly set to 24.000 fps, NOT 23.976 fps (ie. Infernal Affairs Blu-ray, and another Hong Kong movie as well).

If you rip them and remux at 23.976 fps, your audio will be out of sync! Strange, but true!

Thunderbolt8
17th July 2008, 22:49
eac3to already should recognize them correctly so that you dont have to do any changes manually when remuxing (at least not so far)

zeropc
18th July 2008, 09:47
-core extract the DTS core of a DTS-HD track

does this also apply for the core extraction on a true-hd stream?

i'm asking cause it looked like it get's re-encoded.

nautilus7
18th July 2008, 13:27
No, it doesn't. To extract the AC3 core of a TrueHD track, you just set .ac3 as output extension. Note that only Blu-ray TrueHD tracks are TrueHD/AC3 combo. HD DVD TrueHD tracks are plain TrueHD.
If you still have problems, it would be useful to post the eac3to log.

fkl
18th July 2008, 22:13
hi everybody and sorry for my English...
we're not agree on tracker hdfrench about d.true-hd...is there a reason to convert d.true-hd with ac3 640kb/sec from blu-ray to dts 1536kb/sec? or downconvert this track to ac3 640kb/sec is the best way? many thanks for your response

Ranguvar
19th July 2008, 05:21
hi everybody and sorry for my English...
we're not agree on tracker hdfrench about d.true-hd...is there a reason to convert d.true-hd with ac3 640kb/sec from blu-ray to dts 1536kb/sec? or downconvert this track to ac3 640kb/sec is the best way? many thanks for your response
DTS 1,536Kbps from the TrueHD is going to be higher quality... extracting the 640kb/s AC3 stream is going to be smaller... and the first will take longer, as the second is just an extract, the first is a transcode.

fkl
19th July 2008, 11:32
DTS 1,536Kbps from the TrueHD is going to be higher quality... extracting the 640kb/s AC3 stream is going to be smaller... and the first will take longer, as the second is just an extract, the first is a transcode.

ok...thanks
in this case eac3to works with the core from the TrueHD or it makes 6 waves from de ac3 file?

bmnot
19th July 2008, 22:02
madshi, do you think eac3to in the future could have the ability to remove pulldown from 1080i60 AVC Blu-rays and mux to mkv at 1080p23.976?

A few 1080i60 FILM blu-rays have been popping up.

nautilus7
19th July 2008, 22:29
1080i60 isn't interlaced? How would muxing to 23,976 be possible?

Ranguvar
19th July 2008, 22:38
ok...thanks
in this case eac3to works with the core from the TrueHD or it makes 6 waves from de ac3 file?
I don't know...

To test, try extracting the TrueHD (.thd extension) and then encoding it, and try just specifying .dts extension... make a checksum of each, and compare.

If they're the same, eac3to is smart and encodes from the TrueHD. If not, it is encoding from the AC3.

bmnot
19th July 2008, 23:07
1080i60 isn't interlaced? How would muxing to 23,976 be possible?

Maybe I have the wording screwed up. Would it be apply pulldown? Doesn't 1080i60 stuff derived from film contain the instructions on how to recompose it back to 1080p23.976? if the pulldown sequence is constant?

nautilus7
19th July 2008, 23:56
I got your point now... but I don't think that's possible. 29,97p with pulldown flags --> 23,976p is possible, but with interlaced video I don't think this can been made.

Ranguvar
20th July 2008, 01:23
I got your point now... but I don't think that's possible. 29,97p with pulldown flags --> 23,976p is possible, but with interlaced video I don't think this can been made.
Agreed...

Unless it's 29.97p telecined that's pretending to be interlaced.

madshi
20th July 2008, 16:05
I got a HD DVD where I cannot demux the subtitles using evodemux into subrip (also crashes supread). If I rebuild the evo with just the subtitles. What is the command to demux it with eac3to?
Easiest way is to use "eac3to c:\HdDvdMovieFolder 1) -demux". That will demux all video, audio and subtitle tracks. If you want to demux the subtitle tracks, only, please browse a bit through this thread. It has been explained about a million times how it works.

Is there no news on my feature-request, to be able to convert to audio to match a framerate of 24 fps (for making AVCHD's) ?
It is on my to do list. But there are many things on my to do list and some of them I consider more important than your wish. As of yet you're the only person who has asked for 24.000 speedup/slowdown support. Find some more people who want/need that and I might bump up it's priority.

I have Problems with gaps.
I can run eac3to many times, but alwas the same message
It's half a bug in eac3to and half not a bug.

The problem is that you want to *DEMUX* a TrueHD track in its original form. You don't want it transcoded to WAV or PAM or FLAC, you want to keep it as TrueHD. And while that is not a problem at all for eac3to, TrueHD tracks can principally not be edited as well as other kinds of bitstreams. eac3to cannot delay TrueHD tracks and eac3to can also not fix gaps/overlaps in TrueHD bitstream tracks. That's due to the nature of how the TrueHD bitstream works. If I deleted a TrueHD audio frame in the middle of the stream, the decoders would complain about that and maybe even not decode the stream properly, anymore. So if you want gaps/overlaps to be removed you will have no other choice than to transcode the TrueHD track to something else.

It's "half a bug" because the message "Please rerun the same eac3to command line" doesn't make sense in this situation. But apart from this there isn't really anything eac3to can do right now.

However:

[a03] Audio overlaps for 5ms at playtime 0:19:08.
[a03] Audio overlaps for 5ms at playtime 1:20:15.
[a03] The audio file was demuxed without making use of the gap/overlap information.
[a03] Please rerun the same eac3to command line. That will correct the gaps/overlaps.
We're talking about an overall overlap of only 10ms here. You can really ignore this. No normal human will be able to notice a lipsync mismatch of 10ms.

Any chance you could include an option to demux the audio AND subtitle streams (thanks for including pgs support btw.) only?
I generally don't like adding hundreds of options because every new option makes the eac3to help more complicated. Yes, an option to demux only XYZ would save some time, but saving time is the only thing you'd gain which doesn't make adding such an option very attractive for me.

Check out the "eac3to and more GUI" (see first post). Maybe that GUI will do the trick for you.

in this case eac3to works with the core from the TrueHD or it makes 6 waves from de ac3 file?
eac3to always uses the TrueHD track - except if you explicitely ask to get an AC3 track. In that case of course the embedded AC3 bitstream will be extracted.

Maybe I have the wording screwed up. Would it be apply pulldown? Doesn't 1080i60 stuff derived from film contain the instructions on how to recompose it back to 1080p23.976? if the pulldown sequence is constant?
How does eac3to report these tracks? Are they reported as "1080i60" or as "1080p24 with pulldown flags"?

madshi
20th July 2008, 23:27
eac3to v2.54 released

http://madshi.net/eac3to.zip

* VC-1 pulldown removal rewritten (comparable to vc1conv 0.4, but faster)
* VC-1 pulldown removal is activated by default
* VC-1 pulldown removal can be manually deactivated by "-keepPulldown" option
* VC-1 pulldown removal is also available and activated when muxing to MKV now
* fixed Blu-Ray subtitle demuxing for seamless branching movies
* better task separation when doing multiple operations with an audio track
The seamless branching subtitles demuxing needs to be tested. Also the VC-1 pulldown removal needs some testing. It should be about twice as fast as vc1conv (if the harddisk is fast enough). The VC-1 pulldown removal done by eac3to is even a bit more complete compared to vc1conv. vc1conv leaves some flags in the bitstream but just sets them to zero. eac3to completely removes these.

EPiPH0NE
21st July 2008, 00:01
eac3to v2.54 released

http://madshi.net/eac3to.zip

* VC-1 pulldown removal rewritten (comparable to vc1conv 0.4, but faster)
* VC-1 pulldown removal is activated by default
* VC-1 pulldown removal can be manually deactivated by "-keepPulldown" option
* VC-1 pulldown removal is also available and activated when muxing to MKV now
* fixed Blu-Ray subtitle demuxing for seamless branching movies
* better task separation when doing multiple operations with an audio track
The seamless branching subtitles demuxing needs to be tested. Also the VC-1 pulldown removal needs some testing. It should be about twice as fast as vc1conv (if the harddisk is fast enough). The VC-1 pulldown removal done by eac3to is even a bit more complete compared to vc1conv. vc1conv leaves some flags in the bitstream but just sets them to zero. eac3to completely removes these.

So does this mean that VC-1 pulldown removal will actually work now? Up unitl now eac3to never actually removed the flags for me it just changed the FPS -> 23.976 and I would have to us vc1conv anyway. Well, I hope it works right now :) Thnx....Keep up the great work!

madshi
21st July 2008, 08:10
So does this mean that VC-1 pulldown removal will actually work now?
Yes.

Up unitl now eac3to never actually removed the flags for me it just changed the FPS -> 23.976 and I would have to us vc1conv anyway.
eac3to v2.53 and older were based on vc1conv 1.0 which didn't remove the pulldown properly. At one time I had even removed the pulldown removal functionality because of that problem but I put it back in on request. Now with v2.54 eac3to should be equal to (or even better than) the latest vc1conv.

Usage: Basically whenever eac3to sees a VC-1 stream with pulldown flags, it automatically removes the pulldown. So it's done when demuxing video from HD DVD or Blu-Ray. It's also done when remuxing video to MKV. It's also done when you do "eac3to source.vc1 dest.vc1".

Beastie Boy
21st July 2008, 08:16
Excellent update madshi. Once again, many, many thanks.

Cheers, Beastie.

G_M_C
21st July 2008, 08:29
[...]
It is on my to do list. But there are many things on my to do list and some of them I consider more important than your wish. As of yet you're the only person who has asked for 24.000 speedup/slowdown support. Find some more people who want/need that and I might bump up it's priority.
[...]

NP, glad to see its on the to-do list and i'll wait for it. In the mean time I'm using AviSynth / NicSound.dll / Soundout. My only problem with that option is, that i haven't found out how to output/manipulate to 6 wavs yet.

rickardk
21st July 2008, 10:26
Problem remuxing a dvd:

eac3to v2.53
command line: EAC3TO vts_01_1.vob+vts_01_2.vob+vts_01_3.vob+vts_01_4.vob+vts_01_5.vob 2: side.mkv 3: side.ac3
------------------------------------------------------------------------------
VOB, 1 video track, 1 audio track, 14:19:45
1: Joined VOB file
2: MPEG2, 480p24 /1.001 (16:9) with pulldown flags
3: AC3, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB, -109ms
[v02] Extracting video track number 2...
[a03] Extracting audio track number 3...
[a03] Removing dialog normalization...
[a03] Applying (E-)AC3 delay...
[v02] Muxing video to Matroska...
[a03] Creating file "side.ac3"...
[v02] Video has a gap of 5 frames at playtime 0:00:01.
[v02] Video has a gap of 6 frames at playtime 0:00:01.
[v02] Video has a gap of 6 frames at playtime 0:00:02.
[v02] Video has a gap of 6 frames at playtime 0:00:02.
[v02] Video has a gap of 6 frames at playtime 0:00:02.
[v02] Video has a gap of 6 frames at playtime 0:00:03.
[v02] Video has a gap of 6 frames at playtime 0:00:03.
[v02] Video has a gap of 6 frames at playtime 0:00:04.
[v02] Video has a gap of 6 frames at playtime 0:00:04.
[v02] Video has a gap of 6 frames at playtime 0:00:04.

etc etc etc to the end...
Length is wrong.
Also delay of the ac3 track seems wrong. PgcDemux reports -25ms.




Pulldown cannot be removed

eac3to v2.53
command line: EAC3TO side.mpg side.mkv -strippulldown
------------------------------------------------------------------------------
MPEG2, 480p24 /1.001 (16:9) with pulldown flags
Removing MPEG2 pulldown...
Muxing video to Matroska...
The MPEG2 stream is a mixture of video and movie content.
The pulldown cannot be removed from this type of MPEG2 stream.
Will have to abort processing and redo everything.
Muxing video to Matroska...


The MPEG2 stream is not a mixture I'm pretty sure.

nautilus7
21st July 2008, 11:57
eac3to v2.54 releasedMadshi thanks for the new version. Seamless branching subtitles are working now.

fkl
21st July 2008, 12:37
thanks Madshi for your response and thanks from all hd-fans from France for your great work!

madshi
21st July 2008, 12:54
Problem remuxing a dvd:

eac3to v2.53
command line: EAC3TO vts_01_1.vob+vts_01_2.vob+vts_01_3.vob+vts_01_4.vob+vts_01_5.vob 2: side.mkv 3: side.ac3
------------------------------------------------------------------------------
VOB, 1 video track, 1 audio track, 14:19:45
1: Joined VOB file
2: MPEG2, 480p24 /1.001 (16:9) with pulldown flags
3: AC3, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB, -109ms
[v02] Extracting video track number 2...
[a03] Extracting audio track number 3...
[a03] Removing dialog normalization...
[a03] Applying (E-)AC3 delay...
[v02] Muxing video to Matroska...
[a03] Creating file "side.ac3"...
[v02] Video has a gap of 5 frames at playtime 0:00:01.
[v02] Video has a gap of 6 frames at playtime 0:00:01.
[v02] Video has a gap of 6 frames at playtime 0:00:02.
[v02] Video has a gap of 6 frames at playtime 0:00:02.
[v02] Video has a gap of 6 frames at playtime 0:00:02.
[v02] Video has a gap of 6 frames at playtime 0:00:03.
[v02] Video has a gap of 6 frames at playtime 0:00:03.
[v02] Video has a gap of 6 frames at playtime 0:00:04.
[v02] Video has a gap of 6 frames at playtime 0:00:04.
[v02] Video has a gap of 6 frames at playtime 0:00:04.

etc etc etc to the end...
Length is wrong.
Also delay of the ac3 track seems wrong. PgcDemux reports -25ms.
Hmmmmm... Does it help if you use the "-60i" option? Can I have a sample of the DVD (first 50MB should be enough, if the eac3to complaint still occurs with those 50MB).

eac3to v2.53
command line: EAC3TO side.mpg side.mkv -strippulldown
------------------------------------------------------------------------------
MPEG2, 480p24 /1.001 (16:9) with pulldown flags
Removing MPEG2 pulldown...
Muxing video to Matroska...
The MPEG2 stream is a mixture of video and movie content.
The pulldown cannot be removed from this type of MPEG2 stream.
Will have to abort processing and redo everything.
Muxing video to Matroska...

The MPEG2 stream is not a mixture I'm pretty sure.
How do you know? This "is a mixture" comment does not mean to say that the movie in itself is a mixture of native movie and video content. The comment means that the MPEG2 encoder has produced a mixture or movie and video type encoding (some frames are encoded progressively, others interlaced). That happens very often with MPEG2 DVDs.

Encoder888
22nd July 2008, 04:30
This has probably been asked before, but has anyone heard anything about when we can expect a DTS-HD decoder capable of fully decoding 7.1 DTS-HD ? So far I've only encountered one title with DTS-HD 7.1 (The Bank Job) and I was surprised to find out a decoder out there simply doesn't exist that fully converts DTS-HD 7.1 without downsizing to 5.1, for eac3to to use... :(

Coolpplse
22nd July 2008, 05:16
This has probably been asked before, but has anyone heard anything about when we can expect a DTS-HD decoder capable of fully decoding 7.1 DTS-HD ? So far I've only encountered one title with DTS-HD 7.1 (The Bank Job) and I was surprised to find out a decoder out there simply doesn't exist that fully converts DTS-HD 7.1 without downsizing to 5.1, for eac3to to use... :(

Look back at the first post

The ArcSoft DTS decoder seems to be perfect for DTS and DTS-HD decoding. It seems to support every format and channel configuration that exists including 6.1 and 7.1.

This is now the best decoder for such conversion replacing Sonic.

Also tried it myself and it works with Flash Point's DTS HD Master Audio 7.1 track, thanks Madshi!

Encoder888
22nd July 2008, 06:00
I see, wow I can't believe I missed that. Two quick questions then:

Is there a way to only get the decoder or do you have to get the whole Total Media Theater?

And second, if I've used Sonic to this point on tracks that it's been able to perfectly decode that doesnt mean that ArcSoft would have done a better job, does it? In other words, I won't get better results if I reencode all of my files with Arcsoft, correct? ArcSoft helps on tracks where Sonic fails, but on ones where they would both work, ArcSoft doesnt outperform Sonic, does it ?

Coolpplse
22nd July 2008, 07:31
I see, wow I can't believe I missed that. Two quick questions then:

Is there a way to only get the decoder or do you have to get the whole Total Media Theater?

And second, if I've used Sonic to this point on tracks that it's been able to perfectly decode that doesnt mean that ArcSoft would have done a better job, does it? In other words, I won't get better results if I reencode all of my files with Arcsoft, correct? ArcSoft helps on tracks where Sonic fails, but on ones where they would both work, ArcSoft doesnt outperform Sonic, does it ?

I got TotalMedia Extreme, and the decoders seem locked to the whole package to the point where if you got the 15 day trial and it expires, the codec's refuse to function... and no I don't think you can only get the decoders themselves...

In my honest opinion I always felt sketchy to Sonic's output which was why I never attempted this DTS HD conversion since it was confirmed that it strangely goes up to 6.1 but not 7.1 which gives me some goose bumps that it may only be decoding DTS/DTS ES core tracks instead of the actual Lossless track.... there was no way for me to verify this either with my setup sound quality wise (using 4.1 at the moment) so this is just my pure opinion to the situation with Sonic's output.

EPiPH0NE
22nd July 2008, 07:55
I
And second, if I've used Sonic to this point on tracks that it's been able to perfectly decode that doesnt mean that ArcSoft would have done a better job, does it?



IMHO ArcSoft decoders sound better then Sonic. ArcSoft seems to give me a better sounding mix all the way from the sub range to the surrounds. I don't get really high, overly loud surrounds like I get with Sonic/libav. Since I only use 5.1 I get a bonus with Arcsoft as I can get a nice 7.1 -> 5.1 downmix that makes it that much better then Sonic. Just my 2 tokes. YMMV.

Encoder888
22nd July 2008, 08:14
Wow... I'm currently downloading ArcSoft and I will encode a DTS-HD 5.1 track that I previously encoded with Sonic to FLAC and compare the results... If the file sizes are exactly the same, then there shouldnt be any difference, right? Well, one thing about decoding DTS-HD with Sonic is that it ignores dialog normalization...

madshi
22nd July 2008, 09:13
Sonic and ArcSoft decode DTS bitwise identical, as long as the XXCh DTS extension isn't used. If the XXCh DTS extension is used Sonic falls back to 5.1 decoding. The XXCh DTS extension can be used for either 6.1 and 7.1 channels. For 6.1 usually the XCh DTS extension is used, though, which is fully supported by the Sonic decoder. ArcSoft supports everything.

I don't see any need to redo Sonic DTS-HD -> FLAC tracks, as long as Sonic had output the full number of channels.

The Sonic DTS decoder is the only one which was ever really useful from Sonic, though. All the other Sonic audio decoders are rather bad.

Warrex
22nd July 2008, 09:43
Warrex:
Any chance you could include an option to demux the audio AND subtitle streams (thanks for including pgs support btw.) only?

Madshi:
I generally don't like adding hundreds of options because every new option makes the eac3to help more complicated. Yes, an option to demux only XYZ would save some time, but saving time is the only thing you'd gain which doesn't make adding such an option very attractive for me. Check out the "eac3to and more GUI" (see first post). Maybe that GUI will do the trick for you.

I personally like adding options because it gives you flexibility. You could categorise them if you want to. Lame.exe works fine for people even with that many options. If one of eac3tos main design goals is simplicity you should rename it (as already the name is confusing) and really start working on a GUI yourself .

Using "eac3to and more GUI" is actually slower for me (no checkboxes for tracks) and its whole design is not very streamlined in my book.

Furthermore the option I requested is one that actually even every newbie would understand in contrast to many other ones of eac3to (which are of course still necessary and useful). But after all it's your call and I will have to keep using tsMuxer for demuxing as saving time and/or disk space is big for me.

Encoder888
22nd July 2008, 09:49
Thanks for the info madshi,

so, you're basically saying for any DTS-HD that's not higher than 5.1, Sonic and ArcSoft would produce identical results. well, what about dialog normalization though, isnt there going to be a difference there? and if so, is that gonna result in a difference in file sizes, or is the only way to tell be by listening...? sorry if those are dumb questions.

um, on an unrelated note, for AC3 decoding - i have Nero 8, which also has the Blu-Ray/HD-DVD plug-in, but i take it, it's not used by eac3to since I dont have Nero 7? So, if I have the plug-in with Nero 8 but not Nero 7, the Nero (E-)AC3 decoder is not going to be used for AC3 decoding?

I cant tell if it is being used, or if it is libav/ffmpeg, since eac3to isn't telling me which one its using... does that mean it's using libav/ffmpeg? if it was using Nero, would it say "using Nero AC3" or anything like that? I realize that libav/ffmpeg AC3 decoding doesnt produce a 100% identical copy of the original AC3 stream, which terrifies me a little bit, and I'd much rather use Nero. Any way I can do that w/o getting Nero 7?

Sorry, that was too many questions...

Coolpplse
22nd July 2008, 09:54
Sonic and ArcSoft decode DTS bitwise identical, as long as the XXCh DTS extension isn't used. If the XXCh DTS extension is used Sonic falls back to 5.1 decoding. The XXCh DTS extension can be used for either 6.1 and 7.1 channels. For 6.1 usually the XCh DTS extension is used, though, which is fully supported by the Sonic decoder. ArcSoft supports everything.


I'm actually quite curious about why these Lossless DTS HD MA/DD TrueHD DirectShow decoders can go up to 24 bit 96khz in output while current Blu-Ray/HD-DVD Playback software limits all of this to 16 bit 48khz... Was it really cause of PAP? Or do these apps simply limit the analog output to 16 Bit 48 Khz for compatibility with various sound cards? Even with my Xi-Fi prelude, I never got ffdshow to output beyond 16 Bit 48khz analog from FLAC files with higher bit depths and sample rates until I used madFlac...

madshi
22nd July 2008, 13:15
well, what about dialog normalization though, isnt there going to be a difference there?
I already answered that:

"Sonic and ArcSoft decode DTS bitwise identical, as long as the XXCh DTS extension isn't used."

um, on an unrelated note, for AC3 decoding - i have Nero 8, which also has the Blu-Ray/HD-DVD plug-in, but i take it, it's not used by eac3to since I dont have Nero 7?
See first post of this thread.

I cant tell if it is being used, or if it is libav/ffmpeg, since eac3to isn't telling me which one its using...
eac3to should tell you which decoder it uses.

I'm actually quite curious about why these Lossless DTS HD MA/DD TrueHD DirectShow decoders can go up to 24 bit 96khz in output while current Blu-Ray/HD-DVD Playback software limits all of this to 16 bit 48khz... Was it really cause of PAP? Or do these apps simply limit the analog output to 16 Bit 48 Khz for compatibility with various sound cards? Even with my Xi-Fi prelude, I never got ffdshow to output beyond 16 Bit 48khz analog from FLAC files with higher bit depths and sample rates until I used madFlac...
Cyberlink's decoder always downconverts everything to 16bit internally. They probably do that just to play safe. Technically it's no problem decoding to 24bit 96khz at all.

ffdshow uses libav for decoding which currently is limited to 16bit. madFlac uses the original FLAC source code which doesn't know any such limitations.

Encoder888
22nd July 2008, 13:30
@madshi

You're right, sorry I tend to repeat myself... I was just wondering about dialogue normalization, but then I remembered that DTS doesn't use dialogue normalization at all, it's Dolby's evil creation :P, so clearly the Sonic DTS decoder is gonna ignore it, because there is no such thing as dialnorm with DTS to begin with, be that DTS-HD or any kind of DTS stream.

I hate to be a pain, but with AC3 tracks eac3to really doesn't tell me which decoder it uses. Here's what I get:

eac3to v2.54
command line: D:\eac3to\eac3to.exe 00001.m2ts 3: Audio.ac3
------------------------------------------------------------------------------
M2TS, 1 video track, 4 audio tracks, 6 subtitle tracks, 1:21:05
1: h264/AVC, 1080p24 /1.001 (16:9)
2: DTS Master Audio, English, 5.1 channels, 24 bits, 48khz, -8ms
3: AC3, French, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB, -19ms
4: AC3, Spanish, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB, -19ms
5: AC3, English, 2.0 channels, 224kbit/s, 48khz, dialnorm: -27dB, -15ms
6: Subtitle (PGS), English
7: Subtitle (PGS), Spanish
8: Subtitle (PGS), Korean
9: Subtitle (PGS), Chinese
10: Subtitle (PGS), French
11: Subtitle (PGS), Spanish
[a03] Extracting audio track number 3...
[a03] Removing dialog normalization...
[a03] Applying (E-)AC3 delay...
[a03] Creating file "Audio.ac3"...
Video track 1 contains 116639 frames.
eac3to processing took 7 minutes, 57 seconds.
Done.


And I assume since I have the Nero plug-ins, but NOT Nero 7, it just uses libav/ffmpeg... :( Correct ?

Thanks again.

About the whole downconverting to 16-bit - I use CoreFLAC, doesn't that fully decode 24-bit, regardless of whether its by itself or in a container?

nautilus7
22nd July 2008, 13:40
Since source and output track is AC3 why do you think that a decoder is needed? Does eac3to anywhere say that is decoding the track? No, it says "extracting"...

Encoder888
22nd July 2008, 13:47
Oops, sorry as you can see I'm a newbie... So, I did try a different output format, and it does indeed use libav like I thought. Thanks anyway... For putting up with my questions hah.

madshi
22nd July 2008, 13:53
but then I remembered that DTS doesn't use dialogue normalization at all, it's Dolby's evil creation :P, so clearly the Sonic DTS decoder is gonna ignore it, because there is no such thing as dialnorm with DTS to begin with, be that DTS-HD or any kind of DTS stream.
Actually DTS does know dialnorm, it's just rarely used, and I believe both Sonic and ArcSoft ignore it.

EPiPH0NE
22nd July 2008, 21:39
Bit identical or not I can hear a difference between Sonic and ArcSoft and even between libav and Nero. Maybe it's the way I have my system set up but I am not using HTPC like many of you so maybe that's the difference.

nautilus7
22nd July 2008, 21:49
Bit identical or not I can hear a difference between Sonic and ArcSoft.There must be something wrong with your ears if you hear a difference between bit-identical audio data.

mrr19121970
22nd July 2008, 21:53
@madshi

I just used your tool for the 1st time to demux Gone Baby Gone (as TSMUXER didn't seem to like it).

I have a request. The file log.txt (and file names) produces:

M2TS, 1 video track, 8 audio tracks, 11 subtitle tracks, 1:53:55
1: VC-1, 1080p24 /1.001 (16:9)
2: RAW/PCM, 5.1 channels, 16 bits, 48khz
3: AC3, 5.1 channels, 640kbit/s, 48khz
4: AC3, 5.1 channels, 640kbit/s, 48khz
5: DTS, 5.1 channels, 24 bits, 1536kbit/s, 48khz
6: AC3, 5.1 channels, 640kbit/s, 48khz
7: DTS, 5.1 channels, 24 bits, 1536kbit/s, 48khz
8: AC3, 5.1 channels, 640kbit/s, 48khz
9: AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB

etc, however without any options, I get the info:

1) 00000.mpls, 00000.m2ts, 1:53:55
- VC-1, 1080p24 /1.001 (16:9)
- RAW/PCM, English, multi-channel, 48khz
- AC3, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- DTS, Italian, multi-channel, 48khz
- AC3, Italian, multi-channel, 48khz
- DTS, German, multi-channel, 48khz
- AC3, German, multi-channel, 48khz
- AC3, English, stereo, 48khz


My request is, can we also get the language in the log.txt (and file names) too ?

Thanks for looking, Mike.

EPiPH0NE
22nd July 2008, 22:33
There must be something wrong with your ears if you hear a difference between bit-identical audio data.

I must have super powers then :p Must be all the w33d. When I use libav to do TrueHD 5.1 -> PCM 5.1 I get low voulme sub channel and high volume surrounds that get way too loud during a loud scene. The same with Sonic and DTS-MA -> PCM. When I use ArcSoft/Nero decoders I get a much more equalized sound out of my Sony DG720. Maybe it's because I am using an NMT and the chip doing the PCM audio processing is different then on your typical HTPC set up.

xkodi
22nd July 2008, 22:54
Bit identical or not I can hear a difference between Sonic and ArcSoft

if you open with hex editor the DTS track decoded with Sonic and the same track decoded with ArcSoft you will see that they are byte by byte identical, so they are exactly the same and thus it is simply impossible to sound different, so you are experiencing something that in medicine is called placebo effect.

lexor
23rd July 2008, 03:04
if you open with hex editor the DTS track decoded with Sonic and the same track decoded with ArcSoft you will see that they are byte by byte identical, so they are exactly the same and thus it is simply impossible to sound different, so you are experiencing something that in medicine is called placebo effect.

didn't someone provide proof a few pages back that newer Sonic decoders are not bit identical to old Sonic and ArcSoft?

EPiPH0NE
23rd July 2008, 06:18
if you open with hex editor the DTS track decoded with Sonic and the same track decoded with ArcSoft you will see that they are byte by byte identical, so they are exactly the same and thus it is simply impossible to sound different, so you are experiencing something that in medicine is called placebo effect.

Nope, no placebo effect. I just tested this recently with The Bank Job BluRay. I did a small test with a loud scene that with Sonic, during the loud part, the surround channels would become VERY loud and almost unbearble, at this point hurting my ears. As an example, Alien Vs. Predator 2 was rough on the ears using Sonic. If I turn the volume down, then I can't hear the vocals well enough. Yes, I could fix these problems by changing the speaker volumes each time but then I would have to change it back for AC3/DTS, as my rears are already at -2 and everything sounds good using AC3/DTS as is. It's just PCM that usually gives me these problems.

When I played the clip back, at the same volume, using ArcSoft I get loud rears but they are not overdriven and seem to go right to the limit of cuttoff but come out sounding perfect. I dunno. Time for a night cap :D

Encoder888
23rd July 2008, 08:35
I'm assuming you're testing this with FLAC, even though it shouldnt really matter (except obviously in the case of the Bank Job, as FLAC is your only option for 7.1)

Also, you can't really test this with the Bank Job, because it has DTS-HD 7.1 which only ArcSoft can fully decode into 7.1 FLAC, Sonic downgrades it to 5.1, so that would explain that difference...

With AvP 2, it's a funny coincidence because I also tested that one, decoded into FLAC with both Sonic and ArcSoft and I got bit-to-bit identical results, both files are exactly 2,903,150,592 bytes (on disk) :P and they sound exactly, I mean exactly the same, its the same file.

Even if somehow the different decoding changed the mapping of the loundness of the channels or whatever, that would result in a slight difference in the two files wouldnt it.

I think you're trying to hear it differently :D

lexor - read thru the last page, madshi answered this twice...

nautilus7
23rd July 2008, 08:40
@EPiPH0NE

What is your point with all these? What you 're saying is just not possible.

madshi
23rd July 2008, 09:03
I just used your tool for the 1st time to demux Gone Baby Gone (as TSMUXER didn't seem to like it).

I have a request. The file log.txt (and file names) produces:

M2TS, 1 video track, 8 audio tracks, 11 subtitle tracks, 1:53:55
1: VC-1, 1080p24 /1.001 (16:9)
2: RAW/PCM, 5.1 channels, 16 bits, 48khz
3: AC3, 5.1 channels, 640kbit/s, 48khz
4: AC3, 5.1 channels, 640kbit/s, 48khz
5: DTS, 5.1 channels, 24 bits, 1536kbit/s, 48khz
6: AC3, 5.1 channels, 640kbit/s, 48khz
7: DTS, 5.1 channels, 24 bits, 1536kbit/s, 48khz
8: AC3, 5.1 channels, 640kbit/s, 48khz
9: AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB

etc, however without any options, I get the info:

1) 00000.mpls, 00000.m2ts, 1:53:55
- VC-1, 1080p24 /1.001 (16:9)
- RAW/PCM, English, multi-channel, 48khz
- AC3, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- DTS, Italian, multi-channel, 48khz
- AC3, Italian, multi-channel, 48khz
- DTS, German, multi-channel, 48khz
- AC3, German, multi-channel, 48khz
- AC3, English, stereo, 48khz

My request is, can we also get the language in the log.txt (and file names) too ?
They are in the log file for me! Also the demuxed file names contain the language name for me. I'm not sure why it doesn't work for you. The only explanation for me would be if for whatever reason the "CLIPINF" directory was not available to eac3to when you did the actual demuxing. Don't know why that should have been the case, though...

didn't someone provide proof a few pages back that newer Sonic decoders are not bit identical to old Sonic and ArcSoft?
Yeah, that might be an explanation for why EPiPH0NE hears a difference. Which Sonic version are you using, EPiPH0NE? Also are we really talking about DTS decoding here? Or maybe about other codecs, too? Remember, Sonic is only good for DTS decoding. And also only for 5.1 tracks.

mrr19121970
23rd July 2008, 09:49
They are in the log file for me! Also the demuxed file names contain the language name for me. I'm not sure why it doesn't work for you. The only explanation for me would be if for whatever reason the "CLIPINF" directory was not available to eac3to when you did the actual demuxing. Don't know why that should have been the case, though...


Yes, that is a good explanation. As I've never used your program before (and therefore didn't really know what it would output) I copied the 00000.m2ts file into another directory to demux.

I can't see an option that allows me to produce a single file with selected tracks (eg video and 1 audio only). The nearest seems to be:

eac3to.exe 00000.m2ts 2: 00000.vc1 4: 00000.ac3

followed by tsmuxer to put them back together. Is there a more efficient (one pass) way ?

Thanks. Mike.

madshi
23rd July 2008, 10:33
I can't see an option that allows me to produce a single file with selected tracks (eg video and 1 audio only). The nearest seems to be:

eac3to.exe 00000.m2ts 2: 00000.vc1 4: 00000.ac3

followed by tsmuxer to put them back together. Is there a more efficient (one pass) way ?
No, there isn't a one pass way. You can either do as you suggested (eac3to followed by TsMuxer) or you can ask eac3to to mux the video track to MKV. The audio tracks will then still be stored as separate files. In that case you'll have to use mkvtoolnix to add the audio files into the MKV. So in order to create a single movie file with both video + audio in it, you need to use either eac3to+tsmuxer (creates m2ts) or eac3to+mkvtoolnix (creates mkv).

Personally, I'm muxing the video to MKV and I'm leaving the audio tracks as external files. My HTPC plays movies just fine this way. Plus, it's much easier for me this way to mix video and audio tracks of different releases. E.g. if there's a different release of a movie with a better audio track but worse video track, I just need to replace the audio track and I'm done. No need to touch the video MKV in that case...

mrr19121970
23rd July 2008, 11:42
shame...

if you ever fancy creating a one pass solution, i'm sure all us TVIX owners will appreciate it.

mike.

madshi
23rd July 2008, 12:19
if you ever fancy creating a one pass solution, i'm sure all us TVIX owners will appreciate it.
I don't think I'll do m2ts/ts muxing. Maybe some day I'll do a one pass solution for MKV. But probably not anytime soon.

lexor
23rd July 2008, 18:50
the help file says:
Decoded audio data can be stored as / encoded to:
(3) WAVs (multiple mono WAV files, PCM only)

But how do you get that? There is no switch for outputting 6 WAVs. Do I have to give it 6 filenames in command line, if so in which order?

madshi
23rd July 2008, 18:55
But how do you get that? There is no switch for outputting 6 WAVs. Do I have to give it 6 filenames in command line, if so in which order?
You have to take the help literally... :)

"eac3to sourcefile dst.wavs"

lexor
23rd July 2008, 19:49
Awesome. Still, maybe an extra note in the help, for the less attentive readers, is in order.

Encoder888
24th July 2008, 11:32
Has anyone tried extracting the TrueHD audio from 21 yet? Hi-Def Digest says it's supposed to be 24-bit, but libav reports it only as 16-bit. I mean, at first it creates that 24-bit file and then it says audio only has 16-bit and it deletes all the 0 bytes. I'm assuming it's all good, I was just wondering if anyone has gotten different results by any chance, cause that's the first time I've seen a discrepancy between a Hi-Def Digest's review and what I got, so... They must be wrong I guess.Still, please report if you've messed with 21.

nautilus7
24th July 2008, 14:33
that's the first time I've seen a discrepancy between a Hi-Def Digest's review and what I got, so...
Me, on the contrary, I have seen a lot of discrepancies between Hi-Def and actual disc data. Hi-Def is wrong, don't worry about this.

rickardk
24th July 2008, 16:42
Hmmmmm... Does it help if you use the "-60i" option? Can I have a sample of the DVD (first 50MB should be enough, if the eac3to complaint still occurs with those 50MB).


How do you know? This "is a mixture" comment does not mean to say that the movie in itself is a mixture of native movie and video content. The comment means that the MPEG2 encoder has produced a mixture or movie and video type encoding (some frames are encoded progressively, others interlaced). That happens very often with MPEG2 DVDs.

Sorry, been away for a couple of days.
To sum up:
Wrong length (reports about 14 hours when using 1.vob+2.vob etc), frame rate (24p when using extracted mpeg-2, 30p when using vob), aspect ratio and ac3 delay (about 475ms ..should be more like 75 ms).

www.earselect.se/test.vob

rebkell
24th July 2008, 17:49
Can eac3to deal with aac audio tracks? I'll soon be getting an HD-PVR from Hauppauge and I know it records in .ts files with h264 video and aac audio.

madshi
24th July 2008, 20:27
Wrong length (reports about 14 hours when using 1.vob+2.vob etc), frame rate (24p when using extracted mpeg-2, 30p when using vob), aspect ratio and ac3 delay (about 475ms ..should be more like 75 ms).
Argh, so in other words: Everything is wrong. ;(

Thanks for the sample, I'll give it a try later...

Can eac3to deal with aac audio tracks? I'll soon be getting an HD-PVR from Hauppauge and I know it records in .ts files with h264 video and aac audio.
Not yet, but it's on my to do list...

rebkell
24th July 2008, 21:16
Can eac3to deal with aac audio tracks? I'll soon be getting an HD-PVR from Hauppauge and I know it records in .ts files with h264 video and aac audio.

Not yet, but it's on my to do list...

Excellent, looking forward to it.

sehgal.v7
25th July 2008, 16:14
Can someone tell me, if i'm correct. I tried to simplify "evaluation of available decoders:" for myself:-

SONIC
DTS-HD Master Audio 5.1 16-bit 48kHz
Very Good // removes Dialog Normalization
DTS-HD Master Audio 5.1 24-bit 48kHz
Very Good // removes Dialog Normalization
DTS-HD Master Audio 5.1 24-bit 96kHz
Very Good // removes Dialog Normalization
DTS-HD Master Audio 7.1 16-bit 48kHz
Good // removes Dialog Normalization but also downconverts to 5.1
DTS-HD Master Audio 7.1 24-bit 48kHz
Good // removes Dialog Normalization but also downconverts to 5.1

Dolby TrueHD 5.1 16-bit 48kHz
Suffers from Dialog Normalization
Dolby TrueHD 5.1 20-bit 48kHz
Suffers from Dialog Normalization + Downconvert to 16-bit
Dolby TrueHD 5.1 24-bit 48kHz
Suffers from Dialog Normalization + Downconvert to 16-bit
Dolby TrueHD 5.1 24-bit 96kHz
Suffers from Dialog Normalization + Downconvert to 16-bit
Dolby TrueHD 6.1 16-bit 48kHz
Suffers from Dialog Normalization
Dolby TrueHD 7.1 16-bit 48kHz
Suffers from Dialog Normalization

Nero
DTS-HD Master Audio 5.1 16-bit 48kHz
Can remove Dialog Normalization but decodes only Core
DTS-HD Master Audio 5.1 24-bit 48kHz
Can remove Dialog Normalization but decodes only Core
DTS-HD Master Audio 5.1 24-bit 96kHz
Can remove Dialog Normalization but decodes only Core
DTS-HD Master Audio 7.1 16-bit 48kHz
Can remove Dialog Normalization but decodes only Core
DTS-HD Master Audio 7.1 24-bit 48kHz
Can remove Dialog Normalization but decodes only Core

Dolby TrueHD 5.1 16-bit 48kHz
Perfect
Dolby TrueHD 5.1 20-bit 48kHz
Perfect
Dolby TrueHD 5.1 24-bit 48kHz
Perfect
Dolby TrueHD 5.1 24-bit 96kHz
Perfect
Dolby TrueHD 6.1 16-bit 48kHz
Perfect upto 5.1
Dolby TrueHD 7.1 16-bit 48kHz
Perfect upto 5.1

LibAV/ffmpeg
DTS-HD Master Audio 5.1 16-bit 48kHz
Can only Decode Core upto 5.1
DTS-HD Master Audio 5.1 24-bit 48kHz
Can only Decode Core upto 5.1
DTS-HD Master Audio 5.1 24-bit 96kHz
Can only Decode Core upto 5.1
DTS-HD Master Audio 7.1 16-bit 48kHz
Can only Decode Core upto 5.1
DTS-HD Master Audio 7.1 24-bit 48kHz
Can only Decode Core upto 5.1

Dolby TrueHD 5.1 16-bit 48kHz
Good or Perfect
Dolby TrueHD 5.1 20-bit 48kHz
Good or Perfect
Dolby TrueHD 5.1 24-bit 48kHz
Good or Perfect
Dolby TrueHD 5.1 24-bit 96kHz
Good or Perfect
Dolby TrueHD 6.1 16-bit 48kHz
Good or Perfect
Dolby TrueHD 7.1 16-bit 48kHz
Good or Perfect

Arcsoft
DTS-HD Master Audio 5.1 16-bit 48kHz
Perfect
DTS-HD Master Audio 5.1 24-bit 48kHz
Perfect
DTS-HD Master Audio 5.1 24-bit 96kHz
Perfect
DTS-HD Master Audio 7.1 16-bit 48kHz
Perfect
DTS-HD Master Audio 7.1 24-bit 48kHz
Perfect

Regards,
Sehgal

madshi
25th July 2008, 16:28
@Sehgal, why don't you check the first post of this thread? I've explained everything there. Your list is not fully correct. E.g. the Sonic DTS decoder is not "very good", it's "perfect" for all 5.1 and most 6.1 tracks. The Sonic TrueHD decoder is unusable. The libav TrueHD decoder is perfect. All of this is explained in the first post of this thread.

sehgal.v7
25th July 2008, 16:33
@madshi, i know you explained in your first post only. I just wanted to clarify. Thank you for your prompt response. One more thing i wanted to ask is that, when i demux original bluray m2ts file, total size of demuxed files is mostly around 90% of actual file, does the BluRay container take all that space?

P.S. And hows Nero TrueHD Decoder? Does it have any limitations?

Regards,
Sehgal

madshi
25th July 2008, 17:54
One more thing i wanted to ask is that, when i demux original bluray m2ts file, total size of demuxed files is mostly around 90% of actual file, does the BluRay container take all that space?
I guess so. m2ts is the most space consuming container of all containers that I know.

P.S. And hows Nero TrueHD Decoder? Does it have any limitations?
Yes, it's limited to 5.1 channels.

lithiumus
25th July 2008, 18:45
First, let me say, thanks for the awesome software and great work continuing to improve it. It's fast, efficient, simple and works a charm!

I'm new to this so please forgive my confusion. I've been doing some searches and trying to read up the last week and I'm trying to get some clarity on the concept...

Is there a difference between "demuxing" and "decoding" or are they the same thing?

I see all the requirements / suggestions for certain codecs to decode and encode which makes sense but does the demuxing use the decoders?

I ask because there are tools like EVOdemux and TsMuxer that allows you to demux audio, extract AC3 or DTS cores, downconvert from DTS-HD, etc but make no mention of what codecs it requires or are using?

Thanks in advance!

nautilus7
25th July 2008, 19:59
You demux a container to get the streams inside as they are (untouched).

You extract the DTS core of a DTS-HD track.

You decode an AC3, DTS, TrueHD or any other compressed audio format to uncompressed audio data. Then you encode (compress) them to another format.

lithiumus
25th July 2008, 20:31
Thanks Nautilus. That clarifies a lot.

Demuxing audio will extract audio streams untouched so no codecs are involved. As soon as you do any conversion, a decode and encode is required.

I assume that extracting AC3 and DTS cores from EAC3, TrueHD or DTS-HD requires decoding? or does it?

madshi
25th July 2008, 21:31
I assume that extracting AC3 and DTS cores from EAC3, TrueHD or DTS-HD requires decoding? or does it?
No. Demuxing and extracting works on the bitstream level. That means the compressed audio data is not changed. It's just ripped into pieces. However, please note that E-AC3 and TrueHD are different between Blu-Ray and HD DVD. On Blu-Ray both have a core (although technically Blu-Ray TrueHD tracks do not really have a "core", instead they just contain additional AC3 frames which the TrueHD stream does not depend on). On HD DVD neither has a core. DTS-HD has a core on both Blu-Ray and HD DVD.

sehgal.v7
26th July 2008, 08:29
@Madshi
I worked on an sample of original m2ts file. Actual size of demuxed contents is 84.74MB// with TS container it's 93.80MB(10.69% Increase) // with M2TS container it's 95.88MB(13.1% Increase).

Question- I tried compiling original VC1 stream with original TrueHD stream (Without Core) to MKV Container >
command line: eac3to.exe 1.vc1+2.thd 3.mkv
VC-1, 1080p24 /1.001 (16:9)
Muxing video to Matroska...
-----------------
It doesn't do anything from here// Is anything wrong in command line??
I think MKV Container doesn't support TrueHD Stream or I think TrueHD Stream can't be added in any container without Core, any suggestions?

Regards,
Shroff

madshi
26th July 2008, 08:39
command line: eac3to.exe 1.vc1+2.thd 3.mkv
That won't work. Using two different input files with a "+" in between is only supported for streams of the same type. So you could do "1.vc1+2.vc1". But you cannot combine two different formats that way. Furthermore eac3to can currently only mux one *video* track to MKV. eac3to does not mux audio tracks into MKV. You need to use mkvtoolnix for that purpose.

I think MKV Container doesn't support TrueHD Stream or I think TrueHD Stream can't be added in any container without Core, any suggestions?
I'm not sure if there's already a specification for storing TrueHD tracks in the MKV container. Maybe there is, maybe not. Anyway, none of the MKV tools support it at this time, as far as I know. Your best option would probably be to transcode the TrueHD track to FLAC. That's a lossless process. You won't lose any audio quality that way. And FLAC can be stored in MKV without any problems...

sehgal.v7
26th July 2008, 09:05
@Madshi
Thank you sir for your guidance & hard work. mkvmerge too doesn't support TrueHD stream. I decoded TrueHD track to FLAC with Nero Audio Decoder 2 coz my track is Dolby TrueHD 5.1 16-bit so hope its better than libav/ffmpeg (actually i paid for that plugin, that's why i preferred decoding by it & it's not a 7.1 track too). Now the problem came that mkvmerge isn't accepting VC1 track. So i have to copy VC1 track to AVI container with help of VC12Avi, it added 0.07% Bytes// after that i compiled AVI File + Flac File into MKV Container, & it just added 0.04% Bytes. Now i'm saving 13% space comparable to M2TS container.

Can other masters tell me is there any worth saving backups in M2TS containers?? And is there any other container that can save VC1 & TrueHD(without Core) directly without any conversion?

Regards
Shroff

madshi
26th July 2008, 09:19
Now the problem came that mkvmerge isn't accepting VC1 track. So i have to copy VC1 track to AVI container with help of VC12Avi, it added 0.07% Bytes// after that i compiled AVI File + Flac File into MKV Container, & it just added 0.04% Bytes. Now i'm saving 13% space comparable to M2TS container.
I'd suggest using eac3to to mux the VC-1 track directly to MKV and to transcode the TrueHD track to FLAC. You can do both in one step (e.g. "eac3to source.m2ts movie.mkv"). Afterwards use mkvtoolnix to add the FLAC file to the MKV created by eac3to. mkvtoolnix can handle MKV files with VC-1 tracks in them. mkvtoolnix can just not handle raw VC-1 streams...

Can other masters tell me is there any worth saving backups in M2TS containers??
Not sure what you mean with that...

sehgal.v7
26th July 2008, 09:42
@Madshi
Now first i removed other tracks expect VC1 Stream from M2TS with TSMuxer, then command line: eac3to.exe 1.m2ts 1.mkv >
M2TS, 1 video track, 0:01:20
1: VC-1, 1080p24 /1.001 (16:9)
[v01] Extracting video track number 1...
[v01] Muxing video to Matroska...
-------------------

Nothing happens after that// waiting since 15mins

Can other masters tell me is there any worth saving backups in M2TS containers vs MKV Containers??
Hope i clarify now// I meant is there any loss saving MKV container.. as i read somewhere that extra space that M2TS container takes, its for Scrambling control, blah, blah..

madshi
26th July 2008, 18:54
Now first i removed other tracks expect VC1 Stream from M2TS
Why? You don't need to do that. Just do "eac3to original.m2ts movie.mkv" with the original unchanged m2ts file.

Nothing happens after that// waiting since 15mins
Don't know why. Make sure that you have the latest Haali Media Splitter version installed. Which OS are you using?

I meant is there any loss saving MKV container.. as i read somewhere that extra space that M2TS container takes, its for Scrambling control, blah, blah..
Technically there is no loss worth mentioning when remuxing m2ts to MKV. However, current external media player hardware seems to prefer m2ts over MKV. So you might have a certain loss of compatability...

73ChargerFan
26th July 2008, 23:48
mkvtoolnix won't mux raw .vc1 files, and totally screws up 1 out of 10 files (demux bd with eac3to, convert lossless to dts & flac) so I'm now using Haali's mkv muxer. No problems so far.

EPiPH0NE
27th July 2008, 03:00
However, current external media player hardware seems to prefer m2ts over MKV. So you might have a certain loss of compatability...

Looks this is gonna change soon. From new NMT beta firmware:


1. New MKV demux from Haali, improved MKV decode performance above 33Mbps from local
HDD, SMB and NFS shares. HTTP performance still below 20Mbps

:)

lexor
27th July 2008, 03:32
Looks this is gonna change soon. From new NMT beta firmware:
what's NMT?

sehgal.v7
27th July 2008, 03:51
@Madshi
Problem was with my Haali Media Splitter, it was last year, now everything is working like a charm. Thank you very much sir. Your application saved me, as i wasn't able to experience true audio HD. Now i can hear TrueHD and DTSHD MA tracks on my PC with help of Loseless Codec - FLAC and remove unwanted audio streams to save space. Day by Day you're adding new features to your app and limiting need of any other app. I don't think in coming few months, i'll be needing any app other than eac3to.

Compatability isn't a loss for me as i've to play it on PC only..

One last question :) should i use Nero Audio Decoder for TrueHD tracks which are upto 5.1, is Nero decoding better than LibAV//FFmpeg except 7.1 limit? & can you tell what command line you instruct to Eac3to for encoding into FLAC// is it compression level 8??

Found a comparision of lossless codecs, it might be helpful for some hxxp://www.synthetic-soul.co.uk/comparison/lossless/

Edited- Meanwhile i got Rambo 4 with DTS-HD MA 7.1 48 kHz/24-bit track// now for me my ArcSoft DTS Decoder (1.0.2.2) is not working correctly. How can i remove DTS Core from DTSHD and whats problem with my decoder?? I'm using ArcSoft TotalMedia Theatre v2.1.4.108

Thanking You :thanks:,
Shroff

sehgal.v7
27th July 2008, 04:41
From some article by Amir (Retired Digital Media/HD DVD insider (circa fall 2007)) -

FLAC is not in there because no company in DVD Forum proposed it! No representation, no selection . We for example, proposed WMA Pro and got it selected as optional (in both DVD and hence, HD DVD).

Some advantages of other codecs has been mentioned. Here are some more:

1. TrueHD has layered decoding. Decode 2 channels and you automatically get the downmixed version. I don't think FLAC has this.

2. TrueHD is based on MLP which was already a standard in DVD-A, a DVD Forum standard.

3. DTS is a layered coding on top of DTS so provides backward compatibility, such is not true of FLAC.

4. It takes a lot of political will to get something approved in there. That is why we did not push for WMA Pro to become mandatory and cost us incredible amount of resources to get VC-1 in there.

5. Patents, patents, patents. Just because something is open source, it says nothing about who owns the patents or mean that it is "free". DVD Forum would not accept technology where this is no clear licensing authority behind the technology (or at least they would use this as a reason to disqualify). This is why there is a patent pool for VC-1 and we went as far as picking "MPEG"-LA.

kurt
27th July 2008, 08:18
what's NMT?
he meant the Popcorn Hour (NMT A-100)

swindmill
27th July 2008, 17:24
Similarly to this post:

http://forum.doom9.org/showthread.php?p=1085664#post1085664

I have ripped the nine inch nails live: beside you in time blu-ray and extracted/muxed the video into an .mkv.

PowerDVD plays this disc fine, but playing the .mkv results in pixelation and artifacting.

I can upload a sample of the .m2ts if necessary. What is the best method to cut it down to a smaller size in order to do so?

madshi
28th July 2008, 07:03
mkvtoolnix won't mux raw .vc1 files, and totally screws up 1 out of 10 files (demux bd with eac3to, convert lossless to dts & flac) so I'm now using Haali's mkv muxer. No problems so far.
Did you mux the raw video streams to MKV with mkvtoolnix? That's not recommended. You should use eac3to for that and then use mkvtoolnix only to add the external audio tracks into the MKV created by eac3to. That has never failed for me yet. Haali's muxer works fine in many cases. It usually never totally screws up. However, there are some cases where eac3to creates "better" MKVs compared to Haali's muxer...

Looks this is gonna change soon. From new NMT beta firmware:

1. New MKV demux from Haali, improved MKV decode performance above 33Mbps from local
HDD, SMB and NFS shares. HTTP performance still below 20Mbps

:)
Looks promising! We need more than 33Mbps for some Blu-Ray to MKV muxes, though.

One last question :) should i use Nero Audio Decoder for TrueHD tracks which are upto 5.1, is Nero decoding better than LibAV//FFmpeg except 7.1 limit?
Doesn't really matter. They output identical results.

can you tell what command line you instruct to Eac3to for encoding into FLAC// is it compression level 8??
eac3to uses the highest FLAC compression level.

Meanwhile i got Rambo 4 with DTS-HD MA 7.1 48 kHz/24-bit track// now for me my ArcSoft DTS Decoder (1.0.2.2) is not working correctly.
You need the ArcSoft DTS Decoder version 1.1.0.0 (or newer).

How can i remove DTS Core from DTSHD
You can use the "-core" parameter for that.

I have ripped the nine inch nails live: beside you in time blu-ray and extracted/muxed the video into an .mkv.
Which tool did you use for extraction/muxing? eac3to? Or something else?

PowerDVD plays this disc fine, but playing the .mkv results in pixelation and artifacting.
Using which decoder?

I can upload a sample of the .m2ts if necessary. What is the best method to cut it down to a smaller size in order to do so?
Yes, a sample would be helpful. You can use a hexeditor to cut the size down. E.g. this one: http://www.mh-nexus.de/

EPiPH0NE
28th July 2008, 07:58
Looks promising! We need more than 33Mbps for some Blu-Ray to MKV muxes, though.


Yeah, the current limit is 33Mbps as I found this out when I first tried to play my Transformers HD-DVD 1080p ES MKV back in Nov. 07 on my NMT. Haali will allow >33Mbps and should finally allow for full BluRay/HD-DVD 1080p ES video in MKV on the NMT. Still no multi channel FLAC but, I don't mind using (L)PCM, as optical storage space is cheaper then ever (for the price of 50 DVD-R's ($8-10$) I can store ~10 BluRay/HD-DVD projects) and if I'm already keeping 1080p ES video @10-25GB a pop what's aother 3-6GB for (L)PCM audio?. I think I will choose to sitck with TS/M2TS as I get hardware decoding instead of relying on software. I'm baked and it's time to go floss and brush :)

sehgal.v7
28th July 2008, 08:13
@Madshi
I'm using ArcSoft TotalMedia Extreme v1.0.9.4, in that dtsdecoderdll.dll seems to be 1.0.2.2 & when i checked update// it said no available update, i uninstalled it. Then i installed earlier version ArcSoft TotalMedia Extreme v1.0.6.28 and then updated it to v1.0.6.29. After that copying dtsdecoderdll.dll 1.1.0.0 and uninstalling v1.0.6.29, i installed v1.0.9.4 and replaced existing dtsdecoderdll.dll 1.0.2.2 with dtsdecoderdll.dll 1.1.0.0, its working. Now i'm using ArcSoft TotalMedia Extreme v1.0.9.4 with dtsdecoderdll.dll 1.1.0.0.
Everything seems to be running fine:-

Nero Audio Decoder (Nero 7 or older) works fine
ArcSoft DTS Decoder (1.1.0.0) works fine
Sonic Audio Decoder (4.3.0.169) works fine
Haali Media Splitter (2008-3-29) is installed
Surcode DTS Encoder (1.0.23.0) is installed
MkvToolnix (v2.2.0) is installed

My question was, How can i remove DTS Core from DTSHD not How i can extract Core from Stream. Like in TrueHD, eac3to demuxes Core & TrueHD data seperately.

Sehgal

madshi
28th July 2008, 08:27
Yeah, the current limit is 33Mbps as I found this out when I first tried to play my Transformers HD-DVD 1080p ES MKV back in Nov. 07 on my NMT. Haali will allow >33Mbps and should finally allow for full BluRay/HD-DVD 1080p ES video in MKV on the NMT.
Ah, so the new limit is not "a little bit over 33Mbps", but it's now "not limited to 33Mbps like the old firmware"? So in other words there's no new limit known yet? That would be awesome, of course! Now if they just could add multichannel FLAC support, please! If possible together with playing external audio tracks... ;)

madshi
28th July 2008, 08:29
My question was, How can i remove DTS Core from DTSHD
That makes no sense because the core is essentially needed for DTS-HD. If you removed the core you'd destroy the track.

sehgal.v7
28th July 2008, 08:34
@Madshi
Is TrueHD track too destroyed after removing Core??

madshi
28th July 2008, 08:36
Is TrueHD track too destroyed after removing Core??
TrueHD tracks don't have a core.

sehgal.v7
28th July 2008, 08:44
Here's the log of sample of Original Blue Planet Blu Ray:-

eac3to v2.54
command line: eac3to.exe 00000.m2ts -demux
------------------------------------------------------------------------------
M2TS, 1 video track, 3 audio tracks, 3 subtitle tracks, 0:01:20
1: VC-1, 1080p24 /1.001 (16:9)
2: AC3, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
3: AC3, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
4: TrueHD/AC3, 5.1 channels, 48khz, dialnorm: -27dB
5: Subtitle (PGS)
6: Subtitle (PGS)
7: Subtitle (PGS)
[v01] Extracting video track number 1...
[a02] Extracting audio track number 2...
[a03] Extracting audio track number 3...
[a04] Extracting audio track number 4...
[a04] Extracting audio track number 4...
[s05] Extracting subtitle track number 5...
[s06] Extracting subtitle track number 6...
[s07] Extracting subtitle track number 7...
[a04] Extracting TrueHD stream...
[a04] Extracting AC3 stream...
[a04] Removing dialog normalization...
[a04] Removing dialog normalization...
[a03] Removing dialog normalization...
[a02] Removing dialog normalization...
[v01] Creating file "00000 - 1 - VC-1, 1080p24.vc1"...
[a04] Creating file "00000 - 4 - TrueHD+AC3, 5.1 channels, 48khz.thd"...
[a04] Creating file "00000 - 4 - TrueHD+AC3, 5.1 channels, 48khz.ac3"...
[a02] Creating file "00000 - 2 - AC3, 5.1 channels, 640kbps, 48khz.ac3"...
[a03] Creating file "00000 - 3 - AC3, 5.1 channels, 640kbps, 48khz.ac3"...
[s05] Creating file "00000 - 5 - Subtitle (PGS).sup"...
[s06] Creating file "00000 - 6 - Subtitle (PGS).sup"...
[s07] Creating file "00000 - 7 - Subtitle (PGS).sup"...
Video track 1 contains 1926 frames.
eac3to processing took 22 seconds.
Done.

It created 2 file of one stream = 4 - TrueHD+AC3, 5.1 channels, 48khz.ac3 (core) & 4 - TrueHD+AC3, 5.1 channels, 48khz.thd (truehd)

Am i understanding wrong??

madshi
28th July 2008, 09:01
That is no "core". The word "core" implies that the "core" is needed by the "extension". In Blu-Ray TrueHD tracks contain both TrueHD data blocks and AC3 frames. But both are totally independent of each other. Neither needs the other one.

sehgal.v7
28th July 2008, 09:17
@Madshi
Thanks Madshi, hope all my confusions are solved.

Edited- I'm able to play DTSHD MA Track using Cyberlink Audio Decoder in GraphEdit. Can you tell me how check if its playing only Core!!

swindmill
28th July 2008, 12:56
I have posted a sample of the m2ts that is giving me problems:

http://io.ampx.net/sterling/bulk/ninsplit.rar

Perhaps Haali or the Microsoft VC-1 decoder are presenting the problem, as attempting to play this back under Windows Media Player results in either extreme blockiness/pixelation or WMP crashing. PowerDVD plays this m2ts without issue.

EPiPH0NE
28th July 2008, 17:33
Ah, so the new limit is not "a little bit over 33Mbps", but it's now "not limited to 33Mbps like the old firmware"? So in other words there's no new limit known yet? That would be awesome, of course! Now if they just could add multichannel FLAC support, please! If possible together with playing external audio tracks... ;)


I don't think they have released the new numbers publicly yet but I am going to guess that if Syabas' new splitter is based on Haali's then yes, the NMT should handle I am guessing ~47Mbps+ allowing for BluRay/HD-DVD ES streams to play in MKV. And Yes, I agree FLAC support would be nice, as a lossless multi channel FLAC would go nice with 720p/1080p x264/(W)VC-1 rips ;)

madshi
28th July 2008, 19:47
Problem remuxing a dvd:

eac3to v2.53
command line: EAC3TO vts_01_1.vob+vts_01_2.vob+vts_01_3.vob+vts_01_4.vob+vts_01_5.vob 2: side.mkv 3: side.ac3
------------------------------------------------------------------------------
VOB, 1 video track, 1 audio track, 14:19:45
1: Joined VOB file
2: MPEG2, 480p24 /1.001 (16:9) with pulldown flags
3: AC3, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB, -109ms
[v02] Extracting video track number 2...
[a03] Extracting audio track number 3...
[a03] Removing dialog normalization...
[a03] Applying (E-)AC3 delay...
[v02] Muxing video to Matroska...
[a03] Creating file "side.ac3"...
[v02] Video has a gap of 5 frames at playtime 0:00:01.
[v02] Video has a gap of 6 frames at playtime 0:00:01.
[v02] Video has a gap of 6 frames at playtime 0:00:02.
[v02] Video has a gap of 6 frames at playtime 0:00:02.
[v02] Video has a gap of 6 frames at playtime 0:00:02.
[v02] Video has a gap of 6 frames at playtime 0:00:03.
[v02] Video has a gap of 6 frames at playtime 0:00:03.
[v02] Video has a gap of 6 frames at playtime 0:00:04.
[v02] Video has a gap of 6 frames at playtime 0:00:04.
[v02] Video has a gap of 6 frames at playtime 0:00:04.

etc etc etc to the end...
That "video has a gap" problem with this movie will be fixed in the next eac3to version.

Length is wrong.
I cannot reproduce that here. I guess it's probably caused by the last VOB part. Can you please check that? Is the runtime correct if you leave away the last VOB part? If so, what happens if you feed eac3to only with the last VOB part? Is the runtime wrong then, too? If so, please try to cut the first 50MB of that VOB and check whether eac3to still shows a wrong runtime. If not, please try to cut the last 50MB of that VOB and check whether eac3to still shows a wrong runtime. Thanks!

Also delay of the ac3 track seems wrong. PgcDemux reports -25ms.
Hmmmm... I've found out that your sample begins with a vob unit which doesn't really belong to the movie. That made serious problems. The next eac3to version will detect this situation and simply skip the first vob unit. I've also modified the audio delay calculation for VOBs and EVOs a bit.

Pulldown cannot be removed

The MPEG2 stream is not a mixture I'm pretty sure.
Some parts of the MPEG2 stream are flagged as being natively interlaced content. That's why eac3to (correctly) refuses to remove the pulldown.

Wrong frame rate (24p when using extracted mpeg-2, 30p when using vob)
That will be fixed in the next eac3to version.

aspect ratio
The first vob unit in your sample contains one video frame with 4:3 aspect ratio! The rest of the movie is 16:9 though. The next eac3to version should take care of the problem because it will simply skip the invalid vob unit.

madshi
28th July 2008, 19:52
I have posted a sample of the m2ts that is giving me problems:

http://io.ampx.net/sterling/bulk/ninsplit.rar

Perhaps Haali or the Microsoft VC-1 decoder are presenting the problem, as attempting to play this back under Windows Media Player results in either extreme blockiness/pixelation or WMP crashing. PowerDVD plays this m2ts without issue.
Thanks for the sample! There's so called "user data" in the video stream which eac3to removed. I thought it wouldn't harm to remove that data, but I was wrong. The next eac3to version will fix the problem.

I don't think they have released the new numbers publicly yet but I am going to guess that if Syabas' new splitter is based on Haali's then yes, the NMT should handle I am guessing ~47Mbps+ allowing for BluRay/HD-DVD ES streams to play in MKV. And Yes, I agree FLAC support would be nice, as a lossless multi channel FLAC would go nice with 720p/1080p x264/(W)VC-1 rips ;)
Yeah, maybe some day we'll get all we're wishing for. Or not... :)

I'm able to play DTSHD MA Track using Cyberlink Audio Decoder in GraphEdit. Can you tell me how check if its playing only Core!!
That has really nothing to do with eac3to.

madshi
28th July 2008, 21:21
eac3to v2.55 released

http://madshi.net/eac3to.zip

* AAC bitstream parser added
* AAC auto detection added
* AAC bitstream delay added
* AAC bitstream gap/overlap correction added
* AAC decoding (Nero & Sonic) added
* old MP2 parser now "officially" and properly supports MP1, MP2 and MP3
* MP3 decoding (libav & Nero) added
* added support for MPEG Audio version 2 and version 2.5
* added (limited) support for ID3, APE and LYRICS tags in MP3 and AAC tracks
* improved VOB/EVO audio delay detection algorithm
* detection and automatic skipping of invalid vob units
* options "-60i" and "-24p" are no longer supported for MPEG2 video
* improved detection of MPEG2 framerate / pulldown state / mode
* improved MPEG2 muxing warnings
* several bugs in MPEG2 video muxing fixed
* fixed interlaced VC-1 muxing with user data (Nine Inch Nails)
Please note that libav/ffmpeg currently has no LGPL AAC decoder. That means if you want to decode AAC tracks with eac3to you'll have to use either Nero 7 or Sonic.

rickardk
28th July 2008, 22:22
Wow..
Greate update!
I will try everything you suggested first thing when I get home.

sehgal.v7
29th July 2008, 03:27
@Madshi
That has really nothing to do with eac3to.
>> I meant that if we can use Cyberlink Audio Decoder with Eac3to. :-)

rack04
29th July 2008, 03:31
Any idea what this error means? Movie is The Matrix HD DVD using eac3to v2.55:

http://i11.photobucket.com/albums/a199/rack04/eac3to.jpg

RedTee
29th July 2008, 05:57
I was going to post the same thing. Odd that I was able to get Matrix to work, but Reloaded and Revolutions gave me the same error. I used v2.54 for Matrix, and recently upgraded to 2.55 and have since had errors like yours.

eac3to v2.55
command line: eac3to f:\ 1) 2: "g:\hd_conversions\matrix3\chapters.txt" 3: "g:\hd_conversions\matrix3\movie.mkv" 6: "g:\hd_conversions\matrix3\mainaudio.flac"
------------------------------------------------------------------------------
EVO, 2 video tracks, 7 audio tracks, 4 subtitle tracks, 2:09:16
"feature"
1: Joined EVO file
2: Chapters, 33 chapters with names
3: VC-1, 1080p24 /1.001 (16:9) with pulldown flags
4: VC-1, 480p30 /1.001 (3:2), 2002ms
5: E-AC3, English, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
6: TrueHD, English, 5.1 channels, 48khz, dialnorm: -27dB
7: E-AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
8: E-AC3, Spanish, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
9: E-AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
"Philosophers Commentary 1"
10: E-AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
"Critics Commentary 2"
11: E-AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB, 2002ms
12: Subtitle, English
13: Subtitle, English
14: Subtitle, French
15: Subtitle, Spanish
Creating file "g:\hd_conversions\matrix3\chapters.txt"...
[v03] Extracting video track number 3...
[v03] Removing VC-1 pulldown...
[v03] Muxing video to Matroska...
[a06] Extracting audio track number 6...
[a06] Removing dialog normalization...
[a06] Decoding with libav/ffmpeg...
[a06] Encoding FLAC...
[a06] Creating file "g:\hd_conversions\matrix3\mainaudio.24bit.flac"...
$00, $00, $01, $0a


Any idea what this error means? Movie is The Matrix HD DVD using eac3to v2.55:

http://i11.photobucket.com/albums/a199/rack04/eac3to.jpg

73ChargerFan
29th July 2008, 06:23
Did you mux the raw video streams to MKV with mkvtoolnix? That's not recommended. You should use eac3to for that and then use mkvtoolnix only to add the external audio tracks into the MKV created by eac3to. That has never failed for me yet. Haali's muxer works fine in many cases. It usually never totally screws up. However, there are some cases where eac3to creates "better" MKVs compared to Haali's muxer...

Yes, after I wrote about Haali's muxer above, it promptly failed me. I've got 3 methods for muxing, but unfortunately none of them work all the time, so I just test the final mux.

Thanks again for this great program! Is there any hope you'll open source the code?

madshi
29th July 2008, 07:04
I will try everything you suggested first thing when I get home.
Great - looking forward to your test results!

I meant that if we can use Cyberlink Audio Decoder with Eac3to. :-)
And once again all you need to know is written in the first post of this thread:

"The Cyberlink decoders always only output 16bit"

Any idea what this error means?
I was going to post the same thing. Odd that I was able to get Matrix to work, but Reloaded and Revolutions gave me the same error. I used v2.54 for Matrix, and recently upgraded to 2.55 and have since had errors like yours.

[a06] Creating file "g:\hd_conversions\matrix3\mainaudio.24bit.flac"...
$00, $00, $01, $0a
This is just a debug message a forgot to remove which you can safely ignore. The processing should succeed without any problems. Or did processing abort or stall for you?

Yes, after I wrote about Haali's muxer above, it promptly failed me. I've got 3 methods for muxing, but unfortunately none of them work all the time, so I just test the final mux.
Is eac3to one of the 3 methods? If you see eac3to failing I'd be happy to hear about that.

Is there any hope you'll open source the code?
No.

RedTee
29th July 2008, 07:55
This is just a debug message a forgot to remove which you can safely ignore. The processing should succeed without any problems. Or did processing abort or stall for you?


The processing did abort and then the new command line showed.

Just found an old copy of 2.54 and was able to process MatrixReloaded, working on Revolutions with this version.

madshi
29th July 2008, 08:21
The processing did abort and then the new command line showed.
:stupid: Will be fixed in v2.56.

madshi
29th July 2008, 08:22
eac3to v2.56 released

http://madshi.net/eac3to.zip

* fixed: processing aborted when a VC-1 sequence end code was found

rickardk
29th July 2008, 09:59
AR is correct, no more gaps and audio delay is also correct. Great job.

But length is still wrong. Tested the last vob but length was correct. So I tested them all and the middle one (the third of five vobs) was read as 12+ hours long.

Cut it up in 50MB pieces. And the 8th 50MB piece was the one giving the wrong length.

www.earselect.se/length.vob

madshi
29th July 2008, 10:04
AR is correct, no more gaps and audio delay is also correct. Great job.

But length is still wrong. Tested the last vob but length was correct. So I tested them all and the middle one (the third of five vobs) was read as 12+ hours long.

Cut it up in 50MB pieces. And the 8th 50MB piece was the one giving the wrong length.

www.earselect.se/length.vob
Thanks! Will have a look at that vob later. Does the muxing still work ok? Or is the final MKV file also 12+ hours long? In other words: Is this just a wrong logging output or is it a real functional problem?

Thunderbolt8
29th July 2008, 10:22
thanks for the new versions, will hopefully be able to test more .ts mpeg2 files at the end of the week.

rack04
29th July 2008, 13:12
eac3to v2.56 released

http://madshi.net/eac3to.zip

* fixed: processing aborted when a VC-1 sequence end code was found

Thanks for the quick fix. I'll test later this evening.

rickardk
29th July 2008, 14:26
Thanks! Will have a look at that vob later. Does the muxing still work ok? Or is the final MKV file also 12+ hours long? In other words: Is this just a wrong logging output or is it a real functional problem?

There is no real problem. The final MKV file is perfect. I uploaded the sample just for you to maybe understand why it says 12+ hours. Also eac3to sees two MPEG2 and two AC3 tracks in that small sample. So maybe something can be screwed up on other files with similar problems.

RedTee
29th July 2008, 19:53
eac3to v2.56 released

http://madshi.net/eac3to.zip

* fixed: processing aborted when a VC-1 sequence end code was found

Works great.

In terms of encoding, which processor would work faster a q6600 or a e8400?

Thanks for all of your hard work.

rica
29th July 2008, 23:26
madshi,

You are great; thanks for your great effort :thanks::thanks:

sehgal.v7
30th July 2008, 13:58
@Madshi
Back again with a problem!! In some of my TS files eac3to is showing discontinuity error. Then i just re-remux that TS file with tsMuxeR v1.8.4b and again check that file with eac3to it shown no error. Here are log files.

Original TS File - eac3to v2.56
command line: eac3to.exe D:\Original.ts -check -ignorediscon
------------------------------------------------------------------------------
TS, 1 video track, 1 audio track, 0:19:15
1: h264/AVC, 1080p24 /1.001 (16:9)
2: DTS Master Audio, English, 7.1 channels, 24 bits, 48khz
[v01] Extracting video track number 1...
[a02] Extracting audio track number 2...
[v01] The source seems to be damaged (discontinuity) at file pos 2059182612.
[v01] The source seems to be damaged (discontinuity) at file pos 2094306464.
[a02] The source seems to be damaged (discontinuity) at file pos 2094651444.
Video track 1 contains 27694 frames.
eac3to processing took 12 minutes, 12 seconds.
Done.

Re-muxed Original file with TSMuxer - eac3to v2.56
command line: eac3to.exe D:\Remuxed.ts -check
------------------------------------------------------------------------------
TS, 1 video track, 1 audio track, 0:19:15
1: h264/AVC, 1080p24 /1.001 (16:9)
2: DTS Master Audio, English, 7.1 channels, 24 bits, 48khz
[v01] Extracting video track number 1...
[a02] Extracting audio track number 2...
[a02] The last DTS frame is incomplete and thus gets skipped.
Video track 1 contains 27694 frames.
eac3to processing took 9 minutes, 9 seconds.
Done.

In both files it shown 27694 frames. Hope you're getting me, what i want to say.

Adub
30th July 2008, 17:04
@RedTee,
quadcore almost always beats dual core. And this is one of those cases. Go with the q6600.

RedTee
30th July 2008, 19:40
@RedTee,
quadcore almost always beats dual core. And this is one of those cases. Go with the q6600.

:thanks:

Will wait for a good sale on the quad core for next upgrade.

deathlord
30th July 2008, 20:28
madshi

Do you still need samples of dts-hd high resolution tracks? I could upload samples from Band of Brothers HDDVD and Reservoir dogs Blu-Ray, both dts-hd_hr 5.1. I didn't have any problems with those, but I remember you having asked for hr samples even if they work.

Another thing: There is some information on cyberlink audio decoder 8 and graph edit at the end of the madflac thread. I am convinced that, based on this, you could add support for "proper" 5/6.1 --> 7.1 upmix aswell as dolby headphone.:)
These things were requested by me and others at some point in this thread.
Also maybe you could trick madflac into being accepted by this decoder(or the respective dll's) directly, i.e. without arcsoft or ffdshow. That would be really cool!

mdl
31st July 2008, 03:40
Hi Madshi, here is your response to the issue of wrong header data in large WAV files.



Do you have different movies with DTS-HD, DD+ and TrueHD tracks? If possible, it would be helpful if you could test other movies, too.

I still believe that the size of the WAV file is the only problem here. Let me explain: The WAV header has a "size" field which is only 4 byte long. The max size you can put in 4 bytes is about 2GB or 4GB (depending on whether you interpret that number to be able to hold negative numbers, too). Now if you have a WAV file which is longer than 2GB or 4GB, the "size" field in the WAV header is invalid. It's difficult to explain to a non-programmer what value this field has when it's invalid. But you can think of it as being "random", but the random value depends on the full WAV file size. Now if a media player is stupid enough to rely on the "size" field, it will interpret the random value in the WAV header as being the correct size. Since the value is random, a 5.9GB WAV file could eventually work much better than a 6.1GB WAV file or vice versa.

When you decode the same track with different decoders, they will likely still output the same WAV size. That's why all 3 decoders behave the same for you. I believe the only problem is the random WAV "size" field. You probably just had luck with your TrueHD track that the random size field somehow made it work more or less ok.



Mine was converted from DTS-HDMA, and the WAV file thinks it's only 39 minutes long (supposed to be 2hrs+)
I suspected the header data was wrong also.
So, is there a fix to the above problem? Can I simply strip the header data from the WAV file? And if so, any suggestions on how?

Thanks very much in advance and thank you for the great application.

kurt
31st July 2008, 06:45
I'm trying to convert Ratatouille (german version = different order of the m2ts) to mkv and then to TS (following doratis instructions (http://forum.doom9.org/showthread.php?p=1136728#post1136728)). But eac3to is reporting that I should rerun the same command line because the audio files were demuxed without making use of the gap/overlap informations...

D:\Movies\Ratatouille>eac3to 00027.m2ts+00030.m2ts+00000.m2ts+00004.m2ts+00002.m
2ts+00036.m2ts+00049.m2ts+00039.m2ts+00050.m2ts+00042.m2ts+00051.m2ts+00045.m2ts
+00052.m2ts+00064.m2ts+00065.m2ts movie_temp.mkv
M2TS, 1 video track, 9 audio tracks, 5 subtitle tracks, 1:50:33
1: h264/AVC, 1080p24 /1.001 (16:9)
2: RAW/PCM, 5.1 channels, 16 bits, 48khz
3: AC3, 5.1 channels, 640kbit/s, 48khz
4: DTS-ES, 5.1 channels, 24 bits, 1536kbit/s, 48khz
5: AC3, 5.1 channels, 640kbit/s, 48khz
6: DTS-ES, 5.1 channels, 24 bits, 1536kbit/s, 48khz
7: AC3, 5.1 channels, 640kbit/s, 48khz
8: AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
9: AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
10: AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -25dB
11: Subtitle (PGS)
12: Subtitle (PGS)
13: Subtitle (PGS)
14: Subtitle (PGS)
15: Subtitle (PGS)
[v01] Extracting video track number 1...
[a02] Extracting audio track number 2...
[a03] Extracting audio track number 3...
[a04] Extracting audio track number 4...
[a05] Extracting audio track number 5...
[a06] Extracting audio track number 6...
[a07] Extracting audio track number 7...
[a08] Extracting audio track number 8...
[a09] Extracting audio track number 9...
[a10] Extracting audio track number 10...
[s11] Extracting subtitle track number 11...
[s12] Extracting subtitle track number 12...
[s13] Extracting subtitle track number 13...
[s14] Extracting subtitle track number 14...
[s15] Extracting subtitle track number 15...
[v01] Muxing video to Matroska...
[a02] Reading RAW/PCM...
[a02] Swapping endian...
[a02] Remapping channels...
[a02] Encoding FLAC...
[a09] Removing dialog normalization...
[a08] Removing dialog normalization...
[a10] Removing dialog normalization...
[a06] Creating file "movie_temp - 6 - DTS-ES, 5.1 channels, 24 bits, 1536kbps, 4
8khz.dts"...
[a04] Creating file "movie_temp - 4 - DTS-ES, 5.1 channels, 24 bits, 1536kbps, 4
8khz.dts"...
[a02] Creating file "movie_temp - 2 - PCM, 5.1 channels, 16 bits, 48khz.flac"...

[a03] Creating file "movie_temp - 3 - AC3, 5.1 channels, 640kbps, 48khz.ac3"...
[a05] Creating file "movie_temp - 5 - AC3, 5.1 channels, 640kbps, 48khz.ac3"...
[a07] Creating file "movie_temp - 7 - AC3, 5.1 channels, 640kbps, 48khz.ac3"...
[a09] Creating file "movie_temp - 9 - AC3, 2.0 channels, 192kbps, 48khz.ac3"...
[a10] Creating file "movie_temp - 10 - AC3, 2.0 channels, 192kbps, 48khz.ac3"...

[a08] Creating file "movie_temp - 8 - AC3, 2.0 channels, 192kbps, 48khz.ac3"...
[s15] Creating file "movie_temp - 15 - Subtitle (PGS).sup"...
[s14] Creating file "movie_temp - 14 - Subtitle (PGS).sup"...
[s12] Creating file "movie_temp - 12 - Subtitle (PGS).sup"...
[s13] Creating file "movie_temp - 13 - Subtitle (PGS).sup"...
[s11] Creating file "movie_temp - 11 - Subtitle (PGS).sup"...
[a02] Audio overlaps for 6ms at playtime 0:08:50.
[a02] Audio overlaps for 7ms at playtime 1:11:58.
[a02] Audio overlaps for 5ms at playtime 1:15:28.
[a02] Audio overlaps for 7ms at playtime 1:40:51.
[a02] The audio file was demuxed without making use of the gap/overlap informati
on.
[a02] Please rerun the same eac3to command line. That will correct the gaps/over
laps.
[a03] Audio overlaps for 17ms at playtime 0:00:55.
[a03] Audio overlaps for 12ms at playtime 0:01:53.
[a03] Audio overlaps for 26ms at playtime 0:07:56.
[a03] Audio overlaps for 16ms at playtime 0:08:50.
[a03] Audio overlaps for 10ms at playtime 1:08:51.
[a03] Audio overlaps for 10ms at playtime 1:09:15.
[a03] Audio overlaps for 31ms at playtime 1:11:58.
[a03] Audio overlaps for 30ms at playtime 1:15:28.
[a03] Audio overlaps for 20ms at playtime 1:16:03.
[a03] Audio overlaps for 7ms at playtime 1:16:43.
[a03] Audio overlaps for 8ms at playtime 1:40:51.
[a03] Audio overlaps for 29ms at playtime 1:41:48.
[a03] The audio file was demuxed without making use of the gap/overlap informati
on.
[a03] Please rerun the same eac3to command line. That will correct the gaps/over
laps.
[a04] Audio overlaps for 6ms at playtime 0:00:55.
[a04] Audio overlaps for 6ms at playtime 0:07:56.
[a04] Audio overlaps for 15ms at playtime 1:08:51.
[a04] Audio overlaps for 10ms at playtime 1:09:15.
[a04] Audio overlaps for 10ms at playtime 1:11:58.
[a04] Audio overlaps for 9ms at playtime 1:15:28.
[a04] Audio overlaps for 9ms at playtime 1:16:03.
[a04] Audio overlaps for 7ms at playtime 1:16:43.
[a04] Audio overlaps for 8ms at playtime 1:40:51.
[a04] Audio overlaps for 8ms at playtime 1:41:48.
[a04] The audio file was demuxed without making use of the gap/overlap informati
on.
[a04] Please rerun the same eac3to command line. That will correct the gaps/over
laps.
[a05] Audio overlaps for 17ms at playtime 0:00:55.
[a05] Audio overlaps for 12ms at playtime 0:01:53.
[a05] Audio overlaps for 26ms at playtime 0:07:56.
[a05] Audio overlaps for 16ms at playtime 0:08:50.
[a05] Audio overlaps for 10ms at playtime 1:08:51.
[a05] Audio overlaps for 10ms at playtime 1:09:15.
[a05] Audio overlaps for 31ms at playtime 1:11:58.
[a05] Audio overlaps for 30ms at playtime 1:15:28.
[a05] Audio overlaps for 20ms at playtime 1:16:03.
[a05] Audio overlaps for 7ms at playtime 1:16:43.
[a05] Audio overlaps for 8ms at playtime 1:40:51.
[a05] Audio overlaps for 29ms at playtime 1:41:48.
[a05] The audio file was demuxed without making use of the gap/overlap informati
on.
[a05] Please rerun the same eac3to command line. That will correct the gaps/over
laps.
[a06] Audio overlaps for 6ms at playtime 0:00:55.
[a06] Audio overlaps for 6ms at playtime 0:07:56.
[a06] Audio overlaps for 15ms at playtime 1:08:51.
[a06] Audio overlaps for 10ms at playtime 1:09:15.
[a06] Audio overlaps for 10ms at playtime 1:11:58.
[a06] Audio overlaps for 9ms at playtime 1:15:28.
[a06] Audio overlaps for 9ms at playtime 1:16:03.
[a06] Audio overlaps for 7ms at playtime 1:16:43.
[a06] Audio overlaps for 8ms at playtime 1:40:51.
[a06] Audio overlaps for 8ms at playtime 1:41:48.
[a06] The audio file was demuxed without making use of the gap/overlap informati
on.
[a06] Please rerun the same eac3to command line. That will correct the gaps/over
laps.
[a07] Audio overlaps for 17ms at playtime 0:00:55.
[a07] Audio overlaps for 12ms at playtime 0:01:53.
[a07] Audio overlaps for 26ms at playtime 0:07:56.
[a07] Audio overlaps for 16ms at playtime 0:08:50.
[a07] Audio overlaps for 10ms at playtime 1:08:51.
[a07] Audio overlaps for 10ms at playtime 1:09:15.
[a07] Audio overlaps for 31ms at playtime 1:11:58.
[a07] Audio overlaps for 30ms at playtime 1:15:28.
[a07] Audio overlaps for 20ms at playtime 1:16:03.
[a07] Audio overlaps for 7ms at playtime 1:16:43.
[a07] Audio overlaps for 8ms at playtime 1:40:51.
[a07] Audio overlaps for 29ms at playtime 1:41:48.
[a07] The audio file was demuxed without making use of the gap/overlap informati
on.
[a07] Please rerun the same eac3to command line. That will correct the gaps/over
laps.
[a08] Audio overlaps for 17ms at playtime 0:00:55.
[a08] Audio overlaps for 12ms at playtime 0:01:53.
[a08] Audio overlaps for 26ms at playtime 0:07:56.
[a08] Audio overlaps for 16ms at playtime 0:08:50.
[a08] Audio overlaps for 10ms at playtime 1:08:51.
[a08] Audio overlaps for 10ms at playtime 1:09:15.
[a08] Audio overlaps for 31ms at playtime 1:11:58.
[a08] Audio overlaps for 30ms at playtime 1:15:28.
[a08] Audio overlaps for 20ms at playtime 1:16:03.
[a08] Audio overlaps for 7ms at playtime 1:16:43.
[a08] Audio overlaps for 8ms at playtime 1:40:51.
[a08] Audio overlaps for 29ms at playtime 1:41:48.
[a08] The audio file was demuxed without making use of the gap/overlap informati
on.
[a08] Please rerun the same eac3to command line. That will correct the gaps/over
laps.
[a09] Audio overlaps for 17ms at playtime 0:00:55.
[a09] Audio overlaps for 12ms at playtime 0:01:53.
[a09] Audio overlaps for 26ms at playtime 0:07:56.
[a09] Audio overlaps for 16ms at playtime 0:08:50.
[a09] Audio overlaps for 10ms at playtime 1:08:51.
[a09] Audio overlaps for 10ms at playtime 1:09:15.
[a09] Audio overlaps for 31ms at playtime 1:11:58.
[a09] Audio overlaps for 30ms at playtime 1:15:28.
[a09] Audio overlaps for 20ms at playtime 1:16:03.
[a09] Audio overlaps for 7ms at playtime 1:16:43.
[a09] Audio overlaps for 8ms at playtime 1:40:51.
[a09] Audio overlaps for 29ms at playtime 1:41:48.
[a09] The audio file was demuxed without making use of the gap/overlap informati
on.
[a09] Please rerun the same eac3to command line. That will correct the gaps/over
laps.
[a10] Audio overlaps for 17ms at playtime 0:00:55.
[a10] Audio overlaps for 12ms at playtime 0:01:53.
[a10] Audio overlaps for 26ms at playtime 0:07:56.
[a10] Audio overlaps for 16ms at playtime 0:08:50.
[a10] Audio overlaps for 10ms at playtime 1:08:51.
[a10] Audio overlaps for 10ms at playtime 1:09:15.
[a10] Audio overlaps for 31ms at playtime 1:11:58.
[a10] Audio overlaps for 30ms at playtime 1:15:28.
[a10] Audio overlaps for 20ms at playtime 1:16:03.
[a10] Audio overlaps for 7ms at playtime 1:16:43.
[a10] Audio overlaps for 8ms at playtime 1:40:51.
[a10] Audio overlaps for 29ms at playtime 1:41:48.
[a10] The audio file was demuxed without making use of the gap/overlap informati
on.
[a10] Please rerun the same eac3to command line. That will correct the gaps/over
laps.
Added fps value to MKV header.
Video track 1 contains 159042 frames.
eac3to processing took 2 hours, 40 minutes.
Done.
so just rerun and this time everything is ok? :confused:

Edit: Ah - I should have used the search before posting :D
[a04] Encoding AC3...
[a04] Creating file "D:\audio.ac3"...
[a04] Audio overlaps for 14ms at playtime 0:00:02.
[a04] Audio overlaps for 25ms at playtime 0:05:09.
[a04] Audio overlaps for 12ms at playtime 0:09:18.
[a04] Audio overlaps for 5ms at playtime 0:09:53.
[a04] Audio overlaps for 29ms at playtime 0:12:14.
[a04] Audio overlaps for 23ms at playtime 0:13:32.
[a04] Audio overlaps for 10ms at playtime 0:26:09.
[a04] Audio overlaps for 23ms at playtime 0:28:19.
[a04] Audio overlaps for 32ms at playtime 0:34:52.
[a04] Audio overlaps for 24ms at playtime 1:03:31.
[a04] Audio overlaps for 8ms at playtime 1:04:06.
[a04] Audio overlaps for 11ms at playtime 1:20:23.
[a04] Audio overlaps for 7ms at playtime 1:22:20.
[a04] Audio overlaps for 13ms at playtime 1:24:06.
[a04] Audio overlaps for 14ms at playtime 1:26:21.
[a04] Audio overlaps for 21ms at playtime 1:29:26.
[a04] Audio overlaps for 11ms at playtime 1:29:54.
[a04] Audio overlaps for 21ms at playtime 1:37:21.
[a04] Audio overlaps for 28ms at playtime 1:39:05.
[a04] Audio overlaps for 27ms at playtime 1:39:27.
[a04] The audio file was demuxed without making use of the gap/overlap information.
[a04] Please rerun the same eac3to command line. That will correct the gaps/overlaps.

I don't understand what it's asking me to do.
Am I suppose to just run the program again and it will somehow remember and fix the issue or am I suppose to put in some sort of command to fix it?

Thanks,
Mark

Yes. You're supposed to simply rerun eac3to with exactly the same parameters as in your first try. The information needed for fixing the issue were stored on harddisk during the first pass (look for a *.gap file). This is then made use of when you run eac3to a 2nd time.

If you want you can save the original "d:\audio.ac3" file and compare it with the final result. You should notice that the current "d:\audio.ac3" file is not in sync with the video. The AC3 file you get from the 2nd pass should be in sync.

Edit: Yraen was faster... :)
so nevermind, I'm doing a rerun :)

EPiPH0NE
31st July 2008, 07:35
Hi Madshi, here is your response to the issue of wrong header data in large WAV files.



Mine was converted from DTS-HDMA, and the WAV file thinks it's only 39 minutes long (supposed to be 2hrs+)
I suspected the header data was wrong also.
So, is there a fix to the above problem? Can I simply strip the header data from the WAV file? And if so, any suggestions on how?

Thanks very much in advance and thank you for the great application.

May I ask why you don't try PCM instead of WAV?

G_M_C
31st July 2008, 09:43
Is there no news on my feature-request, to be able to convert to audio to match a framerate of 24 fps (for making AVCHD's) ?

Nope, that wont fly; Its got to be 24.00000 fps, or video wont display (audio will though). Setting 24.0000 fps in tsMuxer is easy, but converting the audio to match the framerate remains the problem (syncing subs is easy too).

Ye. that can be ... But i dont own anything with a Sony-brand on top, so no PS3 here. I have the Panasonic DMP-BD30, wich accepts only AVCHD that adhere to the standard perfectly (see here: http://www.avchd-info.org/format/index.html)

Well, realise that i thought that too at first; But ive made AVCHD's with 23,976, and they dont work. Only when converted to 24.000 fps do they work, so what i say is based on actual fact.

I can try to see is speeding up to PAL works, but i doubt it; Based on my experiances; Bur 24 fps is closer to original than 25 fps, so i would still prefer 24 fps.

But we'd better get back on topic ;)


It seems i have to make some apoligies. It seems i was wrong. My Player (Panasonic DMP-BD30) does work with 23,976 AND DTS-audio if needed :scared:

Don't know how exactly i came to the conclusion video and audio HAD to be 24.000; I'm positive i tried other framerates, but it seems i did my testing wrong and pulled the wrong conclusion that the player only plays AVCHD's when they follow the AVCHD specs to the letter. Luckily it seems it isn't that picky (it plays BD-9 :) )

On the other hand: I DID update the firmware of my player. Might be they've relaxed the specs internally, so it plays more types of "AVCHD's".

Anyway: It seems that i do not need the 24.000 conversion after all. Sorry for the troubles :o

SpaceAgeHero
31st July 2008, 09:44
Madshi,

it appears that I can't use -check option if one of the audio tracks is DTS Express.

eac3to v2.56
command line: eac3to f:\raw\movie 1) -check
------------------------------------------------------------------------------
M2TS, 2 video tracks, 9 audio tracks, 24 subtitle tracks, 2:04:32
1: Chapters, 19 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: h264/AVC, 480p24 /1.001 (20:11)
4: TrueHD/AC3, English, 5.1 channels, 48khz
5: DTS, French, 5.1 channels, 24 bits, 1536kbit/s, 48khz
6: AC3, French, 5.1 channels, 640kbit/s, 48khz
7: DTS, German, 5.1 channels, 24 bits, 1536kbit/s, 48khz
8: AC3, German, 5.1 channels, 640kbit/s, 48khz
9: AC3, Polish, 5.1 channels, 640kbit/s, 48khz
10: AC3, Russian, 5.1 channels, 640kbit/s, 48khz
11: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
12: DTS Express, English, 2.0 channels, 24 bits, 192kbit/s, 48khz
13: Subtitle (PGS), English
14: Subtitle (PGS), English
15: Subtitle (PGS), French
16: Subtitle (PGS), German
17: Subtitle (PGS), Arabic
18: Subtitle (PGS), Polish
19: Subtitle (PGS), Portuguese
20: Subtitle (PGS), Russian
21: Subtitle (PGS), French
22: Subtitle (PGS), German
23: Subtitle (PGS), Polish
24: Subtitle (PGS), Russian
25: Subtitle (PGS), French
26: Subtitle (PGS), German
27: Subtitle (PGS), Arabic
28: Subtitle (PGS), Polish
29: Subtitle (PGS), Portuguese
30: Subtitle (PGS), Russian
31: Subtitle (PGS), French
32: Subtitle (PGS), German
33: Subtitle (PGS), Arabic
34: Subtitle (PGS), Polish
35: Subtitle (PGS), Portuguese
36: Subtitle (PGS), Russian
This audio conversion is not supported.

sehgal.v7
31st July 2008, 10:04
@SpaceAgeHero
Use eac3to f:\raw\movie -check// whtz dis 1)

tebasuna51
31st July 2008, 10:43
Hi Madshi, here is your response to the issue of wrong header data in large WAV files.
...
Mine was converted from DTS-HDMA, and the WAV file thinks it's only 39 minutes long (supposed to be 2hrs+)
If your wav file is greater 4 GB (maybe 5.2GB) you have more than 2 hrs (maybe 163 m if 6 ch, 16 bit, 48000 Hz).
Don't use the soft than say you is only 39 m. long because don't support wav files > 4GB
I suspected the header data was wrong also.
Of course two fields in wav header can't store values greater 2^32 (to write a file length > 4GB)
So, is there a fix to the above problem? Can I simply strip the header data from the WAV file? And if so, any suggestions on how?.
The wav header have other usable info like BitDepth, SampleRate and NumChannels only the length is wrong.

There are soft with support for these files if you use appropriate parameters: you can use NeroAacEnc (encode to aac), Aften (ac3), WaveWizard (many wav conversions), AviSynth methods, WavFix to convert to w64 format (Sony format with fields for length with 64 bits -> until 2^64 bytes) ...

For what need you the wav file?

shanghai2004
31st July 2008, 11:47
Madshi,

First want to thank you for the great tool!

After processing many movies without any issue, I ran into a problem while converting an 2 channel 24 bit / 96Khz audio track from the John Mayer bluray disc to 16bit / 48KHz.

output:

C:\eac3to>eac3to f:\johnmayer 1) 4: c:\johnmayer_2ch_16b48k.flac -down16 -resampleto48000
M2TS, 1 video track, 2 audio tracks, 2:32:38
1: Chapters, 28 chapters
2: VC-1, 1080p24 /1.001 (16:9)
3: TrueHD/AC3, English, 5.1 channels, 96khz
4: RAW/PCM, English, 2.0 channels, 24 bits, 96khz
[a04] Extracting audio track number 4...
[a04] Reading RAW/PCM...
[a04] Swapping endian...
[a04] Resampling to 48khz...
[a04] Reducing depth from 24 to 16 bits...
[a04] Encoding FLAC...
Loading white noise (needed for dithering)...
[a04] Creating file "c:\johnmayer_2ch_16b48k.flac"...
-----------------------------------------------------------------^C

Then at about 80%, the process hangs, CPU goes back to 0%. I waited for an hour, but no progress. After I press <ctrl-c>, there is an output file which seems to play OK, but seek doesn't work. From the size of the file judged, it is not complete.

When I just extract the track & convert to flac (so keep 24/96), eac3to works correctly and the output file plays OK.

However, converting this 24/96 flac track to 16/48 with eac3to gives the same result: hangs at the same position.

Down convert to 16/96 works, only when I resample to 48k it hangs.

I cannot use r8brain directly for the conversion as r8brain doesn't support flac and seems to have problems with wave files larger then 2GB. So I'm kind of stuck here.

Tried in Windows Vista 32bit Home Premium SP1 USA on 2 different computers. eac3to version tried both 2.55 and 2.56

Anything I can try?

(edit, found workaround: first convert to 16 bits then run eac3to a 2nd time to convert to 48 Khz)

mdl
31st July 2008, 14:02
May I ask why you don't try PCM instead of WAV?

Can you convert directly to PCM with eac3to? I thought I tried that.

Is it the RAW option?

mdl
31st July 2008, 14:09
If your wav file is greater 4 GB (maybe 5.2GB) you have more than 2 hrs (maybe 163 m if 6 ch, 16 bit, 48000 Hz).
Don't use the soft than say you is only 39 m. long because don't support wav files > 4GB

Of course two fields in wav header can't store values greater 2^32 (to write a file length > 4GB)

The wav header have other usable info like BitDepth, SampleRate and NumChannels only the length is wrong.

There are soft with support for these files if you use appropriate parameters: you can use NeroAacEnc (encode to aac), Aften (ac3), WaveWizard (many wav conversions), AviSynth methods, WavFix to convert to w64 format (Sony format with fields for length with 64 bits -> until 2^64 bytes) ...

For what need you the wav file?

I want to remux the resulting PCM file to AVC video with tsmuxer, resulting in a streamable movie to PS3.

I used WAV to preserve the quality of the original DTS-HDMA audio file.

tebasuna51
31st July 2008, 15:22
I want to remux the resulting PCM file to AVC video with tsmuxer, resulting in a streamable movie to PS3.

I used WAV to preserve the quality of the original DTS-HDMA audio file.

tsmuxer don't support wav files > 4GB.

You need convert the DTS-HDMA to special lpcm format accepted by tsmuxer, use Pcm2Tsmu v1.2 (http://forum.doom9.org/showthread.php?t=138417) with eac3to.

mdl
31st July 2008, 15:45
tsmuxer don't support wav files > 4GB.

You need convert the DTS-HDMA to special lpcm format accepted by tsmuxer, use Pcm2Tsmu v1.2 (http://forum.doom9.org/showthread.php?t=138417) with eac3to.

Thanks.

Do I designate RAW or PCM or LPCM as the output format in eac3to? Literally, what should I type in?

tebasuna51
31st July 2008, 16:45
Thanks.

Do I designate RAW or PCM or LPCM as the output format in eac3to? Literally, what should I type in?

You have samples in the post linked:

eac3to MA_7.1_16bit.dts stdout.pcm | Pcm2Tsmu - output7.1_16bit.pcm -c 8 -i 16

EPiPH0NE
31st July 2008, 17:05
Can you convert directly to PCM with eac3to? I thought I tried that.

Is it the RAW option?


http://forum.doom9.org/showthread.php?t=137354

:cool:

act.anon
31st July 2008, 21:41
Remuxing The Interpreter yields:
Unfortunately the Haali Muxer cannot handle this source file.
It doesn't contain enough seek/recovery points.
Even with -seekToIFrames. Ideas?

eac3to v2.56
command line: eac3to I:\ 1) 3: "C:\The Interpreter (2005).mkv" 4: "C:\The Interpreter (2005).eac3" -seekToIFrames
------------------------------------------------------------------------------
EVO, 1 video track, 5 audio tracks, 5 subtitle tracks, 2:08:25
"Main Movie"
1: Joined EVO file
2: Chapters, 20 chapters with names
3: h264/AVC, 1080p24 /1.001 (16:9) with pulldown flags
4: E-AC3, English, 5.1 channels, 1536kbit/s, 48khz, dialnorm: -27dB
5: DTS, English, 5.1 channels, 24 bits, 1536kbit/s, 48khz, dialnorm: -4dB
6: E-AC3, Spanish, 5.1 channels, 768kbit/s, 48khz, dialnorm: -27dB
7: E-AC3, French, 5.1 channels, 768kbit/s, 48khz, dialnorm: -27dB
8: E-AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
"Feature Commentary"
9: Subtitle, English, "SDH"
10: Subtitle, Spanish
11: Subtitle, French
12: Subtitle, Spanish, "Forced"
13: Subtitle, French, "Forced"
[v03] Extracting video track number 3...
[a04] Extracting audio track number 4...
[v03] Muxing video to Matroska...
[a04] Removing dialog normalization...
[a04] Creating file "C:\The Interpreter (2005).eac3"...
Unfortunately the Haali Muxer cannot handle this source file.
It doesn't contain enough seek/recovery points.
Aborted at file position 352305152.

Ranguvar
1st August 2008, 00:19
Try doing 3: "C:\The Interpreter (2005).h264" instead, and then muxing that to MKV with mkvmerge GUI (included in MKVtoolnix).

sehgal.v7
1st August 2008, 08:59
@Madshi
We can't demux files to another location like - eac3to.exe C:\00001.m2ts D:\ -demux or eac3to.exe C:\00001.m2ts -demux D:\

& can you tell me how to get back exact raw VC1 stream after merging into mkv. Actually i accidently deleted backup file. Now i want exact raw VC1 stream demuxed from mkv.

Kurtnoise
1st August 2008, 09:47
@Madshi : feature request >> add an option to demux m2ts/ts and/or evo files by chapters...:) That could be great.

xsictransitx
1st August 2008, 12:34
@madshi

It would be great if using the bluray (or HDDVD) to mkv muxing ability would also mux an or all audio tracks into the mkv with the video. Is this already possible and I just am missing how?

I want to use eac3to l:\ j:\out.mkv
and have audio in that output as well as the video track, but I do not see a way to do it.

Thanks for creating the best HD audio conversion tool available! Keep it up.

laserfan
1st August 2008, 20:36
@Madshi
We can't demux files to another location like - eac3to.exe C:\00001.m2ts D:\ -demux or eac3to.exe C:\00001.m2ts -demux D:\This method given by madshi earlier is even easier to DO than he is able to DESCRIBE it here!

Here's what I recommend (and what I'm using myself):

(1) Extend the search path to include eac3to's folder. In Windows XP you can do that by:

right click on My Computer -> "extended" tab -> "environment variables" button

In the first list double click on "PATH". Then add ";c:\program files\eac3to" (replace that path with the one you're using on your PC) to the list of paths. This change will make sure that you can always directly type "eac3to" in the command line, no matter in which folder you are. Windows will then automatically find eac3to.exe for you. Very comfortable. You may need to log off/on to make the "PATH" change active.

(2) In the command line go to the folder where you want to have the files demuxed to. E.g. if you want to have the movie "c:\fresh rips\some HD DVD movie" demuxed to "c:\demuxed\some HD DVD movie", you should in the command line go to "c:\demuxed\some HD DVD movie". I mean the command line window should look like this "c:\demuxed\some HD DVD movie> _".

(3) Now type:

eac3to "c:\fresh rips\some HD DVD movie" -demux

This will demux everything to "c:\demuxed\some HD DVD movie".

deathlord
1st August 2008, 20:40
@madshi

It would be great if using the bluray (or HDDVD) to mkv muxing ability would also mux an or all audio tracks into the mkv with the video. Is this already possible and I just am missing how?

This is not possible yet. Maybe it will be supported in the future, as madshi said somwhere above.
However, you should be able to do everything in one go already. Just use the eac3toandmore GUI.

saint-francis
1st August 2008, 20:53
This method given by madshi earlier is even easier to DO than he is able to DESCRIBE it here!

When you right click on my computer you get a drop down menu. There are no tabs let alone one called "extended". I don't understand these instructions. If you select any of the options you see on the drop down menu there is still no extended tab anywhere.

rebkell
1st August 2008, 21:08
When you right click on my computer you get a drop down menu. There are no tabs let alone one called "extended". I don't understand these instructions. If you select any of the options you see on the drop down menu there is still no extended tab anywhere.

Right Click on My Computer -> Properties -> Environment Variables

See if that sequence works for you.

laserfan
2nd August 2008, 00:36
Right Click on My Computer -> Properties -> Environment VariablesOn my XP PC, right-My Computer -> Properties -> get System Properties, click on Advanced tab, at bottom is Environment Variables. Once there find the Path entry and click Edit, then add

;C:\Program Files\eac3to

Don't forget the semicolon delimiter and make sure that you use YOUR path to eac3to.

Once this is done you go to a command prompt and the cd to the drive letter & directory you want your file to END UP in. For me, I always go to D: and process files from E: or vice-versa, to get a speed advantage from using different hard drives.

rebkell
2nd August 2008, 00:56
On my XP PC, right-My Computer -> Properties -> get System Properties, click on Advanced tab, at bottom is Environment Variables. Once there find the Path entry and click Edit, then add

;C:\Program Files\eac3to

Don't forget the semicolon delimiter and make sure that you use YOUR path to eac3to.

Once this is done you go to a command prompt and the cd to the drive letter & directory you want your file to END UP in. For me, I always go to D: and process files from E: or vice-versa, to get a speed advantage from using different hard drives.

Yeah, mine was probably already on sitting on the advanced tab. :)

On my Vista Premium it's:
Right Click Computer -> Advanced system settings -> Advanced Tab -> Environment Variables

rica
2nd August 2008, 17:48
Hi madshi,

Do you mind to tell what source filter you are using for ac3 core files?

I've never found any source filter which fits to those files in my graph trials.

Roscoe62
3rd August 2008, 01:38
Hey, has anyone successfully used eac3to with the region a BR of Mr & Mrs Smith?

The reason I ask is that when I use eac3to to look at the BR directory, and then choose option 1 (the only option) I get this message...

C:\EAC3to\eac3to d:\hidef\mrmrssmith 1)
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
The program channel mapping changes in the middle of the stream.
M2TS, 1 video track, 6 audio tracks, 6 subtitle tracks, 1:59:59
1: Chapters, 33 Chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 5.1 channels, 24 bits, 48khz, -9ms
4: AC3, French, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27db, -24ms
5: AC3, Spanish, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27db, -24ms
6: AC3, English, 2.0 channels, 224kbit/s, 48khz, dialnorm: -27db, -24ms
7: AC3, English, 2.0 channels, 224kbit/s, 48khz, dialnorm: -27db, -24ms
8: AC3, English, 2.0 channels, 224kbit/s, 48khz, dialnorm: -27db, -24ms
9: Subtitle (PGS), English
10: Subtitle (PGS), Spanish
11: Subtitle (PGS), Chinese
12: Subtitle (PGS), Korean
13: Subtitle (PGS), French
14: Subtitle (PGS), Spanish


I did a search on this thread, but couldn't find any answers.

piratburner
3rd August 2008, 07:51
Is is possible to make a "remux" from a BD ? I want take the mainmovie and sound, subs to output to a new m2ts file ??

If this works , then is the only tool I need :-) :-) :-)

madshi
3rd August 2008, 08:54
In some of my TS files eac3to is showing discontinuity error. Then i just re-remux that TS file with tsMuxeR v1.8.4b and again check that file with eac3to it shown no error.

In both files it shown 27694 frames. Hope you're getting me, what i want to say.
Is there a question hidden in your post somewhere? Or a request?

Do you still need samples of dts-hd high resolution tracks? I could upload samples from Band of Brothers HDDVD and Reservoir dogs Blu-Ray, both dts-hd_hr 5.1. I didn't have any problems with those, but I remember you having asked for hr samples even if they work.
DTS-HR samples with some special properties (e.g. 96khz or 6.1 or 7.1) are still welcome, but I don't need more straight 5.1 48khz samples. Thanks!

Another thing: There is some information on cyberlink audio decoder 8 and graph edit at the end of the madflac thread. I am convinced that, based on this, you could add support for "proper" 5/6.1 --> 7.1 upmix aswell as dolby headphone.:)
Doesn't Cyberlink still downconvert everything to 16bit?

it appears that I can't use -check option if one of the audio tracks is DTS Express.
Thanks, I'll check that out.

After processing many movies without any issue, I ran into a problem while converting an 2 channel 24 bit / 96Khz audio track from the John Mayer bluray disc to 16bit / 48KHz.

output:

C:\eac3to>eac3to f:\johnmayer 1) 4: c:\johnmayer_2ch_16b48k.flac -down16 -resampleto48000
M2TS, 1 video track, 2 audio tracks, 2:32:38
1: Chapters, 28 chapters
2: VC-1, 1080p24 /1.001 (16:9)
3: TrueHD/AC3, English, 5.1 channels, 96khz
4: RAW/PCM, English, 2.0 channels, 24 bits, 96khz
[a04] Extracting audio track number 4...
[a04] Reading RAW/PCM...
[a04] Swapping endian...
[a04] Resampling to 48khz...
[a04] Reducing depth from 24 to 16 bits...
[a04] Encoding FLAC...
Loading white noise (needed for dithering)...
[a04] Creating file "c:\johnmayer_2ch_16b48k.flac"...
-----------------------------------------------------------------^C

Then at about 80%, the process hangs, CPU goes back to 0%. I waited for an hour, but no progress. After I press <ctrl-c>, there is an output file which seems to play OK, but seek doesn't work. From the size of the file judged, it is not complete.

When I just extract the track & convert to flac (so keep 24/96), eac3to works correctly and the output file plays OK.

However, converting this 24/96 flac track to 16/48 with eac3to gives the same result: hangs at the same position.

Down convert to 16/96 works, only when I resample to 48k it hangs.

I cannot use r8brain directly for the conversion as r8brain doesn't support flac and seems to have problems with wave files larger then 2GB. So I'm kind of stuck here.

Tried in Windows Vista 32bit Home Premium SP1 USA on 2 different computers. eac3to version tried both 2.55 and 2.56

Anything I can try?
Hmmmmm... That sounds bad. Can you please in that situation where eac3to hangs run this tool:

http://madshi.net/madTraceProcess.zip

That will output a report of where eac3to is stuck. Can you please upload that report somewhere? Or you can also mail it to dear (at) madshi (dot) net. Thanks!

Remuxing The Interpreter yields:
Unfortunately the Haali Muxer cannot handle this source file.
It doesn't contain enough seek/recovery points.
Even with -seekToIFrames. Ideas?
Ouch, that's really bad. But there's nothing I can do about it right now. As was already suggested you could demux the h264 track and mux it to MKV with mkvmerge. Unfortunately sometimes mkvmerge produces bad results when doing h264 muxing. But maybe you're in luck with this one...

feature request >> add an option to demux m2ts/ts and/or evo files by chapters...:) That could be great.
Yeah, that would be nice. Unfortunately it's not as easy as it might seem. The problem is that I'd probably have to recalculate the audio delay for every chapter. And that doesn't really fit into the current eac3to code structure/logic. I'll put this on my to do list, but I don't think it will be implemented anytime soon...

Do you mind to tell what source filter you are using for ac3 core files?

I've never found any source filter which fits to those files in my graph trials.
You mean for demuxed AC3 files? The orbitlee source filter should work. Personally, I'm using my own, though...

Hey, has anyone successfully used eac3to with the region a BR of Mr & Mrs Smith?

The reason I ask is that when I use eac3to to look at the BR directory, and then choose option 1 (the only option) I get this message...

C:\EAC3to\eac3to d:\hidef\mrmrssmith 1)
The program channel mapping changes in the middle of the stream.
Could you please check whether the problem still occurs if you produce a sample with the first 50MB of the file? If the problem still occurs, could you please upload that 50MB sample somewhere for me to check? Thanks!

Is is possible to make a "remux" from a BD ? I want take the mainmovie and sound, subs to output to a new m2ts file ??
eac3to doesn't output m2ts. It only supports m2ts as an input format. Check out TsRemux and TsMuxer. I think both of them do what you're looking for.

Jan Marijniszoon
3rd August 2008, 11:26
That is no "core". The word "core" implies that the "core" is needed by the "extension". In Blu-Ray TrueHD tracks contain both TrueHD data blocks and AC3 frames. But both are totally independent of each other. Neither needs the other one.

I have a question about this. If you want to mux a Blu-Ray structure with tsMuxer, then it requires for the AC3 core to remain intact inside the TrueHD file.
When I want to remove dialogue normalisation with your wonderfull application, then I am 'forced' to detach the TrueHD stream from the core.

Is there maybe an undocumented option to still remove the dialogue normalisation, but maintain the full track? If not, maybe this can be a future request for your excellent application.

rica
3rd August 2008, 11:34
You mean for demuxed AC3 files? The orbitlee source filter should work.


Tnanks for the response; do you mean "dts core" or are there any standalone orbitlee DX Source filter?

EDIT: correction; dtscore only accepts dts and wav files; so there should be a standalone filter :stupid:

piratburner
3rd August 2008, 12:30
eac3to doesn't output m2ts. It only supports m2ts as an input format. Check out TsRemux and TsMuxer. I think both of them do what you're looking for.

If itīs possible to make a m2ts output, would you try that then ?

deathlord
3rd August 2008, 13:17
Doesn't Cyberlink still downconvert everything to 16bit?

It probably does. But we don't need the decoder for decoding, only for applying dolby pro logic IIx or dolby headphone.
That means we can feed it 16bit in the first place, there will be no problem with downconverting.
Of course 24bit tracks will have to be converted to 16bit by eac3to first, so it might take a bit longer. But that's not really a problem. And I assume you agree 16bit-quality is enough if pro logic is applied to the audio afterwards.;)

I personally downconvert everything to 16bit in eac3to. I think 24bit is a waste of diskspace.:D So the dplIIx functionality would also be very useful for me in madflac.

deathlord
3rd August 2008, 14:03
Actually, Reservoir Dogs was 6.1, not 5.1. So here (http://www.megaupload.com/?d=F0N71KD1) is a sample.

woah!
4th August 2008, 01:43
was a fix made (which i have not read) with the edward scissorhands 3/1 dts conversion here http://forum.doom9.org/showthread.php?p=1120187&highlight=SCISSORHANDS#post1120187 ? http://forum.doom9.org/showthread.php?p=1151620&highlight=SCISSORHANDS#post1151620

i have tried a few different things mentioned in this very long thread but i cant seem to get from the dtsma to ac3 file. do i need to go to another format first maybe?

Roscoe62
4th August 2008, 01:48
Could you please check whether the problem still occurs if you produce a sample with the first 50MB of the file? If the problem still occurs, could you please upload that 50MB sample somewhere for me to check? Thanks!

Hi Madshi,

I created the 50Mb sample and, yes, it still produces the error "The program channel mapping changes in the middle of the stream", but it also produces an error "This TS/M2TS file seems to be damaged (sync byte missing). The format of the source file could not be detected."

Hopefully this is what normally happens when you just take a slice of the original file. Also, I note 50Mb doesn't even get you past the studio fanfare, so hopefully it's big enough for you. Please let me know if you need a larger piece.

Anyway, here (http://www.sendspace.com/file/b00ppu) it is!

sehgal.v7
4th August 2008, 02:56
@Madshi
Yeap, question is why eac3to shown discontinuety error, & not when just remuxed nothing changing by TSMuxer.
Secondly, i want you add feature to demux tracks on other location. It's not implemented yet.
"eac3to C:\0000.m2ts D:\ -demux"

Regards,
Sehgal

tebasuna51
4th August 2008, 10:41
was a fix made (which i have not read) with the edward scissorhands 3/1 dts conversion here http://forum.doom9.org/showthread.php?p=1120187&highlight=SCISSORHANDS#post1120187 ? http://forum.doom9.org/showthread.php?p=1151620&highlight=SCISSORHANDS#post1151620

i have tried a few different things mentioned in this very long thread but i cant seem to get from the dtsma to ac3 file. do i need to go to another format first maybe?

The 3/1.0 channelmap format is not standard and I can't do the conversion with a direct:
eac3to 310sam.dts 310sam.ac3
I obtain this error:
...
The AC3 encoder received a non-supported data format.
...

But using the aften encoder and arcsoft decoder you can try:
eac3to 310sam.dts stdout.wav -extensible | aften - 310sam.ac3

Using -libav (only core of course) you need remap:
eac3to 310sam.dts stdout.wav -libav -1,2,0,3,4,5 -extensible | aften - 310sam.ac3

shanghai2004
4th August 2008, 11:11
Hmmmmm... That sounds bad. Can you please in that situation where eac3to hangs run this tool:

http://madshi.net/madTraceProcess.zip

That will output a report of where eac3to is stuck. Can you please upload that report somewhere? Or you can also mail it to dear (at) madshi (dot) net. Thanks!



Thanks for the reply!
Mail just send... hope it helps.

xsictransitx
5th August 2008, 00:33
This is not possible yet. Maybe it will be supported in the future, as madshi said somwhere above.
However, you should be able to do everything in one go already. Just use the eac3toandmore GUI.

Thanks deathlord, the issue is that I am writing my own application on the side with its own gui and would like to reference eac3to as is. Is it possible through just MKVtoolnix to insert the flac audio track? I am searching for how to do so as I type this but am having no luck.

rica
5th August 2008, 00:47
Hi guys, i'm sorry but i've been still searching Orbitlee's source filter. Any help would be appreciated.

woah!
5th August 2008, 05:14
The 3/1.0 channelmap format is not standard and I can't do the conversion with a direct:
eac3to 310sam.dts 310sam.ac3
I obtain this error:
...
The AC3 encoder received a non-supported data format.
...

But using the aften encoder and arcsoft decoder you can try:
eac3to 310sam.dts stdout.wav -extensible | aften - 310sam.ac3

Using -libav (only core of course) you need remap:
eac3to 310sam.dts stdout.wav -libav -1,2,0,3,4,5 -extensible | aften - 310sam.ac3


thx for the help tebasuna51 , you really know your stuff :)

i ended up using this cmd and the result is great :)

eac3to 00002.m2ts stdout.wav -extensible | aften - OUTPUT.ac3 -b 640

Aften: A/52 audio encoder
Version 0.0.8
(c) 2006-2007 Justin Ruggles, Prakash Punnoor, et al.

input format: WAVE Signed 24-bit little-endian 48000 Hz 4-channel
output format: 48000 Hz 3/1

SIMD usage: MMX SSE SSE2 SSE3
Threads: 4

progress: 0% | q: 365.6 | bw: 60.0 | bitrate: 640.0 kbps


seems it pulled the correct audio stream off the m2ts file so i didnt need to demux all the streams first..

gigah72
5th August 2008, 08:38
sorry, if the question was answerd before, but i didn't see it.
do you have any plans for including h.264 pulldown removal?

deathlord
5th August 2008, 11:28
Thanks deathlord, the issue is that I am writing my own application on the side with its own gui and would like to reference eac3to as is. Is it possible through just MKVtoolnix to insert the flac audio track? I am searching for how to do so as I type this but am having no luck.

I am not quite sure if I understand correctly, but why don't you just use the command line options from mkvmerge to mux video.mkv and audio.flac? You can find the options here (http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvmerge.html).
I know of no other way to mux flac into .mkv, but I don't really see why you would need one, it works very well this way.

rica
6th August 2008, 00:36
I've had finally a BD which has a DTS-HD: Hitman.

I was planning to convert it into a multichannel wav and later seperate to 6 mono channels by Tranzcode or WaveVizard and finally i would convert to dts 1536/48 via Surcode DVD Pro DTS.

I have Arcsoft TMT and first step went fine with eac3to:
eac3to v2.56
command line: "C:\eac3to\eac3to.exe" "F:\HITMAN_F4\BDMV\STREAM\00002.track_4353.dts" "F:\HITMAN_F4\BDMV\STREAM\00002.track_4353.wav"
------------------------------------------------------------------------------
DTS Hi-Res, 5.1 channels, 1:34:15, 24 bits, 3072kbit/s, 48khz
Decoding with ArcSoft DTS Decoder...
Writing WAV...
Creating file "F:\HITMAN_F4\BDMV\STREAM\00002.track_4353.wav"...
Caution: The WAV file is bigger than 4GB.
Some WAV readers might not be able to handle this file correctly.
eac3to processing took 11 minutes, 6 seconds.
Done.

The next step never worked (i mean started but never completed) with neither tranzcode nor Wavevizard since the source file was larger than 4GB-i think.

Caution: The WAV file is bigger than 4GB.
Some WAV readers might not be able to handle this file correctly.


Any recomandations?

EDIT: The source dts file was 822 MB since the created wav was 4.6 GB.

Snowknight26
6th August 2008, 01:04
First of all, if its DTS-HD, you can extract the DTS core using -core.
If its not DTS-HD (yours seems to be DTS-HD High Resolution), you can convert the whole stream to DTS the same way you would the above but without -core.

Not sure why you're trying to do it in 3 steps.

EPiPH0NE
6th August 2008, 01:05
Snowknight26 beat me to it.

rica
6th August 2008, 01:07
First of all, if its DTS-HD, you can extract the DTS core using -core.
If its not DTS-HD (yours seems to be DTS-HD High Resolution), you can convert the whole stream to DTS the same way you would the above but without -core.

Not sure why you're trying to do it in 3 steps.

Would you give me the code please to do it in one step?

EPiPH0NE
6th August 2008, 01:08
eac3to input.dtshd output.dts -core

I think.

SpaceAgeHero
6th August 2008, 01:33
Hey Madshi, something seems to be wrong with Blu-ray subtitle demuxing for seamless branching movies.
The movie I've got here is split into two (unequal) m2ts parts and subtitles which are supposed to be in the second part, already occur in the first part.

1st m2ts part duration: 58:15
2nd m2ts part duration: 42:46


Until subtitle 8 everything is fine (SupRip v1.0):

8
00:51:46,395 --> 00:51:49,063
Text1

But then the next subtitle kicks in much too early and right after the 8th subtitle:

9
00:51:49,063 --> 00:51:51,814
Text2

It is actually supposed to start at 01:00:59 (2nd m2ts part).

Hope that helps if you want to take a look at that.

rica
6th August 2008, 01:37
eac3to input.dtshd output.dts -core

I think.

My beated friend, thanks for your kind response;

here are what i can see:

http://img440.imageshack.us/img440/1133/hitman01ke7.th.png (http://img440.imageshack.us/my.php?image=hitman01ke7.png)

http://img440.imageshack.us/img440/9915/hitman02qd7.th.png (http://img440.imageshack.us/my.php?image=hitman02qd7.png)

It seems dts_hd, right?

But finally, it accepts just " *.dts "as output but not "-core".

eac3to v2.56
command line: "C:\eac3to\eac3to.exe" "F:\HITMAN_F4\BDMV\STREAM\00002.track_4353.dts" "F:\HITMAN_F4\BDMV\STREAM\00002.track_4353_out.dts"
------------------------------------------------------------------------------
DTS, 5.1 channels, 1:16:01, 24 bits, 1536kbit/s, 48khz
Removing DTS zero padding...
Creating file "F:\HITMAN_F4\BDMV\STREAM\00002.track_4353_out.dts"...
The last DTS frame is incomplete and thus gets skipped.
eac3to processing took 1 minute, 21 seconds.
Done.

EPiPH0NE
6th August 2008, 08:11
You don't have to demux the track you can just use the M2TS file as input in eac3to. I use Eac3to_And_More_GUI cause I loathe CMD but I think it would look something like:

eac3to input.m2ts output.dts -core (<- this is a 'switch' telling eac3to to 'core' the DTS-HD track, see first page)


I think you may need to specify certain title sets in the CMD but as I said I use a GUI cause weed and CMD don't mix :D

rica
6th August 2008, 14:30
OK, fixed:

eac3to v2.56

command line: eac3to\eac3to.exe "F:\HITMAN_F4\BDMV\STREAM\00002.m2ts" 4: "C:\Users\rica\Desktop\eac3to-output\new.dts" -core
------------------------------------------------------------------------------
M2TS, 1 video track, 7 audio tracks, 29 subtitle tracks, 1:34:15
1: Chapters, 25 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS, Italian, 5.1 channels, 24 bits, 768kbit/s, 48khz
4: DTS Hi-Res, English, 5.1 channels, 24 bits, 3072kbit/s, 48khz
5: DTS, Spanish, 5.1 channels, 24 bits, 768kbit/s, 48khz
6: DTS, Russian, 5.1 channels, 24 bits, 768kbit/s, 48khz
7: AC3, Czech, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB
8: AC3, Hungarian, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB
9: AC3, Polish, 2.0 channels, 224kbit/s, 48khz, dialnorm: -27dB
10: Subtitle (PGS), Italian
11: Subtitle (PGS), Italian
12: Subtitle (PGS), Ukrainian
13: Subtitle (PGS), Spanish
14: Subtitle (PGS), Spanish
15: Subtitle (PGS), Russian
16: Subtitle (PGS), Russian
17: Subtitle (PGS), Czech
18: Subtitle (PGS), Czech
19: Subtitle (PGS), English
20: Subtitle (PGS), Hungarian
21: Subtitle (PGS), Hungarian
22: Subtitle (PGS), Polish
23: Subtitle (PGS), Arabic
24: Subtitle (PGS), Modern Greek
25: Subtitle (PGS), Hebrew
26: Subtitle (PGS), Icelandic
27: Subtitle (PGS), Portuguese
28: Subtitle (PGS), Croatian
29: Subtitle (PGS), Slovenian
30: Subtitle (PGS), Turkish
31: Subtitle (PGS), Bulgarian
32: Subtitle (PGS), Romanian
33: Subtitle (PGS), Serbian
34: Subtitle (PGS), Estonian
35: Subtitle (PGS), Latvian
36: Subtitle (PGS), Lithuanian
37: Subtitle (PGS), English
38: Subtitle (PGS), Polish
[a04] Extracting audio track number 4...
[a04] Extracting DTS core...
[a04] Creating file "C:\Users\rica\Desktop\eac3to-output\new.dts"...
Video track 2 contains 135576 frames.
eac3to processing took 10 minutes, 23 seconds.
Done.


Here is the file i got with that code:

http://img115.imageshack.us/img115/7918/madshi01to3.png

_ _ _ _ _

rica
6th August 2008, 15:41
This is the other code and the file i got:

C:\>eac3to\eac3to.exe "F:\HITMAN_F4\BDMV\STREAM\00002.m2ts" 4: "C:\Users\rica\Desktop\eac3to-output\out.dts

M2TS, 1 video track, 7 audio tracks, 29 subtitle tracks, 1:34:15
1: Chapters, 25 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS, Italian, 5.1 channels, 24 bits, 768kbit/s, 48khz
4: DTS Hi-Res, English, 5.1 channels, 24 bits, 3072kbit/s, 48khz
5: DTS, Spanish, 5.1 channels, 24 bits, 768kbit/s, 48khz
6: DTS, Russian, 5.1 channels, 24 bits, 768kbit/s, 48khz
7: AC3, Czech, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB
8: AC3, Hungarian, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB
9: AC3, Polish, 2.0 channels, 224kbit/s, 48khz, dialnorm: -27dB
10: Subtitle (PGS), Italian
11: Subtitle (PGS), Italian
12: Subtitle (PGS), Ukrainian
13: Subtitle (PGS), Spanish
14: Subtitle (PGS), Spanish
15: Subtitle (PGS), Russian
16: Subtitle (PGS), Russian
17: Subtitle (PGS), Czech
18: Subtitle (PGS), Czech
19: Subtitle (PGS), English
20: Subtitle (PGS), Hungarian
21: Subtitle (PGS), Hungarian
22: Subtitle (PGS), Polish
23: Subtitle (PGS), Arabic
24: Subtitle (PGS), Modern Greek
25: Subtitle (PGS), Hebrew
26: Subtitle (PGS), Icelandic
27: Subtitle (PGS), Portuguese
28: Subtitle (PGS), Croatian
29: Subtitle (PGS), Slovenian
30: Subtitle (PGS), Turkish
31: Subtitle (PGS), Bulgarian
32: Subtitle (PGS), Romanian
33: Subtitle (PGS), Serbian
34: Subtitle (PGS), Estonian
35: Subtitle (PGS), Latvian
36: Subtitle (PGS), Lithuanian
37: Subtitle (PGS), English
38: Subtitle (PGS), Polish
[a04] Extracting audio track number 4...
[a04] Creating file "C:\Users\rica\Desktop\eac3to-output\out.dts"...
Video track 2 contains 135576 frames.
eac3to processing took 10 minutes, 30 seconds.
Done.



http://img386.imageshack.us/img386/8755/madshi02ra2.png

EPiPH0NE
6th August 2008, 17:17
@rica

Well, it looks like you figured it out :) What region BluRay is your Hitman disc? I used Region A and it has DTS-MA not DTS-HD. You got ripped off :P

rica
6th August 2008, 17:34
@epiphone, it was a Region "B" BD.

BTW, i've decided not to demux audio files with TSMuxer first since i've found it only takes core side of the audio but not HD data; at least for dts-hd.

The last fifteen minute frame is missing and look what i got:

ac3to v2.56
command line: eac3to\eac3to.exe "F:\HITMAN_F4\BDMV\STREAM\00002.track_4353.dts" "C:\Users\rica\Desktop\eac3to-output\out_2.dts"
------------------------------------------------------------------------------
DTS, 5.1 channels, 1:16:01, 24 bits, 1536kbit/s, 48khz
Removing DTS zero padding...
Creating file "C:\Users\rica\Desktop\eac3to-output\out_2.dts"...
The last DTS frame is incomplete and thus gets skipped.
eac3to processing took 35 seconds.
Done.

Final file is just an uncompleted core dts (not a dts-hd):

http://img440.imageshack.us/img440/5056/madshi03re3.png

Compare with the one i gave on previous post; command line is completely same except the source file.

And finally thanks for reminding me using eac3to directly:thanks:
_ _ _ _ _ _

Ranguvar
6th August 2008, 23:17
Madshi, are there any plans to release the source code and/or provide Linux binaries? At least for just doing demuxing, the dialog normalization, the channel remapping, and the delay fixing.

Thanks very much. I will be switching to Linux soon (hopefully), and it doesn't seem as though anyone's got this working through Wine or other software. If not, can you recommend any applications capable of detecting the dialog normalization/removing it, and doing the channel remapping?

xkodi
7th August 2008, 10:08
FYI, new Arcsoft update is available:

http://base.arcsoft.com/downloads/totalmediaextreme/arcsoft/TotalMediaExtreme_1.0.6.23_1.0.6.30_Update_ALL.exe

interesting, there is now DirectShow DTS Encoder filter (dtsencoder.ax).

B4tm4n
7th August 2008, 10:40
FYI, new Arcsoft update is available:

http://base.arcsoft.com/downloads/totalmediaextreme/arcsoft/TotalMediaExtreme_1.0.6.23_1.0.6.30_Update_ALL.exe

interesting, there is now DirectShow DTS Encoder filter (dtsencoder.ax).


I take it you've updated, and is eac3to still working with the arcsoft filter ?

Cheers.

xkodi
7th August 2008, 10:44
I take it you've updated, and is eac3to still working with the arcsoft filter ?

Cheers.

yes, i have updated and yes, eac3to still works with this latest update.

Thunderbolt8
7th August 2008, 12:37
does the latest version still decode all dts-hd (ma) stuff bit perfectly?

xkodi
7th August 2008, 12:45
does the latest version still decode all dts-hd (ma) stuff bit perfectly?

didn't test that, dtsdecoderdll.dll is still version 1.1.0.0, but binary it is different file, because:

dtsdecoderdll.dll version 1.1.0.0 (from TMT build 113)
MD5 52191f0d600ba19065ace3720b76ed87

dtsdecoderdll.dll version 1.1.0.0 (from the latest TMT build 120)
MD5 644aa3ade7742079533dcde2abf153e2

[edit] i've tested on 3 DTS-HD MA samples and the results are bit-perfect.

Thunderbolt8
7th August 2008, 13:37
thanks. is there any reason to upgrade at all when using it only within eac3to?

xkodi
7th August 2008, 14:08
thanks. is there any reason to upgrade at all when using it only within eac3to?

i don't think that there is such reason, because the old build 113 works great with eac3to.

B4tm4n
7th August 2008, 16:21
yes, i have updated and yes, eac3to still works with this latest update.

Thanks for the info.

rica
7th August 2008, 16:32
FYI, new Arcsoft update is available:

http://base.arcsoft.com/downloads/totalmediaextreme/arcsoft/TotalMediaExtreme_1.0.6.23_1.0.6.30_Update_ALL.exe

interesting, there is now DirectShow DTS Encoder filter (dtsencoder.ax).

Can you use dtsencoder.ax as standalone, say under GraphStudio, or just inside the TMExtreme application itself?

Would you give a screenshot from the properties page of the filter?

Thanks.

rica
7th August 2008, 21:09
Can you use dtsencoder.ax as standalone, say under GraphStudio, or just inside the TMExtreme application itself?


Self-answering:

I've given a go with TME-trial; the answer is Arcsoft doesn't allow using dtsencoder.ax as standalone.
Then, does it allow it to be used in the application?

I haven't seen any dts alternative under the audio options:

http://img385.imageshack.us/img385/5363/tmeyo0.png

rebkell
7th August 2008, 21:35
Just wanted to thank madshi once again for the aac support, I've been playing around with the Hauppauge HD-PVR capture device and trying to cut commercials with h264ts_cutter and it leaves some horrible audio/video sync problems behind and eac3to fixes them right up and this is with just one ts file, it recognizes the gaps and overlaps and corrects them.

Yraen
7th August 2008, 23:28
madshi,

When trying to demux Starship Troopers I get this:


eac3to v2.56
command line: "D:\editing apps\eac3to\2.56\eac3to.exe" "N:\hd\STARTSHIP_TROOPERS_1_P1\" 1) 2: "N:\demux\video.mkv" -seekToIFrames 1: "N:\demux\starship_troopers_chapters.txt"
------------------------------------------------------------------------------
The program channel mapping changes in the middle of the stream.
M2TS, 2 video tracks, 5 audio tracks, 4 subtitle tracks, 2:10:27
1: Chapters, 55 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: h264/AVC, 480p24 /1.001 (20:11)
4: TrueHD/AC3, English, 5.1 channels, 48khz, dialnorm: -27dB
5: TrueHD/AC3, French, 5.1 channels, 48khz, dialnorm: -27dB
6: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
7: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
8: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -26dB
9: Subtitle (PGS), English
10: Subtitle (PGS), English
11: Subtitle (PGS), French
12: Subtitle (PGS), Spanish
The program channel mapping changes in the middle of the stream.
Creating file "N:\demux\starship_troopers_chapters.txt"...
[v02] Extracting video track number 2...
[v02] Muxing video to Matroska...
[v02] The program type (4352) changes from $83 to $81.
Aborted at file position 35201290240.


"The program channel mapping changes in the middle of the stream." repeats many times in both places it appears above. Let me know if you want a sample.

Snowknight26
8th August 2008, 01:32
If DTS Express decoding was ever implemented in libavcodec, would eac3to be able to use it too?

rica
8th August 2008, 09:40
If DTS Express decoding was ever implemented in libavcodec, would eac3to be able to use it too?

I think it's gonna work:

eac3to "input(source folder+source file)" "output(destination folder+destination file " -libav

rica
8th August 2008, 21:12
(Madshi, please correct me if i am wrong.)

I got an m2ts file carrying DTS-HD High Resolution audio as a sample.

Extracting dts-core:

command line: eac3to\eac3to.exe "F:\HITMAN_F4\BDMV\STREAM\00002.m2ts" 4: "C:\Users\rica\Desktop\eac3to-output\new.dts" -core

------------------------------------------------------------------------------
**************

[a04] Extracting audio track number 4...
[a04] Extracting DTS core...
[a04] Creating file "C:\Users\rica\Desktop\eac3to-output\new.dts"...
Video track 2 contains 135576 frames.
eac3to processing took 10 minutes, 23 seconds.
Done.

Extracting dts-hd:

command line: eac3to\eac3to.exe "F:\HITMAN_F4\BDMV\STREAM\00002.m2ts" 4: "C:\Users\rica\Desktop\eac3to-output\out.dts

------------------------------------------------------------------------------
**************

[a04] Extracting audio track number 4...
[a04] Creating file "C:\Users\rica\Desktop\eac3to-output\out.dts"...
Video track 2 contains 135576 frames.
eac3to processing took 10 minutes, 30 seconds.
Done.

If you have noticed no decoder seems active in processing information lines:

[a04] Extracting audio track number 4...
[a04] Extracting DTS core...

or:

[a04] Extracting audio track number 4...

If i would translate the command line into a graph file, this would be:

Madshi's Source Filter(+demuxer) > Dump

So no decoder exists here; madshi's source filter just extracts core or hd file.


But if we are trying to convert the source file to any other format; lets say dts to ac3, dts to wav, dts to flac, this time decoders and encoders will be in the game.

So as to convert the source file to another format you have to decode it first with a decoder and re-encode it with an encoder.

Here are the default decoders which madshi and eac3to selects:

default decoders used by eac3to:

MP1, MP2, MP3: libav/ffmpg

(E-)AC3: Nero

AAC: NeroTrueHD: libav/ffmpeg

DTS(-HD): ArcSoft

For best DTS decoding you need:
(1) ArcSoft DTS Decoder - version 1.1.0.0 or newer

For best AC3, E-AC3 and AAC decoding you need:
(1) Nero 7 (Nero 8 won't work!)
(2) Nero HD-DVD / Blu-Ray plugin"

If you have one of those above, eac3to automatically selects the appropriate one; if not, it is gonna select the compatible default decoder filter you have.

The most important part of the re-encoding process is not encoding or encoder itself but is decoding and selected decoder since there has never been any perfect encoder available yet which is getting the the best re-encoded file using the worst decoded source.

So i think madshi doesn't advise any encoder except surcode for dts; which means any other default encoder will be accepted by eac3to.


Decoding dts-hd (with arcsoft which is selected by eac3to as default) into ac3 (with default ac3 encoder filter):

eac3to v2.56
command line: eac3to\eac3to.exe "F:\HITMAN_F4\BDMV\STREAM\00002.m2ts" 4: "C:\Users\rica\Desktop\eac3to-output\newest.ac3"
------------------------------------------------------------------------------
***************

[a04] Extracting audio track number 4...
[a04] Decoding with ArcSoft DTS Decoder...
[a04] Encoding AC3...
[a04] Creating file "C:\Users\rica\Desktop\eac3to-output\newest.ac3"...
Video track 2 contains 135576 frames.
eac3to processing took 10 minutes, 55 seconds.
Done.

Decoding dts-hd (with forced libav codec which is selected by user) into ac3 (with default ac3 encoder filter) -note: just for trial:

eac3to v2.56
command line: eac3to\eac3to.exe "F:\HITMAN_F4\BDMV\STREAM\00002.m2ts" 4: "C:\Users\rica\Desktop\eac3to-output\new.ac3" -libav
------------------------------------------------------------------------------
****************

[a04] The libav DTS decoder doesn't decode the full DTS-HD information.
[a04] Extracting audio track number 4...
[a04] Extracting DTS core...
[a04] Decoding with libav/ffmpeg...
[a04] Remapping channels...
Loading white noise (needed for dithering)...
[a04] Encoding AC3...
[a04] Creating file "C:\Users\rica\Desktop\eac3to-output\new.ac3"...
Video track 2 contains 135576 frames.
eac3to processing took 10 minutes, 28 seconds.
Done.


If i would translate the command line into a graph file this would be:

Madshi's Source Filter(+demuxer) > Arcsoft decoder (or Libav Decoder) > AC3 encoder > File writer (*.ac3)

Have a look at the final lines:

[a04] Extracting audio track number 4...
[a04] Decoding with ArcSoft DTS Decoder...
[a04] Encoding AC3...

or:

[a04] The libav DTS decoder doesn't decode the full DTS-HD information.
[a04] Extracting audio track number 4...
[a04] Extracting DTS core...
[a04] Decoding with libav/ffmpeg...
[a04] Remapping channels...
Loading white noise (needed for dithering)...
[a04] Encoding AC3...


BTW: madshi, is it possible to give encoder info which is been using by eac3to while processing?


_ _ _ _

tebasuna51
8th August 2008, 21:38
So i think madshi doesn't advised any encoder except surcode for dts; which means any other encoder as default by system will be accepted. (if you have one):

Nope, is more important the encoder and eac3to include the free ac3 encoder Aften (libaften.dll) and the free encoder flac (libflac.dll).

Don't exist dts free encoder then sugest Surcode.

For aac encode there are faac (in ffmpeg) but for better quality use the free (for download) NeroAacEnc using the pipe:
eac3to input stdout.wav [param] | neroaacenc [param] -if - -of output.m4a

rica
8th August 2008, 21:43
Nope, is more important the encoder and eac3to include the free ac3 encoder Aften (libaften.dll) and the free encoder flac (libflac.dll).

Don't exist dts free encoder then sugest Surcode.

For aac encode there are faac (in ffmpeg) but for better quality use the free (for download) NeroAacEnc using the pipe:
eac3to input stdout.wav [param] | neroaacenc [param] -if - -of output.m4a

OK, i didn't know the backstage very well;
Thanks for that valuable information
but it doesn't change the reality :
"encoder is important ofcourse but decoder is more and more important than the encoder"

EDIT: If you have a real master audio which doesn't need any decoder; yes this time "the encoder" will be the King :)
The better would be, of course ,is having the best decoder and the best encoder twins for re-encode needed files.
But for re-encoding needs, at least decoder must be better than the encoder; not the encoder...
BTW, I suppose if madshi would have thought the encoders are more important than the decoders , he wouldn't care if they were free or not but would suggest them like he did in decoder recommendatitions.

EDIT: Madshi; we need you...


_ _ _ _ _

3ngel
9th August 2008, 08:23
The latest Trial Version of TotalMediaExtreme 1.0.6.30 downloaded from the ArcSoft site doesn't work.
Eac3 output something .dll missing (Magcore etc..), but even putting them in System32 the eac3to says "Doesn't seem to be installed"

tebasuna51
9th August 2008, 09:36
BTW, I suppose if madshi would have thought the encoders are more important than the decoders , he wouldn't care if they were free or not but would suggest them like he did in decoder recommendatitions.

About losless flac encoder only exist the free one, but for ac3 there are many not free encoders.

You can use the Surcode Dolby Digital encoder (http://www.surcode.com/low/products/products.htm) ($995) to ac3 encode. I don't know if is better than Aften but at least is Dolby certified.

xkodi
9th August 2008, 10:46
The latest Trial Version of TotalMediaExtreme 1.0.6.30 downloaded from the ArcSoft site doesn't work.
Eac3 output something .dll missing (Magcore etc..), but even putting them in System32 the eac3to says "Doesn't seem to be installed"

the old "totalmediaextreme_retail_trial_e.exe" was version 1.0.6.28 and about 150MB in size, the new "totalmediaextreme_retail_trial_e.exe" that is currently on their site is version 1.0.6.30 and only about 100MB in size probably a lot of files are missing including those for proper dts decoding.

madshi
9th August 2008, 14:48
I have a question about this. If you want to mux a Blu-Ray structure with tsMuxer, then it requires for the AC3 core to remain intact inside the TrueHD file.
When I want to remove dialogue normalisation with your wonderfull application, then I am 'forced' to detach the TrueHD stream from the core.

Is there maybe an undocumented option to still remove the dialogue normalisation, but maintain the full track? If not, maybe this can be a future request for your excellent application.
Can TsMuxer mux TrueHD streams in the first place? I think I've read that it doesn't do that (at least not properly).

Tnanks for the response; do you mean "dts core" or are there any standalone orbitlee DX Source filter?
There is a source filter available from Orbit Lee somewhere. Don't know where. You will have to do a search...

If itīs possible to make a m2ts output, would you try that then ?
Almost everything is "possible". But that doesn't mean that I'll do it.

It probably does. But we don't need the decoder for decoding, only for applying dolby pro logic IIx or dolby headphone.
That means we can feed it 16bit in the first place, there will be no problem with downconverting.
Of course 24bit tracks will have to be converted to 16bit by eac3to first, so it might take a bit longer. But that's not really a problem. And I assume you agree 16bit-quality is enough if pro logic is applied to the audio afterwards.;)

I personally downconvert everything to 16bit in eac3to. I think 24bit is a waste of diskspace.:D So the dplIIx functionality would also be very useful for me in madflac.
I don't like compromises. And I don't like spending hours and hours on something which is crippled to start with.

was a fix made (which i have not read) with the edward scissorhands 3/1 dts conversion
I've improved (with tebasuna's help) the decoder's channel mapping. But I've not yet added support for any "funny" channel mappings when doing Aften encoding. Might do that later.

I created the 50Mb sample and, yes, it still produces the error "The program channel mapping changes in the middle of the stream"
Thanks, I'll check this out.

Yeap, question is why eac3to shown discontinuety error, & not when just remuxed nothing changing by TSMuxer.
eac3to behaves correctly. TsMuxer removes the discontinuities.

Secondly, i want you add feature to demux tracks on other location. It's not implemented yet.
"eac3to C:\0000.m2ts D:\ -demux"
That has been discussed just a page or 2 before your post.

do you have any plans for including h.264 pulldown removal?
Yes.

something seems to be wrong with Blu-ray subtitle demuxing for seamless branching movies.
The movie I've got here is split into two (unequal) m2ts parts and subtitles which are supposed to be in the second part, already occur in the first part.
Hmmmmm... I hope I can reproduce the problem here. I'll try. Maybe I'll need samples, maybe not...

Madshi, are there any plans to release the source code and/or provide Linux binaries?
No and no.

it doesn't seem as though anyone's got this working through Wine or other software.
A while ago somebody said it works with Wine. The DirectShow decoders don't seem to be working, though.

If not, can you recommend any applications capable of detecting the dialog normalization/removing it, and doing the channel remapping?
I'm sorry, I've no knowledge about Linux at all, nor about which tools are available for Linux which do such things...

interesting, there is now DirectShow DTS Encoder filter (dtsencoder.ax).
:)

Just wanted to thank madshi once again for the aac support, I've been playing around with the Hauppauge HD-PVR capture device and trying to cut commercials with h264ts_cutter and it leaves some horrible audio/video sync problems behind and eac3to fixes them right up and this is with just one ts file, it recognizes the gaps and overlaps and corrects them.
Thanks for the feedback! :) I haven't fully tested AAC gap/overlap detection, so it's nice to hear that it works that well.

"The program channel mapping changes in the middle of the stream." repeats many times in both places it appears above. Let me know if you want a sample.
I already have got a sample, but I'm not sure which movie that was. So if you could upload another sample, that may be helpful.

If DTS Express decoding was ever implemented in libavcodec, would eac3to be able to use it too?
If it's implemented under the LGPL license then yes. It doesn't seem probable that it gets implemented anytime soon, though. The libav DTS splitter isn't even able to properly detect and skip DTS-HD blocks yet, although I told the libav DTS maintainers how to do that. As far as I can say there's zero work being done on any DTS-HD support. The libav decoder currently supports only simple 5.1 decoding, not even 6.1 or 96khz. So I wouldn't expect any big progress anytime soon. Unless a new programmer shows up who'd do all the work...

EDIT: If you have a real master audio which doesn't need any decoder; yes this time "the encoder" will be the King :)
If you have highest quality sources then if you don't want to lose any quality you should be using lossless compression (FLAC). Both AC3 and DTS encoders lose quality. Maybe not much, but some quality is lost.

BTW, I suppose if madshi would have thought the encoders are more important than the decoders , he wouldn't care if they were free or not but would suggest them like he did in decoder recommendatitions.
Testing/judging decoders is easier than testing encoders. As long as an encoder doesn't do any terrible mistakes your best bet it to use your own ears to find out which encoder is best. Personally, I don't recommend any lossy encoder over another because I'm simply not qualified to judge their quality. What I can say is that FLAC is lossless, so that's the "best" encoder for quality. Of course it means that filesize is relatively big. As for lossy encoders: Choose your own poison, please.

Yraen
9th August 2008, 15:03
I already have got a sample, but I'm not sure which movie that was. So if you could upload another sample, that may be helpful.




The program channel mapping changes in the middle of the stream.
[v02] The program type (4352) changes from $83 to $81.
Aborted at file position 35201290240.



I've no problem finding a sample that has "The program channel mapping changes in the middle of the stream" but I am having trouble finding a sample that has "The program type (4352) changes from $83 to $81". It's about 3/4 of the way through the .m2ts files. Is that part important or do you feel it is probably caused by the channel mapping changing stream? I'll try again later to reproduce the latter part and get some type of sample up later.

xkodi
9th August 2008, 16:07
available Intro and Trial (Try and Buy) versions of Arcsoft TotalMediaTheatre (TMT) and TotalMediaExtreme (TME) and which of them work with eac3to:

1. TMT Intro version 2.1.6.120 - "TotalMediaTheatre_Retail_INTRO_E.exe" (md5 77ea5ecdc52af9f20d646cc352389cc2):

http://base.arcsoft.com/downloads/intro/TotalMediaTheatre_Retail_INTRO_E.exe

2. TMT Intro version 2.1.6.113 - "arcsoft_totalmediatheatre_engintro.exe" (md5 1a791141c0ed6fecd5cfdd8e9bf5527d):

http://base.arcsoft.com/downloads/intro/arcsoft_totalmediatheatre_engintro.exe

3. TME Trial version 1.0.6.30, includes TMT version 2.1.6.120 - "totalmediaextreme_retail_trial_e.exe" (md5 f349e119a80a8bb54b93b89994f575b1):

http://base.arcsoft.com/downloads/tbyb/totalmediaextreme_retail_trial_e.exe

4. TME Trial version 1.0.6.28, includes TMT version 2.1.6.110 - "totalmediaextreme_retail_trial_e.exe" (md5 cc8b379d8fd03a888a64b205cee6c3ee):

since 4 August 2008 not available anymore

5. TMT Update to version 2.1.6.120: TotalMediaTheatre_2.1.6.105_2.1.6.120_Update_ALL.exe (md5 b7e4ae0e305fb36a1a323ca72108a1f7):

http://www.arcsoft.com/downloads/digitaltheatre/arcsoft/totalmediatheatre_2.1.6.105_2.1.6.120_Update_ALL.exe

6. TMT Update to version 2.1.6.121: TotalMediaTheatre_2.1.6.105_2.1.6.121_Update_ALL (md5 2d6e97765ec5f249a93bd6e74a0cf6b0):

http://www.arcsoft.com/downloads/digitaltheatre/arcsoft/totalmediatheatre_2.1.6.105_2.1.6.121_Update_ALL.exe

7. TME Update to version 1.0.6.29, updates TMT to version 2.1.6.113 (md5 a145a747ba1c82874626a7d9457b988a):

http://base.arcsoft.com/downloads/totalmediaextreme/arcsoft/TotalMediaExtreme_1.0.6.23_1.0.6.29_Update_ALL.exe

8. TME Update to version 1.0.6.30, updates TMT to version 2.1.6.120: TotalMediaExtreme_1.0.6.23_1.0.6.30_Update_ALL.exe (md5 034130216a7edbe5998728c731f12dba):

http://base.arcsoft.com/downloads/totalmediaextreme/arcsoft/TotalMediaExtreme_1.0.6.23_1.0.6.30_Update_ALL.exe

1. is completely broken: clean installation of 1. on clean installation of Windows - TMT doesn't start at all, because "uDigital Theatre.exe" hangs on startup, eac3to also doesn't work saying that MagCore.dll is not found

1. + 6.: clean installation of 1. updated to version 2.1.6.121 with 6. on clean installation of Windows - fix the problem that TMT 2.1.6.120 doesn't start at all, because "uDigital Theatre.exe" hangs on startup, but eac3to still doesn't work saying that MagCore.dll is not found

3. is completely broken: clean installation of 3. on clean installation of Windows - TMT doesn't start at all, because "uDigital Theatre.exe" hangs on startup, eac3to also doesn't work saying that MagCore.dll is not found

2. works great

2. + 5. and/or 6. works great

4. doesn't include DTS-HD MA decoder

4.+ 7. and/or 8. works great

if you first install working version (2.; 2. + 5. and/or 6.; 4. + 7. and/or 8.), then uninstall it and install not-working version (1.; 1. + 6.; 3.) they also start to work. however, seems that the safest path is to install older Try and Buy version and then go with web updates to the latest version, too bad that 4. is not available anymore on their web site, but 2. is still available.

[edit 20080812]
1.; 1. + 6.; 3. also work, see the following post for the fix:
http://forum.doom9.org/showthread.php?p=1168931#post1168931

shambles
9th August 2008, 16:36
there was a request to add 24/1.001fps->24fps conversion support to eac3to.. what i'd like though is support for 24->24/1.001 for those few 24fps blu-ray titles like infernal affairs

~bT~
9th August 2008, 16:56
@ xkodi

tyvm! very helpful post.

update: thanks to you I have finally got it working!!!

madshi
9th August 2008, 18:00
I've no problem finding a sample that has "The program channel mapping changes in the middle of the stream" but I am having trouble finding a sample that has "The program type (4352) changes from $83 to $81". It's about 3/4 of the way through the .m2ts files. Is that part important or do you feel it is probably caused by the channel mapping changing stream? I'll try again later to reproduce the latter part and get some type of sample up later.
I'm not sure. A sample with the "program type change" would be helpful in any case cause I don't have such a sample yet. Thanks...

available Intro and Trial (Try and Buy) versions of Arcsoft TotalMediaTheatre (TMT) and TotalMediaExtreme (TME) and which of them work with eac3to
Thank you. That must have cost you a lot of time!

rica
10th August 2008, 00:22
If you have highest quality sources then if you don't want to lose any quality you should be using lossless compression (FLAC). Both AC3 and DTS encoders lose quality. Maybe not much, but some quality is lost.


Testing/judging decoders is easier than testing encoders. As long as an encoder doesn't do any terrible mistakes your best bet it to use your own ears to find out which encoder is best. Personally, I don't recommend any lossy encoder over another because I'm simply not qualified to judge their quality. What I can say is that FLAC is lossless, so that's the "best" encoder for quality. Of course it means that filesize is relatively big. As for lossy encoders: Choose your own poison, please.

Sure, you will always lose the quality; much or less but you will lose anyway whenever use an encoder.
I was just comparing the importance of the decoders with encoders in re-encoding process.

You can compare the encoders trying different ones on the same master lossless audio and you can select one of them. (if you want to re-encode them- the price will be the quality loss)
Remember what madshi says :
an encoder doesn't do any terrible mistakes
But decoders might make terrible mistakes by which no any perfect encoder recovers.
So i say for re-encoding process:
Priority is on the decoder.

But if you have a master audio and want to re-encode it, you can compare just encoders since there is no need of decoding of the source file. So there are no decoders to compare as well in this case.

What if you have a compressed audio and you want to re-encode it:
You have to decode it first and
You have to re-encode to another format.
This is where decoders have priority.

You can trust your ears while listening the files decoded by different decoders and can compare them but if you dont have very sensitive ears you would never see the difference between the files made by different brand encoders which encoding to the same format.(if you are using the same decoder but different brand encoders)

deathlord
10th August 2008, 09:27
I don't like compromises. And I don't like spending hours and hours on something which is crippled to start with.

Ok, I understand that. Maybe cyberlink adds 24bit support some time. I will try to keep track of this.
For the time being, could you add an undocumented switch that attenuates back right and back left to 0.76 when "7doubling" is applied?

yonta
10th August 2008, 11:59
1. is completely broken: clean installation of 1. on clean installation of Windows - TMT doesn't start at all, because "uDigital Theatre.exe" hangs on startup, eac3to also doesn't work saying that MagCore.dll is not found


Reboot Windows after installing TMT and it works.

Add this folder to your 'PATH' environment variable and ArcSoft DTS Decoder also works fine.

c:\Program Files\Common Files\ArcSoft\Bin\

rica
10th August 2008, 15:13
Hi guys, need some help; THX in advance:

This works: (just one EVO)

eac3to v2.56
command line: eac3to\eac3to.exe "F:\TERMINATOR_3_HDDVD\HVDVD_TS\PEVOB_1.EVO" 3: "C:\Users\rica\Desktop\eac3to-output\try.ac3"
------------------------------------------------------------------------------
EVO, 2 video tracks, 7 audio tracks, 4 subtitle tracks, 0:54:56
1: VC-1, 1080p24 /1.001 (16:9) with pulldown flags
2: VC-1, 480p30 /1.001 (3:2)
3: E-AC3, English, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
4: E-AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
5: E-AC3, Spanish, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
6: E-AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
"Director Commentary"
7: E-AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
"Crew Commentary"
8: E-AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
"Cast and Crew Commentary"
9: E-AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB
10: Subtitle, English
11: Subtitle, English, "SDH"
12: Subtitle, French
13: Subtitle, Spanish
[a03] Extracting audio track number 3...
[a03] Removing dialog normalization...
[a03] Decoding with DirectShow (Nero Audio Decoder 2)...
[a03] DirectShow reports 5.1 channels, 24 bits, 48khz
[a03] Encoding AC3...
[a03] Creating file "C:\Users\rica\Desktop\eac3to-output\try.ac3"...
Video track 1 contains 79048 frames.
Video track 2 contains 98729 frames.
eac3to processing took 10 minutes, 55 seconds.
Done.


This doesn't work: (both EVOS together)

C:\>eac3to\eac3to.exe "F:\TERMINATOR_3_HDDVD\HVDVD_TS\PEVOB_1.EVO+PEVOB_2.EVO" 3: "C:\Users\rica\Desktop\eac3to-output\try_new.ac3"
Source file "F:\TERMINATOR_3_HDDVD\HVDVD_TS\PEVOB_1.EVO+PEVOB_2.EVO" not found.


What am i doing wrong?

Beastie Boy
10th August 2008, 15:16
Your source should be:

F:\TERMINATOR_3_HDDVD\HVDVD_TS\PEVOB_1.EVO+F:\TERMINATOR_3_HDDVD\HVDVD_TS\PEVOB_2.EVO
Cheers, Beastie.

rica
10th August 2008, 15:26
Thanks a lot Beastie Boy :thanks: :stupid:

lexor
10th August 2008, 15:38
Remember what madshi says :
an encoder doesn't do any terrible mistakes
But decoders might make terrible mistakes by which no any perfect encoder recovers.
So i say for re-encoding process:
Priority is on the decoder.


That's creative use of quotations you've got going there. Madshi said "As long as an encoder doesn't do any terrible mistakes". In light of which your reply becomes irrelevant to the discussion. If you gonna change what people say, you might as well just have a conversation with yourself and not bother madshi about it.

lexor
10th August 2008, 15:44
if you first install working version (2.; 2. + 5. and/or 6.; 4. + 7. and/or 8.), then uninstall it and install not-working version (1.; 1. + 6.; 3.) they also start to work.

I don't understand that sentence. If you already have working install of 2+6 (giving you a working and latest version install that according to your analysis "works great"), why would I want to uninstall it and install a non-working version and update it to working (exactly the same +6, I had to start with)?

rica
10th August 2008, 16:22
That's creative use of quotations you've got going there. Madshi said "As long as an encoder doesn't do any terrible mistakes". In light of which your reply becomes irrelevant to the discussion. If you gonna change what people say, you might as well just have a conversation with yourself and not bother madshi about it.

It's clear what i said, i didn't want and never want to bother madshi about these stupid things.

madshi
10th August 2008, 18:40
Hey Madshi, something seems to be wrong with Blu-ray subtitle demuxing for seamless branching movies.
I've checked my source code and I don't know what's wrong. I fear I'll need samples with which the problem can be reproduced. Maybe the last 50MB of the first part and the first 50MB of the 2nd part would help? Or maybe you can tell me which movie this is. Maybe I happen to own it, too.

I created the 50Mb sample and, yes, it still produces the error "The program channel mapping changes in the middle of the stream"
Hmmmm... Your samples doesn't produce this error on my PC! :( Can you please recheck, just to be sure?

madshi
10th August 2008, 18:42
For the time being, could you add an undocumented switch that attenuates back right and back left to 0.76 when "7doubling" is applied?
I have on my to do list to check what ArcSoft is doing when I ask it to output 8 channels for a 6.1 track. I'll decide what to do after I've done this check.

there was a request to add 24/1.001fps->24fps conversion support to eac3to.. what i'd like though is support for 24->24/1.001 for those few 24fps blu-ray titles like infernal affairs
Yes, that makes sense. I'm planning to add support for any cross conversion between 23.976, 24.000 and 25.000.

madshi
10th August 2008, 19:11
eac3to v2.57

http://madshi.net/eac3to.zip

* added automated support for Nero AAC command line encoder
* added "quality=0.xx" (0.00 - 0.99) parameter to control AAC encoder quality
* added Nero AAC encoder check to the "-test" list
* "-test" checks whether a new Haali Matroska Muxer version is available
* "-test" checks whether a new MkvToolnix release build is available
* "-test" checks whether a new MkvToolnix beta build is available
* "-test" checks whether a new Nero AAC encoder version is available
* added TRP container support (TS files without PMT/PAT)
* parameter "-extensible" is no longer supported (it's default now)
* new parameter "-simple" can be used to disable the "-extensible" wav header
* decoded TrueHD tracks: bitdepth is now automatically analyzed in more detail
* option "-analyzeBitdepth" manually activates extended bitdepth analyzation
* DVB subtitle tracks are listed now - can't be demuxed, though
* option "-check" doesn't fail on DTS Express tracks, anymore
It was already possible to use the Nero AAC encoder with eac3to by using stdout/stdin. But having it automated in eac3to now has some advantages:

(1) It's much easier to use. Just do "eac3to source.whatever dest.aac".
(2) The full eac3to output text including progress bar etc is still working.
(3) There can be multiple operations at the same time.

Basically the Nero AAC encoder is implemented in such a way that you shouldn't notice a difference to any other encoder (e.g. libAften or libFlac). However, what I personally don't like so much: The Nero AAC encoder refuses to encode to raw AAC streams, instead the newly encoded track always ends up in an MP4 container. No big deal, though, I guess.

Encoding is always done with VBR. Default quality is 0.50. You can change the encoding quality e.g. by doing: "eac3to source.whatever dest.m4a -quality=0.35".

nautilus7
10th August 2008, 19:30
Hi madshi, thanks for the update and the new features.

I noticed this (maybe a bug?):

eac3to -test

Nero Audio Decoder (Nero 7 or older) works fine
ArcSoft DTS Decoder (1.1.0.0) works fine
Sonic Audio Decoder (4.3.0.169) works fine
Haali Matroska Muxer (2008-03-29) is up to date
Nero AAC Encoder (1.1.34.2) is up to date
Surcode DTS Encoder (1.0.29.0) is installed
MkvToolnix (2.2.0.0, 2008-05-15) is up to date
There's a new beta version (2.2.0.0, 2008-05-15) available
http://www.bunkus.org/videotools/mkvtoolnix/win32/pre

madshi
10th August 2008, 19:45
I noticed this (maybe a bug?):

eac3to -test

MkvToolnix (2.2.0.0, 2008-05-15) is up to date
There's a new beta version (2.2.0.0, 2008-05-15) available
http://www.bunkus.org/videotools/mkvtoolnix/win3/pre
It's a bug that eac3to claims there'd be a new beta although you already have the latest one. That problem will be fixed in the next eac3to build.

bmnot
10th August 2008, 19:46
hey madshi, I have a .ts that doesn't have a have a discontinuity error until the very end (it was made with tsmuxer i think). since -ignoreDiscon is no longer available, how do I convert this file to mkv with eac3to?

madshi
10th August 2008, 20:54
since -ignoreDiscon is no longer available
It is still available!

SpaceAgeHero
10th August 2008, 21:15
I've checked my source code and I don't know what's wrong. I fear I'll need samples with which the problem can be reproduced. Maybe the last 50MB of the first part and the first 50MB of the 2nd part would help? Or maybe you can tell me which movie this is. Maybe I happen to own it, too.

The movie is called "Bruce Almighty". I have only tested the german version "Bruce Allmächtig" though. If you can't get hands on the movie I'd need to know how to strip usable samples for you.

Thanks. :)

Thunderbolt8
10th August 2008, 21:50
Hmmmm... Your samples doesn't produce this error on my PC! :( Can you please recheck, just to be sure?
did this refer to the starship troopers US disc? if yes, I remuxed it (playlist 00000) and I did not get that message.

thanks for the new version again!

regarding that trueHD more detailed bitdepth analyzing thing, what was the reason for this change? could there something be wrong so that actual bitdepth of some track might have been mistaken? do we have to redo truehd -> flac conversion with the new eac3to version now?

btw. I have the latest mkvtoolnix version the program says my version is from 2008-03-04, even though my version is the lastest one when I click on 'about'. I just noticed that I have it installed twice, so could it be possible that he checks the 'programme' dir as default? might also be possible that the other installation, which is my up to date one, has only always been copied over and no installation registry entries have been made.

madshi
10th August 2008, 22:04
The movie is called "Bruce Almighty". I have only tested the german version "Bruce Allmächtig" though. If you can't get hands on the movie I'd need to know how to strip usable samples for you.
I don't have that one (yet?). You could use a hexeditor to cut samples. I'd try to copy the last 50MB of the first m2ts part as one sample. And the first 50MB of the 2nd m2ts part as another sample. Then you can test whether joining them will still result in incorrect subtitle timings. If not, you may have to cut even bigger samples... :(

Here's the hexeditor I'm using: http://www.mh-nexus.de/

regarding that trueHD more detailed bitdepth analyzing thing, what was the reason for this change?
Just the wish for more detailed information for statistical purpose. See here:

http://www.avsforum.com/avs-vb/showthread.php?t=760714

could there something be wrong
Not that I know of.

btw. I have the latest mkvtoolnix version the program says my version is from 2008-03-04, even though my version is the lastest one when I click on 'about'.
What date does the about box show? 2008-03-04 may be the latest official release build. But it's surely not the latest mkvtoolnix beta build.

Thunderbolt8
10th August 2008, 22:51
the about box shows may 15 2008

Ranguvar
11th August 2008, 01:59
How about support for automatically ReplayGain-scanning the input and applying the gain (with or without clipping prevention) on encode? :)

Yraen
11th August 2008, 02:53
did this refer to the starship troopers US disc? if yes, I remuxed it (playlist 00000) and I did not get that message.


I had the errors on that disc. I finally got the time to look into it, and all of my errors were on titleset 1 and 2. Looking deeper, that joins two other m2ts files with the main movie file, pip. That generated my errors. The titleset I wanted was farther down the list. Too used to it being the first titleset. My mistake. Guess I shouldn't demux/mux when tired. :)

madshi
11th August 2008, 07:29
the about box shows may 15 2008
In that case eac3to seems to find the wrong file on your harddisk. Must be caused by the registry entries pointing to the wrong folder.

How about support for automatically ReplayGain-scanning the input and applying the gain (with or without clipping prevention) on encode? :)
The problem is that I'd need two passes to find the right gain to prevent clipping. But eac3to is built to do almost everything in one pass. I guess I could add clipping detection and post a warning. And I could probably also add a parameter to lower the volume by a specified amount. Would that do the trick for you?

Thunderbolt8
11th August 2008, 16:19
I can confirm that subtitle problem for seamless branching, when I remux close encounters (CE), then the length of the whole movie is 2:14:17 with last spoken line at ~2:13:24. for the non hearing impaired english subs though this line is at 2:02:17, which is much too early, while the same line with hearing impaired english subs ist located at 2:06:21, which is different and still too early.

Roscoe62
12th August 2008, 11:03
did this refer to the starship troopers US disc? if yes, I remuxed it (playlist 00000) and I did not get that message.

No, it was the Region A version of Mr & Mrs Smith. I fear now that there's something a bit weird going on with my PC. I'm gonna have to dig a bit deeper....or build a new PC.:(

xkodi
12th August 2008, 11:21
Reboot Windows after installing TMT and it works.

Add this folder to your 'PATH' environment variable and ArcSoft DTS Decoder also works fine.

c:\Program Files\Common Files\ArcSoft\Bin\

thanks for the fix, it works.

Snowknight26
12th August 2008, 19:35
When doing the Doomsday Blu-ray, I noticed that the playlist view showed DTS-HD (secondary) even though selecting that playlist shows it as being DTS Express.

rica
13th August 2008, 01:18
Hi guys,
if you are planning to trim the media you got before re-encoding, first of all you should put it into a TS container.

What if you have a vc1 based mkv file remuxed by Haali or eac3to?

Do you know what to meet after remuxing that mkv into a TS with TSMuxer?

I would suggest this: (sample here is an HD DVD)

eac3to\eac3to.exe F:\TERMINATOR_3_HDDVD\HVDVD_TS\PEVOB_1.EVO+F:\TERMINATOR_3_HDDVD\HVDVD_TS\PEVOB_2.EVO 3: "C:\Users\rica\desktop\try\trial.vc1

instead of this:

eac3to\eac3to.exe F:\TERMINATOR_3_HDDVD\HVDVD_TS\PEVOB_1.EVO+F:\TERMINATOR_3_HDDVD\HVDVD_TS\PEVOB_2.EVO "C:\Users\rica\Desktop\try\try.mkv"

Have a look at :

http://forum.doom9.org/showthread.php?p=1169791#post1169791





_ _ _ _ _

Jan Marijniszoon
13th August 2008, 11:27
Can TsMuxer mux TrueHD streams in the first place? I think I've read that it doesn't do that (at least not properly).

I think you're right. I did a test...it muxes the track, but the playback seems problematic. But if tsMuxer improves in the future, it might still be a handy option to have in your program, although it would be rarely used offcourse.

LessThanJake
13th August 2008, 19:38
Encoding is always done with VBR. Default quality is 0.50. You can change the encoding quality e.g. by doing: "eac3to source.whatever dest.m4a -quality=0.35".

I think q=0.5 as default is too big. The encoded files are even bigger than the source for some inputsstreams (at least for AC3-5.1) (table (http://www.abload.de/img/neroclilqu.png))
To get transparency q=0.35 is enough.

Anyway, no big deal to set the -quality 0.X switch, itīs just a suggestion. :)

----------

Edit:
Short question concerning -down2:
When doing AC3-5.1 --> 2CH-WAV manually using besweet, I can specify how channel-mixing have to be done.
For example:
beSweet.exe -core( -input "audio.ac3" -output "audio.wav" -2ch ) -azid( -n1 -s stereo -c light -L -3db ) -ota( -norm 0.98 )
How are LFE und surroundchannels mixed into L+R when using
eac3to input.whatever output.m4a -down2?

greets
LTJ

xkodi
13th August 2008, 22:13
How are LFE und surroundchannels mixed into L+R when using
eac3to input.whatever output.m4a -down2

from eac3to help:


-down2 downmix multi channel audio to stereo (Dolby Pro Logic II)
-mixlfe mix LFE in (when doing stereo downmixing, see "down2")

so, -down2 do Dolby Pro Logic II downmix, where LFE is not included, you can find the downmix matrix here:

http://en.wikipedia.org/wiki/Dolby_Pro_Logic

probably, eac3to uses exactly the same matrix.

with -mixlfe, LFE is included in the downmix too.

[edit]

@madshi

i took the DPLII matrix from wikipedia and with mplayer and the "pan" filter i'm doing:

mplayer -ao pcm:file=20.wav -af pan=2:1:0:0:1:0.707:0.707:0.707:0.707:-0.8165:0.5774:-0.5774:0.8165 51.wav

but the result is different than eac3to. so, is my pan filter command wrong or i'm missing something?

xeonicxpression
13th August 2008, 22:22
Can eac3to take a DTS-HD or MA or DTS-ES discreete and ouput a wav for each channel all 6.1 of them? I ask this because DTS Surround Suite from DTS is the same price as the surcode product and it is able to encode DTS-ES so we wouldn't be stuck with surcodes 5.1 support.

EPiPH0NE
13th August 2008, 22:32
Can eac3to take a DTS-HD or MA or DTS-ES discreete and ouput a wav for each channel all 6.1 of them? I ask this because DTS Surround Suite from DTS is the same price as the surcode product and it is able to encode DTS-ES so we wouldn't be stuck with surcodes 5.1 support.

eac3to input.dtshd output.wavs

tebasuna51
14th August 2008, 09:06
i took the DPLII matrix from wikipedia and with mplayer and the "pan" filter i'm doing:

mplayer -ao pcm:file=20.wav -af pan=2:1:0:0:1:0.707:0.707:0.707:0.707:-0.8165:0.5774:-0.5774:0.8165 51.wav

but the result is different than eac3to. so, is my pan filter command wrong or i'm missing something?

I don't know the exact final matrix used by madshi. Look here (http://forum.doom9.org/showthread.php?p=1078903#post1078903).

Your mix is:
Lt' = FL + 0.707xFC + 0.707xLF - 0.8165xBL - 0.5774xBR
Rt' = FR + 0.707xFC + 0.707xLF + 0.5774xBL + 0.8165xBR

The default downmix in BeHappy is:
Lt' = 0.3254xFL + 0.2301xFC + 0.2818xBL + 0.1627xBR
Rt' = 0.3254xFR + 0.2301xFC - 0.1627xBL - 0.2818xBR

Differences:
- The LFE channel is not used by Dolby recommendation, but is optional in BeHappy and eac3to.
- The coefficients are normalized (100%). With your matrix you can obtain overflows until 380.79 %.
- The coefficients in surround channels have a little correction, 0.866 and 0.5 instead 0.8165 and 0.5774 (un-normalized values). Is based in a old Besweet-Azid discussion and was assumed to produce a better channel separation. Verified by my test using PowerDVD dpl2 soft decoder.
- The signs in surround channels are inverted. With original signs the BL channel is inverted when use PowerDVD dpl2 soft decoder.

xkodi
14th August 2008, 09:57
tebasuna51, thank you very much for providing excellent information as always!

i read you post about downmixing with AviSynth, but AFAIU it is not on-the-fly during playback. are there other plugins like the mplayer pan filter that are capable to do downmixing on-the-fly? is there a place where i can find more good downmix matrices for things like 5.1->2.0, 6.1->2.0, 7.1->2.0, 7.1->5.1, etc?

it would be very cool if there is DirectShow filter that accept any downmix matrix as settings and output the the downmixed audio.

deathlord
14th August 2008, 12:52
it would be very cool if there is DirectShow filter that accept any downmix matrix as settings and output the the downmixed audio.

You can do that in ffdshow audio decoder, I think.

tebasuna51
14th August 2008, 12:59
i read you post about downmixing with AviSynth, but AFAIU it is not on-the-fly during playback. are there other plugins like the mplayer pan filter that are capable to do downmixing on-the-fly? is there a place where i can find more good downmix matrices for things like 5.1->2.0, 6.1->2.0, 7.1->2.0, 7.1->5.1, etc?

it would be very cool if there is DirectShow filter that accept any downmix matrix as settings and output the the downmixed audio.

I think is out of scope of this thread. If you want more info about downmix you can open a new thread.

- .avs files can be played by mpc and others players.
- with DS ffdshow and ac3Filter you can define any matrix.
- you can use these coeficients with mplayer (some versions have problems with multichannel remapping)

xkodi
14th August 2008, 13:59
tebasuna51, thank you again! when i've done more research and have more questions, maybe i will open separate thread for the subject.

deathlord, thank you for the hint!

rack04
14th August 2008, 16:17
eac3to crashes with the following file.

ftp://mplayerhq.hu/MPlayer/samples/HDTV/Hellboy.ts

Atak_Snajpera
15th August 2008, 00:49
It does not crash on my PC.

rack04
15th August 2008, 13:15
It does not crash on my PC.

Are you using Nero 7 to decode? I don't have that installed on my laptop so I'm wondering if it is a crash in libav.

sehgal.v7
15th August 2008, 15:19
@Madshi
I converted M2TS video file to MKV video file with Eac3to as backup. But now i want to convert it back to M2TS container. I tried to extract MKV file, it gave me Video File in AVI Container. Can you tell me how to further extract Original VC-1 file from AVI container?

Regards,
Sehgal

EPiPH0NE
15th August 2008, 16:38
^^^^

Just do MKV -> M2TS via tsMuxeR :)

sehgal.v7
15th August 2008, 17:20
@EPiPHONE
Got it bro, thanks very much. I was banging my head in google for AVI demuxer.
Thanks for saving my time & my head :D

Regards,
Shroff

rica
15th August 2008, 17:39
Hi guys,

What kind of option should i put to command line to force eac3to use another encoder than the default?

Thanks!

rack04
15th August 2008, 17:56
Hi guys,

What kind of option should i put to command line to force eac3to use another encoder than the default?

Thanks!

See the first post.

-sonic/nero/... force the use of a specific decoder (not recommended)

rica
15th August 2008, 18:01
Sorry but i think i told "encoder" not "decoder"

Or do you mean i can use the same option for encoder as well?

rack04
15th August 2008, 18:07
Sorry but i think i told "encoder" not "decoder"

Or do you mean i can use the same option for encoder as well?

Sorry my fault. Don't think you are able to specify another encoder.

sehgal.v7
15th August 2008, 18:23
@EPiPHONE
I tried your suggestion.. Actual VC-1 & MKV file got 61056 video frames but when demuxed with TSMuxer it contained 122108 video frames.

Can you guess why is that??

Regards,
Sehgal

EPiPH0NE
15th August 2008, 19:02
@EPiPHONE
I tried your suggestion.. Actual VC-1 & MKV file got 61056 video frames but when demuxed with TSMuxer it contained 122108 video frames.

Can you guess why is that??

Regards,
Shroff

I have no idea...I thought your final step was M2TS...if your looking to demux the MKV I would suggest MKVextractGUI. I don't trust tsMuxeR's demux features for MKV's.

sehgal.v7
15th August 2008, 20:14
@EPiPHONE
Sorry i think i used wrong Term. My final step is M2TS only. When i added MKV file into TSMuxer, it copied VC-1 stream into M2TS container but actually it doubled video frames and duration while file size remaining same. I didn't demuxed MKV file.
The thing is i took a backup of Blue Planet with Eac3to into MKV file, but i lost my original blu ray. Now i want to make another blu ray disk, that's why i wanted original VC-1 in M2TS container.

Hope i clarified this time. :-)

rica
15th August 2008, 20:20
@EPiPHONE
Sorry i think i used wrong Term. My final step is M2TS only. When i added MKV file into TSMuxer, it copied VC-1 stream into M2TS container but actually it doubled video frames and duration while file size remaining same. I didn't demuxed MKV file.
The thing is i took a backup of Blue Planet with Eac3to into MKV file, but i lost my original blu ray. Now i want to make another blu ray disk, that's why i wanted original VC-1 in M2TS container.

Hope i clarified this time. :-)

I think this is the confirmation what i said:

http://forum.doom9.org/showthread.php?p=1170058#post1170058

_ _ _ _

EPiPH0NE
15th August 2008, 20:52
@EPiPHONE
Sorry i think i used wrong Term. My final step is M2TS only. When i added MKV file into TSMuxer, it copied VC-1 stream into M2TS container but actually it doubled video frames and duration while file size remaining same. I didn't demuxed MKV file.
The thing is i took a backup of Blue Planet with Eac3to into MKV file, but i lost my original blu ray. Now i want to make another blu ray disk, that's why i wanted original VC-1 in M2TS container.

Hope i clarified this time. :-)


It looks like rica is on to something. I only use the MKV remux feature for remuxing my scene DTS/MKV's -> TS for proper playback on my NMT and I never have problems like you guys are having. I would try using MKVextractGUI to take out the VC-1+audio then put those raw streams into tsMuxeR and mux -> M2TS. Try that and see if it still gives wrong frame size. Other then that I'm stumped.

rica
15th August 2008, 22:28
sehgal.v7,

If you are trying to remux the mkv-vc1s made by yourself ,with an any application which uses Haali multiplexer, into a ts or m2ts container via TSMuxer, i have just one word for saying: forget it.
Just demux to VC1 with TSMuxer or eac3to and remux back to m2ts or ts with TSMuxer.
(as i told on the link i gave before)

But if you are trying to make a TS/m2ts file from a premade mkv including a VC1 and created by Haali based application,
again you have no chance.
If you are lucky -if mkv has not been trimmed before- , the only chance is to re-encode it to h264 with MeGui or something else.

sehgal.v7
16th August 2008, 02:53
@EPiPHONE
I took a backup of Blue Planet by Eac3to - eac3to 0000.m2ts 0000.mkv // now when i extract MKV with MKVextract.exe, it gives me an AVI file for video stream. It doesn't give raw VC-1 stream.

@Rica
I made MKV file with Eac3to// i think it uses Haali Multiplexer. :-( Means i have re-encode it// i put file in MKV container because it save around 13% space than M2TS container.

sehgal.v7
16th August 2008, 03:26
Did some homework.
Eac3to (with help of Haali Matroska Muxer) first put raw VC1 into AVI container then into MKV container. The "WVC1" fourcc is applied in AVI container. Players now uses MS VC-1 DMO decoder for decoding it. Now the main thing is extracting original raw VC1 from AVI without "WVC1" anywhere in it, so that we can use it in TSMuxer. I think Haali Matroska Muxer is using same pattern as VC12AVI does.

Encoder888
16th August 2008, 04:41
@madshi

I just encoded a TrueHD stream into FLAC and eac3to reported 16 bits, yet the file itself contains 24 bits, and I'm pretty sure that's what the original source has. Here's what I get:

eac3to v2.57
command line: D:\eac3to\eac3to.exe 00131.m2ts 2: Video.mkv 4: Audio.flac
------------------------------------------------------------------------------
M2TS, 1 video track, 3 audio tracks, 4 subtitle tracks, 1:38:55
1: Chapters, 16 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: TrueHD/AC3, French, 5.1 channels, 48khz
4: TrueHD/AC3, German, 5.1 channels, 48khz
5: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -29dB
6: Subtitle (PGS), English
7: Subtitle (PGS), English
8: Subtitle (PGS), French
9: Subtitle (PGS), Spanish
[v02] Extracting video track number 2...
[a04] Extracting audio track number 4...
[a04] Extracting TrueHD stream...
[a04] Decoding with libav/ffmpeg...
[a04] Encoding FLAC (with libFlac)...
[v02] Muxing video to Matroska...
[a04] Creating file "Audio.flac"...
[a04] This audio track has a constant bit depth of 16 bits.
Added fps value to MKV header.
Video track 2 contains 142296 frames.
eac3to processing took 34 minutes, 59 seconds.
Done.

Constant? I thought TrueHD was variable-based. The file I get has 24 bits variable... Could this be just an error in bitdepth analyzing in this new version ...?

sehgal.v7
16th August 2008, 04:51
Madshi would like to read hxxp://article.gmane.org/gmane.comp.multimedia.matroska.devel/3397/

@TO ALL MEMBERS
Backup all your HD movies with Eac3to to MKV container. Follow this routine for VC-1 files:-
1. eac3to 0000.m2ts 0000.mkv
2. Extract AVI file with MKVExtract (needs mkvtoolnix).
3. Then extract raw vc1 stream with Yamb (needs MP4Box).
4. Then raw VC1 with TSMuxer.

Thats all// verry happy to get back original streams.

Encoder888
16th August 2008, 05:31
@madshi

Okay, in addition to my previous post: I was wrong, the original audio does contain 16 bits (the movie is The Counterfeiters by the way) I tried it with a previous version of eac3to, and here's what I got:

eac3to v2.51
command line: D:\try\eac3to.exe 00131.m2ts 4: Another.flac
------------------------------------------------------------------------------
M2TS, 1 video track, 3 audio tracks, 1:38:55
1: Chapters, 16 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: TrueHD/AC3, French, 5.1 channels, 48khz
4: TrueHD/AC3, German, 5.1 channels, 48khz
5: AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -29dB
Decoding with libav/ffmpeg...
[a04] Extracting audio track number 4...
[a04] Extracting TrueHD stream...
[a04] Encoding FLAC...
[a04] Creating file "Another.24bit.flac"...
[a04] This audio track contains only 16 bit of information.
[a04] The zero bytes were successfully removed.
Video track 2 contains 142296 frames.
eac3to processing took 32 minutes, 17 seconds.
Done.

So, this end file DOES have 16 bits of information, but the one I got from 2.57 has 24, even though the difference between the two is just 1MB, which means that it was just encoded wrong, right? Or is it because of those 0 bytes? Either way, this should be fixed, pls look into it. :)

73ChargerFan
16th August 2008, 06:19
Madshi would like to read hxxp://article.gmane.org/gmane.comp.multimedia.matroska.devel/3397/

@TO ALL MEMBERS
Backup all your HD movies with Eac3to to MKV container. Follow this routine for VC-1 files:-
1. eac3to 0000.m2ts 0000.mkv
2. Extract AVI file with MKVExtract (needs mkvtoolnix).
3. Then extract raw vc1 stream with Yamb (needs MP4Box).
4. Then raw VC1 with TSMuxer.

Thats all// verry happy to get back original streams.

Why not eac3to 0000.m2ts 0000.vc1 ?

sehgal.v7
16th August 2008, 07:20
@73ChargerFan
I want a backup as well as i want them to play too :-) // in mkv container u can add flac audio (loseless codec). Means backup with no quality loss + whenever you want again burn your blu ray writer // your original stuff (choice of wanted audio tracks + subtitle tracks).

PS - Don't forget to backup Chapters file from original movie (if you want chapter support later).

shambles
16th August 2008, 09:33
@EPiPHONE
I took a backup of Blue Planet by Eac3to - eac3to 0000.m2ts 0000.mkv // now when i extract MKV with MKVextract.exe, it gives me an AVI file for video stream. It doesn't give raw VC-1 stream.

use 'mkvextract tracks source.mkv --raw 1:dest.vc1'

rica
16th August 2008, 10:18
sehgal.v7,

Why not opening a seperate topic on mkv+vc1 and we can discuss there?

I think we have lots of words to speak.

sehgal.v7
16th August 2008, 11:58
@Shambles
Thanks brother your advice is working.

I'll soon write a tutorial in a new thread.

Thanks all you guys for your kind info.

Sehgal.

madshi
16th August 2008, 13:00
I can confirm that subtitle problem for seamless branching, when I remux close encounters (CE), then the length of the whole movie is 2:14:17 with last spoken line at ~2:13:24. for the non hearing impaired english subs though this line is at 2:02:17, which is much too early, while the same line with hearing impaired english subs ist located at 2:06:21, which is different and still too early.
Thanks, I'll recheck that.

When doing the Doomsday Blu-ray, I noticed that the playlist view showed DTS-HD (secondary) even though selecting that playlist shows it as being DTS Express.
It's one and the same thing. I'll replace the "DTS-HD (secondary)" label with "DTS Express" in the next build.

I think you're right. I did a test...it muxes the track, but the playback seems problematic. But if tsMuxer improves in the future, it might still be a handy option to have in your program, although it would be rarely used offcourse.
Just let me know when tsMuxeR supports proper TrueHD muxing, then I will look into adding support for creating/handling Blu-Ray style TrueHD+AC3 tracks. You should be aware, though, that the TrueHD and AC3 streams have to be muxed with slightly different parameters, so I'm not sure if tsMuxeR will actually accept a combined file. I rather guess it will expect two separate files. But it makes no sense to speculate about that right now.

I think q=0.5 as default is too big. The encoded files are even bigger than the source for some inputsstreams (at least for AC3-5.1)
I was even thinking about choosing a higher default than 0.5. But since 0.5 is the default of the command line encoder, I thought I'd leave it at that. I've no plans to lower the default right now. The default for AC3 encoding is 640kbps, btw.

I don't know the exact final matrix used by madshi.
I'm using:
Lt' = FL + 0.707xFC + 0.707xLF - 0.866xSL - 0.5xSR
Rt' = FR + 0.707xFC + 0.707xLF + 0.5xSL + 0.866xSR

However, it's not *exactly* 0.707 and not exactly 0.866 because I'm using integer math. So the real factors are slightly higher. I might change that in a future version, but I need to implement full support for floating point samples through the whole audio chain first...

eac3to crashes with the following file.

ftp://mplayerhq.hu/MPlayer/samples/HDTV/Hellboy.ts
The crash is caused by the h264 track having no frame rate information in it. I'll fix that in the next build. Not sure yet how to properly handle such a file, though.

What kind of option should i put to command line to force eac3to use another encoder than the default?
There's only one supported encoder for every supported output format. You choose the encoder by defining the output file extension.

Okay, in addition to my previous post: I was wrong, the original audio does contain 16 bits (the movie is The Counterfeiters by the way) I tried it with a previous version of eac3to, and here's what I got:

[...]

So, this end file DOES have 16 bits of information, but the one I got from 2.57 has 24, even though the difference between the two is just 1MB, which means that it was just encoded wrong, right? Or is it because of those 0 bytes? Either way, this should be fixed, pls look into it. :)
Yes, there seems to be a bug. It's not really a big problem. The FLAC you got just be just fine. But I'll fix it nevertheless, of course.

Atak_Snajpera
16th August 2008, 15:04
@Madshi
Could you replace '-' progress with plain %?

madshi
16th August 2008, 15:16
Could you replace '-' progress with plain %?
Why? I like the progress bar...

rack04
16th August 2008, 15:25
The crash is caused by the h264 track having no frame rate information in it. I'll fix that in the next build. Not sure yet how to properly handle such a file, though.

Thank you for investigating the problem and thanks again for the great program.

Atak_Snajpera
16th August 2008, 16:16
Why? I like the progress bar...
I can capture progress in my app.

saint-francis
16th August 2008, 17:18
Has anyone here tried working with Harold And Kumar Escape From Guantanamo Bay? It's a nightmare! There are over a dozen title sets to choose from. Apparently there is a feature in this disk that interactively allows you to change the plot at different scenes.

High-Def Digest:

http://bluray.highdefdigest.com/1173/haroldandkumarescape.html

"Dude, Change the Movie!" - One very cool feature, this is only the second "interactive storyline"-type function to appear on a Blu-ray (at least to my knowledge), following last year's 'Return to House on Haunted Hill.' Activate "Dude, Change the Movie!", and at pre-selected points throughout the movie (nearly a dozen in all), your given a prompt with different choices allowing you to effect the direction of the narrative. Some of the options are simply silly (at one point, you can switch the movie's "bottomless" party scene to a "topless" one, for you T&A lovers), while others are more substantial, introducing new subplots not in the final cut. I was surprised at the wealth of new material shot for this feature, and it really is like watching a different movie depending on the choices you make. Really fun stuff.

Am I going to have to remux every one of the title sets in the hopes of finding one which is unadulterated or is there an easier way to find out which is which?

Edit:
I think that this movie actually can't be backed up without keeping the entire disk intact. It seems as though every title set has these "dude, change the movie" screens in them where the movie is paused for several moments allotting the viewer the time to decide if they in fact want to change the movie.
Nightmare.

eas4uk
16th August 2008, 18:04
Something strange - I downloaded the latest version of eac3to last night form the link on the first page, and my antivirus (ZoneAlarm Security Suite) is now saying that there is something fishy with the hooksurcode.dll and there is an infection (Backdoor.Win32.Hupigon.dgde) so I cant extract the contents of the rar file without it quarantining the hooksurcode.dll file

Has anyone else found this? I've never had a problem before and I seriously doubt this is something Madshi has done
Kind of annoying though having to close ZoneAlarm

Anyway - big thanks to Madshi, eac3to just keeps getting better and better :D

73ChargerFan
16th August 2008, 18:25
Kaspersky flags that also. IIRC, ZoneAlarm includes Kaspersky as its AV. I haven't updated my eac3to in a few weeks, so it must be a new addition to the av definitions file.

I added that file (without the path) to my trusted zone. I CAN TRUST IT, RIGHT??!!! :rolleyes:

~bT~
16th August 2008, 18:28
^ avg used to flag it so i uninstalled it. nod32 doesnt :)

73ChargerFan
16th August 2008, 18:29
I can capture progress in my app.
How about watching the output until you see 3 dashes '---' then count them and divide by total. I think eac3to always outputs the same number of dashes.

73ChargerFan
16th August 2008, 18:39
sehgal.v7,

Why not opening a seperate topic on mkv+vc1 and we can discuss there?
Please, lets.

My target is mkv (h264/vc1) & dts & flac but I can't get vc1 from m2ts into the mkv correctly. They all result in stuttering, stalling and an inability to seek or fast forward.

Madshi would like to read hxxp://article.gmane.org/gmane.comp.multimedia.matroska.devel/3397/

@TO ALL MEMBERS
Backup all your HD movies with Eac3to to MKV container. Follow this routine for VC-1 files:-
1. eac3to 0000.m2ts 0000.mkv
2. Extract AVI file with MKVExtract (needs mkvtoolnix).
3. Then extract raw vc1 stream with Yamb (needs MP4Box).
4. Then raw VC1 with TSMuxer.

Thats all// verry happy to get back original streams.

Your post looks like "how to put vc1 into ts" not into mkv. I don't know why you have to go m2ts -> mkv -> avi -> vc1 when eac3to can do m2ts -> vc1 directly.

BTW, what splitter/decoder are you using? I test my files with gabest & haali splitters, mplayer-hc, coreavc and the microsoft decoders. Nothing works.

saint-francis
16th August 2008, 18:48
^ avg used to flag it so i uninstalled it. nod32 doesnt :)

Nod is one of the more sophisticated AV tools. If you must use one nod is a good choice. Symantec seems to be good too. Many of them just throw up false positives when they encounter something they don't understand.

73ChargerFan
16th August 2008, 18:58
Is there any hope you'll open source the code?

No.
I ask out of fear that something will happen to prevent future updates and improvements. DvdDecrypter was killed by industry, tsMuxer looks abandoned by roman for now, and mommyman has just quit DVDAExplorer. The last was opensourced, so I've got hope that it can be finalized by someone else. Also some developers need a break, have children, go into the military, etc., and if it is open source someone else can pick it up.

Your expertise and time have made eac3to the most valuable program that I use, and I appreciate all that you do. I won't bring this up again.

lexor
16th August 2008, 20:03
The last was opensourced, so I've got hope that it can be finalized by someone else. Also some developers need a break, have children, go into the military, etc., and if it is open source someone else can pick it up.

That almost never happens in real life though. When OSS project dies, other people tend to start their own projects to replace it (if it was useful). It is extremely rare for someone to pick up a dead OSS project.

But eac3to is unlikely to have the same fate as DVDecrypter, because it doesn't actually get movies from your disc, it doesn't strip any drm. eac3to is in the clear, the same way as the burning engine of DVDecryper was in the clear and went on after DVDecrypter got shut down and is now ImgBurn.

On the subject of ImgBurn, that app is awesome enough that I haven't bothered installing the bundled pile of garbage that is Nero suit. So madshi, how should we interpret that note about ArcSoft ac3 and TrueHD decoders? It says "not yet", but will it be supported? Is there any quality concern you have with ArcSoft's Dolby support (like range compression/etc) or something else? Now that I've got arcsoft going, I'm kind of eager to get it to be my all-in-one decoder.

saint-francis
16th August 2008, 20:30
Look at MeGUI. Doom9 started it and now it's still pretty well maintained by other people and he isn't involved with it's development at all as far as I can tell. If some OSS is really desired and the developer stops working on it, from time to time others do take it on. FFDShow is another great example.

saint-francis
16th August 2008, 21:43
I found the proper, plain old normal movie in the Harold and Kumar BD. It's title set # 10 for anyone who comes after me. And yes, I remuxed the 9 previous title sets before I finally figured it out. Took me about 4 hours. :shakeshead:

madshi
16th August 2008, 21:58
I can capture progress in my app.
Ok, I could add an undocumented option which outputs one extra line with a progress number for each percent increase. That should make it easy for you to grab the progress.

Something strange - I downloaded the latest version of eac3to last night form the link on the first page, and my antivirus (ZoneAlarm Security Suite) is now saying that there is something fishy with the hooksurcode.dll and there is an infection (Backdoor.Win32.Hupigon.dgde) so I cant extract the contents of the rar file without it quarantining the hooksurcode.dll file
Most probably a false detection. I'll contact Kaspersky about this. Please complain, too. The more people complain, the better...

My target is mkv (h264/vc1) & dts & flac but I can't get vc1 from m2ts into the mkv correctly. They all result in stuttering, stalling and an inability to seek or fast forward.
"eac3to BluRaySource movie.mkv" seems to work well for almost everyone. Personally, I've remuxed at least a dozen Blu-Ray VC-1 movies that way and they all work perfectly fine for me. I think the problem is probably not in your MKV files but rather in your DirectShow playback setup (source filter + decoders + renderer etc).

how should we interpret that note about ArcSoft ac3 and TrueHD decoders? It says "not yet", but will it be supported?
I've not much motivation to support the ArcSoft TrueHD decoder since the free libav TrueHD decoder seems to work perfectly. I might support the ArcSoft (E-)AC3 decoder sooner or later. But adding support for the ArcSoft decoders is rather painful compared to e.g. Nero. That's why I'm only supporting the most important one (DTS) right now.

Atak_Snajpera
16th August 2008, 22:34
That should make it easy for you to grab the progress.
Thanks man!

sehgal.v7
17th August 2008, 04:00
@Madshi
1. If the Source File has audio delay in it // will it be automatically applied in Output??

2. I was testing a sample "hxxp://www.sendspace.com/file/cr48oe". When i demux Video Stream, it's 107,163,504 and when mux it to MKV container with Eac3to it's 107,136,569. Meaning it's 26,935 byte less than original raw stream. Can you please guide where i'm not getting.

Regards,
Sehgal

Thunderbolt8
17th August 2008, 14:07
1. yes

Snowknight26
18th August 2008, 03:12
What are the requirements for eac3to to detect a folder as a Blu-ray? I know for HD DVDs its VPLST000.XPL (and then HVA00001.VTI), but that doesn't really apply here. :p

Edit: Nevermind now, Process Monitor has the answer.

sehgal.v7
18th August 2008, 15:30
@Madshi
Can you add an option in demux command to, not to demux TrueHD & AC3 seperately?

Regards

madshi
18th August 2008, 15:56
2. I was testing a sample "hxxp://www.sendspace.com/file/cr48oe". When i demux Video Stream, it's 107,163,504 and when mux it to MKV container with Eac3to it's 107,136,569. Meaning it's 26,935 byte less than original raw stream. Can you please guide where i'm not getting.
Don't know. Maybe the video data is stored slightly compressed (start codes shortened). Or maybe the last video frame is missing. Either way there's no reason to worry, as the last few frames are usually totally black, anyway.

Can you add an option in demux command to, not to demux TrueHD & AC3 seperately?
What would that be good for? TsMuxer doesn't properly mux TrueHD tracks, anyway.

EPiPH0NE
18th August 2008, 17:20
What would that be good for? TsMuxer doesn't properly mux TrueHD tracks, anyway.

Scenarist does :)

monohouse
18th August 2008, 23:33
-----

rica
18th August 2008, 23:45
I have searched on arcsoft.com ArcSoft DTS Decoder there are no results, maybe it has a different name ?

C:\Program Files > Common Files > Arcsoft > Mpeg Engine > DtsDec.dll

But don't ask me how to register; ask to madshi :)

monohouse
18th August 2008, 23:49
-----

rica
19th August 2008, 00:02
C:\Program Files\Common Files\Arcsoft\Mpeg Engine\DtsDecoderdll.dll ?

I've been still wondering what it is; maybe it's our man :)

Madshi,
why don't you help us; those poor guys :confused:

monohouse
19th August 2008, 00:09
-----

rica
19th August 2008, 00:16
You don't know what is weird indeed; have you noticed any dts encoder (dtsencoder.ax) and nobody knows what it is for?

http://www.arcsoft.com/forum/forum_posts.asp?TID=811

Q1

Secret Garden of Arcsoft :)
_ _ __

monohouse
19th August 2008, 00:26
-----

rica
19th August 2008, 00:31
That is the question which we would hopefully expect to be answered by madshi.

Zwitterion
19th August 2008, 01:28
let me guess, there is no sutch thing as decoder alone is there ?

Unfortunately, at the moment the whole ArcSoft TotalMedia Theater suite is necessary for DTS-HD decoding. See this (http://forum.doom9.org/showthread.php?t=139946) thread. Especially post #32 by madshi.

sehgal.v7
19th August 2008, 02:49
Scenarist does :)

I was going to reply same// Scenarist does mux properly. I had to use TSMuxer for extracting TrueHD+AC3 stream.

Regards.

madshi
19th August 2008, 07:38
I was going to reply same// Scenarist does mux properly. I had to use TSMuxer for extracting TrueHD+AC3 stream.
And Scenarist wants to have a combined TrueHD+AC3 file? And then it properly muxes that? I would have thought that an authoring tool like Scenarist would want to get separate TrueHD and AC3 files, no?

sehgal.v7
19th August 2008, 07:55
@Madshi
It can accept only combined TrueHD & AC3 Core file.
Secondly, can you please add any feature to combine already seperated Core & TrueHD Track by Eac3to?

Regards,
Sehgal

monohouse
19th August 2008, 11:24
· · ·

kweek
19th August 2008, 12:55
Just had a clean winxp prof sp1+sp2+sp3 install and installed TotalMediaTheatre_Retail_INTRO_E.exe.

DTS decoding did only work after I copied MagCore.dll, MagPCMac.dll, MagUIEngine.dll and MagUIInter.dll from Program Files\Common Files\ArcSoft\Bin\ to eac3to\

Steel
19th August 2008, 13:14
Has anyone gotten the arcsoft decoder to work with eac3to under vista 64? If so, PLEASE provide some details on how to make it work!

Thanks

madshi
19th August 2008, 14:28
Please do not discuss how to get around installing the full ArcSoft software package in this thread. I don't want to have this discussion here. If you must discuss it, please use a different thread. Thanks.

kweek
19th August 2008, 15:23
Please do not discuss how to get around installing the full ArcSoft software package in this thread. I don't want to have this discussion here. If you must discuss it, please use a different thread. Thanks.

Hi madshi. I don't know if you are talking about my post. But i just like to state that this could be a bug. I have sp3 installed and installed the intro version that I can legally try for 15 days, they have a download button on the site.

When i did eac3to -test, it did not recognized the arcsoft install. When I wanted to convert a dts file, eac3to gave errors that it couldn't find MagCore.dll, MagPCMac.dll, MagUIEngine.dll and MagUIInter.dll.

When they are in the eac3to dir, arcsoft is recognized and decoding works.

I have read in this thread that you don't have sp3 installed, that's why I posted the message. Maybe this only happens with sp3.

I also found out that the arcsoft install directory has different versions dll's (1.0.0.129) than the dll's (1.0.0.148) in Program Files\Common Files\ArcSoft\Bin\

patja
19th August 2008, 15:29
When I download eac3to.zip from madshi's site, Kaspersky Internet Security is reporting that the file HookSurcode.dll contains a trojan backdoor, "Backdoor.Win32.Hupigon.dgde"

Are other Kaspersky users (or other malware detectors) seeing this?

If it is a false positive, any idea why or how to address this?

madshi
19th August 2008, 15:31
@kweek, I didn't mean your post. I don't mind if people discuss about how to make a full ArcSoft installation work, e.g. by extending the search path or things like that. What I don't want is people to discuss in this thread how to install the DirectShow filters, only, because that could promote illegal use of the ArcSoft software. And I don't want eac3to to have anything to do with that. There's only one way to make sure that eac3to can stay alive - and that is to get far away from any illegal activities.

madshi
19th August 2008, 15:32
When I download eac3to.zip from madshi's site, Kaspersky Internet Security is reporting that the file HookSurcode.dll contains a trojan backdoor, "Backdoor.Win32.Hupigon.dgde"

Are other Kaspersky users (or other malware detectors) seeing this?

If it is a false positive, any idea why or how to address this?
Just check a few posts back. That has been discussed a day or two before.

Steel
19th August 2008, 15:48
Please do not discuss how to get around installing the full ArcSoft software package in this thread. I don't want to have this discussion here. If you must discuss it, please use a different thread. Thanks.

I am not in any way discussing how to get around installing the full ArcSoft package. I have installed the full ArcSoft Total Media Theater Package and I would like the DTS Decoder that is part of that package to work with eac3to under vista x64.
For whatever reason, eac3to does not seem recognize my arcsoft installation. I was only asking what I could do to tweak it to get it to work with eac3to.

Thus, this discussion is completely legal and relevant here.

patja
19th August 2008, 15:52
When I download eac3to.zip from madshi's site, Kaspersky Internet Security is reporting that the file HookSurcode.dll contains a trojan backdoor, "Backdoor.Win32.Hupigon.dgde"

Are other Kaspersky users (or other malware detectors) seeing this?

If it is a false positive, any idea why or how to address this?

Just check a few posts back. That has been discussed a day or two before.

Thanks, I see the prior messages. You indicated you would get in touch with Kaspersky. Have you heard anything?

Is the source code for HookSurcode.dll all authored by you?

madshi
19th August 2008, 16:04
I am not in any way discussing how to get around installing the full ArcSoft package.
So obviously I didn't mean your post. I meant monohouse's post.

Thanks, I see the prior messages. You indicated you would get in touch with Kaspersky. Have you heard anything?
Not yet. I also posted that it would help if as many people complain as possible. Did you complain yet?

Is the source code for HookSurcode.dll all authored by you?
Yes.

patja
19th August 2008, 16:11
Not yet. I also posted that it would help if as many people complain as possible. Did you complain yet?

Yes, I've sent Kaspersky a false positive report using the format Kaspersky dictates with a reference to this thread for more info.

madshi
19th August 2008, 16:13
Yes, I've sent Kaspersky a false positive report using the format Kaspersky dictates with a reference to this thread for more info.
Thanks.

Snowknight26
19th August 2008, 20:33
With HD DVDs, eac3to gives the option to output joined EVOs. Can we expect to see that for m2ts files also?

rica
19th August 2008, 20:40
With HD DVDs, eac3to gives the option to output joined EVOs. Can we expect to see that for m2ts files also?

Sorry but i've never seen a splitted m2ts? (i mean splitted main movie..)

rebkell
19th August 2008, 20:54
With HD DVDs, eac3to gives the option to output joined EVOs. Can we expect to see that for m2ts files also?

If you're talking blu-ray, it already does that.

rica
19th August 2008, 20:57
If you're talking blu-ray, it already does that.

Is there any splitted m2ts from any BD?

rebkell
19th August 2008, 21:06
Is there any splitted m2ts from any BD?

If we're talking about the same thing, as in a mpls (playlist) file, then yes. Dewey Cox had probably 30 or more pieces, Alien vs Predator 2, had tons of them. About any time you see a movie that has the theatrical version and an unrated version, it will be chopped into all kinds of pieces.

rica
19th August 2008, 21:15
Sorry but i've never seen a splitted m2ts? (i mean splitted main movie..)

That was what i wondered :)

Snowknight26
19th August 2008, 22:22
G:\Encoding Tools\eac3to>eac3to.exe "G:\Dumps\Taegukgi hwinalrimyeo"
1) 00000.mpls, 00000.m2ts+00001.m2ts, 2:28:16
- h264/AVC, 1080i60 /1.001 (16:9)
- AC3, Korean, multi-channel, 48khz
- DTS Master Audio, Korean, multi-channel, 48khz
- AC3, Korean, stereo, 48khz
- AC3, Korean, stereo, 48khz
- AC3, Korean, stereo, 48khz

G:\Encoding Tools\eac3to>eac3to.exe "G:\Dumps\Taegukgi hwinalrimyeo" 1)
M2TS, 1 video track, 5 audio tracks, 4 subtitle tracks, 2:28:16
1: Chapters, 24 chapters
2: h264/AVC, 1080i60 /1.001 (16:9)
3: AC3, Korean, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
4: DTS Master Audio, Korean, 5.1 channels, 16 bits, 48khz, dialnorm: -4dB
5: AC3, Korean, 2.0 channels, 224kbit/s, 48khz, dialnorm: -27dB
6: AC3, Korean, 2.0 channels, 224kbit/s, 48khz, dialnorm: -27dB
7: AC3, Korean, 2.0 channels, 320kbit/s, 48khz, dialnorm: -27dB
8: Subtitle (PGS), Korean
9: Subtitle (PGS), English
10: Subtitle (PGS), Japanese
11: Subtitle (PGS), Korean

So no, it doesn't already do that.


G:\Encoding Tools\eac3to>eac3to.exe "G:\Dumps\Tremors"
1) FEATURE_1.EVO+FEATURE_2.EVO, 1:35:39
"HD_Feature"
- VC-1, 1080p (16:9)
- TrueHD, English, 5.1, 48khz
- E-AC3, English, 5.1, 48khz
- E-AC3, French, 2.0, 48khz

G:\Encoding Tools\eac3to>eac3to.exe "G:\Dumps\Tremors" 1)
EVO, 1 video track, 3 audio tracks, 2 subtitle tracks, 1:35:45
"HD_Feature"
1: Joined EVO file
2: Chapters, 18 chapters with names
3: VC-1, 1080p24 /1.001 (16:9) with pulldown flags
4: TrueHD, English, 5.1 channels, 48khz, dialnorm: -27dB, -1ms
5: E-AC3, English, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB, -8ms
6: E-AC3, French, 2.0 channels, 384kbit/s, 48khz, dialnorm: -27dB, -8ms
7: Subtitle, English, "SDH"
8: Subtitle, French

Does for HD DVDs though. Bolded for those hard of seeing.

rica
19th August 2008, 22:27
Working line for HD DVDs:

eac3to\eac3to.exe F:\XXX_HDDVD\HVDVD_TS\PEVOB_1.EVO+F:\XXX_HDDVD\HVDVD_TS\PEVOB_2.EVO Z: "C:\Users\rica\desktop\try\trial.vc1

So most probably the working line would be for m2ts:

eac3to\eac3to.exe F:\XXX\YYY\00000.m2ts+F:\XXX\YYY\00001.m2ts Z: "C:\Users\rica\desktop\try\trial.h264

(Z here is track number)

rebkell
19th August 2008, 22:57
So no, it doesn't already do that.




Does for HD DVDs though.

I'm so lost, the above example you had will output the two m2ts files joined together, if that's not what you want, then I have no idea what we're talking about anymore. :confused:

Snowknight26
20th August 2008, 00:26
For the HD DVD example I gave, if you output track #1, it gives you the joined EVO. There is no option to do the same with the 1st example - the Blu-ray. Maybe you missed it without the bold.

EPiPH0NE
20th August 2008, 01:51
For the HD DVD example I gave, if you output track #1, it gives you the joined EVO. There is no option to do the same with the 1st example - the Blu-ray. Maybe you missed it without the bold.


eac3to handles BluRay SEAMLESS BRANCHING perfectly by joining the branched files via the corresponding playlist(MPLS). Branching is handled differently between HD-DVD and BluRay but does the same thing. This is common knowledge and has been for quite some time :)

Snowknight26
20th August 2008, 05:12
No one seems to get it.

Going with my example for the HD DVD, typing
eac3to sourcefolder 1) 1: output.evo
would produce a joined evo file.

Then with the Blu-ray example, typing
eac3to sourcefolder 1) 1: output.m2ts
will extract the chapters to a file named output.m2ts, not a joined m2ts file, because the option is missing.

In this particular case, I don't care about being able to demux any of the streams. I want the whole joined m2ts by way of typing whats in the 2nd quotes.

Really not that hard to understand.

rebkell
20th August 2008, 05:19
No one seems to get it.

Going with my example for the HD DVD, typing

would produce a joined evo file.

Then with the Blu-ray example, typing

will extract the chapters to a file named output.m2ts, not a joined m2ts file, because the option is missing.

In this particular case, I don't care about being able to demux any of the streams. I want the whole joined m2ts by way of typing whats in the 2nd quotes.

Really not that hard to understand.

I get it now, my stumbling block, was that I didn't realize that HD-DVD's would combine the two pieces into one muxed file. I've always demuxed the streams I wanted and muxed them back together. It will do what you want, but it requires demuxing everything and then muxing it back.

madshi
20th August 2008, 07:24
With HD DVDs, eac3to gives the option to output joined EVOs. Can we expect to see that for m2ts files also?
No. The problem with m2ts multi part movies is that audio often overlaps a little. In order to fix that problem completely I would probably have to write a full featured m2ts muxer. That is not planned. With HD DVD movies it's easier because the audio doesn't overlap. So I just need to join the files and maybe correct a few timestamps. Easy. Not so with Blu-Ray.

You have 2 options:

(1) Either you can let tsMuxeR or TsRemux do the m2ts multipart joining. Neither of them will correct the audio overlaps, though. So the end result may play bumpy on the join points or eventually audio sync will gradually be lost (depends on the media player / splitter).

(2) Or you can let eac3to demux all video and audio tracks. Audio overlaps can then be fixed. Finally you can recreate a new m2ts file by using tsMuxeR or Scenarist.

patja
20th August 2008, 16:17
Yes, I've sent Kaspersky a false positive report using the format Kaspersky dictates with a reference to this thread for more info.

Kaspersky fixed this, it is no longer reported as containing a Trojan

madshi
20th August 2008, 17:08
Kaspersky fixed this, it is no longer reported as containing a Trojan
Great! Thanks for the heads up... :)

Roscoe62
21st August 2008, 19:56
Well, the bad news is I just built a new PC - got everything installed so eac3to can do it's thing ....and I'm STILL getting the "The program channel mapping changes in the middle of the stream" error message with the Mr & Mrs Smith Blu-Ray.

Just to be absolutely sure I'm going to let it go through the process of trying to create the mkv, flac chapter & sup files, but I'm pretty sure I'm going to get another abort. I will post the log when it's done aborting. :confused:

madshi
21st August 2008, 20:21
Well, the bad news is I just built a new PC - got everything installed so eac3to can do it's thing ....and I'm STILL getting the "The program channel mapping changes in the middle of the stream" error message with the Mr & Mrs Smith Blu-Ray.

Just to be absolutely sure I'm going to let it go through the process of trying to create the mkv, flac chapter & sup files, but I'm pretty sure I'm going to get another abort. I will post the log when it's done aborting. :confused:
Can I get a sample, please?

EPiPH0NE
22nd August 2008, 01:58
Well, the bad news is I just built a new PC - got everything installed so eac3to can do it's thing ....and I'm STILL getting the "The program channel mapping changes in the middle of the stream" error message with the Mr & Mrs Smith Blu-Ray.

Just to be absolutely sure I'm going to let it go through the process of trying to create the mkv, flac chapter & sup files, but I'm pretty sure I'm going to get another abort. I will post the log when it's done aborting. :confused:

Yup, same problem here with Mr and Mrs Smith BluRay. I thought you where already working on this problem madshi? wasn't this issue brought up a couple weeks ago?

madshi
22nd August 2008, 07:55
Yup, same problem here with Mr and Mrs Smith BluRay. I thought you where already working on this problem madshi? wasn't this issue brought up a couple weeks ago?
The problem was brought up with two different movies. I got one sample - with which the problem did not occur. After that the person who reported the problem said that the problem was caused by him using the wrong playlist (which combined some SD and HD m2ts parts). I never got a sample with which I can reproduce the problem. Without a sample I can't do anything...

sehgal.v7
22nd August 2008, 09:10
@Madshi
Some unanswered questions ;-):-
1. Are you planning to add option to demux TrueHD & Core seperately?
2. Are you planning to add feature to combine already seperated Core & TrueHD Track by Eac3to?

Regards,
Sehgal

nautilus7
22nd August 2008, 09:56
Regarding the Mr & Mrs Smith problem... I have the UK version of the Blu-ray and I don't get any errors. I am also quite possitive the US blu-ray works fine cause I know a lot of people have it and never heard a complain.

Roscoe62
22nd August 2008, 10:05
Madshi,

I provided the last sample (which unfortunately didn't fault for you). I'm happy to provide you another sample (perhaps a larger sample? - the last one was around 50Mb) but if the same file is causing issues with me, and not with you would you have any clue as to where the problem might lie, if not with the file itself?

In the meantime, I'm going to try to create a larger file (say around 100Mb) and upload it for you in the hopes that THIS one will fault for you.

BTW...it's definitely the zone A disk I have here (US).

Here's the eac3to log file - not that it'll help much.

Thanks!

BTW....if you need a larger sample again, just let me know.

madshi
22nd August 2008, 11:04
I provided the last sample (which unfortunately didn't fault for you). I'm happy to provide you another sample (perhaps a larger sample? - the last one was around 50Mb) but if the same file is causing issues with me, and not with you would you have any clue as to where the problem might lie, if not with the file itself?
I don't see how the sample would show the problem for you but not for me. In this specific case no external software or DirectShow filter is involved. So as long as we're using the very same sample file, the same eac3to version and the same command line, the problem must occur for both of us or for neither of us.

When you test the sample, make sure you copy it to a folder separate from the original Blu-Ray folder structure. E.g. copy it to the desktop and let eac3to check it there.

1. Are you planning to add option to demux TrueHD & Core seperately?
There is no TrueHD core. I guess you mean the separate AC3 frames embedded in the Blu-Ray TrueHD+AC3 stream? If so, I don't need to add an option to demux them separately because that's the default behaviour. I guess you mean you want an option to demux them *not* separately? It would be nice if you could actually write what you mean, that would save me some time... ;)

2. Are you planning to add feature to combine already seperated Core & TrueHD Track by Eac3to?
Again TrueHD has no core. I may eventually add a feature to create an interweaved TrueHD+AC3 track for Scenarist muxing.

rickardk
22nd August 2008, 11:12
Trying to remux The Game Plan with eac3to:

eac3to bd-tgp
1) 00139.mpls, 2:07:03
[92+1+93+3+94+5+95+7+96+9+97+11+98+13+99+15+16+100+18+101+20+102+22+103+24+10
4+26+105+28+106+30+107+32+108+109+35+110+37+111+39+112+41+113+43+114+45+115+47+1
16+49+117+51+118+53+119+55+120+57+121+59+122+61+123+63+124+65+125+67+126+69+127+
71+128+73+129+75+130+77+78+131+80+132+82+133+84+134+86+135+88+136+90+137].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)
- RAW/PCM, English, multi-channel, 48khz
- AC3, English, multi-channel, 48khz
- AC3, English, multi-channel, 48khz
- AC3, English, multi-channel, 48khz
- AC3, English, stereo, 48khz


The result is a perfect mkv of the video. But audio is screwed up. The first chunk (a few minutes) of audio is repeated several times during the first 15 minutes. The disney theme cuts in all over the place.

madshi
22nd August 2008, 11:16
Trying to remux The Game Plan with eac3to:

eac3to bd-tgp
1) 00139.mpls, 2:07:03
[92+1+93+3+94+5+95+7+96+9+97+11+98+13+99+15+16+100+18+101+20+102+22+103+24+10
4+26+105+28+106+30+107+32+108+109+35+110+37+111+39+112+41+113+43+114+45+115+47+1
16+49+117+51+118+53+119+55+120+57+121+59+122+61+123+63+124+65+125+67+126+69+127+
71+128+73+129+75+130+77+78+131+80+132+82+133+84+134+86+135+88+136+90+137].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)
- RAW/PCM, English, multi-channel, 48khz
- AC3, English, multi-channel, 48khz
- AC3, English, multi-channel, 48khz
- AC3, English, multi-channel, 48khz
- AC3, English, stereo, 48khz


The result is a perfect mkv of the video. But audio is screwed up. The first chunk (a few minutes) of audio is repeated several times during the first 15 minutes. The disney theme cuts in all over the place.
Is the problem reproducable with a small sample? If so, could I get that sample, please?

P.S: I guess eac3to asked you to rerun the command line to fix audio overlaps? Did you do that rerun? If so, could you please check if the problem already occurs before the rerun or if it is introduced by the overlap fixing? Thanks!

Roscoe62
22nd August 2008, 11:27
I'm still testing, but I may have accidentally stumbled onto a solution for getting Mr & Mrs Smith to work.

It's a little left field, but it seems to have worked - I'm just muxing the files together now...will report back soon.

rickardk
22nd August 2008, 12:35
Is the problem reproducable with a small sample? If so, could I get that sample, please?

P.S: I guess eac3to asked you to rerun the command line to fix audio overlaps? Did you do that rerun? If so, could you please check if the problem already occurs before the rerun or if it is introduced by the overlap fixing? Thanks!

Yes I did rerun before muxing audio and video. Can't produce with sample as the misplaced audio error starts 10 minutes into the movie.

Think of each letter as ~2min audio

Correct audio: a-b-c-d-e-f-g-h-i-j-k-l-m

eac3to audio: a-b-c-a-e-f-a-h-i-b-k-l-b

I will try again and check before rerun (overlap fixing)...

sehgal.v7
22nd August 2008, 13:09
@Madshi
Sowwie, my typo mistake.. i meant, Are you planning to add option to not to demux TrueHD & AC3 seperately?
& Second was to Combine TrueHD+AC3 file that already being seperated by Eac3to?

In general term, we use Core for that AC3, that's why got confused. :-)

Roscoe62
22nd August 2008, 13:19
OK - it's now confirmed - I can get eac3to to produce a perfectly working version of Mr & Mrs Smith, but what I had to do was a little weird.

For this particular movie, the whole movie is contained within the one m2ts file.

First off, I removed 00001.m2ts (the main file) from the stream folder in order to cut it and make Madshi a sample, but when I tested the sample, the error wasn't showing any more. I put it back into the stream folder and the error came back.

If I pointed eac3to exactly to the file within the STREAM folder (instead of just the title's folder - in this case MRMRSSMITH) no errors were displayed, but there was no option to rip the chapters either. Just on a hunch I removed EVERY OTHER m2ts file from the stream folder and put them somewhere else. Then I pointed eac3to back to the title folder (MRMRSSMITH). Eac3to produced the full list of video/audio/chapter/subtitle files without showing any error messages at all, so I let eac3to go - it produced the mkv file from the h264 video, the flac file from the DTS MA, the chapters file & the english sup file (I usually do this just in case it's a "forced subs" track) and it went all the way to completion without aborting. After using MKVMerge to put the audio & chapter files back in, and testing it, it has all worked perfectly.

I don't know why eac3to was producing that particular error on this particular disk, but hopefully there's something in my explanation that Madshi might be able to use to find what the problem was.

If you need me to do any further testing, I still have all the files on the PC and will keep them there for a while.

xkodi
22nd August 2008, 14:21
@madshi

we are talking a lot about bit-perfect transfer here when it comes to audio, but what about the same thing with video, e.g. raw h.264 stream to MKV and vice-versa?

how i test:

eac3to file.m2ts raw_1.h264

eac3to file.m2ts file.mkv
mkvextract file.mkv to raw_2.h264

mkvmerge raw_1.h264 to file2.mkv
mkvextract file2.mkv to raw_3.h264

my expectation was that raw_1.h264, raw_2.h264 and raw_3.h264 are exactly the same or at least have some small differences in headers or something, but it turns out that they are all different and when compare them with hex editor the differences are very huge.

so, why is that and is it OK?

madshi
22nd August 2008, 14:52
Yes I did rerun before muxing audio and video. Can't produce with sample as the misplaced audio error starts 10 minutes into the movie.
eac3to will tell you the runtime of each m2ts part. This way you should be able to find out in which m2ts part the problem begins. Maybe it's directly with the start of a specific m2ts part. Or maybe it's in the middle of a specific m2ts part. Anyway, maybe you can create a working sample this way? Cutting m2ts files is rather easy. You can just delete blocks of 192 bytes from the beginning or end of a m2ts file until you get exactly what you need.

I will try again and check before rerun (overlap fixing)...
Thanks, that will be helpful.

OK - it's now confirmed - I can get eac3to to produce a perfectly working version of Mr & Mrs Smith, but what I had to do was a little weird.

For this particular movie, the whole movie is contained within the one m2ts file.

First off, I removed 00001.m2ts (the main file) from the stream folder in order to cut it and make Madshi a sample, but when I tested the sample, the error wasn't showing any more. I put it back into the stream folder and the error came back.

If I pointed eac3to exactly to the file within the STREAM folder (instead of just the title's folder - in this case MRMRSSMITH) no errors were displayed, but there was no option to rip the chapters either. Just on a hunch I removed EVERY OTHER m2ts file from the stream folder and put them somewhere else. Then I pointed eac3to back to the title folder (MRMRSSMITH). Eac3to produced the full list of video/audio/chapter/subtitle files without showing any error messages at all, so I let eac3to go - it produced the mkv file from the h264 video, the flac file from the DTS MA, the chapters file & the english sup file (I usually do this just in case it's a "forced subs" track) and it went all the way to completion without aborting. After using MKVMerge to put the audio & chapter files back in, and testing it, it has all worked perfectly.
So that means that one of the other m2ts files made problems. Most probably if you have the original unmodified folder (with which the problem occurred), eac3to tried to join two (or more) m2ts parts which didn't really belong together. So my suggestion would be to retry with the original folder. Please post the eac3to log when doing "eac3to c:\whatever\mrmrssmith 1)". I think you'll find that there are at least 2 m2ts parts listed by eac3to, or maybe even more...

we are talking a lot about bit-perfect transfer here when it comes to audio, but what about the same thing with video, e.g. raw h.264 stream to MKV and vice-versa?
With VC-1 and MPEG2 you should get bit perfection when doing what you did. With h264 not so.

how i test:

eac3to file.m2ts raw_1.h264

eac3to file.m2ts file.mkv
mkvextract file.mkv to raw_2.h264

mkvmerge raw_1.h264 to file2.mkv
mkvextract file2.mkv to raw_3.h264

my expectation was that raw_1.h264, raw_2.h264 and raw_3.h264 are exactly the same or at least have some small differences in headers or something, but it turns out that they are all different and when compare them with hex editor the differences are very huge.

so, why is that and is it OK?
The difference should not be huge. The main difference should be that all 3 muxers (eac3to, Haali and mkvmerge) remove the AUDs ("access unit delimiters") when muxing the raw h264 stream to MKV. The AUDs are "[00] 00 00 01 09 xx". Their only purpose is to serve as separaters. MKV stores each access unit separately, anyway, so separaters don't make sense with MKV.

IMHO MKV demuxers should add AUDs back into the stream. Should be rather easy. Unfortunately mkvextract doesn't do that.

xkodi
22nd August 2008, 15:16
The difference should not be huge. The main difference should be that all 3 muxers (eac3to, Haali and mkvmerge) remove the AUDs ("access unit delimiters") when muxing the raw h264 stream to MKV. The AUDs are "[00] 00 00 01 09 xx".

the same fragment from raw_1.h264 that is 217 bytes in size, has size of 242 bytes in raw_2.h264 and 263 bytes in raw_3.h264:

raw_1.h264 (217 bytes):

http://thumbnails4.imagebam.com/1172/ebb01a11718055.gif (http://www.imagebam.com/image/ebb01a11718055)

raw_2.h264 (242 bytes):

http://thumbnails4.imagebam.com/1172/edc3cb11718060.gif (http://www.imagebam.com/image/edc3cb11718060)

raw_3.h264 (263 bytes):

http://thumbnails4.imagebam.com/1172/b2f68a11718239.gif (http://www.imagebam.com/image/b2f68a11718239)

so, we have about at least 20% difference between raw_1.h264 and raw_3.h264. it's too much, isn't it?

madshi
22nd August 2008, 15:29
the same fragment from raw_1.h264 that is 217 bytes in size, has size of 242 bytes in raw_2.h264 and 263 bytes in raw_3.h264
Try "mkvextract --raw". raw_2 and raw_3 have the AUD stripped (as I said), but instead the sequence headers are stored twice. I think "--raw" will fix that. mkvextract sometimes prepends the codec private data to the demux when not using "--raw". This will only happen once per file, though. So it's not 50 bytes difference per frame, but per file/movie.

Generally when testing bit perfectness with video you should test more than just 200 bytes. Try 20MB at least.

sehgal.v7
22nd August 2008, 15:42
@xKodi
Bro i spent two whole days working on mkv & h.264 & vc-1, few wks back// and i came to conclusion that once raw VC1 or H.264 went to MKV, u can NEVA get to see exact original size. No PERFECT container for timebeing.

Tools i used - VC12AVI, MKVMerge, Eac3to, Yamb, TSMuxer, TSRemux.

xkodi
22nd August 2008, 16:00
"mkvextract --raw" and "mkvextract --fullraw" don't make any different for this particular fragment at the beginning. comparing 20MB after the fragment at the beginning shows that:

- the different between raw_1 and raw_2 is missing from time to time the following sequence:

0CFF[FF]800000000109xx00000001

which is something else + AUD.

- the different between raw_2 and raw_3 is missing from time to time the following sequence:

780A

@sehgal.v7

yes, i agree that such behavior is not what i'm expecting from container format.

sehgal.v7
22nd August 2008, 16:04
@xKodi
Wait, i'm posting a sample in mkvtoolnix author thread, let's see thr reply.

madshi
22nd August 2008, 16:10
i spent two whole days working on mkv & h.264 & vc-1, few wks back// and i came to conclusion that once raw VC1 or H.264 went to MKV, u can NEVA get to see exact original size. No PERFECT container for timebeing.
I disagree about VC-1.

- the different between raw_1 and raw_2 is missing from time to time the following sequence:

0CFF[FF]800000000109xx00000001

which is something else + AUD.
Are you sure about that? Can you upload those 20MB for testing purposes? The only difference should be the AUD. And eventually a stripped sequence end code.

- the different between raw_2 and raw_3 is missing from time to time the following sequence
Well, that's your own fault, if you use mkvmerge instead of eac3to... :D

I'm in contact with Mosu. He seems to consider adding AUDs to mkvextract. Maybe he'll also fix the double sequence headers at the beginning of the stream. That should give us bit perfection. Except this "something else" which we need to identify before we can talk about what to do with it.

xkodi
22nd August 2008, 16:40
I disagree about VC-1.
VC-1 doesn't work here too. i'm doing the same test as with h264. also, will try with MPEG2.

Are you sure about that? Can you upload those 20MB for testing purposes? The only difference should be the AUD. And eventually a stripped sequence end code.

eac3to file.m2ts raw_1.h264:

http://rapidshare.de/files/40296284/raw_1_20mb.h264.html

eac3to file.m2ts file.mkv
mkvextract file.mkv to raw_2.h264:

http://rapidshare.de/files/40296287/raw_2_20mb.h264.html


Well, that's your own fault, if you use mkvmerge instead of eac3to... :D

i'm not aware of any other tool that allows me to merge the video, audio and subtitle streams together.

[edit]

eac3to file.vob raw_1.m2v:

eac3to file.vob file.mkv
mkvextract file.mkv to raw_2.m2v:

compare raw_1.m2v and raw_2.m2v:
http://img376.imageshack.us/img376/8994/m2vun8.th.jpg (http://img376.imageshack.us/my.php?image=m2vun8.jpg)

so, overall result is that currently merge/extract video to/from MKV is not bit-perfect for VC1, H264 and MPEG2.

madshi
22nd August 2008, 17:29
VC-1 doesn't work here too.
Sample?

i'm not aware of any other tool that allows me to merge the video, audio and subtitle streams together.
You should use eac3to for muxing the video to MKV. Then you can use mkvtoolnix to add audio and subtitle streams. mkvtoolnix will not damage the video track muxed by eac3to. But if you use mkvtoolnix for muxing a raw video stream you'll have to live with results which are not as good as when using eac3to, sometimes.

eac3to file.vob raw_1.m2v
Sample?

P.S: Please use "--raw" for MPEG2 demuxing. I think at least with MPEG2 there's a big difference.

so, overall result is that currently merge/extract video to/from MKV is not bit-perfect for VC1, H264 and MPEG2.
You should not use mkvmerge + mkvextract. You should use eac3to + "mkvextract --raw". That results in bit perfect results for VC-1 and MPEG2, as far as I remember. Eventually the last video frame will be lost, but that's about it.

sehgal.v7
22nd August 2008, 17:35
@Madshi
Test file hxxp://rapidshare.com/files/139290511/Test.ts - Demuxing them.
Original size - 9,400,000 (50000x188)

6,750,422 Video by Eac3to.h264
6,770,832 Video by TSMuxer.264
6,770,832 Video by TSRemux.h264

2,243,576 Audio by Eac3to.dtsma
2,244,847 Audio by TSMuxer.dtsma
2,244,847 Audio by TSRemux.dtsma

madshi
22nd August 2008, 17:48
- the different between raw_1 and raw_2 is missing from time to time the following sequence:

0CFF[FF]800000000109xx00000001
That's filler data and AUD. I already explained the AUD. The filler data is just there to achieve CBR or some other stupid aims. So there's no reason to leave it in the stream. It's like zero padded DTS files. No reason really to keep it in the stream. That's why it gets removed by the MKV muxing process.

madshi
22nd August 2008, 17:51
@Madshi
Test file hxxp://rapidshare.com/files/139290511/Test.ts - Demuxing them.
Original size - 9,400,000 (50000x188)

6,750,422 Video by Eac3to.h264
6,770,832 Video by TSMuxer.264
6,770,832 Video by TSRemux.h264

2,243,576 Audio by Eac3to.dtsma
2,244,847 Audio by TSMuxer.dtsma
2,244,847 Audio by TSRemux.dtsma
eac3to only outputs frames for which it's sure that they are complete. If eac3to cannot be sure that the last video or audio frame is complete it skips them. That's why video and audio tracks demuxed by eac3to may be one frame short compared to other demuxers. An incomplete audio or video frame could result in rainbow frames or even decoder crashes...

xkodi
22nd August 2008, 18:34
Sample?
P.S: Please use "--raw" for MPEG2 demuxing. I think at least with MPEG2 there's a big difference.

"--raw" doesn't make any difference.

MPEG2 sample:
http://rapidshare.de/files/40296979/VTS_02_1.VOB.html

screenshot from the comparison:

http://img99.imageshack.us/img99/4500/rawm2vqr4.th.jpg (http://img99.imageshack.us/my.php?image=rawm2vqr4.jpg)

No reason really to keep it in the stream. That's why it gets removed by the MKV muxing process.

i really can't get why destroying the original stream by removing data even if they are useless. the only reason that i can think of is to save space, but with removing things like AUD you can't save space anyway.

nautilus7
22nd August 2008, 18:48
i really can't get why destroying the original stream by removing data even if they are useless. the only reason that i can think of is to save space, but with removing things like AUD you can't save space anyway.
I don't believe that eac3to would do something harmful to our data.
And I like removing useless things from my data. I want them as clean as possible, but that's my opinion. :)

madshi
22nd August 2008, 18:53
i really can't get why destroying the original stream by removing data even if they are useless.
Filler data is by design and by h264 specification useless for decoders. So why keep it in the stream? Removing it from the stream is in no way "destroying" the stream. It's more like "cleaning up the stream". I don't see you complaining about eac3to removing the zero padding of DTS streams. So why are you complaining about removing useless filler data from h264 streams? The only effect it has is saving space. To my best knowledge there is no other (positive or negative) effect of removing the filler data.

with removing things like AUD you can't save space anyway.
Look, with VOB and m2ts containers the video data is stored as one continuous stream of bytes. The AUDs are in the h264 streams cause they make it easier to separate frames. But MKV works very differently. It stores each frame separately. So storing the AUDs in MKV doesn't make any sense. I wouldn't even know where to store them! Should I put them in front of each frame or behind? IMO the software which demuxes a h264 stream from an MKV should put the AUDs back in. That's really easy to do. Now unfortunately Mosu doesn't seem to like the idea. But that's a different topic.

madshi
22nd August 2008, 19:05
"--raw" doesn't make any difference.
I've tested your MPEG2 sample and I get 100% bit perfection when I use "--raw". Caution: You need to put the "--raw" parameter at the right place in the command line! Or else it will have no effect. The right command line would be this:

"mkvextract tracks sample.mkv --raw 1:test.m2v"

xkodi
22nd August 2008, 19:25
"mkvextract tracks sample.mkv --raw 1:test.m2v"

my command was "mkvextract tracks sample.mkv 1:test.m2v --raw"

after put the "--raw" at the right place it is bit-perfect here too.

so, indeed with MPEG2 everything is OK. thank you for you help!

Filler data is by design and by h264 specification useless for decoders.

thank you for explaining this, then it is save to remove those "filler data".

what about AUDs - are decoders OK with raw h264 stream without AUDs?

Roscoe62
22nd August 2008, 20:54
So that means that one of the other m2ts files made problems. Most probably if you have the original unmodified folder (with which the problem occurred), eac3to tried to join two (or more) m2ts parts which didn't really belong together. So my suggestion would be to retry with the original folder. Please post the eac3to log when doing "eac3to c:\whatever\mrmrssmith 1)". I think you'll find that there are at least 2 m2ts parts listed by eac3to, or maybe even more...

Well, yes and no. I posted the log already - you'll find it on the last page and it makes no mention of which m2ts files it uses.

However, when I ran the usual commands again, the step prior to that recorded in the log clearly shows that it is adding 00001.m2ts and 00002.m2ts together. Looking at the stream list the 00002.m2ts file is only 54kb in size, and is not required at all. The only thing it does is prevent eac3to from doing it's job properly.

Let me know if there's anything further I can do to help.

madshi
22nd August 2008, 21:40
my command was "mkvextract tracks sample.mkv 1:test.m2v --raw"

after put the "--raw" at the right place it is bit-perfect here too.

so, indeed with MPEG2 everything is OK.
I hope you can confirm the same bit perfectness for VC-1?

thank you for explaining this, then it is save to remove those "filler data".
I really think so.

what about AUDs - are decoders OK with raw h264 stream without AUDs?
Decoders don't mind at all. If they minded, no h264 MKV or MP4 file would play because both containers don't store AUDs. And the default output of the x264 encoder doesn't contain any AUDs, either, as far as I know. The only containers which use AUDs by default are VOB/EVO and TS/M2TS, I believe. And I think even the VOB/EVO and TS/M2TS splitters remove the AUDs before sending the data to the decoder.

However, eac3to depends on h264 files containing AUDs. Without them eac3to doesn't properly handle h264 files. So basically if you mux a raw h264 stream to MKV, then demux it again, eac3to will not handle it properly, anymore. In the long run I need to find a way to solve this problem. Maybe I'll make eac3to not depend on AUDs, anymore. Or maybe I'll find another way. Not sure...

madshi
22nd August 2008, 21:42
Well, yes and no. I posted the log already - you'll find it on the last page and it makes no mention of which m2ts files it uses.

However, when I ran the usual commands again, the step prior to that recorded in the log clearly shows that it is adding 00001.m2ts and 00002.m2ts together. Looking at the stream list the 00002.m2ts file is only 54kb in size, and is not required at all. The only thing it does is prevent eac3to from doing it's job properly.

Let me know if there's anything further I can do to help.
Ah, that's interesting. Can you please upload that 54kb file? Also I need a 50MB sample of 00001.m2ts again (the original upload you provided is not available, anymore, and I deleted the file already). Thanks!

EPiPH0NE
22nd August 2008, 22:04
Well, yes and no. I posted the log already - you'll find it on the last page and it makes no mention of which m2ts files it uses.

However, when I ran the usual commands again, the step prior to that recorded in the log clearly shows that it is adding 00001.m2ts and 00002.m2ts together. Looking at the stream list the 00002.m2ts file is only 54kb in size, and is not required at all. The only thing it does is prevent eac3to from doing it's job properly.

Let me know if there's anything further I can do to help.


Yeah, once I went back in just used the main M2TS file for my source input instead of my BD-rom, Mr and Mrs Smith ran through fine. Thanks for the tip :)

Roscoe62
23rd August 2008, 01:12
Madshi,

I've now uploaded the Mr & Mrs Smith files for you.

This (http://www.sendspace.com/file/hu2gxh) zip file has both a 50Mb sample of 00001.m2ts and also the 00002.m2ts file.

sehgal.v7
23rd August 2008, 07:41
@Madshi
VC-1 Sample for your study, hxxp://rapidshare.com/files/139429429/Video.ts
Original TS File Size - 5,220,384
4,948,722 Demuxed Video by Eac3to.vc1
4,933,798 Extracted Video by mkvextract.vc1
4,927,251 Muxed by Eac3to.mkv
Not Exact VC1 File.

Regards,
Sehgal

madshi
23rd August 2008, 07:57
@Madshi
VC-1 Sample for your study, hxxp://rapidshare.com/files/139429429/Video.ts
Original TS File Size - 5,220,384
4,948,722 Demuxed Video by Eac3to.vc1
4,933,798 Extracted Video by mkvextract.vc1
4,927,251 Muxed by Eac3to.mkv
Not Exact VC1 File.
As I said before, the file size alone is not a good indicator. eac3to sometimes drop the last frame which can result in a smaller file size. But that doesn't mean that bit perfection isn't reached.

sehgal.v7
23rd August 2008, 08:06
@Madshi
First i did that on Original Blu Ray Disc, i don't think in that last frame would be incomplete. And second time for you, i did that on sample by cutting starting piece.
Secondly that mean, eac3to mux's exact stream to MKV, even if last frame is incomplete. And it only remove last incomplete frame in demuxing.

Hope, i'm getting right. And i never mean to offend you, i just want help you by testing stuff.

madshi
23rd August 2008, 09:31
I've now uploaded the Mr & Mrs Smith files for you.
Thanks. This problem will be fixed in the next eac3to build.

First i did that on Original Blu Ray Disc, i don't think in that last frame would be incomplete. And second time for you, i did that on sample by cutting starting piece.
Secondly that mean, eac3to mux's exact stream to MKV, even if last frame is incomplete. And it only remove last incomplete frame in demuxing.
The point is that comparing the file size alone does not help. The file can reach bit perfection and still have a different file size (due to frames missing at the end). You need to compare the files with a hex editor or with a good file comparison tool to find out whether you got bit perfection or not.

sehgal.v7
23rd August 2008, 10:45
(A)
1. Extracted 1080p24.vc1 from VC1.ts by Eac3to - (If any frame was missing, it must have been removed)
2. Made M2TS file with Scenarist. Then Extracted 1080p24.vc1 from VC1.m2ts.
------- Compared both files by Hex // both are same.

(B)
3. VC1.m2ts to VC1.mkv with Eac3to.
4. Extracted 1080p24.vc1 from VC1 by MKVExtract.
------- Compared 1080p24.vc1 (A) & 1080p24.vc1 (B) by Hex. Lotsa difference!!

Here's the Report!!
hxxp://rapidshare.com/files/139456657/Report.rar

madshi
23rd August 2008, 10:55
(A)
1. Extracted 1080p24.vc1 from VC1.ts by Eac3to - (If any frame was missing, it must have been removed)
2. Made M2TS file with Scenarist. Then Extracted 1080p24.vc1 from VC1.m2ts.
------- Compared both files by Hex // both are same.

(B)
3. VC1.m2ts to VC1.mkv with Eac3to.
4. Extracted 1080p24.vc1 from VC1 by MKVExtract.
------- Compared 1080p24.vc1 (A) & 1080p24.vc1 (B) by Hex. Lotsa difference!!

Here's the Report!!
hxxp://rapidshare.com/files/139456657/Report.rar
I don't know exactly what you did there, but the "left" file in the comparison looks damaged to me. Look, there's even the text "mkvextract 2.2.0" in the left VC-1 file! That does not make any sense. I think you must have made a mistake somewhere...

sehgal.v7
23rd August 2008, 11:03
@Madshi
1. eac3to VC1.ts -demux
2. eac3to VC1.m2ts -demux
3. eac3to VC1.m2ts VC1.mkv
4. mkvextract tracks VC1.mkv 1:1080p24.vc1 --raw

You can test yourself. http://rapidshare.com/files/139461876/VC1.m2ts by Scenarist.

madshi
23rd August 2008, 11:13
4. mkvextract tracks VC1.mkv 1:1080p24.vc1 --raw
That command line is wrong. Just read the last 15 comments in this thread and you'll see why.

sehgal.v7
23rd August 2008, 11:31
Now got it right but still at last http://rapidshare.com/files/139465417/Report_2.rar
mkvextract tracks VC1.mkv --raw 1:1080p24.vc1

madshi
23rd August 2008, 12:16
Now got it right but still at last http://rapidshare.com/files/139465417/Report_2.rar
mkvextract tracks VC1.mkv --raw 1:1080p24.vc1
Yeah, it's exactly as I said:

The only difference between the two files is that one them has one frame missing. One of the files contains 433 frames while the other contains 432 frames. But those 432 frames are 100% bit perfectly identical.

sehgal.v7
23rd August 2008, 12:25
@Madshi
Thanks Madshi, got every single clearance on VC1.
Jus one last ques- Are you planning to add feature to combine AC3 & TrueHD files together? :-)
Me still waiting to burn Blue Planet again ;-)

Jan Marijniszoon
23rd August 2008, 13:08
madshi, I now found a workaround (tsMuxer combined with TsRemux) to get TrueHD tracks (with ac3-core) to work on 'homemade' Blu-rays.
I tested it myself and the TrueHD tracks plays perfectly and the core also gets recognized.

So I would like to ask you nicely when you have time for it to check out if it is possible to remove dialog normalisation from these type of tracks. How can it be done? I guess you have to find a way to remove the dialog normalisation from both the headers in the file?

madshi
23rd August 2008, 15:52
Jus one last ques- Are you planning to add feature to combine AC3 & TrueHD files together? :-)
I already answered that question.

madshi, I now found a workaround (tsMuxer combined with TsRemux) to get TrueHD tracks (with ac3-core) to work on 'homemade' Blu-rays.
I tested it myself and the TrueHD tracks plays perfectly and the core also gets recognized.

So I would like to ask you nicely when you have time for it to check out if it is possible to remove dialog normalisation from these type of tracks. How can it be done? I guess you have to find a way to remove the dialog normalisation from both the headers in the file?
I'll add it to the to do list.

sehgal.v7
23rd August 2008, 16:10
"I may eventually add a feature to create an interweaved TrueHD+AC3 track for Scenarist muxing."
Oki, will be waiting for that.

Secondly, i was jus experimenting with files.. If TrueHD stream contains only 16bit Information, when converting it to WAV, why it outputs 24bit??
TrueHD/AC3, 5.1 channels, 48khz, dialnorm: -27dB
Extracting TrueHD stream...
Removing dialog normalization...
Decoding with DirectShow (Nero Audio Decoder 2)...
DirectShow reports 5.1 channels, 24 bits, 48khz
Writing WAV...
Creating file "K:\Audio.wav"...
This audio track has a constant bit depth of 16 bits.
Caution: The WAV file is bigger than 2GB.
Some WAV readers might not be able to handle this file correctly.
eac3to processing took 10 minutes, 3 seconds.
Done.

LPCM or RAW wasn't accepted by Scenarist// so had to write WAV file. Is channel configuration for 6CH (L,C,R,LS,RS,lfe)??

-----
Blue Planet contains Dolby TrueHD 5.1 16-bit, how can i force eac3to to output LPCM 16-bit? Eac3to output 24-bit.

xkodi
23rd August 2008, 16:24
i also can confirm that VC1 is bit-perfect. so, what we have till now:

- MPEG-2: bit-perfect.
- VC-1: bit-perfect, but usually the last frame is missing (at least on all test i run the last frame is always missing, anyway it's not a problem)
- H.264: AUDs and "filler data" are removed, but as madshi explained they are useless data, all other data are bit-perfect, but always have "the double sequence headers at the beginning of the stream".

sehgal.v7
23rd August 2008, 16:30
@xKodi
Yeap, Agreed on all points!!

madshi
23rd August 2008, 17:55
Secondly, i was jus experimenting with files.. If TrueHD stream contains only 16bit Information, when converting it to WAV, why it outputs 24bit??
That's a bug in the current version. It will be fixed in the next build.

Is channel configuration for 6CH (L,C,R,LS,RS,lfe)??
WAV channel order is L, R, C, LFE, LS, RS.

- MPEG-2: bit-perfect.
- VC-1: bit-perfect, but usually the last frame is missing (at least on all test i run the last frame is always missing, anyway it's not a problem)
Correct. You need to use "--raw" for both MPEG2 and VC-1, though, to achieve bit perfectness.

- H.264: AUDs and "filler data" are removed, but as madshi explained they are useless data, all other data are bit-perfect, but always have "the double sequence headers at the beginning of the stream".
Correct. In this case you must NOT use "--raw", btw. And I want to add that I don't consider the AUDs to be useless for a continuous stream of bytes. I just consider AUDs to be useless inside of an MKV or MP4 container. IMO an MKV/MP4 demuxer which targets to create a raw h264 file should readd AUDs. Sadly current demuxers don't do that. Maybe some day I'll have to write my own MKV demuxer. But it's not a big deal since AUDs are optional, anyway, and decoders don't need them in any case.

sehgal.v7
23rd August 2008, 18:10
@Madshi
Thanx for fixing bug in next release.
Secondly, Scenarist is accepting L,C,R,LS,RS,lfe config for while.
Screenshot http://rapidshare.com/files/139543028/Untitled.jpg

madshi
23rd August 2008, 18:24
Secondly, Scenarist is accepting L,C,R,LS,RS,lfe config for while.
I'm not sure but I guess that's the channel order which Scenarist will write into the final m2ts file and *not* the channel order it expects in the wav file. The wav file channel order is standardized and eac3to uses the channel order which everybody uses in wav files. Scenarist expecting a non-standard channel order in the wav file would be quite strange.

deacon crusher
24th August 2008, 00:30
So, I'm trying to convert CJ7 (the newish Steven Chow movie) to MKV and running into quite a bit of difficulty.

It's a multi-part (But I've dealt with that before by muxing together with tsmuxer.) However, there's some problem with the streams, when running tsmuxer or eac3to I get many alerts of the type

The program channel mapping changes in the middle of the stream.

So, I'm demuxing each seperate m2ts file using eac3to and I'm going to try to then combing together the h264 files into 1 mkv and the ac3 files into 1 ac3. However, I'd love any tips regarding correct command line options for this phase and any gotchas to look out for to make sure I'm getting rid of audio overlap and will have a final product where audio and video are in sync.

EDIT
I guess specifically my question is in madshi's quote he says audio overlap can then be fixed, how??
END EDIT

Thanks

No. The problem with m2ts multi part movies is that audio often overlaps a little. In order to fix that problem completely I would probably have to write a full featured m2ts muxer. That is not planned. With HD DVD movies it's easier because the audio doesn't overlap. So I just need to join the files and maybe correct a few timestamps. Easy. Not so with Blu-Ray.

You have 2 options:

(1) Either you can let tsMuxeR or TsRemux do the m2ts multipart joining. Neither of them will correct the audio overlaps, though. So the end result may play bumpy on the join points or eventually audio sync will gradually be lost (depends on the media player / splitter).

(2) Or you can let eac3to demux all video and audio tracks. Audio overlaps can then be fixed. Finally you can recreate a new m2ts file by using tsMuxeR or Scenarist.

sehgal.v7
24th August 2008, 03:37
@Madshi
Oki, i'll test and post results back!!

scarbrtj
24th August 2008, 03:54
Madshi:

Re: "The Bank Job" AVC/7.1 DTSHD

The AVC video track duration is 1:54:34.075

-core eac3to extraction yields a 1:52:01.749 DTS file

If I instead convert to AC3 with eac3to, we get a 1:54:34.075 file... and muxing this to the video gives perfect sync.

Obviously, a mux of the -core DTS and AVC video gives a very big video/audio sync problem.

But, I'd like to get the -core DTS and AVC together... thoughts?

papaleon
24th August 2008, 08:14
Madshi:

Re: "The Bank Job" AVC/7.1 DTSHD

The AVC video track duration is 1:54:34.075

-core eac3to extraction yields a 1:52:01.749 DTS file

If I instead convert to AC3 with eac3to, we get a 1:54:34.075 file... and muxing this to the video gives perfect sync.

Obviously, a mux of the -core DTS and AVC video gives a very big video/audio sync problem.

But, I'd like to get the -core DTS and AVC together... thoughts?

hi!
are you shure the video is 1:54:34? Im getting this:

U:\BluRAY>eac3to The.Bank.Job
1) 00000.mpls, 00001.m2ts, 1:52:02
- h264/AVC, 1080p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- AC3, English, stereo, 48khz

U:\BluRAY>eac3to The.Bank.Job 1)
M2TS, 1 video track, 3 audio tracks, 3 subtitle tracks, 1:52:02
1: Chapters, 17 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 7.1 channels, 16 bits, 48khz
4: AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
5: AC3, English, 2.0 channels, 224kbit/s, 48khz, dialnorm: -27dB
6: Subtitle (PGS), English
7: Subtitle (PGS), English
8: Subtitle (PGS), Spanish

and no problems what so ever when muxing video with flac track...

:edit

I can see now that i have deleted all the files in the stream folder except the 00001.m2ts, maybe this is why im not having any problems...
Try to use eac3to with only this file, maybe it helps....

sehgal.v7
24th August 2008, 09:04
@scarbrtj
Original Blu Ray Info--
The Bank Job (2008) Length 1:52:01 // Size -19,677,437,952

madshi
24th August 2008, 09:36
So, I'm trying to convert CJ7 (the newish Steven Chow movie) to MKV and running into quite a bit of difficulty.

It's a multi-part (But I've dealt with that before by muxing together with tsmuxer.) However, there's some problem with the streams, when running tsmuxer or eac3to I get many alerts of the type

The program channel mapping changes in the middle of the stream.
Please retry with the next eac3to build. Or if you're in a hurry, you can eventually work around the problem by deleting (or renaming) the last m2ts part that is listed by eac3to for the movie. That last part is probably very small, right?

Re: "The Bank Job" AVC/7.1 DTSHD

The AVC video track duration is 1:54:34.075
How did you get this duration information?

Obviously, a mux of the -core DTS and AVC video gives a very big video/audio sync problem.
Which software are you using exactly to mux video and audio together? And into which container are you muxing them?

sehgal.v7
24th August 2008, 10:45
@Madshi
Why is there difference in Dolby Digital Plus Demuxing with Eac3to AND TSRemux or TSMuxer?? (Except Last incomplete Frame?)
Is it coz of Audio Delay or dialog normalization?

nautilus7
24th August 2008, 10:53
Because eac3to removes Dialog Normalization by default, while others don't.

If you're worried about audio bit perfectness using eac3to and other tools, I can assure that a lot of people have test it before you. And everything is fine.

xkodi
24th August 2008, 11:00
If you're worried about audio bit perfectness using eac3to and other tools, I can assure that a lot of people have test it before you. And everything is fine.

second this.

sehgal.v7
24th August 2008, 11:11
Thanks Broz!!

madshi
24th August 2008, 11:28
Why is there difference in Dolby Digital Plus Demuxing with Eac3to AND TSRemux or TSMuxer?? (Except Last incomplete Frame?)
Because eac3to removes Dialog Normalization by default, while others don't.
And that's an important thing to note, if you think about it:

There is a difference between:
(1) keeping compressed bitstream bit perfect and
(2) making sure that decoded data is bit perfect.

What we want above all is (2). But in order to achieve (2) we sometimes have to sacrifice (1). E.g. we have to remove dialnorm to get bit perfect audio decoding. eac3to does a lot of modifications to compressed bitstreams. Dialnorm is removed, zero padding is removed, DTS ES bitstream errors are fixed, DTS bitdepth is patched etc. All this destroys bit perfectness of the compressed bitstream, but makes sure that decoded data is bit perfect.

Now the same thing is valid for video as well: eac3to does some modifictions to the compressed bitstream. E.g. pulldown is stripped, sequence end codes are removed, filler data is removed (and some more modifications to come). Some of this has a positive effect on decoding (e.g. pulldown removal can get rid of judder with some decoders), some of this just saves space (removal of filler data), but none of this has any negative effect on decoding. So that's why we shouldn't worry so much about bit perfectness of compressed bitstreams. What you should worry about is bit perfectness of decoded data. So manipulations in the compressed bitstream are ok, as long as these manipulations improve (or at least don't negatively effect) the decoding performance. This is also the reason why I was never worried about h264 bitstream not being bit perfect (see last 2 pages of discussions).

Sorry for the long rant. These things just became clear to me, so I wanted to write them down to give us all a bit more piece of mind when finding differences in compressed bitstreams.

rica
24th August 2008, 14:10
Madshi, please check mercury's file:

http://rapidshare.com/files/139623098/VC-1Test.m2ts.html

This is interesting?

C:\>eac3to\eac3to.exe "C:\Users\rica\Desktop\VC-1Test.m2ts" "C:\Users\rica\Desktop\new.dts"
Access is denied.


http://img300.imageshack.us/img300/1717/mercurysx9.th.png (http://img300.imageshack.us/my.php?image=mercurysx9.png)

thanks.

madshi
24th August 2008, 14:49
This is interesting?
No. Your eac3to download or your harddisk is probably corrupt. Delete "eac3to.exe", empty your browser cache and redownload. That will most likely fix the problem. You may also want to do a scandisk.

rica
24th August 2008, 14:57
Thanks a lot!

scarbrtj
24th August 2008, 15:00
hi!
are you shure the video is 1:54:34? Im getting this:

U:\BluRAY>eac3to The.Bank.Job
1) 00000.mpls, 00001.m2ts, 1:52:02
- h264/AVC, 1080p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48khz
- AC3, French, multi-channel, 48khz
- AC3, English, stereo, 48khz

U:\BluRAY>eac3to The.Bank.Job 1)
M2TS, 1 video track, 3 audio tracks, 3 subtitle tracks, 1:52:02
1: Chapters, 17 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 7.1 channels, 16 bits, 48khz
4: AC3, French, 5.1 channels, 640kbit/s, 48khz, dialnorm: -27dB
5: AC3, English, 2.0 channels, 224kbit/s, 48khz, dialnorm: -27dB
6: Subtitle (PGS), English
7: Subtitle (PGS), English
8: Subtitle (PGS), Spanish

and no problems what so ever when muxing video with flac track...

:edit

I can see now that i have deleted all the files in the stream folder except the 00001.m2ts, maybe this is why im not having any problems...
Try to use eac3to with only this file, maybe it helps....


And @ sehgal

I can see that the original 00001.m2ts file is 1:52:01. But a "funny thing happened on the way to the bank" as they say. If you take out the individual elementary AVC stream... you get a file 1:54:34 in length. I am using tsremux or tsmuxer to do that; or, if you mux into mkv with eac3to you get 1:54:34 as well. And then I used eac3to to make an AC3 from the DTS-HD track. That AC3 elementary stream is 1:54:34 in duration.

When I mux the AVC and AC3 files together into M2TS... I am back to a 1:52:01 file!

So, this type behavior happens for me all the time with DTS-HD files, and tsmuxer or tsremux seem no better to me at getting the timing of the -core file right. I like passing the DTS bitstream via SPDIF to my receiver, and the only way I have gotten this to work is to use MKV to wrap the DTS in.

I'd love to know how other guys are getting DTS cores and playing them back via SPDIF.

73ChargerFan
24th August 2008, 17:39
I'd love to know how other guys are getting DTS cores and playing them back via SPDIF.
eac3to with -core option, and spdifer with mpc-hc

mpc-hc built in dts filter doesn't work with 1536 streams on mine and on other's setups, and spdifer at sourceforge is perfect

Kurtnoise
24th August 2008, 18:03
Houston, we've got a problem...

http://i433.photobucket.com/albums/qq59/Kurtnoise/eac3to257.png

menlvd
24th August 2008, 19:10
Houston, we've got a problem...

http://i433.photobucket.com/albums/qq59/Kurtnoise/eac3to257.png

Houston reporting: -quality=0.0-0.99 :)

madshi
24th August 2008, 20:01
I can see that the original 00001.m2ts file is 1:52:01. But a "funny thing happened on the way to the bank" as they say. If you take out the individual elementary AVC stream... you get a file 1:54:34 in length. I am using tsremux or tsmuxer to do that; or, if you mux into mkv with eac3to you get 1:54:34 as well. And then I used eac3to to make an AC3 from the DTS-HD track. That AC3 elementary stream is 1:54:34 in duration.

When I mux the AVC and AC3 files together into M2TS... I am back to a 1:52:01 file!
Your way of reporting things is not very helpful because you leave out a lot of details. Some examples:

(1) "If you take out the elementary AVC stream... you get a file 1:54:34 in length"

Where did you get this runtime information from? Normally it's not possible to get a runtime information from a demuxed AVC file cause AVC is variable bitrate, so you can only guess the runtime.

(2) "if you mux into mkv with eac3to you get 1:54:34 as well"

If you mux what? The AVC track demuxed by TsMuxer/TsRemux? Or the m2ts file? Or did you use eac3to's Blu-Ray structure parser? In the latter case eac3to might have joined more than just m2ts parts to produce the MKV.

(3) "That AC3 elementary stream is 1:54:34 in duration"

Sais who? eac3to? Or your media player?

I can't help you any further if you don't post more detailed reports. FWIW, most DTS parsers don't handle the core of DTS-HD tracks well. They show wrong runtime information. eac3to should show the correct runtime for Blu-Ray/HD DVD DTS-HD extracted core tracks.

Kurtnoise
24th August 2008, 20:11
Houston reporting: -quality=0.0-0.99 :)
aaa...I knew that I missed something. :D Thanks.

deacon crusher
25th August 2008, 02:44
Madshi

I'm going through a manual process, extract each file and then recombine, so far so good.

To answer your question, yes that last m2ts is tiny.

I'll be happy to retry this process when you have a new eac3to available. One thing I can't do with my manual process is recombine the sup files into one so I'll hopefully get that done when you try your new version.

Awesome tool and if any further details would be useful, I'd be happy to provide them.

Thanks

[QUOTE=madshi;1174297]Please retry with the next eac3to build. Or if you're in a hurry, you can eventually work around the problem by deleting (or renaming) the last m2ts part that is listed by eac3to for the movie. That last part is probably very small, right?

sehgal.v7
25th August 2008, 11:15
@Madshi
If source is having discontinuity, what does Eac3to does? Does it delete it or put empty block thr?
[v01] The source seems to be damaged (discontinuity) at file pos 2059182612.
[v01] The source seems to be damaged (discontinuity) at file pos 2094306464.
[a02] The source seems to be damaged (discontinuity) at file pos 2094651444.

scarbrtj
26th August 2008, 00:43
Your way of reporting things is not very helpful because you leave out a lot of details. Some examples:

(1) "If you take out the elementary AVC stream... you get a file 1:54:34 in length"

Where did you get this runtime information from? Normally it's not possible to get a runtime information from a demuxed AVC file cause AVC is variable bitrate, so you can only guess the runtime.

(2) "if you mux into mkv with eac3to you get 1:54:34 as well"

If you mux what? The AVC track demuxed by TsMuxer/TsRemux? Or the m2ts file? Or did you use eac3to's Blu-Ray structure parser? In the latter case eac3to might have joined more than just m2ts parts to produce the MKV.

(3) "That AC3 elementary stream is 1:54:34 in duration"

Sais who? eac3to? Or your media player?

I can't help you any further if you don't post more detailed reports. FWIW, most DTS parsers don't handle the core of DTS-HD tracks well. They show wrong runtime information. eac3to should show the correct runtime for Blu-Ray/HD DVD DTS-HD extracted core tracks.

If you just put the AVC file in mkv, that's how I'm getting duration information... and I'm using the "file info" feature in AVIMuxgui to get that. When I talk about muxing with eac3to here, I am specifically talking about just putting the AVC into mkv. All my timing information is from AVIMuxgui.

Here is the specific workflow, and what I experienced. I extracted an AVC elementary stream (with tsremux, and tsmuxer; tried both). I extracted a core DTS elementary stream with eac3to. I muxed those with mkvmerge. The audio/video was badly out of sync. I used eac3to to make an AC3 of the DTS-HD 7.1 track. I muxed again with mkvmerge. The audio/video were perfectly in sync. (A check of times of the audio tracks revealed the DTS core track to be a couple seconds shorter than the AC3 track, and that the AC3 track matched to the millisecond the duration of the video track.)

Now... as some additional info... if you extract a -core DTS file with eac3to, versus if you convert to .wavs and then make a DTS file from those .wavs with eac3to (using Surcode), you will get files of slightly different time lengths.

("How do you get time lengths?"... mux to mkv or mka and use AVIMux gui...)

And, in my limited experience, the time of the eac3to/SurCode-generated DTS file will always match the time of the video track (whether that be AVC or VC-1... can't remember a MPEG-2/DTS combo), whereas the eac3to/core DTS file will not. That seems problematic to me. I use spdifer as my DTS "decoder."

boombastic
26th August 2008, 07:07
@Madshi
If source is having discontinuity, what does Eac3to does? Does it delete it or put empty block thr?

I have right now the same problem with one of my Bluray (Ghost Rider) and eac3t aborted the extraction of audio and video at the same point.
What can we do?

sehgal.v7
26th August 2008, 07:25
@boombastic
Try adding -ignorediscon, it'll solve your problem!!

madshi
26th August 2008, 07:31
I'm going through a manual process, extract each file and then recombine, so far so good.

To answer your question, yes that last m2ts is tiny.

I'll be happy to retry this process when you have a new eac3to available. One thing I can't do with my manual process is recombine the sup files into one so I'll hopefully get that done when you try your new version.
As I said, you can just delete (or rename) that last m2ts part and then the usual eac3to workflow should fully work. However, please note that currently Blu-Ray subtitle demuxing for seamless branching movies has a bug in it. So if you need the subtitles, you'll have to wait for the next build, anyway...

If source is having discontinuity, what does Eac3to does? Does it delete it or put empty block thr?
The discontinuity is just a counter mismatch. It doesn't have any direct effect on the video/audio data. So there's nothing eac3to has to delete or fill up. If there's a discontinuity and you used the "-ignoreDiscon" switch to force eac3to to not abort processing eac3to will try to handle the file as if it's a perfect file and simply ignores the discontinuity. If however the file is really broken, eac3to will likely detect that the audio tracks are not ok, so in that case it will abort processing, anyway.

If you just put the AVC file in mkv, that's how I'm getting duration information... and I'm using the "file info" feature in AVIMuxgui to get that. When I talk about muxing with eac3to here, I am specifically talking about just putting the AVC into mkv. All my timing information is from AVIMuxgui.

Here is the specific workflow, and what I experienced. I extracted an AVC elementary stream (with tsremux, and tsmuxer; tried both). I extracted a core DTS elementary stream with eac3to. I muxed those with mkvmerge. The audio/video was badly out of sync. I used eac3to to make an AC3 of the DTS-HD 7.1 track. I muxed again with mkvmerge. The audio/video were perfectly in sync. (A check of times of the audio tracks revealed the DTS core track to be a couple seconds shorter than the AC3 track, and that the AC3 track matched to the millisecond the duration of the video track.)

Now... as some additional info... if you extract a -core DTS file with eac3to, versus if you convert to .wavs and then make a DTS file from those .wavs with eac3to (using Surcode), you will get files of slightly different time lengths.

("How do you get time lengths?"... mux to mkv or mka and use AVIMux gui...)

And, in my limited experience, the time of the eac3to/SurCode-generated DTS file will always match the time of the video track (whether that be AVC or VC-1... can't remember a MPEG-2/DTS combo), whereas the eac3to/core DTS file will not. That seems problematic to me. I use spdifer as my DTS "decoder."
That's a much better report - thanks!

As I said in my previous post: Many DTS splitters report incorrect times for core tracks extracted from DTS-HD tracks. This is caused by core tracks only having a frame size of 2012 bytes per frame while conventional DTS tracks have 2013 bytes per frame. This slight difference causes a drift in runtime calculation - and with some DTS splitters even a drift in audio sync. If you do "eac3to core.dts" it should show you the correct runtime, though! I'm a bit surprised that mkvtoolnix creates an MKV file which is out of sync. Please run "eac3to -test" while you're online. That will tell you whether you're using the latest mkvtoolnix version or not.

Why are you using TsRemux/TsMuxer for demuxing the video track, btw? The best way to achieve good audio sync is to let eac3to do all the work. eac3to can demux video tracks just fine, too. eac3to can even directly mux a video track from m2ts/evo to MKV. So you'll save some time when you use eac3to instead of TsRemux/TsMuxer.

I have right now the same problem with one of my Bluray (Black hawk down) and eac3t aborted the extraction of audio and video at the same point.
What can we do?
You can try the "-ignoreDiscon" switch. However, chances are good (or rather bad) that your Blu-Ray rip is simply corrupted. In that case the "-ignoreDiscon" switch won't help. Your best bet is to do a clean rerip of the Blu-Ray. Use the AnyDVD HD ripping tool instead of the explorer.

boombastic
26th August 2008, 13:22
You can try the "-ignoreDiscon" switch. However, chances are good (or rather bad) that your Blu-Ray rip is simply corrupted. In that case the "-ignoreDiscon" switch won't help. Your best bet is to do a clean rerip of the Blu-Ray. Use the AnyDVD HD ripping tool instead of the explorer.

I ripped the disc to my hard disk with any dvd but still get the same erro. I noticed that the movie is splitted into two m2ts,one is fr thefirst hour,the second is for the last 49 minutes. Maybe this could be the problem?

scarbrtj
26th August 2008, 16:23
[QUOTE=boombastic;1175226]Why are you using TsRemux/TsMuxer for demuxing the video track, btw? The best way to achieve good audio sync is to let eac3to do all the work. eac3to can demux video tracks just fine, too. eac3to can even directly mux a video track from m2ts/evo to MKV. So you'll save some time when you use eac3to instead of TsRemux/TsMuxer.QUOTE]

Madshi:

If you had an .m2ts file that was AVC video and DTS-HD 7.1 track, what would your workflow be (and command line:)) to get a mkv file of the AVC video muxed with just a DTS 1536kbps core. (I thought I could only mux video track only with eac3to to mkv?)

sehgal.v7
26th August 2008, 17:46
@Madshi
Madshi is thr anyway to repair those discontinuities in video, except re-ripping??

rack04
26th August 2008, 19:41
Can someone post a sample m2ts with DTS audio for testing? I don't have a blu-ray player, therefore no blu-ray discs, and none of my HD DVD's have DTS audio. Thanks.

rica
26th August 2008, 20:14
Can someone post a sample m2ts with DTS audio for testing? I don't have a blu-ray player, therefore no blu-ray discs, and none of my HD DVD's have DTS audio. Thanks.

You can find one here:

http://forum.doom9.org/showthread.php?p=1174218#post1174218


_ _ _ __

jamieo
26th August 2008, 20:30
Hi Madshi,

Thanks for the great program - it's all I use now for BD/HD processing. :)

I have a simple request though - when encoding to dts or ac3 (from eac3 for example) with no bitrate supplied on the commandline, eac3to defaults to the largest bitrate available which will often result in a large bitrate/filesize increase with no quality improvement. Therefore, it makes sense to refine the default selection to the largest bitrate available that does not exceed the source bitrate*.

Btw, This is already the case when encoding from a higher quality to a lower quality format (LPCM -> DTS, DTS -> AC3) as the maximum bitrate available is less than the source.

Obviously I can specify the bitrate manually but as eac3to already has this info it would improve workflow by not having to check each track's bitrate and remember what options exist for that format etc..

Also, eac3to doesn't display what bitrate is being used when encoding - considering the above it would be a nice addition to prevent someone inadvertantly encoding to a file twice as big. Maybe something like 'Encoding AC3 @ 640kbit/s (with libAften)...' - a similar message for DTS could be shown before wav extraction (else too much time would have passed).

Some examples:
eac3to 768k.eac3 test.dts
Common usage as eac3 not very well supported on PC but eac3to defaults to 1536kbit/s resulting in a file twice as big. It'd be nice if eac3to would default to 768kbit/s in this case.

eac3to 192k.eac3 test.ac3
Another common usage for the 2ch commentary tracks, this results in an ac3 file @640kbit/s - most preferred selection would be to keep bitrate the same.


:thanks: Jamie

*In the examples above the same bitrates are available for each format which makes the default choice quite simple to implement. I did have examples where it wouldn't be quite so straightforward but I've since removed them as some people saw that as a cue to take the post OT.

EPiPH0NE
26th August 2008, 20:38
^^^

Why would you want to do AC3 -> DTS, that makes no sense???

jamieo
26th August 2008, 21:25
Why would you want to do AC3 -> DTS, that makes no sense???
Obviously that isn't the point of my post! If you read further you might have understood that or even noticed my note saying exactly that ac3 -> dts doesn't make sense to me!!

@everybody else,
The dts example is there for completeness as it's a possibility eac3to deals with and does not fit the generalisation I made not to exceed the source bitrate. I obviously don't suggest encoding ac3 to dts at a higher bitrate is a sensible thing to do and thought it was clear my reason for posting was to avoid that kind of thing!

My point is that better defaults could be used - esp. considering common operations such as 768k eac3 -> dts or 192k eac3 -> ac3.

jj666
26th August 2008, 21:32
Sorry but someone converting AC3 to DTS or AC3 to AC3 (or any other lossy to lossy format) obviously has no idea what they are doing. I don't think EAC3TO needs to cater for such things. Leave that to such things as MKV2VOB ;-p

-jj-

nautilus7
26th August 2008, 21:57
Why are you using TsRemux/TsMuxer for demuxing the video track, btw? The best way to achieve good audio sync is to let eac3to do all the work. eac3to can demux video tracks just fine, too. eac3to can even directly mux a video track from m2ts/evo to MKV. So you'll save some time when you use eac3to instead of TsRemux/TsMuxer.

Madshi:

If you had an .m2ts file that was AVC video and DTS-HD 7.1 track, what would your workflow be (and command line:)) to get a mkv file of the AVC video muxed with just a DTS 1536kbps core. (I thought I could only mux video track only with eac3to to mkv?)

eac3to 00001.m2ts 2: video.mkv 3: audio.dts -core
M2TS, 1 video track, 5 audio tracks, 13 subtitle tracks, 1:59:58
1: Chapters, 32 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 5.1 channels, 24 bits, 48khz, -9ms
4: DTS, Spanish, 5.1 channels, 24 bits, 768kbit/s, 48khz, -9ms
5: AC3, English, 2.0 channels, 96kbit/s, 48khz, dialnorm: -27dB, -24ms
6: AC3, English, 2.0 channels, 96kbit/s, 48khz, dialnorm: -27dB, -23ms
7: AC3, English, 2.0 channels, 96kbit/s, 48khz, dialnorm: -27dB, -23ms
8: Subtitle (PGS), English
9: Subtitle (PGS), Spanish
10: Subtitle (PGS), Spanish
[v02] Extracting video track number 2...
[a03] Extracting audio track number 3...
[a03] Extracting DTS core...
[a03] Applying DTS delay...
[v02] Muxing video to Matroska...
[a03] Creating file "audio.dts"...

To mux audio in the mkv file that eac3to makes, you need to run mkvtoolnix as a second step. eac3to can't do it automatically.

jamieo
26th August 2008, 22:04
Sorry but someone converting AC3 to DTS or AC3 to AC3 (or any other lossy to lossy format) obviously has no idea what they are doing. I don't think EAC3TO needs to cater for such things. Leave that to such things as MKV2VOB ;-p
Why do people have a need to find something in a post they can twist to make an argument out of that isn't even on topic to the original post? A lot of places call that trolling.

The fact that you don't believe lossy formats should be encoded between doesn't mean eac3to shouldn't support it or that people don't do it. There are a lot of people encoding from eac3 into dts and ac3 and that is what I'm most interested in. Why would they do such a thing? Because eac3 has little or no support on the PC - considering the name of the program I didn't think that would be such a hard concept to understand.

I agree encoding between ac3 and dts is pointless unless your playback device does not support dts but that is not my intention. When proposing a program modification it pays to consider all cases and that is why I included them. I'm not suggesting they be used, I'm not even suggesting that 'EAC3TO needs to cater for such things' - it already does!

jj666
26th August 2008, 22:38
I've converted about 75 HDDVD's to .ts for playback on the PCH and not seen many (counted on one hand) examples of 768kb/sec EAC3. In those cases, you can use the -768 switch very easily (if you wanted to convert to DTS) or it would default to 640kb/sec AC3 which is more appropriate given source bitrate. Converting a standard EAC3 1536kb/sec stream to either DTS or AC3 would result in the highest bitrate possible by default as you already mentioned, which again would be appropriate.

If you are using the EAC3TO frontend it only supports one audio stream, if you are using the command line for multiple streams, it's no additional hassle to add multiple switches.

I still don't see any reason why EAC3TO should have hardcoded thinking regarding output bitrate when it has such a broad format of options for conversion...

-jj-

jamieo
26th August 2008, 23:19
I still don't see any reason why EAC3TO should have hardcoded thinking regarding output bitrate when it has such a broad format of options for conversion...
I'm not suggesting it should - Quite the opposite as I'm asking that the hard coded defaults that already exist be derived from the source bitrate to prevent the default being something that nobody would ever seriously want. Obviously, switches would still override them as they do now.

My own reason for this is to save time typing out switches and evaluating which track has which bitrate etc. when I already know I want the largest bitrate that doesn't exceed the source bitrate. I think it should make sense to most as a default.

I've also seen a few HD episodes which have 2ch AC3 @640kbit/s - it seems obvious to me that someone has left the defaults alone in whatever program they were using and didn't really intend such a high bitrate. While not my primary concern, my suggestion should also avoid such mistakes.

I'm not sure you get what I'm asking so let me clarify that my suggestion wouldn't change anything that effects your use of eac3to - only the defaults applied for those that do lossy to lossy and as such (by your own words) 'obviously has no idea what they are doing' so I'd think such improvements would be welcome.

Btw, I'm not interested in going over this any more for such a simple suggestion. My post was for madshi and I'm only really interested in his thoughts on this.

rica
26th August 2008, 23:42
Btw, I'm not interested in going over this any more for such a simple suggestion. My post was for madshi and I'm only really interested in his thoughts on this.

Yes, this was your point.

Snowknight26
27th August 2008, 01:47
I guess you have to understand how audio compression works. Say that full bitrate AC3 (640kbps) is transparent to the source, no matter what the source is. So if you have a 6916kbps PCM stream thats converted to AC3, its audibly transparent. Same applies for a 192kbps AC3 stream. If you transcode that stream to AC3, in order for it to the new one to be transparent, it would have to be full bitrate - 640kbps.
Now, lest try something else. Assume that DTS is the same way with its full bitrate (1536kbps) streams. What if you were to reencode a 768kbps E-AC3 stream to DTS but you wanted to make it audibly transparent? Use full bitrate DTS. Therefore, If you want to do 768kbps E-AC3 to 768kbps, you're losing lots of data.

I guess the point you have to see is that you can't compare bitrates from different audio formats that easily.




Now that thats out of the way, I found it peculiar that I can't demux subtitles from a VOB. Unless I'm out of the loop on how to do that, is there any plan to add that feature?

Also:
eac3to.exe VTS_01_1.VOB+VTS_01_2.VOB+VTS_01_3.VOB 4: animusic.ac3

VOB, 1 video track, 3 audio tracks, 1 subtitle track, 0:32:53
1: Joined VOB file
2: MPEG2, 480i60 /1.001 (4:3)
3: AC3, 2.0 channels, 256kbit/s, 48khz, dialnorm: -27dB, 16ms
4: AC3, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB, 16ms
5: AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB, 16ms
6: Subtitle
[a03] The stream doesn't seem to contain any valid (E-)AC3 frames.
Aborted at file position 2204442624.
Total size of the 3 files is, funny enough, 2204442624. It detects that it has an AC3 stream in it but it says it doesn't have any valid AC3 frames. Wonder how it detected that in the first place then. Sample VOB (http://www.stfcc.org/misc/animusic.clip.vob).

deacon crusher
27th August 2008, 07:18
You called it.

First try had audio sync issues.

I then rebuilt the final mkv without the first (studio intro) and last (incredibly short) m2ts files and I've got a great mkv with chineese and english audio in it with no sync issues.

I'll rerip the subtitles and add them back in when the next version is available.

And now that I have a disk that has this problem also happy to test the next version to see if this issue is dealt with.

Also, for seamless branching disks do I understand correctly that the best way will always be to rip each m2ts in the playlist using eac3to, then combine video files into an mkv with eac3to, then combine audio files into one audio file with eac3to, mux audio file into mkv with mkvtoolnix? And do the same thing with subtitles if/when those are needed? Any way to add/get chapter info for disk in this instance?

Thanks

As I said, you can just delete (or rename) that last m2ts part and then the usual eac3to workflow should fully work. However, please note that currently Blu-Ray subtitle demuxing for seamless branching movies has a bug in it. So if you need the subtitles, you'll have to wait for the next build, anyway...


The discontinuity is just a counter mismatch. It doesn't have any direct effect on the video/audio data. So there's nothing eac3to has to delete or fill up. If there's a discontinuity and you used the "-ignoreDiscon" switch to force eac3to to not abort processing eac3to will try to handle the file as if it's a perfect file and simply ignores the discontinuity. If however the file is really broken, eac3to will likely detect that the audio tracks are not ok, so in that case it will abort processing, anyway.


That's a much better report - thanks!

As I said in my previous post: Many DTS splitters report incorrect times for core tracks extracted from DTS-HD tracks. This is caused by core tracks only having a frame size of 2012 bytes per frame while conventional DTS tracks have 2013 bytes per frame. This slight difference causes a drift in runtime calculation - and with some DTS splitters even a drift in audio sync. If you do "eac3to core.dts" it should show you the correct runtime, though! I'm a bit surprised that mkvtoolnix creates an MKV file which is out of sync. Please run "eac3to -test" while you're online. That will tell you whether you're using the latest mkvtoolnix version or not.

Why are you using TsRemux/TsMuxer for demuxing the video track, btw? The best way to achieve good audio sync is to let eac3to do all the work. eac3to can demux video tracks just fine, too. eac3to can even directly mux a video track from m2ts/evo to MKV. So you'll save some time when you use eac3to instead of TsRemux/TsMuxer.


You can try the "-ignoreDiscon" switch. However, chances are good (or rather bad) that your Blu-Ray rip is simply corrupted. In that case the "-ignoreDiscon" switch won't help. Your best bet is to do a clean rerip of the Blu-Ray. Use the AnyDVD HD ripping tool instead of the explorer.

madshi
27th August 2008, 08:02
Madshi is thr anyway to repair those discontinuities in video, except re-ripping??
As I said, discontinuities are just a counter mismatch. It doesn't necessarily need repairing, if only the counter mismatch while the data is ok. But most often if the counters mismatch, the data is corrupted, too. And if the data is corrupted, there's no way to correct that other than to rerip the movie.

I have a simple request though - when encoding to dts or ac3 (from eac3 for example) with no bitrate supplied on the commandline, eac3to defaults to the largest bitrate available which will often result in a large bitrate/filesize increase with no quality improvement. Therefore, it makes sense to refine the default selection to the largest bitrate available that does not exceed the source bitrate*.
I understand your request, but I don't agree with it. The reason is this: We're talking about *lossy* encoding here. So if you decode a lossy audio track and reencode it again with a lossy codec you are automatically losing audio quality. That means if you decode e.g. a 768kbps E-AC3 track and reencode it in 768kbps DTS or AC3 you are losing audio quality. You're losing audio quality even if you reencode to a higher bitrate! That's the way lossy audio codecs work: Every new encoding loses *some* audio quality. Using the same bitrate as the lossily compressed source has is therefore not the way to go if you want to avoid having too much audio quality loss. My personal preference is best possible audio quality. That's why eac3to defaults to max quality for most options. Yes, that means that an audio transcode increases the file size of the audio track. But at least we can do that without fearing that too much audio quality is lost.

I'm aware that some people find the eac3to's defaults too high. But that's why there are options to lower them. You will never find a default everybody agrees with. Somebody will always have a different opinion. So I chose the defaults which I personally prefer and I won't change them unless somebody finds a good argument to convince me or unless the majority of eac3to users agree on how the defaults should be.

Also, eac3to doesn't display what bitrate is being used when encoding - considering the above it would be a nice addition to prevent someone inadvertantly encoding to a file twice as big. Maybe something like 'Encoding AC3 @ 640kbit/s (with libAften)...' - a similar message for DTS could be shown before wav extraction (else too much time would have passed).
Yes, that makes sense. Will add that to my to do list.

Also, for seamless branching disks do I understand correctly that the best way will always be to rip each m2ts in the playlist using eac3to
*NO*. The way to go is never to handle each m2ts part separately. You should always let eac3to handle them all at once. Either by using "part1.m2ts+part2.m2ts+..." or by letting eac3to parse the playlists. It just so happens that some movies seem to have a very small m2ts part at the end which has different tracks inside compared to the other m2ts parts. That confuses eac3to. That's why I suggested to delete/rename that last small m2ts part. eac3to will automatically ignore such confusing m2ts parts in the next build...

scarbrtj
27th August 2008, 12:19
eac3to 00001.m2ts 2: video.mkv 3: audio.dts -core
M2TS, 1 video track, 5 audio tracks, 13 subtitle tracks, 1:59:58
1: Chapters, 32 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: DTS Master Audio, English, 5.1 channels, 24 bits, 48khz, -9ms
4: DTS, Spanish, 5.1 channels, 24 bits, 768kbit/s, 48khz, -9ms
5: AC3, English, 2.0 channels, 96kbit/s, 48khz, dialnorm: -27dB, -24ms
6: AC3, English, 2.0 channels, 96kbit/s, 48khz, dialnorm: -27dB, -23ms
7: AC3, English, 2.0 channels, 96kbit/s, 48khz, dialnorm: -27dB, -23ms
8: Subtitle (PGS), English
9: Subtitle (PGS), Spanish
10: Subtitle (PGS), Spanish
[v02] Extracting video track number 2...
[a03] Extracting audio track number 3...
[a03] Extracting DTS core...
[a03] Applying DTS delay...
[v02] Muxing video to Matroska...
[a03] Creating file "audio.dts"...

To mux audio in the mkv file that eac3to makes, you need to run mkvtoolnix as a second step. eac3to can't do it automatically.

I am going to do it *exactly* this way then report back :fingers crossed: :thanks:

jamieo
27th August 2008, 15:04
if you decode a lossy audio track and reencode it again with a lossy codec you are automatically losing audio quality. That means if you decode e.g. a 768kbps E-AC3 track and reencode it in 768kbps DTS or AC3 you are losing audio quality. You're losing audio quality even if you reencode to a higher bitrate! That's the way lossy audio codecs work: Every new encoding loses *some* audio quality.
I already understand and completely agree with that. In fact it's the exact reason I made the request and didn't think it would be a big deal. Ideally we'd keep all the tracks as they are and they would play on anything we like - however, they don't and that is why we use eac3to.

My personal preference is best possible audio quality. That's why eac3to defaults to max quality for most options.
Given what you just said about quality loss, do you really encode (or think it worth encoding) lossy tracks to files that will be two or three times as big as the source? I can't imagine there is a significant quality improvement (audible or otherwise) encoding a 768kbit/s eac3 track to DTS at 1536kbit/s rather than 768kbit/s but the file size increase is very significant. Even worse for commentary tracks in EAC3 when the default is 640kbit/s for AC3.

Anyway, the whole point of this was because I have written a menu based wrapper script for eac3to and it was originally my intention to make it so default bitrates were determined according to source if no explicit bitrate is given. However, I thought it better suited as an eac3to suggestion so others benefited. Not only is there some irony in that thought (considering the reaction my suggestion got) but I'm now going to do that anyway and will have it set up in much less time than it took me to write these posts. I guess no good deed goes unpunished! :)

Anyway, it's obviously your right to program eac3to however you like so I won't discuss it further.

Yes, that makes sense. Will add that to my to do list.
Cheers, that should at least make it clear that a high bitrate is being used.

Thanks for a great program.

madshi
27th August 2008, 20:11
I can't imagine there is a significant quality improvement (audible or otherwise) encoding a 768kbit/s eac3 track to DTS at 1536kbit/s rather than 768kbit/s but the file size increase is very significant.
You're trying to see a connection between source and target bitrate which IMHO isn't there. The source bitrate tells us how much loss there was in the lossy encoding done by the studio. The target bitrate defines how much loss we want to add on top of that ourselves. These 2 losses don't relate to each other, they simply add up (loss 1 + loss 2). Now what you're saying sounds to me like: If the "loss 1" is big then you want eac3to to make "loss 2" equally big. That doesn't make much sense to me.

Snowknight26
28th August 2008, 06:00
http://www.stfcc.org/misc/animusic.clip.vob

eac3to v2.57
command line: eac3to.exe animusic.clip.vob 5: animusic.sup
------------------------------------------------------------------------------
VOB, 1 video track, 3 audio tracks, 1 subtitle track, 0:00:08
1: MPEG2, 480i60 /1.001 (4:3)
2: AC3, 2.0 channels, 256kbit/s, 48khz, dialnorm: -27dB, 16ms
3: AC3, 5.1 channels, 448kbit/s, 48khz, dialnorm: -27dB, 16ms
4: AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB, 16ms
5: Subtitle
eac3to processing took 1 second.
Done.

No file is produced.

madshi
28th August 2008, 07:32
http://www.stfcc.org/misc/animusic.clip.vob

No file is produced.
I can only guess that there isn't any data in the subtitle track.

Edit: Something about that vob file is strange, though. eac3to cannot demux video/audio tracks for whatever reason. Will look into that. But the subtitle track seems to be really empty. E.g. EvoDemux doesn't even list it.

deacon crusher
28th August 2008, 07:43
Oh that's great news, I thought I'd read on the forum that if you let EAC3to merge the pieces on a seamless branching disk that you would/could end up with audio sync issues.

Must have misunderstood something I read.

Thanks


*NO*. The way to go is never to handle each m2ts part separately. You should always let eac3to handle them all at once. Either by using "part1.m2ts+part2.m2ts+..." or by letting eac3to parse the playlists. It just so happens that some movies seem to have a very small m2ts part at the end which has different tracks inside compared to the other m2ts parts. That confuses eac3to. That's why I suggested to delete/rename that last small m2ts part. eac3to will automatically ignore such confusing m2ts parts in the next build...

madshi
28th August 2008, 07:57
Oh that's great news, I thought I'd read on the forum that if you let EAC3to merge the pieces on a seamless branching disk that you would/could end up with audio sync issues.

Must have misunderstood something I read.
You got it exactly the wrong way. Actually letting eac3to merge the seamless branching parts *solves* any audio sync issues. If you handle the parts separately, you'll get into trouble because the audio data overlaps slightly, so audio sync will slowly drift out of sync over the course of the movie. eac3to will detect the audio overlaps and correct them for you if you let eac3to handle the merging.

florinandrei
29th August 2008, 06:42
So what happens when eac3to detects that the audio track is muxed with a delay? Does it insert silence at the beginning of the extracted audio track so as to preserve A/V sync?

sehgal.v7
29th August 2008, 08:06
@florinandrei
Yeap.. It automatically adds delay.

[a03] Applying DTS delay...

rickardk
29th August 2008, 12:57
Sorry for not posting my new results with The Game Plan sooner.

It must be some kind of mastering error. I tested every m2ts file in the playlist and found the problem(s).

Sorry for taking your time with this problem.

madshi
29th August 2008, 13:05
Sorry for not posting my new results with The Game Plan sooner.

It must be some kind of mastering error. I tested every m2ts file in the playlist and found the problem(s).

Sorry for taking your time with this problem.
Wow, so the Blu-Ray disc itself is really screwed up? :eek: Can you confirm that with a standalone Blu-Ray player (in case you have one) or with PowerDVD or ArcSoft TotalTheatre?

rickardk
29th August 2008, 13:49
Wow, so the Blu-Ray disc itself is really screwed up? :eek: Can you confirm that with a standalone Blu-Ray player (in case you have one) or with PowerDVD or ArcSoft TotalTheatre?

There is one (a bit shorter) playlist that I think is OK (have not watched the movie yet though). But the problem is in some m2ts so I guess the same problem will exist when played back on a standalone.

Must be some kind of mastering error. Or some kind of screwed up interactive feature (can't find such feature with the arcsoft player though....and I don't know why you would create m2ts files with audio out of place in this manner)

madshi
29th August 2008, 15:04
The problem is that some broken playlists may be there on the disc but may never be used by the disc's user interface. In such a situation you wouldn't see the problem when playing the disc with an "official" player which shows the full user interface and let's the user decide through the interface which playlist to play. Maybe something like that is what has happened here. Or maybe (as you say) it's some kind of interactivity stuff. Anyway, I'm glad to hear that eac3to is innocent. One bug less to fix for me... :)

madshi
29th August 2008, 15:50
eac3to v2.58 released

http://madshi.net/eac3to.zip

* h264 parser rewritten: framerate, pulldown etc is detected reliably now
* h264 pulldown is automatically removed from progressive movie sources now
* h264 pulldown removal can be disabled by using "-keepPulldown"
* h264 muxing now fully supports streams with mixed 23.976 and 29.970 content
* h264 1920x1088 bitstream is now automatically patched/cropped to 1920x1080
* h264 filler data is now already removed during demuxing
* h264 sources with funny framerates (e.g. Luxe.tv HD) are patched to 25fps now
* mixed video/movie h264 streams are now always muxed with 29.970 timestamps
* speedup/slowdown now changes framerate information in the h264 bitstream
* options "-24p", "-60i" and "-30p" are no longer supported
* fixed Blu-Ray seamless branching subtitle remuxing
* added workaround for Blu-Ray playlists with a last small "invalid" m2ts part
* bitdepth analyzation is now done for decoded FLAC, WAV, PCM, DTS MA, too
* bitrate is now also reported for FLAC, WAV and PCM tracks
* when encoding AC3, DTS or AAC, the encoding bitrate is reported
* fixed: v2.57 incorrectly decoded 16bit TrueHD tracks to 24bit FLAC/WAV/RAW
* (M2)TS discontinuities before the first unit start are ignored now
* new option "-progressnumbers" replaces progress bar with percentage numbers
eac3to's new h264 pulldown removal algorithm provides similar results to the "h264info" tool. But eac3to is more than 500% faster compared to h264info. Not sure about the exact performance numbers. Maybe someone with fast harddisks can test and report (tests should be done with 2 harddisks, one for the source file and one for the destination file, to avoid being limited by harddisk performance).

Now pulldown removal capability in eac3to is complete: Pulldown can be removed from all 3 supported video codecs (MPEG2, VC-1 and h264). And the performance of the pulldown removal is significantly faster compared to the original tools. Furthermore pulldown removal is now mostly automatically activated by default, even if you only demux a video track. Here's when it's activated and when not:

(1) h264: pulldown removal is always activated by default.
(2) VC-1: pulldown removal is always activated by default.
(3) MPEG2: pulldown removal is activated by default only for EVO and M2TS sources.

The "-stripPulldown" option consequently makes sense only for MPEG2 sources. The option "-keepPulldown" can be used to disable the automatic pulldown removal for all 3 video codecs.

nautilus7
29th August 2008, 16:07
It seems you 've been busy. :) Thank you for the update!

sehgal.v7
29th August 2008, 16:50
@Madshi
Yipeee!! Was waiting for that!

rica
29th August 2008, 16:58
Wow, revolutionary update; thanks a lot :thanks:

Adub
29th August 2008, 17:31
Excellent update madshi!! You are a tribute to your race!!

Keep up your efforts and know that all of us here at Doom9 appreciate your efforts greatly.

moshmothma
29th August 2008, 18:36
Thanks for the continued awesome work Madshi!!

I noticed that program changes within an h264 stream has been addressed. What about VC-1? I still have problems processing the NIN BD.

C:\downloads\TS and EVO Tools\eac3to>eac3to M:\HDDVD\NIN 1) 2:r:/nin.mkv 3:nin.flac

The program type (4352) changes from $83 to $81.
M2TS, 1 video track, 2 audio tracks, 1 subtitle track, 1:32:21
1: Chapters, 22 chapters
2: VC-1, 1080i60 /1.001 (16:9)
3: TrueHD/AC3, English, 5.1 channels, 48khz
4: AC3, English, 2.0 channels, 256kbps, 48khz
5: Subtitle (PGS), English
The program type (4352) changes from $83 to $81.
[v02] Extracting video track number 2...
[a03] Extracting audio track number 3...
[a03] Extracting TrueHD stream...
[a03] Decoding with libav/ffmpeg...
[a03] Encoding FLAC with libFlac...
[v02] Muxing video to Matroska...
[a03] This audio track contains more than 16 bits of information.
[a03] Creating file "nin.24bit.flac"...
[a03] This track is not clean.
[libav] Lossless check failed - expected ae, calculated 6c
[v02] The pes parser received incomplete data.
[a03] The pes parser received incomplete data.
[libav] End of stream indicated
[a03] The program type (4352) changes from $83 to $81.
[v02] The program type (4352) changes from $83 to $81.
Aborted at file position 16586463232.

Thunderbolt8
29th August 2008, 20:40
thanks very much for the latest update. will test the close encounters seaml. br blu-ray subs again by time

Atak_Snajpera
29th August 2008, 20:51
* new option "-progressnumbers" replaces progress bar with percentage numbers

Oh yeah!!!!!!!!!!!!!!!!!!!! Thanks man for that!!!!!!!!!!!

madshi
29th August 2008, 21:02
Thanks for the nice feedback, guys!

------------

I noticed that program changes within an h264 stream has been addressed. What about VC-1? I still have problems processing the NIN BD.
This might be a similar problem compared to the "program mapping changes" problem. Does the problem also occur at the very end of the remuxing process for you (when you almost think it's done and successful)? And does the playlist 1) also contain multiple m2ts parts of which the last one is very small? In that case please upload that last m2ts file for me and another 20MB from any of the other m2ts parts of the playlist 1). Then I can probably fix it. Thanks!

itsancho
29th August 2008, 22:39
hi, madshi and 10x again 4 the great tool, btw is this a bug or... MkvToolnix (2.2.0.0, 2008-08-19) is up to date
There's a new beta version (2.2.0.0, 2008-08-21) available http://i.data.bg/08/08/30/1126451_orig.jpg

rica
29th August 2008, 22:50
hi, madshi and 10x again 4 the great tool, btw is this a bug or... http://i.data.bg/08/08/30/1126451_orig.jpg

What is that and why is here?

Snowknight26
29th August 2008, 23:23
rica, you really need to stop posting useless junk. :\

rica
29th August 2008, 23:44
rica, you really need to stop posting useless junk. :\

OK, i'll ask to you next time, you tell me me what to post :cool:

Snowknight26
30th August 2008, 05:36
I can only guess that there isn't any data in the subtitle track.

Edit: Something about that vob file is strange, though. eac3to cannot demux video/audio tracks for whatever reason. Will look into that. But the subtitle track seems to be really empty. E.g. EvoDemux doesn't even list it.

Disregard that. When joining the VOB, I forgot to include the very 1st VOB that was only 8 KB. Didn't think it'd make a difference; guess I was wrong.

madshi
30th August 2008, 07:41
hi, madshi and 10x again 4 the great tool, btw is this a bug or... http://i.data.bg/08/08/30/1126451_orig.jpg
Check "mkvmerge --version". It reports 19th of August. That's the cause of the problem.

Gleb Egorych
30th August 2008, 08:15
madshi, thank you vey much for your GREAT tool! It's indeed awesome, man.

:thanks:

shambles
30th August 2008, 09:16
many thanks for the new release :)

it seems to have broken one thing though.. any pcm blu-ray i try spits out this

[a04] Reading RAW/PCM...
[a04] The sample sorter received a non-supported data format.
Aborted at file position 16384.

also, any eta on the 24->24/1.001fps conversion?

Audionut
30th August 2008, 09:51
Hi, I got this problem.

ArcSoft DTS Decoder (1.0.2.2) is not working correctly
http://www.arcsoft.com/products/totalmediatheatre


Here's the xml from graphstudio.

?xml version="1.0" encoding="utf-8"?>
<graph name="Unnamed Graph">
<filter name="K:\movies\Hitman.ts" clsid="{55DA30FC-F16B-49FC-BAA5-AE59FC65F82D}">
<ifilesourcefilter source="K:\movies\Hitman.ts"/>
</filter>
<filter name="ArcSoft Audio Decoder HD" clsid="{1A89085B-B654-4ED8-8831-5AC629A05FF5}"/>
<filter name="ffdshow Video Decoder" clsid="{04FE9017-F873-410E-871E-AB91661A4EF7}"/>
<filter name="AC3Filter" clsid="{A753A1EC-973E-4718-AF8E-A3F554D45C44}"/>
<filter name="Video Renderer" clsid="{B87BEB7B-8D29-423F-AE4D-6582C10175AC}"/>
<filter name="Default DirectSound Device" clsid="{79376820-07D0-11CF-A24D-0020AFD79767}"/>
</graph>

madshi
30th August 2008, 10:17
it seems to have broken one thing though.. any pcm blu-ray i try spits out this

[a04] Reading RAW/PCM...
[a04] The sample sorter received a non-supported data format.
Aborted at file position 16384.
I can't reproduce this problem. Can I see the full log including the exact command line, please?

also, any eta on the 24->24/1.001fps conversion?
I don't give etas.

Hi, I got this problem.

ArcSoft DTS Decoder (1.0.2.2) is not working correctly
You may need to add the ArcSoft folder to the environment path. Search this thread for "environment" to find more details.

shambles
30th August 2008, 11:09
I can't reproduce this problem. Can I see the full log including the exact command line, please?

tried encoding/extracting pcm now and it works.. seems the error only happens when using '-check'

C:\Program Files\eac3to>eac3to test.m2ts -check
M2TS, 1 video track, 1 audio track, 0:56:16
1: h264/AVC, 1080p24 /1.001 (16:9)
2: RAW/PCM, English, 5.1 channels, 16 bits, 48khz, -41ms
[v01] Extracting video track number 1...
[a02] Extracting audio track number 2...
[a02] Reading RAW/PCM...
[a02] The sample sorter received a non-supported data format.
Aborted at file position 16384.

Audionut
30th August 2008, 11:10
You may need to add the ArcSoft folder to the environment path. Search this thread for "environment" to find more details.

No go. Triple checked to make sure I had it right, and rebooted.

madshi
30th August 2008, 11:19
tried encoding/extracting pcm now and it works.. seems the error only happens when using '-check'
Ok, thanks. Will be fixed in the next build.

No go. Triple checked to make sure I had it right, and rebooted.
Well, then I don't know why it doesn't work. Does it work in GraphEdit? Have you installed the latest ArcSoft update(s)?

Audionut
30th August 2008, 12:11
Does it work in GraphEdit?

It would connect and play, but no audio out.

Re-install seems to have fixed it. Working now.


Thanks.

hdpete
30th August 2008, 12:19
TrueHD tracks on HD DVD - Please can someone tell me if it's possible to remove the TrueHD audio from an HD DVD unconverted to enable me to mux it using tsMuxer with a 'fixed' VC1 evo file to make a Blu-Ray. I don't want the TrueHD converted to flac, as I'll be burning to a BD-R for playback via an HD amp.
Thanks.

Fer
30th August 2008, 13:21
Great, thank you Madshi.

:thanks: :thanks: :thanks: :thanks:

Thunderbolt8
30th August 2008, 14:18
what exactly was meant with that 2.57 fix that 16-bit truehd track were incorrectly decoded to 24-bit? there didnt seem to be any increase in filesize for the FLAC track at least, the files had the same sizes as typical 16-bit flac tracks for me. do I still have to redo all those thruehd -> flac tracks done with 2.57?

madshi
30th August 2008, 14:50
TrueHD tracks on HD DVD - Please can someone tell me if it's possible to remove the TrueHD audio from an HD DVD unconverted to enable me to mux it using tsMuxer
tsMuxeR doesn't properly support TrueHD muxing, as far as I've heard.

what exactly was meant with that 2.57 fix that 16-bit truehd track were incorrectly decoded to 24-bit? there didnt seem to be any increase in filesize for the FLAC track at least, the files had the same sizes as typical 16-bit flac tracks for me. do I still have to redo all those thruehd -> flac tracks done with 2.57?
The FLAC files are alright, they are just marked as 24bit and decode to 24bit, with the lower 8bit all zeroed out. Not a problem at all. The files are not bigger than 16bit FLAC files nor do they sound different. So you don't really have to redo them. It's just not "nice" that they are flagged as 24bit, although only 16bit are filled with data. But it's just a cosmetic issue.

Thunderbolt8
30th August 2008, 19:52
so its basically only madflac or any other flac decoder, which reports fake 24-bits at playback? I leave them as they are then. thanks!

moshmothma
30th August 2008, 20:33
Thanks for the nice feedback, guys!

------------


This might be a similar problem compared to the "program mapping changes" problem. Does the problem also occur at the very end of the remuxing process for you (when you almost think it's done and successful)? And does the playlist 1) also contain multiple m2ts parts of which the last one is very small? In that case please upload that last m2ts file for me and another 20MB from any of the other m2ts parts of the playlist 1). Then I can probably fix it. Thanks!

Madshi, the problem seems to occur near the end. The playlist does have multiple parts. I have uploaded a sampling from the first two files in the playlist and the last two files. Thanks

http://www.sendspace.com/file/pwaetg

madshi
30th August 2008, 21:28
so its basically only madflac or any other flac decoder, which reports fake 24-bits at playback?
Yes.

Madshi, the problem seems to occur near the end. The playlist does have multiple parts. I have uploaded a sampling from the first two files in the playlist and the last two files.
I've checked these. The first two look like this:

1: VC-1, 1080i60 /1.001 (16:9)
2: TrueHD/AC3, 5.1 channels, 48khz
3: AC3, 2.0 channels, 256kbps, 48khz
4: Subtitle (PGS)

The last small two look like this:

1: VC-1, 1080p24 /1.001 (16:9) with pulldown flags
2: AC3, 2.0 channels, 224kbps, 48khz, dialnorm: -27dB
3: AC3, 2.0 channels, 224kbps, 48khz, dialnorm: -27dB
4: Subtitle (PGS)
As you can see, the last two m2ts parts have totally different video and audio track properties compared to the rest of the movie. Now a media player could easily notice the change and adjust its output accordingly. But eac3to is not a media player but just exports the raw video and audio streams. And it just doesn't make any sense to join e.g. a "TrueHD+AC3" track together with a simple "AC3" track. The end result wouldn't play correctly. That's why eac3to cannot handle this situation correctly.

I'll "fix" it in the next build by ignoring the last few m2ts parts, if they are very small and have different audio or video track parameters.

deacon crusher
30th August 2008, 23:53
Madshi

I'm also getting

D:\kid movies\cj7>C:\eac3to\eac3to.exe E:\ 1)
The program type (4356) changes from $83 to $81.
The format of the source file could not be detected.

with the latest version against CJ7 an h264 file that has the tiny last m2ts issue.

First scan of disk gets this

D:\kid movies\cj7>C:\eac3to\eac3to.exe E:\
1) 00224.mpls, 1:28:21
[11+125+128+129+130].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)
- TrueHD, Chinese, multi-channel, 48khz
- TrueHD, English, multi-channel, 48khz
- AC3, Thai, multi-channel, 48khz
- AC3, Chinese, stereo, 48khz
- TrueHD, French, multi-channel, 48khz
- AC3, Chinese, multi-channel, 48khz

2) 00232.mpls, 1:28:08
[126+125+128+129+132].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)
- TrueHD, Chinese, multi-channel, 48khz
- TrueHD, English, multi-channel, 48khz
- TrueHD, French, multi-channel, 48khz
- AC3, Thai, multi-channel, 48khz
- AC3, Chinese, stereo, 48khz
- AC3, Chinese, multi-channel, 48khz

3) 00227.mpls, 00128.m2ts, 1:13:24
- h264/AVC, 1080p24 /1.001 (16:9)
- TrueHD, Chinese, multi-channel, 48khz
- TrueHD, English, multi-channel, 48khz
- AC3, Thai, multi-channel, 48khz
- AC3, Chinese, stereo, 48khz
- AC3, Chinese, multi-channel, 48khz
- TrueHD, French, multi-channel, 48khz

4) 00206.mpls, 00108.m2ts, 0:22:05
- MPEG2, 480i60 /1.001 (4:3)
- AC3, Chinese, stereo, 48khz
so that worked okay, but then running against playlist 1 or 2 I get the bit above, pretty quikcly.

Thanks

How do we send you files?

Thanks

Thanks for the nice feedback, guys!

------------


This might be a similar problem compared to the "program mapping changes" problem. Does the problem also occur at the very end of the remuxing process for you (when you almost think it's done and successful)? And does the playlist 1) also contain multiple m2ts parts of which the last one is very small? In that case please upload that last m2ts file for me and another 20MB from any of the other m2ts parts of the playlist 1). Then I can probably fix it. Thanks!

Atak_Snajpera
31st August 2008, 00:14
www.mediafire.com

odin24
31st August 2008, 14:51
Does anybody have any comments, thoughts, or input regarding Surcode's MLP encoder?

I just recently recoded a BD LPCM track that was 4GB to MLP that finished at 1.7GB, obviously the space saved is one benefit, unfortunately I am unaware of any muxing applications to get this back to the BD structure. tsMuxeR or Scenarist doesn't like this file type, whether it's .ac3 or .mlp.

Can anybody offer some tips, advice, or anything regarding this matter.

Also, will eac3to work with the Surcode MLP encoder in the future... like it does with the DTS encoder?

Thanks, ~O

madshi
31st August 2008, 14:56
eac3to v2.59 released

http://madshi.net/eac3to.zip

* extension ".thd+ac3" is supported now to define destination format
* TrueHD tracks without AC3 core can be converted to TrueHD/AC3 now
* demuxing a single-part Blu-Ray title keeps the original "TrueHD/AC3" data
* demuxing a multi-part Blu-Ray title automatically redoes the AC3 substream
* added workaround for Blu-Ray playlists with multiple last "invalid" parts
* fixed: "-check" didn't work for LPCM tracks
If you want to make a demuxed HD DVD TrueHD track (or a Blu-Ray TrueHD track demuxed by an older eac3to version) fit for Scenarist Blu-Ray muxing you can do this:

eac3to source.thd dest.thd+ac3

This will automatically create an AC3 track and interweave it with the TrueHD track. Of course if your source is an HD DVD folder, you can directly do e.g. "eac3to hddvdMovie 1) 1: video.mkv 3: audio.thd+ac3". That will demux the TrueHD track and interweave an AC3 track at the same time. If you just want to make the TrueHD track Blu-Ray compatible, but don't want to actually *ever* make use of the embedded AC3 track, you can ask eac3to to use a really low bitrate to save space, e.g. "eac3to source dest.thd+ac3 -192".

Please be aware, though, that there's no TrueHD encoder available at this time (at least not for us consumers). So you cannot convert LPCM tracks or any other formats to TrueHD. You can only convert TrueHD tracks to TrueHD/AC3 or vice versa. Please also be aware that you cannot specify an external AC3 file to be used for interweaving. eac3to will always create a new one (by transcoding the TrueHD track to AC3 during processing) - except when demuxing a TrueHD/AC3 track from a single-part m2ts movie.

madshi
31st August 2008, 14:58
Does anybody have any comments, thoughts, or input regarding Surcode's MLP encoder?

I just recently recoded a BD LPCM track that was 4GB to MLP that finished at 1.7GB, obviously the space saved is one benefit, unfortunately I am unaware of any muxing applications to get this back to the BD structure. tsMuxeR or Scenarist doesn't like this file type, whether it's .ac3 or .mlp.

Can anybody offer some tips, advice, or anything regarding this matter.

Also, will eac3to work with the Surcode MLP encoder in the future... like it does with the DTS encoder?
I don't think that Blu-Ray supports MLP/AC3 tracks. It only supports TrueHD/AC3 tracks, I believe. As a result I don't have any hope that this will work. MLP and TrueHD are "related" but not identical. Or can the Surcode encoder also create TrueHD files?

samukas
31st August 2008, 15:09
Hello there, madshi! If I haven't said so already, many many thanks for this amazing tool! I can finally remux seamless branched blu-ray titles and watch them on my Popcorn Hour NMT :)

Although, I ran into two problems with the following titles:

The Guardian:

"C:\eac3to\eac3to.exe" "E:\The.Guardian.Blu-Ray.1080p.MPEG2.LPCM.5.1\" 1)
------------------------------------------------------------------------------
This TS/M2TS file seems to be damaged (sync byte missing).
This TS/M2TS file seems to be damaged (sync byte missing).
This might be a RAW/PCM file. Trying to figure out the details.
This will probably take a while. Please be patient...
Was not able to figure out all parameters of this RAW/PCM file.
Please specify channel, bitdepth and endian parameters via command line.

I believe this one has been mentioned before and it's a rip problem and not related to eac3to... Am I right?

Chicago:

"C:\eac3to\eac3to.exe" "H:\Chicago Blu-ray\Chicago\" 1) 2:"chicago.mkv" 4:"chicago.ac3" -keepDialnorm
M2TS, 1 video track, 5 audio tracks, 6 subtitle tracks, 1:53:27
1: Chapters, 21 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
3: RAW/PCM, English, 5.1 channels, 24 bits, 48khz
4: AC3, English, 5.1 channels, 640kbps, 48khz
5: AC3, French, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
6: RAW/PCM, Spanish, 2.0 channels, 16 bits, 48khz
7: AC3, English, 2.0 channels, 192kbps, 48khz, dialnorm: -27dB
8: Subtitle (PGS), English
9: Subtitle (PGS), French
10: Subtitle (PGS), Spanish
11: Subtitle (PGS), English
12: Subtitle (PGS), French
13: Subtitle (PGS), Spanish
[v02] Extracting video track number 2...
[a04] Extracting audio track number 4...
[v02] Muxing video to Matroska...
[a04] Creating file "chicago.ac3"...
Unfortunately the Haali Muxer cannot handle this source file.
It doesn't contain enough seek/recovery points.
Aborted at file position 2111881216.
I don't know what to do with this one :S

Any help would be appreciated. Thanks in advance!

odin24
31st August 2008, 15:22
I don't think that Blu-Ray supports MLP/AC3 tracks. It only supports TrueHD/AC3 tracks, I believe. As a result I don't have any hope that this will work. MLP and TrueHD are "related" but not identical. Or can the Surcode encoder also create TrueHD files?


I thought the two were the same (MLP & TrueHD), unfortunatley the only output option in the Surcode encoder is MLP.

Thanks for the quick response.


EDIT:
Also, is there a possibility to have a MLP to TrueHD conversion in the future?

nautilus7
31st August 2008, 15:41
@ samukas

For Chicago you need to change your command line like this:


"C:\eac3to\eac3to.exe" "H:\Chicago Blu-ray\Chicago\" 1) 2:"chicago.mkv" -seekToIFrames 4:"chicago.ac3" -keepDialnorm

Perhaps the resulting mkv stutters a little when seeking, but that's all you can do right now. It's a limitation of the haali muxer.

I don't have a clue regarding The Guardian.

lexor
31st August 2008, 15:47
@samukas, how come you -keepDialnorm on a track that has none reported? Or should I be asking if it is even possible for ac3 track to have no dialnorm (aka eac3to having a brain freeze)?

samukas
31st August 2008, 15:49
Thanks for your help, nautilus7, it seems to be working :D
I plan to remux it to a Transport Stream afterwards... I hope the resulting file will be OK ;)

samukas
31st August 2008, 15:52
@lexor, that's a good question LOL

I didn't even notice that, I used -keepDialnorm without even looking because all AC3 tracks have it... Apparently! It's the first time I see an ac3 track with no dialnorm =/

madshi
31st August 2008, 16:38
I believe this one has been mentioned before and it's a rip problem and not related to eac3to... Am I right?
It looks like a rip problem. So just rerip the disc.

Also, is there a possibility to have a MLP to TrueHD conversion in the future?
No.

deacon crusher
31st August 2008, 19:16
Madshi

Your turn around time is amazing.

Unfortunately, still some kind of hiccup with CJ7

D:\kid movies\cj7>C:\eac3to\eac3to.exe E:\
1) 00224.mpls, 1:28:21
[11+125+128+129+130].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)
- TrueHD, Chinese, multi-channel, 48khz
- TrueHD, English, multi-channel, 48khz
- AC3, Thai, multi-channel, 48khz
- AC3, Chinese, stereo, 48khz
- TrueHD, French, multi-channel, 48khz
- AC3, Chinese, multi-channel, 48khz

2) 00232.mpls, 1:28:08
[126+125+128+129+132].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)
- TrueHD, Chinese, multi-channel, 48khz
- TrueHD, English, multi-channel, 48khz
- TrueHD, French, multi-channel, 48khz
- AC3, Thai, multi-channel, 48khz
- AC3, Chinese, stereo, 48khz
- AC3, Chinese, multi-channel, 48khz

3) 00227.mpls, 00128.m2ts, 1:13:24
- h264/AVC, 1080p24 /1.001 (16:9)
- TrueHD, Chinese, multi-channel, 48khz
- TrueHD, English, multi-channel, 48khz
- AC3, Thai, multi-channel, 48khz
- AC3, Chinese, stereo, 48khz
- AC3, Chinese, multi-channel, 48khz
- TrueHD, French, multi-channel, 48khz

4) 00206.mpls, 00108.m2ts, 0:22:05
- MPEG2, 480i60 /1.001 (4:3)
- AC3, Chinese, stereo, 48khz

D:\kid movies\cj7>C:\eac3to\eac3to.exe E:\ 1)
This playlist contains m2ts parts with different track properties.

D:\kid movies\cj7>C:\eac3to\eac3to.exe E:\ 2)
This playlist contains m2ts parts with different track properties.

Any other info I can send you??

Thanks

eac3to v2.59 released

http://madshi.net/eac3to.zip

* extension ".thd+ac3" is supported now to define destination format
* TrueHD tracks without AC3 core can be converted to TrueHD/AC3 now
* demuxing a single-part Blu-Ray title keeps the original "TrueHD/AC3" data
* demuxing a multi-part Blu-Ray title automatically redoes the AC3 substream
* added workaround for Blu-Ray playlists with multiple last "invalid" parts
* fixed: "-check" didn't work for LPCM tracks
If you want to make a demuxed HD DVD TrueHD track (or a Blu-Ray TrueHD track demuxed by an older eac3to version) fit for Scenarist Blu-Ray muxing you can do this:

eac3to source.thd dest.thd+ac3

This will automatically create an AC3 track and interweave it with the TrueHD track. Of course if your source is an HD DVD folder, you can directly do e.g. "eac3to hddvdMovie 1) 1: video.mkv 3: audio.thd+ac3". That will demux the TrueHD track and interweave an AC3 track at the same time. If you just want to make the TrueHD track Blu-Ray compatible, but don't want to actually *ever* make use of the embedded AC3 track, you can ask eac3to to use a really low bitrate to save space, e.g. "eac3to source dest.thd+ac3 -192".

Please be aware, though, that there's no TrueHD encoder available at this time (at least not for us consumers). So you cannot convert LPCM tracks or any other formats to TrueHD. You can only convert TrueHD tracks to TrueHD/AC3 or vice versa. Please also be aware that you cannot specify an external AC3 file to be used for interweaving. eac3to will always create a new one (by transcoding the TrueHD track to AC3 during processing) - except when demuxing a TrueHD/AC3 track from a single-part m2ts movie.

madshi
31st August 2008, 19:28
Unfortunately, still some kind of hiccup with CJ7

D:\kid movies\cj7>C:\eac3to\eac3to.exe E:\
1) 00224.mpls, 1:28:21
[11+125+128+129+130].m2ts
- h264/AVC, 1080p24 /1.001 (16:9)
- TrueHD, Chinese, multi-channel, 48khz
- TrueHD, English, multi-channel, 48khz
- AC3, Thai, multi-channel, 48khz
- AC3, Chinese, stereo, 48khz
- TrueHD, French, multi-channel, 48khz
- AC3, Chinese, multi-channel, 48khz

D:\kid movies\cj7>C:\eac3to\eac3to.exe E:\ 1)
This playlist contains m2ts parts with different track properties.

D:\kid movies\cj7>C:\eac3to\eac3to.exe E:\ 2)
This playlist contains m2ts parts with different track properties.

Any other info I can send you??
Set eac3to lose on the separate m2ts parts (listed in "[]", e.g. for playlist 1 it's 00011.m2ts, 00125.m2ts, 00128.m2ts, 00129.m2ts and 00130.m2ts). I'm sure that eac3to has a good reason to complain. Some of these m2ts parts must have a different video or audio track listing compared to the other parts. Joining m2ts parts with different track lists can't work properly. So you need to find out which parts are different. Then we can go from there...

nautilus7
31st August 2008, 19:33
I believe madshi added this check in playlist level so eac3to doesn't abort during processing. All you have to do is to set the *correct* .m2ts files as input an not the playlist. Check which files have very small size and ignore them. Assuming only the last part has weird format, then you should modify your command like this:

D:\kid movies\cj7>C:\eac3to\eac3to.exe E:\BDMV/STREAM/00011.m2ts+00125.m2ts+00128.m2ts+00129.m2ts


And of course madshi beat me... Faster again. :p

madshi
31st August 2008, 19:38
I believe madshi added this check in playlist level so eac3to doesn't abort during processing. All you have to do is to set the *correct* .m2ts files as input an not the playlist. Check which files have very small size and ignore them. Assuming only the last part has weird format, then you should modify your command like this
If it's only the last one or the last few ones and if they are all together smaller than 5MB, eac3to is automatically ignoring them. This doesn't seem to be the case here. Maybe it's one of the files in the middle. Or maybe it's the last one and it's bigger than 5MB. Either way, it might be worth to not only check which part is different but also to play that different part in a media player to understand why it's different...

bmnot
31st August 2008, 19:39
eac3to movie.m2ts -analyzeBitdepth
1: VC-1, 1080p24 /1.001 (16:9)
2: AC3, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
3: TrueHD/AC3, 5.1 channels, 48khz, dialnorm: -27dB
4: AC3, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
5: AC3, 2.0 channels, 192kbps, 48khz, dialnorm: -27dB
[a03] Extracting audio track number 3...
[a03] The sample sorter received a non-supported data format.
Aborted at file position 32768.

????

I tried running the command from the disc in the BD drive, some error.