PDA

View Full Version : ASS question : predefined colors and alpha channels


Le Furet
15th November 2003, 14:20
How to select them ?

I tried something like

{\2c&HAAAAAA&}{\2c}Bla-bla

or

{\2c&HAAAAAA&}{\c\2c}Bla-bla

without seeing anything...

(Sorry to bother with such stupid questions but I try to understand fully ASS format, and there's some work ^^)

Liisachan
15th November 2003, 18:57
Originally posted by Le Furet
How to select them ?

I tried something like

{\2c&HAAAAAA&}{\2c}Bla-bla

or

{\2c&HAAAAAA&}{\c\2c}Bla-bla

without seeing anything...

(Sorry to bother with such stupid questions but I try to understand fully ASS format, and there's some work ^^)

\2c and \2a is mainly for Karaoke. If you want to make the letters transparent with opaque outline, try {\1a&Hff&}

You should read C:\Program Files\Gabest\VobSub\Docs\ass-specs.doc before asking :)

Le Furet
16th November 2003, 04:22
You should read C:\Program Files\Gabest\VobSub\Docs\ass-specs.doc before asking

What do you think I did ?

I am right trying to elucidate some mysteries of this too short doc. It says it's possible to use predefined colors (and not only for karaoke), I want to know how and it doesn't mention it (unless I missed something).

So thanks for the answer, but it isn't really what I expected. The mystery remains...

Le Furet
16th November 2003, 04:47
Forgot the smiley :)

Of course, it's very nice of you to answer. I just want to let as few questions as possible unanswered... So I suppose I'll post frequently "stupid" questions in the days coming, and be sure that everytime I'll have had a look at the doc before...

Liisachan
16th November 2003, 06:05
Well, can you use SSA? ASS is almost like SSA.

1) Define the style "foo" like this:

[V4+ Styles]
Style: foo,Verdana,24,&H456789ab,&H0000ffff,&H00000000,&H80000000,...

4 Colors with Alpha are defined:
Color #1 = Primary
Color #2 = "Suspended" color for Karaoke
Color #3 = Border
Color #4 = Shadow

- What does 456789ab mean?
Alpha = 45, B = 67 G = 89 R = AB, in hex (min=00, max=ff)

Actually, "color code" in [Styles] is supposed to be in base-10, not in hex, in the original SSA spec. But hex numbers are easier to handle in this case (like HTML color code), and textsub, VSFilter etc. are ok with hex numbers even in the [Styles] section.

2) Now, you are ready to use the style "foo" like this:
Dialogue: 1,0:00:00.00,0:00:05.00,foo,
Dialogue: 1,0:00:10.00,0:00:15.00,foo,
...

Le Furet
16th November 2003, 18:01
Thanks, that's exactly what I wanted to know. :thanks:

And, no, I don't know SSA very well, just the basis, but never played with colors.