XMedia Recode

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,milliseconds
    00:00:00,000 --> 00:00:05,000
  • text
  • a blank line to begin the new caption

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 captions
    Limiting 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

1
00:00:00,000 --> 00:00:05,000
text 1
2
00:00:6,000 --> 00:00:10,000
{\an7} text top lefts
3
00:00:11,000 --> 00:00:15,000
{\an8} text top center
1
00:00:16,000 --> 00:00:20,000
{\an9} text top right
1
00:00:21,000 --> 00:00:25,000
{\an4} text middle left
1
00:00:26,000 --> 00:00:30,000
{\an5} text middle center
1
00:00:31,000 --> 00:00:35,000
{\an6} text middle right
1
00:00:36,000 --> 00:00:40,000
{\an1} text bottom left
1
00:00:41,000 --> 00:00:45,000
{\an2} text bottom center
1
00:00:46,000 --> 00:00:50,000
{\an3} text bottom right
1
00:00:51,000 --> 00:00:55,000
{i}Text{/i}
1
00:00:56,000 --> 00:01:00,000
{b}Text{/b}
1
00:01:01,000 --> 00:01:05,000
{u}Text{/u}
1
00:01:06,000 --> 00:01:10,000
<font color="red">Text</font>

Set text position

Top-left:

1
00:00:10,000 --> 00:00:20,000
{\an7} text top left

Top-center:

1
00:00:10,000 --> 00:00:20,000
{\an8} text top center

Top-right:

1
00:00:10,000 --> 00:00:20,000
{\an9} text top right

Middle-left:

1
00:00:10,000 --> 00:00:20,000
{\an4} text middle left

Middle-center:

1
00:00:10,000 --> 00:00:20,000
{\an5} text middle center

Middle-right:

1
00:00:10,000 --> 00:00:20,000
{\an6} text middle right

Bottom-left:

1
00:00:10,000 --> 00:00:20,000
{\an1} text bottom left

Bottom-center:

1
00:00:10,000 --> 00:00:20,000
{\an2} text bottom center

Bottom-right:

1
00:00:10,000 --> 00:00:20,000
{\an3} text bottom right

Italic

1
00:00:10,000 --> 00:00:20,000
{i}Text{/i}

Bold

1
00:00:10,000 --> 00:00:20,000
{b}Text{/b}

or

1
00:00:10,000 --> 00:00:20,000
<b>Text</b>

Underline

1
00:00:10,000 --> 00:00:20,000
{u}Text{/u}

or

1
00:00:10,000 --> 00:00:20,000
<u>Text</u>

Font color

1
00:00:10,000 --> 00:00:20,000
<font color="color name or #color_code">Text</font>
1
00:00:10,000 --> 00:00:20,000
<font color="#ff0000">Text</font>
1
00:00:10,000 --> 00:00:20,000
<font color="red">Text</font>

Line Position

Unofficially, text coordinates can be specified at the end of the timestamp line.

1
00:00:10,000 --> 00:00:20,000 X1:… X2:… Y1:… Y2:…
Text