Log in

View Full Version : Program to read color pallette of subs


rapscallion
11th July 2012, 18:09
I've searched till I'm blue in the face.....

Is there any program that can display/reveal the color pallette of BD subs, either from the *.m2ts or the *.sup?

I've got a sup file from Mission Impossible-Ghost Protocol that's a orangish- yellow that I want to enter into Tsmuxer but I cant't duplicate the color in Tsmuxer's pallette.

So, to be able to read the original would be a big help.

http://img406.imageshack.us/img406/1209/origorangecropped.jpg

SassBot
12th July 2012, 14:50
Well if you post the .sup file I can tell you the palette.

rapscallion
12th July 2012, 20:15
Thanks, that would be great !

Here it is : http://www.mediafire.com/file/s05j0f8aagtpp31/00800.track_4613.sup

SassBot
12th July 2012, 20:49
The colors I get are from the palette are:

0x00000000, 0xFFF0C438, 0xFF141414, 0xFF9D8125, 0xFFE1B933, 0xFFD4AD30, 0xFFE9BF37, 0xFF846C1D, 0xFF745F1B, 0x1F141414, 0xFFBB992B, 0x2F141414, 0xFF615016, 0xFFC3A02D, 0xFFDBB333, 0x4F141414, 0xFFA98827, 0xFF907621, 0x7F141414, 0xFFCBA62F, 0xFFB29129, 0x0F141414, 0xBF141414, 0x9F141414, 0x3F141414, 0x5F141414, 0x8F141414, 0x64141414, 0xAF141414, 0xCF141414

This is in the format of #AARRGGBB.

SassBot
12th July 2012, 20:52
Just to follow up, the color I think you want is 0xFFF0C438.

rapscallion
12th July 2012, 20:55
Thanks, but that's not a format I can use in Tsmuxer.

For example :
Hue- 30............... Red- 227
Sat- 170............Green- 193
Lum- 150...............Blue- 91

Edit: BTW, when I enter the above, the result is 0x005BC1E3, which is pretty close to the sub color.
However, I can't do the reverse.

SassBot
12th July 2012, 20:56
Okay, just do a simple hex to decimal translation of the R, G and B values. Takes only a couple of seconds in Windows calculator.

rapscallion
12th July 2012, 21:14
Now you've lost me. I don't know correct r,g,b values.
Win XP calculator doesn't show a hex --> dec option (in scientific mode I presume)

SassBot
12th July 2012, 21:16
Programmer mode is what you use. The decimal values are Red: 240, Green: 196, and Blue: 56.

rapscallion
12th July 2012, 21:27
OK, when I enter the Red: 240, Green: 196, and Blue: 56. , Tsmuxer result is: 0x0038C4F0 maybe a non standard format?

Quite different than 0xFFF0C438

SassBot
12th July 2012, 21:32
Yes, it uses the normal Windows way which is #AABBGGRR. It's just a reverse order.

rapscallion
12th July 2012, 21:39
Thanks for all your help ( I would sure like to know how you did all that),

I'm going to run a video comparison, with captured screenies, and see how it looks.

BTW, there is no "programmer" mode in the Win XP calc.

SassBot
12th July 2012, 21:41
I opened the file in bdsup2sub with the debugger on and saw what the palette decoded to. I then exported the SUP as PNG files and used the color dropper in Paint.NET to get the matching hex color.

rapscallion
12th July 2012, 21:53
Thank you for the info!....I'll let you know how the comparison goes in a little while.

Edit: Looks great ! Thanks again, I really appreciate it.