Page 1 of 2

Demuxed stereo LPCM is messed up (bad header?)

Posted: Fri Mar 24, 2023 11:10 am
by SomeHumanPerson
I've seen this on a number of discs now. The most recent ones are:

https://www.amazon.co.uk/On-the-Run-Blu ... B09YRK8N4L
https://www.amazon.co.jp/KihachirA-Kawa ... B09MJ74TH1

(I'm sorry that they are not exactly mainstream releases, but stereo LPCM isn't very common. Seems like most studios prefer DTS-MA for older mono or stereo films these days.)

Anyway, the problem:

The LPCM 2.0 audio tracks show up in DGDemuxGUI as "PCM RES RES RES [lang]" instead of showing the actual bitrate, sample rate, and channel count. When demuxed, the resulting .w64 file has bizarre values for those specs when checked in MediaInfo or ffmpeg:

Code: Select all

General
Complete name                            : E:\MMYY PID 1100 zho DELAY 0ms.w64
Format                                   : Wave64
File size                                : 1.44 GiB
Duration                                 : 7 s 793 ms
Overall bit rate mode                    : Constant
Overall bit rate                         : 1 585 Mb/s

Audio
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : 1
[b]Duration                                 : 7 s 793 ms[/b]
Bit rate mode                            : Constant
Bit rate                                 : 1 585 Mb/s
[b]Channel(s)                               : 35 840 channels
Sampling rate                            : 2 152 MHz
Bit depth                                : 102 bits[/b]
Stream size                              : 1.44 GiB (100%)

ReportBy                                 : MediaInfoLib - v22.12
Demuxing the same track with eac3to v3.34 yields a normal PCM .WAV file with the correct values (in this specific case it also strips 8 bits of padding because the audio is actually only 16-bit, but the same thing happens with "real" 24-bit too):

Code: Select all

General
Complete name                            : E:\MMYY.wav
Format                                   : Wave
File size                                : 982 MiB
Duration                                 : 1 h 29 min
Overall bit rate mode                    : Constant
Overall bit rate                         : 1 536 kb/s

Audio
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : 00000001-0000-0010-8000-00AA00389B71
[b]Duration                                 : 1 h 29 min[/b]
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
[b]Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz[/b]
Bit depth                                : 16 bits
Stream size                              : 982 MiB (100%)

ReportBy                                 : MediaInfoLib - v22.12
If you want me to do more testing before you consider ordering one of these discs, please advise.

Demuxed stereo LPCM is messed up (bad header?)

Posted: Fri Mar 24, 2023 3:29 pm
by Rocky
Thank you for your report. I have ordered the first disk. It may be some time before it is delivered so please be patient.

Demuxed stereo LPCM is messed up (bad header?)

Posted: Fri Mar 24, 2023 3:38 pm
by SomeHumanPerson
No problem, and thank you for looking into it.

Demuxed stereo LPCM is messed up (bad header?)

Posted: Fri Mar 24, 2023 7:39 pm
by Sherman
Rocky forgot to say: Welcome to the forum!

Demuxed stereo LPCM is messed up (bad header?)

Posted: Fri Mar 24, 2023 9:26 pm
by Rocky
My bad.

Demuxed stereo LPCM is messed up (bad header?)

Posted: Sat Mar 25, 2023 10:45 am
by SomeHumanPerson
Sherman wrote:
Fri Mar 24, 2023 7:39 pm
Rocky forgot to say: Welcome to the forum!
:hat:

Demuxed stereo LPCM is messed up (bad header?)

Posted: Sat Mar 25, 2023 12:20 pm
by Britney
A real man! Slide into my PMs.

Demuxed stereo LPCM is messed up (bad header?)

Posted: Tue Mar 28, 2023 9:00 pm
by Natasha

Demuxed stereo LPCM is messed up (bad header?)

Posted: Tue Mar 28, 2023 9:13 pm
by Baltasar

Demuxed stereo LPCM is messed up (bad header?)

Posted: Tue Mar 28, 2023 9:28 pm
by Britney

Demuxed stereo LPCM is messed up (bad header?)

Posted: Tue Mar 28, 2023 10:16 pm
by Sherman





Demuxed stereo LPCM is messed up (bad header?)

Posted: Sat Apr 01, 2023 1:48 pm
by Rocky
Disk scheduled for arrival tomorrow.

Demuxed stereo LPCM is messed up (bad header?)

Posted: Sun Apr 02, 2023 9:16 am
by SomeHumanPerson
Superb! Faster than I expected.

Demuxed stereo LPCM is messed up (bad header?)

Posted: Mon Apr 03, 2023 7:59 am
by Rocky
Yeah, well, that's because I misread the tracking info and mistook May for April. Actual window is April 6 to May 2.

Demuxed stereo LPCM is messed up (bad header?)

Posted: Mon Apr 03, 2023 12:14 pm
by Sherman
We forgive you, Rocky.




Demuxed stereo LPCM is messed up (bad header?)

Posted: Mon Apr 10, 2023 7:14 pm
by Rocky
Disk is in hand. Ripping now...

Demuxed stereo LPCM is messed up (bad header?)

Posted: Mon Apr 10, 2023 8:46 pm
by Rocky
OK, I understand the problem. Now how to fix it?

It's actually a regression of the fix made for this issue:

https://www.rationalqm.us/board/viewtop ... =16&t=1214

Demuxed stereo LPCM is messed up (bad header?)

Posted: Mon Apr 10, 2023 9:25 pm
by Rocky
Please test this fix. Just update DGDemux.exe from this:

https://rationalqm.us/misc/DGDemux_lpcm.rar

Demuxed stereo LPCM is messed up (bad header?)

Posted: Tue Apr 11, 2023 9:13 am
by Rocky
I went ahead and released fixes for DGDemux/DGDemuxGUI and DGDecNV. Marking resolved.

Demuxed stereo LPCM is messed up (bad header?)

Posted: Wed Apr 12, 2023 8:52 am
by SomeHumanPerson
Sorry for being slow to respond; I was away for a few days.

In any case, thank you for jumping on this so quickly. I'll grab the updated version and try it out today.

Demuxed stereo LPCM is messed up (bad header?)

Posted: Wed Apr 12, 2023 9:20 am
by SomeHumanPerson
Looks good!

I'm mildly surprised that I didn't notice it being a regression, but discs like this are uncommon enough that maybe I'd never run into one before that point while using DGDemux (to notice that it once had worked).

In any case, thank you again!

:salute:

Demuxed stereo LPCM is messed up (bad header?)

Posted: Wed Apr 12, 2023 11:03 am
by Rocky
You're welcome and thank you for your update. I think it was actually broken for all PCM streams, and not just this exotic flavor. Definitely that is the case when only PCM is present. If other audio types were also present, then it depended on the order of their first appearance in the stream. Whatever, it's good to have this fixed.

Demuxed stereo LPCM is messed up (bad header?)

Posted: Thu Apr 13, 2023 7:27 pm
by Curly
Rocky kicked butt on this. Where's Sherman?

Demuxed stereo LPCM is messed up (bad header?)

Posted: Thu Apr 13, 2023 7:28 pm
by Sherman
Right here:


Demuxed stereo LPCM is messed up (bad header?)

Posted: Thu Apr 13, 2023 7:33 pm
by Natasha
Give it up, Sherman. She hit the wall.