Log in

View Full Version : [Muxman]Help me with subpicture in .mxp file


newjack
6th November 2005, 14:12
this is the sst .bmp of my subpicture
http://img285.imageshack.us/img285/8852/vts030el0003v001c0015ku.gif

How can I modify the code below to have some subs of white color instead that blue and red ?
[My .mxp muxman file]
File=.\DATA\Language Pack\SUB\VTS_03_0slo_1079_v001_c010.bmp
Start=01:36:44:13 (145113)
Forced Start=No
Time Code=PAL
Duration=00:00:03:23
Origin=0,0
Display Area=0,2,719,574
Color 1(Pa)=0000ff & & &
Color 2(E1)=ff0000 & & &
Color 3(E2)=000000 & & &
Color=1 3 4 2
Contr=15 15 0 15
[/My .mxp muxman file]

Zeul
6th November 2005, 14:32
The colors in the bmp are not neccesarily the ones that are finally shown. To understand the bmp:

in your script above:

color1(PA) = blue (ie the background)
color2(E1) = red
color3(E2) = black

the next important set is :

color=1 3 4 2
contrast=15 15 0 15

the order of color/contrast is E2, E1, PA, Bg

so any color that is determined as E2 (black) will have a contrast of 15 (=100%), and will be shown as color 1. Color 1 is the color in the PGC palette of the IFO. the same for E1, PA, Bg. PA(=blue) will be shown as contrast 0 (=0%); which will be correct - you don't want to see a blue screen do you :D

Now to change the actual color shown, open the mxp and at the very top you will see the palette. This is the palette that is put into the PGC of the IFO. So, to see any colors that are classed as E2 (black in the bmp) as white subtitles you must alter the correct entry in the correct palette that is being used by the PGC that shows this segment (usually default palette). Because E2 is mapped as color 1 above you need to alter line#1 of the palette (NB The count starts at 0, so the physical first line in the palette is actually line#0 -> so you want the 2nd line).

You want white subs, so the RGB code will be 255,255,255.
Now do the same for E1 (unless you want the outside of the subtitles a different color, for example black.)

Alternatively change the color mapping to the PGC. ie if line#0 is white (255,255,255) then you could change
color=1 3 4 2 to color=0 3 4 2 (E2 now uses line#0 instead)

Well that wraps it up i think :D

newjack
6th November 2005, 17:31
Excuse but it doesn't return.
This is the Palette:

Item=Palette
{
Name=DefaultPalette
Color 0=0, 0, 255
Color 1=255, 0, 0
Color 2=0, 0, 0
Color 3=255, 255, 255
Color 4=0, 255, 0
Color 5=255, 0, 255
Color 6=255, 255, 0
Color 7=0, 125, 125
Color 8=125, 125, 125
Color 9=225, 225, 225
Color 10=125, 0, 0
Color 11=0, 125, 0
Color 12=0, 0, 125
Color 13=222, 0, 255
Color 14=222, 125, 0
Color 15=125, 0, 125
}

and this is the code from me modified:

Display Area=0,2,719,574
Color 1(Pa)=0000ff & & &
Color 2(E1)=ff0000 & & &
Color 3(E2)=000000 & & &
Color=3 2 4 2
Contr=15 15 0 15

and this is the final result:
http://img187.imageshack.us/img187/9733/bev1mo.jpg

what of white has well little :confused:

mpucoder
6th November 2005, 19:11
That's because of an inconsistency in the color numbering by Scenarist that is continued in MuxMan.
In the CLUT and Palette description the colors are numbered from 0 to 15, but in .sst and .scp files (and also .mxp for consistency) the color= statement uses 1 based numbers (1 to 16 - see this page (http://www.mpucoder.com/Muxman/mxp/substrm.html) ).

Just add 1 to each number, ie 4 3 5 3

newjack
6th November 2005, 19:39
Now it's OK. Thank you so much :)