User Tools

Site Tools


ffmpeg:subtitles:convert_a_srt_subtitle_file_to_ass_format

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ffmpeg:subtitles:convert_a_srt_subtitle_file_to_ass_format [2024/12/30 19:58] – created peterffmpeg:subtitles:convert_a_srt_subtitle_file_to_ass_format [2024/12/30 22:50] (current) peter
Line 4: Line 4:
 ffmpeg -i subtitle.srt subtitle.ass ffmpeg -i subtitle.srt subtitle.ass
 </code> </code>
 +
 +returns
 +
 +<file bash subtitle.ass>
 +[Script Info]
 +; Script generated by FFmpeg/Lavc60.31.102
 +ScriptType: v4.00+
 +PlayResX: 384
 +PlayResY: 288
 +ScaledBorderAndShadow: yes
 +YCbCr Matrix: None
 +
 +[V4+ Styles]
 +Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
 +Style: Default,Arial,16,&Hffffff,&Hffffff,&H0,&H0,0,0,0,0,100,100,0,0,1,1,0,2,10,10,10,1
 +
 +[Events]
 +Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
 +Dialogue: 0,0:00:00.00,0:00:02.00,Default,,0,0,0,,This is the first sentence
 +Dialogue: 0,0:00:02.00,0:00:04.00,Default,,0,0,0,,This is the second sentence
 +Dialogue: 0,0:00:04.00,0:00:07.00,Default,,0,0,0,,This is the third sentence
 +Dialogue: 0,0:00:07.00,0:00:10.00,Default,,0,0,0,,This is the forth sentence
 +</file>
 +
 +----
 +
 +===== Create a glow effect in ASS subs =====
 +
 +Add this line to prefix of every subtitles{\fade(200,200)\blur5}
 +
 +<code>
 +{\fade(200,200)\blur5}
 +</code>
 +
 +----
 +
 +<code>
 +{\blur5\3c&HFFC000}
 +</code>
 +
 +This way you do not have to change the Style.
 +
 +----
 +
 +And via this way you can also let the Outline color transform from one to another:
 +
 +<code>
 +{\blur5\3c&HFFC000&\t(\3c&HFF00C5&)}
 +</code>
 +
  
  
ffmpeg/subtitles/convert_a_srt_subtitle_file_to_ass_format.1735588733.txt.gz · Last modified: 2024/12/30 19:58 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki