[Script Info] ; Reference: askubuntu.com/questions/1133382 ; Script generated by Aegisub 3.2.2 ; http://www.aegisub.org/ Title: Default Aegisub file ScriptType: v4.00+ WrapStyle: 0 ScaledBorderAndShadow: yes YCbCr Matrix: None [ASS Sample Script] Last Style Storage: Default Video Position: 749 [V4+ Styles] ; Colour Code: H where aa refers to alpha or transparency, bb, gg and rr stands for BGR channel. ; The values are hexadecimal numbers: 127 = 16 x 7 + 11 = 7A, 255 = 16 x 15 + 15 = FF ; Thus: &H00000000 is BLACK and &H00FFFFFF is WHITE ; Bold: defines whether text is bold (true = -1) or not (false = 0) 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: StyleX,Arial,25,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,-1,0,0,0,100,100,0,0,1,0,0,2,10,10,10,1 Style: StyleY,Arial,250,&H00000000,&HFF0000FF,&HFF000000,&H00000000,0,0,0,0,10,10,0,0,1,0,0,4,10,10,50,1 [Events] ; These contain the subtitle text, their timings, and how it should be displayed, Effect = Transition Effect ; Time is specified in h:mm:ss:hundreths format, default location is bottom-centre of the video Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:00.00,0:00:15.00,StyleX,L1,0,0,0,"Scroll up;0;0;0;fadeawayheight",{\fad(500,500)}Line-1-1 \N Line-1-2 Dialogue: 0,0:00:16.00,0:00:24.00,StyleX,L2,0,0,0,,{\fad(500,500)}Line-2-1 \N Line-2-2 Dialogue: 0,0:00:25.00,0:00:30.00,StyleX,L3,0,0,0,,{\fad(500,500)}Line-3-1 \N Line-3-2 Dialogue: 0,0:00:30.00,0:00:35.00,StyleX,L4,0,0,0,,{\fad(500,500)}Line-4-1 \N Line-4-2 [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text ; A{\k12}B{\k20} define the character display time (12 and 20 ms) or time of the word or phrase Dialogue: 0,0:00:00.00,0:00:10.00,StyleY,TXT,0,0,0,0,{\pos(10,100)}{\k20}T{\k20}H{\k20}I{\k20}S{\k20} I{\k20}S {\k20}A{\k20}B{\k20}O{\k20}U{\k20}T \N\N T{\k20}y{\k20}p{\k20}e{\k20}w{\k20}r{\k20}i{\k20}t{\k20}t{\k20}e{\k20}r {\k20}E{\k20}f{\k20}f{\k20}e{\k20}c{\k20}t {\k20}i{\k20}n \N\N {\k20}V{\k20}i{\k20}d{\k20}e{\k20}o{\k20}s {\k20}u{\k20}s{\k20}i{\k20}n{\k20}g {\k20}F{\k20}F{\k20}m{\k20}p{\k20}e{\k20}g ; Keep the end duration of a particular dialogue till end of the video in case you want it to be visible throughout ; "Scroll up;y1;y2;delay[;fadeawayheight]" means that the text/picture will scroll up the screen. The parameters after the words "Scroll up" are separated by semicolons. The y1 and y2 values in pixels define a vertical region on the screen in which the text will scroll. The values are in pixels, and it doesn't matter which value (top or bottom) comes first. If the values are zeroes then the text will scroll up the full height of the screen. The delay value can be a number from 1 to 100, and it slows down the speed of the scrolling - zero means no delay and the scrolling will be as fast as possible. When delay is greater than 0, moving one pixel will take (1000/delay) second. fadeawayheight and fadeawaywidth parameters can be used to make the scrolling text at the sides transparent. Similarly, "Scroll down;y1;y2;delay[;fadeawayheight]" can be used. ; “Banner;delay” means that text will be forced into a single line, regardless of length, and scrolled from right to left accross the screen. The delay value can be a number from 1 to 100, and it slows down the speed of the scrolling - zero means no delay and the scrolling will be as fast as possible. ; Following code uses a blank image of size 360x180 and add the text defined in Typewritter.ass file to create a video of duration 10 [s] ; ffmpeg -f lavfi -i color=size=360x180:rate=30:color=white -vf "subtitles=Typewriter.ass" -t 10 -y TypewriterEffect.mp4