Log in

View Full Version : parsing the Stream Information file


stax76
10th May 2004, 22:52
Hi,
I need to figure out the proper language of each stream, I run three loops comparing to the names of the iso table taken from VDM source and comparing to the names of the .NET CultureInfo EnglishName and DisplayName. It works for most but not for all streams. The idx file from VobSub contains different names as well! The idx file contains the two letter id but it doesn't contain if the subtitle is wide etc so I cannot parse this file instead. I don't wont to confuse you so I try to ask a simple question, the name of the languages is it taken from the DVD or only the two or three letter id and the name is taken from a table?


DVD Decrypter stream 6:

0x26 - Subtitle - Suomi - [SubPicture 07: Wide/Letterbox] / LBA: 511915 / PTS: 00:24:21.569 / Delay: 6240ms


VobSub stream 6:

# Finish
id: fi, index: 6

one of both must be a bug, all other 15 streams on the DVD are OK, I cannot test if it's Finish or Suomi since I don't have the DVD, I have only a small sample sent by a beta tester

my iso table taken from VDM source is:

New LanguageItem("Finnish", "fin", "fi")

it's finnish with two n instead with one

I hope you can help

stax76
11th May 2004, 00:42
dont't bother, I think I found the table you are using (in some VB6 sample code how to parse a ifo file that was posted here)

LIGHTNING UK!
12th May 2004, 17:01
Its a 2 character code that's then expanded into a full language using a table.

stax76
12th May 2004, 19:02
yes thanks, I think I've found the same table, it works now smooth. I think VobSub uses a totally different table, different from yours, different from the common ISO table 639 (when I rember right) used in the mkv programs and different from the language classes in .NET but it's not important to DVX since DVX reads the Stream Information file by DVD Decrypter only