mpucoder
8th January 2005, 21:35
There is certainly something wrong with SubRip 1.17.1 when it comes to color mappings. The net result is that when using an sst produced by SubRip 1.17.1 background and E2 are swapped, as well as pattern and E1.
It can be corrected in the sst file by reversing all the colors, for example this is what the file will contain:
E2 (255 0 0 ===)
E1 (0 0 0 ===)
PA (0 0 255 ===)
BG (255 255 255 ===)
And this is what to change it to if you want the same color numbers as the original:
BG (255 0 0 ===)
PA (0 0 0 ===)
E1 (0 0 255 ===)
E2 (255 255 255 ===)
Of course, that is not what Scenarist recommends, but it corrects for a problem in the bitmap palette itself. eg color 0 of the SPU gets mapped to color 0 of the bmp, but the color of palette entry 0 (red) matches E2, which then becomes color 3 in a newly encoded SPU.
So why does the picture display OK without these changes? The colors and contrast values are also listed in the reverse order. eg the original set_color and set_contr commands are:
03 11 02 04 ff f0
The commands Scenarist makes from the SubRip sst are:
03 20 11 04 0f ff
So, while the subpicture will look alright, you cannot get a binary compare. Nor can you work with the subpictures in Scenarist unless you bear in mind that definitions are swapped.
It can be corrected in the sst file by reversing all the colors, for example this is what the file will contain:
E2 (255 0 0 ===)
E1 (0 0 0 ===)
PA (0 0 255 ===)
BG (255 255 255 ===)
And this is what to change it to if you want the same color numbers as the original:
BG (255 0 0 ===)
PA (0 0 0 ===)
E1 (0 0 255 ===)
E2 (255 255 255 ===)
Of course, that is not what Scenarist recommends, but it corrects for a problem in the bitmap palette itself. eg color 0 of the SPU gets mapped to color 0 of the bmp, but the color of palette entry 0 (red) matches E2, which then becomes color 3 in a newly encoded SPU.
So why does the picture display OK without these changes? The colors and contrast values are also listed in the reverse order. eg the original set_color and set_contr commands are:
03 11 02 04 ff f0
The commands Scenarist makes from the SubRip sst are:
03 20 11 04 0f ff
So, while the subpicture will look alright, you cannot get a binary compare. Nor can you work with the subpictures in Scenarist unless you bear in mind that definitions are swapped.