Introduction
SubStation Alpha was a Windows subtitle editor of the 1990s by Kotus, and version 4.00
of its script format is what most .ssa files use. Styles add fonts, colours
and positioning to plain subtitles. Its successor,
Advanced SubStation Alpha, replaced the
style layout and added much more.
Modern renderers such as VSFilter and libass still read these files, and apply most of the newer tags to them.
Structure
The file is text in INI-like sections, with ScriptType: v4.00 in its
[Script Info] section. The full reference is in the pages below.
- Script info – the header and its keys
- Styles – the named styles of
[V4 Styles]and their 18 fields - Events – dialogue, comments and effects in
[Events] - Override codes – codes inside subtitle text
- Fonts and graphics – embedded files and how they are encoded
[Script Info]
ScriptType: v4.00
Collisions: Normal
[V4 Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding
Style: Default,Arial,28,65535,65535,65535,-2147483640,-1,0,1,3,0,2,30,30,30,0,0
[Events]
Format: Marked, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: Marked=0,0:00:01.00,0:00:03.50,Default,,0000,0000,0000,,Where are we going?
Not described
Unknown
- Reference: which override codes SSA v4 itself defined, as opposed to those that arrived later with v4+ and VSFilter or libass; the sources do not separate them.
- Viewer: the explorer reads SSA scripts with the same viewer as ASS: sections, Format-driven fields of every style and event, override tags explained with their source, embedded fonts and graphics opened as files, a rendered preview of events and every problem. The preview shows colours, bold, italic, underline, strike-out, font, size, spacing, outline and shadow; it does not draw positions, rotations, clips, animations, karaoke timing or drawings. SSA-only behaviour that libass folds into its own (the SSA alignment values, the Marked field, the shared outline and shadow colour) is read as libass reads it and labelled so; where the SSA document and libass differ, the viewer says which a problem comes from.
Variants
- SubStation Alpha v4.00 – the older
.ssascripts, with[V4 Styles]and legacy alignment codes - Advanced SubStation Alpha v4.00+ –
.assscripts, with layers, alpha and numeric-keypad alignment