Subtitle Information Files

When subtitles are required for a movie, a subtitle information file should be prepared. This is a text file that describes when to display subtitles (character string).

Format of a Subtitle Information File

  1. The time unit (integer) is defined at the first line.
  2. At the second line or greater, the start time (INTIME), ending time (OUTTIME) and the subtitle content are defined in a line and these data are separated by ',' (comma).
  3. The start time (ending time) divided by the time unit is in seconds.
  4. Display interval does not include the ending time.
  5. ',' (comma) in the subtitle content is processed as a character.
  6. The line starting from ';' (semi-colon) is processed as a comment.
  7. Supported character codes are ASCII, Shift JIS, UTF-8 and UTF-16 (UTF-16LE).

The content is put into a movie without modification.

Subtitle Information File Examples

Example 1

Subtitle information is written based on the playback time. In this example, the time unit is 1000. Each subtitle content is displayed for a period of 0 – 2 sec, 5 - 7.5 sec, and 7.5 – 10 sec, respectively.

;INTIME, OUTTIME, Subtitle, Comment
1000
0, 2000, FirstMessage.
5000, 7500, Second Message.
7500, 10000, Third Message.

Example 2

Subtitle information is written based on the frame number. For example, if the time unit is 29970 for 29.97 fps, the display interval for one frame is 1000, and the number of displayed frames is 29.97*1000 = 29970. In this example, the time unit is 29970. Each subtitle content is displayed for a period of 0 – 100 frame, 150 – 200 frame, and 200 – 250 frame, respectively.

;INTIME, OUTTIME, Subtitle, Comment
29970
0, 100000, FirstMessage.
150000, 200000, Second Message.
200000, 250000, Third Message.