ffmpeg:subtitles:ass_file_syntax
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ffmpeg:subtitles:ass_file_syntax [2024/12/30 23:34] – peter | ffmpeg:subtitles:ass_file_syntax [2024/12/30 23:49] (current) – peter | ||
---|---|---|---|
Line 5: | Line 5: | ||
* SubStation Alpha (SSA) is a subtitling / script format that supports text formatting, animation, graphics and karaoke. | * SubStation Alpha (SSA) is a subtitling / script format that supports text formatting, animation, graphics and karaoke. | ||
- | ---- | ||
- | |||
- | ===== File Specification ===== | ||
- | |||
- | SSA and ASS files are plain text files. | ||
- | |||
- | * ASS added Unicode support. | ||
- | |||
- | ---- | ||
- | |||
- | ===== ASS (SSA V4+) ===== | ||
ASS is an improvement upon the SSA V4 specification. | ASS is an improvement upon the SSA V4 specification. | ||
Line 27: | Line 16: | ||
Fields on the line data are separated by a comma and, with the exception of the Text field, which should be the last field, must not contain any commas. | Fields on the line data are separated by a comma and, with the exception of the Text field, which should be the last field, must not contain any commas. | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== File Specification ===== | ||
+ | |||
+ | SSA and ASS files are plain text files. | ||
+ | |||
+ | * ASS added Unicode support. | ||
---- | ---- | ||
Line 51: | Line 49: | ||
{{c|key1|Style: | {{c|key1|Style: | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** | ||
+ | |||
+ | * **Format**: | ||
+ | * **Style**: | ||
+ | |||
+ | </ | ||
---- | ---- | ||
- | Format | + | ===== Styles ===== |
- | Defines the format of subsequent Style lines. This is provided for backward-compatibility. | + | |
- | Style | + | |
- | Defines a style. The style is subsequently identified by its Name field. | + | |
- | + | ||
- | | + | |
^Field^Description^ | ^Field^Description^ | ||
Line 95: | Line 96: | ||
^Field^Description^ | ^Field^Description^ | ||
|Layer|An integer indicating the layer the subtitle is in. Subtitles having different layer numbers will be ignored during collision detection. Lower layer numbers are drawn first.| | |Layer|An integer indicating the layer the subtitle is in. Subtitles having different layer numbers will be ignored during collision detection. Lower layer numbers are drawn first.| | ||
- | |Start|The start time of the subtitle. See the Data types section.| | + | |Start|The start time of the subtitle. See the **Data types** section.| |
|End|The end time of the subtitle.| | |End|The end time of the subtitle.| | ||
|Style|The style to be used by the script. Styles are defined in the Styles section.| | |Style|The style to be used by the script. Styles are defined in the Styles section.| | ||
Line 107: | Line 108: | ||
|::: | |::: | ||
|Text|The subtitle text. This is a special field in the sense that it must always be the last field, and can contain commas.| | |Text|The subtitle text. This is a special field in the sense that it must always be the last field, and can contain commas.| | ||
+ | |||
The following are the Event section descriptors: | The following are the Event section descriptors: | ||
Line 183: | Line 185: | ||
---- | ---- | ||
- | Color | + | ===== Data types ===== |
- | Color values are expressed in hexadecimal BGR format as & | + | |
- | Boolean values (Styles section) | + | |
- | -1 is true, 0 is false. | + | |
- | Alignment | + | |
- | Alignment values are based on the numeric keypad. 1 - bottom left, 2 - bottom center, 3 - bottom right, 4 - center left, 5 - center center, 6 - center right, 7 - top left, 8 - top center, 9 - top right. In addition to determining the position of the subtitle, this also determines the alignment of the text itself. | + | |
- | Time | + | |
- | Time is expressed as h:mm:ss:xx (xx being hundredths of seconds). The hour can only be a single digit. | + | |
+ | * **Color**: | ||
+ | * Transparency (alpha) can be expressed as & | ||
+ | * **Boolean values (Styles section)**: | ||
+ | * **Alignment**: | ||
+ | * 1 - bottom left, 2 - bottom center, 3 - bottom right, 4 - center left, 5 - center center, 6 - center right, 7 - top left, 8 - top center, 9 - top right. | ||
+ | * In addition to determining the position of the subtitle, this also determines the alignment of the text itself. | ||
+ | * **Time**: | ||
+ | * The hour can only be a single digit. | ||
---- | ---- | ||
Line 197: | Line 200: | ||
===== References ===== | ===== References ===== | ||
- | http:// | + | https:// |
https:// | https:// | ||
+ | |||
+ | https:// |
ffmpeg/subtitles/ass_file_syntax.1735601646.txt.gz · Last modified: 2024/12/30 23:34 by peter