[RESOLVED] Some language tag missing in demux

Support forum for DGDecNV
User avatar
tormento
Distinguished Member
Distinguished Member
Posts: 233
Joined: Mon Sep 20, 2010 2:18 pm

Re: Some language tag missing in demux

Post by tormento » Tue Mar 05, 2019 6:28 am

gonca wrote:
Tue Mar 05, 2019 5:48 am
Might be authoring issue
I thought the same thing. I have done tests with both eac3to and MakeMKV and they seem to be more resilient to recognize correct streams languages.

I know it's not the main purpose of DGIndexNV to demux, that anyway works correctly 99,99% of times.

I just want to get rid of eac3to completely :mrgreen:

User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

Re: Some language tag missing in demux

Post by admin » Tue Mar 05, 2019 1:06 pm

@tormento

I'm going to need to get the bluray to debug this. Can you please give me a link to purchase this exact same bluray you are using?

User avatar
tormento
Distinguished Member
Distinguished Member
Posts: 233
Joined: Mon Sep 20, 2010 2:18 pm

Re: Some language tag missing in demux

Post by tormento » Tue Mar 05, 2019 4:13 pm

admin wrote:
Tue Mar 05, 2019 1:06 pm
I'm going to need to get the bluray to debug this. Can you please give me a link to purchase this exact same bluray you are using?
Mmh. Hard to say as it was released under the name Alien Anthology in 2010. Moreover I think that you could find different versions.

Mine has eng DTSHD, ita DTS and jap DTS plus a bunch of AC3 audio tracks in lot of languages.

Will look for it. Where do you live, USA?

User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

Re: Some language tag missing in demux

Post by admin » Tue Mar 05, 2019 4:34 pm

Yes, USA. There is no way I can address this without the bluray. Wanna make me a copy if it's not available?

User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

Re: Some language tag missing in demux

Post by admin » Wed Mar 06, 2019 7:39 pm

tormento kindly supplied me some materials that allow me to investigate this. :salute:

Using my most acute detective powers I was able to discover the cause. :ugeek:

I use only the MPLS file to find the language code for each playlist item. But strangely, the MPLS does not have STN table entries for all the streams. For example, the table omits PID 0x1102, while all the other audio PIDs are present. So, the number of declared streams is 7 but EAC3TO (and my demux menu) shows 8. A similar situation applies for the PGS streams. The missing items are exactly the ones that are missing their language code in the demux menu.

So now, I was thinking "where the heck does EAC3TO get the language code?" First I thought it might be the M2TS file, even though I long ago failed to find language codes in M2TS files. I copied 00983.m2ts to a temp folder outside the BDMV tree and ran EAC3TO on it. No language codes were given. So it's not using the M2TS files.

I know what you're thinking...the CLPI files! So I went into the CLIPINF dir and renamed 00983.clpi to 00983.clpi~ and ran EAC3TO on the MPLS file again. No language codes were shown! Then I looked at the bluray spec and found that the CLPI files do indeed specify a language code. Thus, I need to parse the CLPI files to resolve this.

Arguably, gonca was right that this is likely an authoring problem, as there is no rational reason for some streams to be excluded from the STN table of the MPLS. If the CLPI parsing turns out to be reliable I will switch to that for getting the language codes.

User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

Re: Some language tag missing in demux

Post by admin » Thu Mar 07, 2019 1:07 pm

tormento wrote:
Tue Mar 05, 2019 5:37 am
I have just found that some subtitle language tags are wrong too, i.e. eng is kor, ita is eng etc.
I have the CLPI parser working and I'm getting all the languages now. But I'm doubting this claim, because I simply display the 3 character language string exactly as it appears in CLPI.

Does this happen on the 00800.mpls? I don't think so because my output matches EAC3TO.

Please recheck this and report back, as I'd like to make a slipstream with the new parsing.

User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

Re: Some language tag missing in demux

Post by admin » Thu Mar 07, 2019 3:19 pm

I went ahead and slipstreamed the new parsing. Post again if you still have issues.

User avatar
tormento
Distinguished Member
Distinguished Member
Posts: 233
Joined: Mon Sep 20, 2010 2:18 pm

Re: Some language tag missing in demux

Post by tormento » Fri Mar 08, 2019 4:33 am

admin wrote:
Thu Mar 07, 2019 3:19 pm
I went ahead and slipstreamed the new parsing. Post again if you still have issues.
I have manually compared by SupRip the sups demuxed from DGIndexNV and eac3to and I can confirm they are the same, with the plus DGIndexNV place language tag in filename too.

Great job :bravo:

Now chapter extraction only is missing and the demux part will be complete :)

Post Reply