PDA

View Full Version : How Do I Find Menu Palette Assignments In IfoEdit?


Venge
9th November 2003, 19:42
I'm creating a menu in DVDMaestro based on the original DVD menu. I've got all the video and audio streams and sub pictures. Using the colors SubRip provided in the SPF they seem to be right, but I can't find any indication in the VTS_01_0.IFO which colors are assign to which palette entry or the respective gamma/transparency (0-15). I think I want the information in VMGM_PGCI_UT -> LU_1, but I'm just not seeing it.

Any pointers or software suggestions (MenuEdit doesn't seem to give me the information I want either)?

Lord of the Discs
11th November 2003, 14:40
It is there, after the audio- and subpic-data.
16 lines starting with "color ...".

Venge
12th November 2003, 07:48
Thanks for the reply LotD (by the way, thanks also for your great Web site), but that's the information I've already found. For example:

PGC (program chain):
[00000002] Number of Programs 6 [06]
[00000003] Number of Cells 6 [06]
...
... etc.
...
[0000000c] Audio stream 1 status 32768 [8000]
Audio stream 1 uses stream nr.: 0
[0000000e] Audio stream 2 status 0 [0000]
...
... etc.
...
[0000001c] Sub-picture stream 1 status -2147483647 [80000001]
Sub-picture stream 1 uses stream nr.(4:3): 0
Sub-picture stream 1 uses stream nr.(wide): 0
Sub-picture stream 1 uses stream nr.(letterbox): 0
Sub-picture stream 1 uses stream nr.(pan&scan): 1
[00000020] Sub-picture stream 2 status 0 [00000000]
...
... etc.
...
[000000a3] PG Playback mode 0 [00]
PG Playback mode = sequential
[000000a5] Color 0 Y Cr CB 43 128 128 [2b 80 80 ]
[000000a9] Color 1 Y Cr CB 234 128 128 [ea 80 80 ]
[000000ad] Color 2 Y Cr CB 16 128 128 [10 80 80 ]
[000000b1] Color 3 Y Cr CB 234 128 128 [ea 80 80 ]
[000000b5] Color 4 Y Cr CB 189 155 75 [bd 9b 4b ]
[000000b9] Color 5 Y Cr CB 226 128 128 [e2 80 80 ]
[000000bd] Color 6 Y Cr CB 178 122 123 [b2 7a 7b ]
[000000c1] Color 7 Y Cr CB 226 128 128 [e2 80 80 ]
[000000c5] Color 8 Y Cr CB 181 128 127 [b5 80 7f ]
[000000c9] Color 9 Y Cr CB 181 128 127 [b5 80 7f ]
[000000cd] Color 10 Y Cr CB 181 128 127 [b5 80 7f ]
[000000d1] Color 11 Y Cr CB 181 128 127 [b5 80 7f ]
[000000d5] Color 12 Y Cr CB 181 128 127 [b5 80 7f ]
[000000d9] Color 13 Y Cr CB 181 128 127 [b5 80 7f ]
[000000dd] Color 14 Y Cr CB 181 128 127 [b5 80 7f ]
[000000e1] Color 15 Y Cr CB 144 128 127 [90 80 7f ]

[000000e4] PGC Command Table start byte 236 [00ec]
...
... etc.
...

Those are the 16 colors, in YUV format I believe, that SubRip converts to RGB in the SPF for me. I think the first four are used for the subtitles during the main movie playback. The other 12 are the colors for the menu subpictures. What I'm trying to figure out is exactly which color (4 - 15 above) is assigned to red-unselected, red-selected, red-active, black-unselected, black-selected, etc. (this is how DVDMaestro does it, I'm not sure if it makes sense in any other context). Furthermore, what's the gamma (0-15 scale) of each assigned color (again, this may be DVDMaestro specific); is this in the IFO too or is it in the YUV colors that is lost in the translation to RGB?

Lord of the Discs
12th November 2003, 15:27
You´re right, that´s subtitle data, in the IFO. Menu colors are in
the nav-pack, in the VOB. You can get them with VobEdit, check the
"buttons"-box first, then select a nav-pack on the left, then scroll
down to buttons-info on the right side. But be warned, there are a
lot of nav-packs in a VOB, especially with motion menus.

Dimad
12th November 2003, 17:59
Originally posted by Lord of the Discs
Menu colors are in the nav-pack, in the VOB.

Not exactly. As far as I know actual colors of the menus are in ifos (in corresponding PGC). Nav-packs have 3 color schemes - indexes of colors from the palette in PGC and transparencies. Each button is assigned to one of these 3 color schemes.

I'm not aware of any division of these 16 colors by where they are used.


What I'm trying to figure out is exactly which color (4 - 15 above) is assigned to red-unselected, red-selected, red-active, black-unselected, black-selected, etc. (this is how DVDMaestro does it, I'm not sure if it makes sense in any other context). Furthermore, what's the gamma (0-15 scale) of each assigned color

MenuEdit will let you modify color schemes (i.e. select new indexes, change transparency) and select scheme assignment for buttons.

mpucoder
12th November 2003, 22:16
All true - but. The base colors for a menu ("normal" or "not selected/actioned") are in the subpicture itself, the SET_COLOR command. The button color schemes modify the rectangle defined for the button when "selected" or "actioned". These are still (for the color) indices into the menu PGC's Color Lookup Table (CLUT). Transparency is specified seperately, in the color schemes and subpicture SET_CONTR command.

It may seem weird, but it's neat in that it allows you to use the same video/audio/subpictures for more than one menu, each with a different color theme.

I don't know of any predefined indices for menues, but it stands to reason that each authoring program would have a system for assigning the values.

Lord of the Discs
13th November 2003, 14:50
Thanks, mpucoder.

Where is this CLUT, and those subpic-commands?

mpucoder
13th November 2003, 17:35
The CLUT is the 16 colors in the PGC, starting at offset 0xA4 (see Venge's post).
Unfortunately VobEdit does not interpret subpicture packets (because, like video, the SubPicture Unit (SPU) spans packs and VobEdit has a pack oriented view). The commands follow the pixel data (the second word of the SPU contains the offset to the command area, all relative to an unpacked SPU).

I just noticed another bug to get to Derrow, bytes 0xA2 and 0xA3 of the PGC are reversed. 0xA2 is the playback mode, and 0xA3 is the still time.

Venge
15th November 2003, 14:10
Great! Thanks to all of you. The information is in the nav-pack, starting at [00a3], just like LotD said: I just didn't realize I had to check the buttons box. The information it gives is the very same as what you can more easily get from MenuEdit by pressing the Edit Colors button; my original statement of "MenuEdit doesn't seem to give me the information I want" should read "MenuEdit tells me exactly what I want to know, I'm just too ignorant to understand it." The problem was that the first menu I looked at with MenuEdit had all the buttons' transparency (called contrast by VobEdit and MenuEdit) set to 0 which was very confusing as my first try. Had I tried one more time and examined the next menu also, it would have all been obvious. Sorry for doubting your program Dimad.

Dimad
15th November 2003, 22:32
:) Enjoy!