Page 1 of 2

Cannot demux on particular UHD bluray with DoVi

Posted: Tue Oct 12, 2021 7:16 am
by Sonic3R
Hi,

I tried to demux a particular disc, which bdinfo look like:

Code: Select all

DISC INFO:

Disc Title:     Halloween 4: The Return of Michael Myers
Disc Size:      66,074,376,733 bytes
Protection:     AACS2
Extras:         Ultra HD
BDInfo:         0.7.5.6

PLAYLIST REPORT:

Name:                   00002.MPLS
Length:                 1:28:39.083 (h:m:s.ms)
Size:                   65,273,499,840 bytes
Total Bitrate:          98.17 Mbps

(*) Indicates included stream hidden by this playlist.

VIDEO:

Codec                   Bitrate             Description    
-----                   -------             -----------    
MPEG-H HEVC Video       71888 kbps          2160p / 24 fps / 16:9 / Main 10 @ Level 5.1 @ High / 10 bits / HDR10 / BT.2020
* MPEG-H HEVC Video     10150 kbps          1080p / 24 fps / 16:9 / Main 10 @ Level 5.1 @ High / 10 bits / Dolby Vision / BT.2020

AUDIO:

Codec                           Language        Bitrate         Description    
-----                           --------        -------         -----------    
DTS-HD Master Audio             English         2022 kbps       2.0 / 48 kHz /  2022 kbps / 24-bit (DTS Core: 2.0 / 48 kHz /  1509 kbps / 24-bit)
DTS-HD Master Audio             English         3678 kbps       5.1 / 48 kHz /  3678 kbps / 24-bit (DTS Core: 5.1 / 48 kHz /  1509 kbps / 24-bit)
Dolby Digital Audio             English         448 kbps        5.1 / 48 kHz /   448 kbps / DN -27dB
Dolby TrueHD/Atmos Audio        English         3853 kbps       7.1 / 48 kHz /  3469 kbps / 16-bit (AC3 Embedded: 5.1 / 48 kHz /   384 kbps / DN -28dB)
Dolby Digital Audio             English         192 kbps        2.0 / 48 kHz /   192 kbps / DN -27dB
Dolby Digital Audio             English         192 kbps        2.0 / 48 kHz /   192 kbps / DN -27dB

SUBTITLES:

Codec                           Language        Bitrate         Description    
-----                           --------        -------         -----------    
Presentation Graphics           English         28.367 kbps                    

FILES:

Name            Time In         Length          Size            Total Bitrate  
----            -------         ------          ----            -------------  
00005.M2TS      0:00:00.000     0:00:18.708     178,087,104     75,815          
00000.M2TS      0:00:18.708     1:28:20.375     65,095,412,736  98,249
The output of dgdemux looks like:

Code: Select all

PlayLists:
00002.mpls 01:28:39 [13 chapters]
00000.mpls 00:00:26 [1 chapters]

Files:
00005.m2ts
00000.m2ts

Streams:
1011: Video [HEVC 24.000 2160p 16:9]
1015: Video [HEVC 24.000 1080p 16:9] [Dolby Vision]
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
   0: MPA 0.0 48 32
12a0: PGS subtitles [eng]
Chapters [13]
And nothing is output, no demux happens.

I use bash script to run it automatically (on GUI seems to work fine)

Code: Select all

#!/bin/bash

OIFS="$IFS"
IFS=$'\n'

for fld in "$@"
do
	playlists=$(/home/script/dgdemux/dgdemux -d "$fld")
	mpls=$([[ $playlists =~ ([0-9]+).mpls ]] && echo "${BASH_REMATCH[1]}")
			
	mplsPaths=($(find "$fld" -iname $mpls.mpls))
	mplsPath=${mplsPaths[0]}
		
	name=$(basename "$fld")
	output=/home/demux/$name
	
	if [[ ! -d $output ]]; then
		mkdir -p $output
	fi
	
	/home/script/dgdemux/dgdemux -i $mplsPath
	/home/script/dgdemux/dgdemux -i "$mplsPath" -o "$output/$mpls"
done

IFS="$OIFS"

Cannot demux on particular UHD bluray with DoVi

Posted: Tue Oct 12, 2021 7:54 am
by Rocky
Please give me a link to purchase the disk. I don't do torrent stuff.

Cannot demux on particular UHD bluray with DoVi

Posted: Tue Oct 12, 2021 7:57 am
by Sonic3R
I updated post with bash script.

The disc can be found there:
https://www.amazon.com/Halloween-4-The- ... B07GNTCCDM

Cannot demux on particular UHD bluray with DoVi

Posted: Tue Oct 12, 2021 8:50 am
by Rocky
You talk about bash. You're on linux right? Then why do you say "on GUI seems to work fine"? There is no linux GUI.

Have you tried it on Windows?

If on windows, you have GUI and CLI, also CLI via some script. Please test GUI and CLI directly first. Then we can look at scripts.

But first are you on linux or windows?

Cannot demux on particular UHD bluray with DoVi

Posted: Tue Oct 12, 2021 9:18 am
by Sonic3R
I try on Linux

But it worked for other BDs, but not for this.

on my Windows machine, seems to work fine through GUI.

Cannot demux on particular UHD bluray with DoVi

Posted: Tue Oct 12, 2021 9:24 am
by Rocky
On linux did you try without the script, just running dgdemux from a terminal?

Cannot demux on particular UHD bluray with DoVi

Posted: Wed Oct 13, 2021 8:36 am
by Sonic3R
Sorry for late reply

Yesterday I was sick, strange that works with command directly

I checked script that would execute same command and therefore no output.

Very strange

Cannot demux on particular UHD bluray with DoVi

Posted: Wed Oct 13, 2021 8:47 am
by Rocky
OK, thank you. I'll take a closer look at your script.

Cannot demux on particular UHD bluray with DoVi

Posted: Wed Oct 13, 2021 9:26 am
by Sonic3R
You can use that script on your side and check if occur that multiple MPA

Cannot demux on particular UHD bluray with DoVi

Posted: Wed Oct 13, 2021 10:34 am
by Rocky
Sure, but only if I blow $36. Wanna pay that for me?

Cannot demux on particular UHD bluray with DoVi

Posted: Wed Oct 13, 2021 1:45 pm
by Rocky
Haven't analyzed your script in detail, but first, in this fragment:

/home/script/dgdemux/dgdemux -i $mplsPath
/home/script/dgdemux/dgdemux -i "$mplsPath" -o "$output/$mpls"

Why do you have quotes around $mplsPath in the second line but not the first? If the path has white space that's going to be a problem. I note that your disk title has white space.

Second, are you just choosing the first MPLS file? If not, how are you choosing it?

Third, IFS is defined but not used. Did you give the full script or just a fragment?

Could you visit more regularly when we are actively working with you on your problem? It chafes to have to send emails asking for a response. Even though you acknowledged that DGDemux operates correctly when invoked manually we're willing to help you debug your script.

Cannot demux on particular UHD bluray with DoVi

Posted: Thu Oct 14, 2021 4:10 am
by Sonic3R
Second, are you just choosing the first MPLS file? If not, how are you choosing it?
I will explain briefly what script does

Code: Select all

playlists=$(/home/script/dgdemux/dgdemux -d "$fld")
mpls=$([[ $playlists =~ ([0-9]+).mpls ]] && echo "${BASH_REMATCH[1]}")
			
mplsPaths=($(find "$fld" -iname $mpls.mpls))
mplsPath=${mplsPaths[0]}
mplsPath will be first found mpls file found by first item (mplsPath=${mplsPaths[0]}) (when run -d PATH_TO_BD_FOLDER)

If run dgdemux -d PATH_TO_BD_FOLDER will out a list of mpls... I will take first one.

Here:

Code: Select all

mplsPaths=($(find "$fld" -iname $mpls.mpls))
I'm taking full path to that mpls file in order to send it as argument to -i flag
/home/script/dgdemux/dgdemux -i $mplsPath
I will add it and will try again


But the real issue is not regarding to quotes to variable (if so, that wouldn't output the many MPA lines).

Is strange situation that output a lot of MPA lines there, since the mpls is detected and trying identify the streams.
Third, IFS is defined but not used. Did you give the full script or just a fragment?
It is full script, you'll see bash directive in first line.
Could you visit more regularly when we are actively working with you on your problem? It chafes to have to send emails asking for a response. Even though you acknowledged that DGDemux operates correctly when invoked manually we're willing to help you debug your script.
I will try as much as possible since I use extensively your program, I still love it !

Later edit:
I am extremely idiot ! the mpls found is located in BDMV/BACKUP/PLAYLIST/ folder instead in BDMV/PLAYLIST...

Fixing it will solve issue

Cannot demux on particular UHD bluray with DoVi

Posted: Thu Oct 14, 2021 10:15 am
by Rocky
The first MPLS is not always the correct one.

BDMV/PLAYLIST is the correct primary location. Don't know about your torrent version though. Perhaps the BDMV/PLAYLIST folder is corrupted.

Marking resolved.

Cannot demux on particular UHD bluray with DoVi

Posted: Thu Oct 14, 2021 2:51 pm
by renols
Hi.

The problem with that disc, is that it has an 18 second m2ts file which has very different audios than the main m2ts.

bdinfo can somehow show the correct info, but eac3to, dgindexnv, tsmuxer and what else, will show "wrong" information.

You will have to use dgdemux and select "skip first m2ts" and then everything will be fine.

renols

Cannot demux on particular UHD bluray with DoVi

Posted: Thu Oct 14, 2021 3:02 pm
by renols
renols wrote:
Thu Oct 14, 2021 2:51 pm
Hi.

The problem with that disc, is that it has an 18 second m2ts file which has very different audios than the main m2ts.

bdinfo can somehow show the correct info, but eac3to, dgindexnv, tsmuxer and what else, will show "wrong" information.

You will have to use dgdemux and select "skip first m2ts" and then everything will be fine.

renols
A bit more explanation.

00005.m2ts is 18 seconds, and has very different audios than 00000.m2ts.

If you demux including the 00005.m2ts file, things will get messed up, as the audios in the 2 m2ts files are very different. If you demux with "skip first m2ts" then all will be fine. At least it worked on my retail disc.

The 18 seconds is just some logo that isn't needed. Btw, Halloween 5 has the same thing, which means to get a dgi file, one will have to first demux with dgdemux with "skip first m2ts" and then use dgindexnv to demux the video. Can't find the option to skip first m2ts file in dgindexnv, so I think it needs to be a two step proccess to get a dgi file.

Cannot demux on particular UHD bluray with DoVi

Posted: Thu Oct 14, 2021 6:06 pm
by Rocky
renols wrote:
Thu Oct 14, 2021 3:02 pm
The 18 seconds is just some logo that isn't needed. Btw, Halloween 5 has the same thing, which means to get a dgi file, one will have to first demux with dgdemux with "skip first m2ts" and then use dgindexnv to demux the video. Can't find the option to skip first m2ts file in dgindexnv, so I think it needs to be a two step process to get a dgi file.
Thank you for the analysis, renols. Could be time to add those extra DGDemux options to DGIndexNV. I wonder, though, can you open the disk and then go into the Open menu and delete the first M2TS from the list?

Cannot demux on particular UHD bluray with DoVi

Posted: Fri Oct 15, 2021 12:01 am
by renols
Hi.

Yes, that actually seems to work.

When I open disk and enter the demux menu, I just see a lot of 2 channel DTS HDMA tracks.

If I then go to the open menu, and delete the first m2ts file (00005.m2ts) it looks like dgindexnv "opens" the disk again, and the demux menu now looks correct, with TrueHD audio and several 2 channel AC3 files.

Thanks for pointing that out. Saves me the step of having to save a 40 GB big video file, which I then must proccess to get the dgi file.

The only downside, seems to be that the language information in the filenames seems to disappear. I guess it does the same as not choosing "Open disc" but just choosing Open file, and selecting the 00000.m2ts file.

If I use dgdemux with "skip first m2ts" the language information in the files is kept.

Cannot demux on particular UHD bluray with DoVi

Posted: Fri Oct 15, 2021 11:23 am
by Rocky
renols wrote:
Fri Oct 15, 2021 12:01 am
The only downside, seems to be that the language information in the filenames seems to disappear. I guess it does the same as not choosing "Open disc" but just choosing Open file, and selecting the 00000.m2ts file.
Ah yes, thank you for pointing that out. I'll see whether the language info can be kept in such a case. If it becomes too complex, I'll just implement the skip first option for the Choose MPLS File dialog.

Cannot demux on particular UHD bluray with DoVi

Posted: Fri Oct 15, 2021 1:51 pm
by Sonic3R
Rocky wrote:
Thu Oct 14, 2021 10:15 am
The first MPLS is not always the correct one.

BDMV/PLAYLIST is the correct primary location. Don't know about your torrent version though. Perhaps the BDMV/PLAYLIST folder is corrupted.

Marking resolved.
Is not corrupt, I made mistake sending PLAYLIST file from BACKUP folder instead the BDMV one.

I saw that first MPLS is not always correct and is very hard to find right one except bdinfo.

Cannot demux on particular UHD bluray with DoVi

Posted: Fri Oct 15, 2021 2:24 pm
by Rocky
It is quite easy to find with DGDemux too.

Cannot demux on particular UHD bluray with DoVi

Posted: Sun Oct 17, 2021 9:45 am
by Sonic3R
Can tell me how?

Cannot demux on particular UHD bluray with DoVi

Posted: Sun Oct 17, 2021 9:27 pm
by Sherman
You should ask Curly. He's real good at stuff like that. You don't have to thank me.


Cannot demux on particular UHD bluray with DoVi

Posted: Tue Oct 19, 2021 1:03 am
by Sonic3R
And (s)he can see this topic ?

Cannot demux on particular UHD bluray with DoVi

Posted: Tue Oct 19, 2021 4:27 pm
by Rocky
@Sonic3R

Curly is a man's man, no she!

Look at the MPLS chapter count and the duration. If still in doubt do a preview.

@renols

Can you please test this version with the skip first M2TS option? I intentionally do not save the state of the skip first checkbox in the Choose MPLS File dialog. Use this with the latest DGDemux.exe.

http://rationalqm.us/misc/DGIndexNV_renols.rar

Cannot demux on particular UHD bluray with DoVi

Posted: Tue Oct 19, 2021 4:57 pm
by Britney
Rocky wrote:
Tue Oct 19, 2021 4:27 pm
Curly is a man's man, no she!
You guys need to tap into your feminine sides!