Introduction
Advanced SubStation Alpha (.ass) is version 4.00+ of the SubStation Alpha
script format. It added layers, an alpha channel in colours, rotation and scaling in
styles, and many override tags for movement, fades and vector drawing. It is the
format most fan subtitling uses, and Aegisub,
libass and VSFilter are its main
implementations.
The written specification covers much of it, but in practice the format is defined by what VSFilter and libass do.
Structure
The file is text in INI-like sections, each beginning with a name in brackets, and
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 23 fields - Events – dialogue, comments and effects in
[Events] - Override tags – every tag inside text in braces
- Fonts and graphics – embedded files and how they are encoded
[Script Info]
ScriptType: v4.00+
PlayResX: 1920
PlayResY: 1080
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, Bold, Italic, Alignment, MarginV
Style: Default,Arial,64,&H00FFFFFF,0,0,2,40
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:01.00,0:00:03.50,Default,,0,0,0,,Where are we going?
Dialogue: 0,0:00:04.00,0:00:06.25,Default,,0,0,0,,{\i1}Somewhere we have never been.{\i0}
Not described
Known, not yet covered
- Reference: the pages follow the SubStation Alpha v4.00+ script format document, the Aegisub manual and libass; the audit recorded no missing field. The status stays partial until an independent check has been made.
- Viewer: the explorer shows the sections, every style and event field in the order the Format line gives, the override tags and drawing commands explained (each labelled as in the SSA document or only in libass), UUencoded fonts and graphics decoded and opened as files, a rendered preview of events with their styles, and every problem (labelled SSA spec, libass or Note). The preview draws colours, bold, italic, underline, strike-out, font, size, spacing, outline and shadow and the tags that change them; it does not draw positions, rotations, shear, clips, animations, fades, karaoke timing or drawings, and lists them for each event. The [Graphics] section is in the SSA document but libass does not read it, so it is decoded from the document alone. Sections of other editors (Aegisub's extradata and project garbage) are shown as lines that are not read. The viewer was checked against ffprobe and ffmpeg for the event count, times and lines, not against a rendering.
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
Links
Software
- Aegisub – free subtitle editor built around ASS, with timing and typesetting tools (Windows, macOS, Linux)
- Subtitle Edit – free subtitle editor that opens, edits and converts ASS (Windows, Linux)
- mpv – free media player that renders ASS styling and effects (Windows, macOS, Linux)
- VLC media player – free media player that shows ASS subtitles (Windows, macOS, Linux, mobile)
- MKVToolNix – adds ASS tracks and their fonts to MKV files (Windows, macOS, Linux)
- FFmpeg – command-line tools that convert ASS and burn it into video (Windows, macOS, Linux)
Developers
Reference
- ASS override tags – Aegisub’s reference for the tags inside subtitle text