You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gives me black text with a black border in MPC-HC. Should be color = 'FFFFFF' -> white text with black border.
Also RED/BLUE must be byteswapped, i.e. reverse the order of the three bytes: RGB -> BGR (ssa uses BGR it seems).
The text was updated successfully, but these errors were encountered:
Gorrrg
changed the title
[bug] SSA: set the default color to white
[bug] SSA: set the default color to white & swap red/blue channels
Mar 16, 2017
Gorrrg
changed the title
[bug] SSA: set the default color to white & swap red/blue channels
[bug 9c63e7] SSA: set the default color to white & swap red/blue channels
Mar 16, 2017
I fixed the RGB/BGR issue for myself. First I copypasted a function I found on the web that solved this exact problem, and seemed to be decent without any type conversion:
def rev(a):
new = ""
for x in range(-1, -len(a), -2):
new += a[x-1] + a[x]
return new
+added a line to the SSA section calling the reverse function and also changed the default color to white.
if color is None:
color = 'FFFFFF'
else:
color = color.replace('#', '')
color = rev(color)
Haven't tested it extensively but by looking at the SSA file it seems to be ok.
Gives me black text with a black border in MPC-HC. Should be
color = 'FFFFFF'
-> white text with black border.Also RED/BLUE must be byteswapped, i.e. reverse the order of the three bytes: RGB -> BGR (ssa uses BGR it seems).
The text was updated successfully, but these errors were encountered: