SRT subtitle file
How to create SRT subtitles
An SRT file contains the following components:
- a number of the caption
start time and end time hours:minutes:seconds,milliseconds --> hours:minutes:seconds,milliseconds00:00:00,000 --> 00:00:05,000
- text
- a blank line to begin the new caption
Advertisement
Create an SRT File
- 1. Open a text editor like Notepad
- 2. Number each line of your caption sequence, starting with 1. To move on, press enter
- 3. Enter the start time and end time, using the following format: hours:minutes:seconds,milliseconds --> hours:minutes:seconds,milliseconds and press enter
- 4. In the next line, begin typing your captionsLimiting captions to 32 characters, with 2 lines per caption.
- 5. Always leave a blank line to indicate a new caption sequence.
- 6. Repeat steps 2 to 5 until you reach the end of the video.
- 7. Now, save the file with a .srt extension, the file is named yoursubtitle.srt in this example.
Example of an SRT file
100:00:00,000 --> 00:00:05,000text 1
200:00:6,000 --> 00:00:10,000{\an7} text top lefts
300:00:11,000 --> 00:00:15,000{\an8} text top center
100:00:16,000 --> 00:00:20,000{\an9} text top right
100:00:21,000 --> 00:00:25,000{\an4} text middle left
100:00:26,000 --> 00:00:30,000{\an5} text middle center
100:00:31,000 --> 00:00:35,000{\an6} text middle right
100:00:36,000 --> 00:00:40,000{\an1} text bottom left
100:00:41,000 --> 00:00:45,000{\an2} text bottom center
100:00:46,000 --> 00:00:50,000{\an3} text bottom right
100:00:51,000 --> 00:00:55,000{i}Text{/i}
100:00:56,000 --> 00:01:00,000{b}Text{/b}
100:01:01,000 --> 00:01:05,000{u}Text{/u}
100:01:06,000 --> 00:01:10,000<font color="red">Text</font>
Set text position
Top-left:
100:00:10,000 --> 00:00:20,000{\an7} text top left
Top-center:
100:00:10,000 --> 00:00:20,000{\an8} text top center
Advertisement
Top-right:
100:00:10,000 --> 00:00:20,000{\an9} text top right
Middle-left:
100:00:10,000 --> 00:00:20,000{\an4} text middle left
Middle-center:
100:00:10,000 --> 00:00:20,000{\an5} text middle center
Middle-right:
100:00:10,000 --> 00:00:20,000{\an6} text middle right
Bottom-left:
100:00:10,000 --> 00:00:20,000{\an1} text bottom left
Bottom-center:
100:00:10,000 --> 00:00:20,000{\an2} text bottom center
Bottom-right:
100:00:10,000 --> 00:00:20,000{\an3} text bottom right
Italic
100:00:10,000 --> 00:00:20,000{i}Text{/i}
Bold
100:00:10,000 --> 00:00:20,000{b}Text{/b}
or
100:00:10,000 --> 00:00:20,000<b>Text</b>
Underline
100:00:10,000 --> 00:00:20,000{u}Text{/u}
or
100:00:10,000 --> 00:00:20,000<u>Text</u>
Font color
100:00:10,000 --> 00:00:20,000<font color="color name or #color_code">Text</font>
100:00:10,000 --> 00:00:20,000<font color="#ff0000">Text</font>
100:00:10,000 --> 00:00:20,000<font color="red">Text</font>
Advertisement
Line Position
Unofficially, text coordinates can be specified at the end of the timestamp line.
100:00:10,000 --> 00:00:20,000 X1:… X2:… Y1:… Y2:…Text