[RESOLVED] Issue with W64 demux

Support forum for DGDecNV
Post Reply
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

[RESOLVED] Issue with W64 demux

Post by Guest 2 »

Sometimes, I could say 50%, I get a w64 of double the time lenght of the original PCM stream, with lower pitch.

I usually demux by mpls, not m2ts.

Anybody got same issue?
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Re: Issue with W64 demux

Post by Rocky »

Just in time! I was about to release DGDemux and DGIndexNV. Thank you so much. Investigating...
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Re: Issue with W64 demux

Post by Rocky »

Ha ha, the PCM track is pretty funny to listen to. Maybe we should leave it that way?

I think it is related to being mono (1/0). Let's see. Sherman, are you making assumptions again?
User avatar
Curly
Posts: 712
Joined: Sun Mar 15, 2020 11:05 am

Re: Issue with W64 demux

Post by Curly »

Tomorrow is another day. Never forget that.
Curly Howard
Director of EAC3TO Development
User avatar
Natasha
Posts: 150
Joined: Wed Nov 20, 2019 11:11 am

Re: Issue with W64 demux

Post by Natasha »

ASS-U-ME

The logical validity of an argument is a function of its internal consistency, not the truth value of its premises.

Wake up!
User avatar
Mr. Peabody
Posts: 45
Joined: Tue Dec 24, 2019 9:20 am

Re: Issue with W64 demux

Post by Mr. Peabody »

Natasha wrote:
Mon Jun 29, 2020 8:58 pm
The logical validity of an argument is a function of its internal consistency, not the truth value of its premises.
That's insane, or at the least, postmodern.
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Re: Issue with W64 demux

Post by Guest 2 »

Rocky wrote:
Mon Jun 29, 2020 8:45 pm
Ha ha, your disk's PCM track is pretty funny to listen to. Maybe we should leave it that way?
Helium gives funnier voices :mrgreen:
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Re: Issue with W64 demux

Post by Rocky »

Used to do that as a kid at my dad's work picnic when they were filling the balloons.

Here's what's going on with this issue. Two things:

1. EAC3TO uses WAVEFORMATEXTENSIBLE and I use WAVEFORMATPCM. This appears inconsequential. MS guidance is to use extensible format when the sample size is > 16 bits, but my players don't care if it is pcm format. The real problem seems to be that the stream is mono (see next item).

2. The transport stream data has interleaved two channels per sample frame with the second channel always having zeros. EAC3TO removes these when demuxing. What I don't understand is why those extra bytes are there, given that the stream is mono and mono PCM packing is supposed to have only one sample per sample frame. It'll be a pain to remove them but I suppose we have to do it. This explains why the demuxed file is twice as long and plays at half speed. I want to fully understand this before making needed changes.
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Re: Issue with W64 demux

Post by Rocky »

OK, all clear now. The bluray spec says there must be >= 2 channels and that for mono, the second channel is discarded. So that's what I'll do when mono is specified. Haven't decided yet if I should worry about the WAVEFORMATPCM.
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Re: Issue with W64 demux

Post by Rocky »

I have it working and will make a slipstream after lunch.

Not Sherman's fault!
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Re: Issue with W64 demux

Post by Rocky »

Here is a test version with all the fixes so far:

MVC support
THD gaps fix
mono LPCM fix

http://rationalqm.us/dgdemux/binaries/DGDemux_test.rar

Feedback will be appreciated as always. DGIndexNV will get the same fix. Hope to slipstream both tomorrow if no issues are found.
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Re: Issue with W64 demux

Post by Rocky »

Regarding WAVEFORMATPCM versus WAVEFORMATEXTENSIBLE, does anyone know of an application that cannot play/utilize 24-bit WAVEFORMATPCM? I always prefer simpler code, and why make unnecessary work for no demonstrable gain? Pragmatism!
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Re: Issue with W64 demux

Post by Guest 2 »

Rocky wrote:
Tue Jun 30, 2020 8:59 pm
Regarding WAVEFORMATPCM versus WAVEFORMATEXTENSIBLE
WAVEFORMATPCM is considered obsolete VS WAVEFORMATPCM, why bother about WAVEFORMATPCM ? :)
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Re: Issue with W64 demux

Post by Rocky »

I already gave my reasons. Is it working for you?
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Re: Issue with W64 demux

Post by Guest 2 »

Rocky wrote:
Wed Jul 01, 2020 8:48 am
I already gave my reasons. Is it working for you?
Whatever format you decide, it will be ok for me.
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Re: Issue with W64 demux

Post by Rocky »

Thank you.

AVI is obsolete too. That doesn't mean VirtualDub no longer works. ;)

BTW, La Notte. Great flick! Thank you for drawing it to my attention.
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Re: Issue with W64 demux

Post by Guest 2 »

Rocky wrote:
Wed Jul 01, 2020 11:23 am
BTW, La Notte. Great flick! Thank you for drawing it to my attention.
La Notte received the Golden Bear at the Berlin International Film Festival (first time for Italian film), as well as the David di Donatello Award for Best Director in 1961. La Notte is considered the central film of a trilogy beginning with L'Avventura (1960) and ending with L'Eclisse (1962). It is one of Stanley Kubrick's 10 favorite films and receives 4 votes from critics and 6 votes from directors in the Sight & Sound greatest films poll. — Wikipedia

Stanley Kubrick's 10 favorite films: http://www.openculture.com/2013/07/stan ... films.html
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Re: Issue with W64 demux

Post by Rocky »

Great stuff. Thanks!
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Re: Issue with W64 demux

Post by Guest 2 »

Rocky wrote:
Tue Jun 30, 2020 8:59 pm
does anyone know of an application that cannot play/utilize 24-bit WAVEFORMATPCM?
I did extensive research and I found that it doesn't work on some Android builds and some hardware players or A/V receivers of obscure, perhaps audiophile, brands.

As they refer to generic PCM 24 bit, I suppose they won't play any, either WAVEFORMATPCM or EXTENSIBLE.

Abstract: who cares of those :belly-laugh:
User avatar
Rocky
Posts: 3557
Joined: Fri Sep 06, 2019 12:57 pm

Re: Issue with W64 demux

Post by Rocky »

The original spec for WAVEFORMATPCM obviously contains a field for bit depth and it did not constrain that value. People were making 20-bit WAVs with that format well before extensible came along. It is actually WAVEFORMATEX (predecessor of WAVEFORMATEXTENSIBLE) that does not support > 16 bits. WAVEFORMATPCM still does and is supported even though the structure has been superseded by WAVEFORMATEX and WAVEFORMATEXTENSIBLE.
Post Reply