ffmpeg:subtitles:styling_the_subtitles
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ffmpeg:subtitles:styling_the_subtitles [2024/12/30 20:37] – created peter | ffmpeg:subtitles:styling_the_subtitles [2024/12/30 20:46] (current) – peter | ||
---|---|---|---|
Line 2: | Line 2: | ||
Set the Style in the Subtitle File Itself. | Set the Style in the Subtitle File Itself. | ||
+ | |||
+ | ===== SRT Files ===== | ||
For SRT files, the options for the subtitle styles are limited. | For SRT files, the options for the subtitle styles are limited. | ||
- | Basic styling can be set using HTML markups like <b>, <i>, <u>, and < | + | * Basic styling can be set using HTML markups like <b>, <i>, <u>, and < |
Line 26: | Line 28: | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== ASS Files ===== | ||
+ | |||
+ | For ASS files, there are many more options for the subtitle styles. | ||
+ | |||
+ | These are the styles options that can be set in an ASS file: | ||
+ | |||
+ | < | ||
+ | [V4+ Styles] | ||
+ | Format: Name, Fontname, Fontsize, PrimaryColour, | ||
+ | Style: Default, | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Example ==== | ||
+ | |||
+ | To change the font style to Futura and font color to “& | ||
+ | |||
+ | <file bash subtitle.ass> | ||
+ | [Script Info] | ||
+ | ; Script generated by FFmpeg/ | ||
+ | ScriptType: v4.00+ | ||
+ | PlayResX: 384 | ||
+ | PlayResY: 288 | ||
+ | ScaledBorderAndShadow: | ||
+ | YCbCr Matrix: None | ||
+ | |||
+ | [V4+ Styles] | ||
+ | Format: Name, Fontname, Fontsize, PrimaryColour, | ||
+ | Style: Default, | ||
+ | |||
+ | [Events] | ||
+ | Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text | ||
+ | Dialogue: 0, | ||
+ | Dialogue: 0, | ||
+ | Dialogue: 0, | ||
+ | Dialogue: 0, | ||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * **Futura** is the Fontname. | ||
+ | * **& | ||
+ | |||
+ | PrimaryColour is in hexadecimal in Blue Green Red (BGR) order. | ||
+ | |||
+ | * This is the opposite order of HTML color codes. | ||
+ | * They must always start with **&H**. | ||
+ | |||
+ | </ | ||
+ |
ffmpeg/subtitles/styling_the_subtitles.1735591022.txt.gz · Last modified: 2024/12/30 20:37 by peter