Page 1 of 1

Re: Some language tag missing in demux

Posted: Tue Mar 05, 2019 5:28 am
by Guest 2
gonca wrote:
Tue Mar 05, 2019 4: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:

Re: Some language tag missing in demux

Posted: Tue Mar 05, 2019 12:06 pm
by admin
@Guest 2

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?

Re: Some language tag missing in demux

Posted: Tue Mar 05, 2019 3:13 pm
by Guest 2
admin wrote:
Tue Mar 05, 2019 12: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?

Re: Some language tag missing in demux

Posted: Tue Mar 05, 2019 3:34 pm
by admin
Yes, USA. There is no way I can address this without the bluray. Wanna make me a copy if it's not available?

Re: Some language tag missing in demux

Posted: Wed Mar 06, 2019 6:39 pm
by admin
Guest 2 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.

Re: Some language tag missing in demux

Posted: Thu Mar 07, 2019 12:07 pm
by admin
Guest 2 wrote:
Tue Mar 05, 2019 4: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.

Re: Some language tag missing in demux

Posted: Thu Mar 07, 2019 2:19 pm
by admin
I went ahead and slipstreamed the new parsing. Post again if you still have issues.

Re: Some language tag missing in demux

Posted: Fri Mar 08, 2019 3:33 am
by Guest 2
admin wrote:
Thu Mar 07, 2019 2: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 :)