A subtitle text file contains line by line listings of each subtitle in a video. Subtitles are used to display text at a specific time in a video. If the video will not have subtitles, you may skip ahead to the next section; however, it is still advised to read this section to understand how subtitles are added to a video.
Multiple subtitle files are allowed — one file per subtitle track. This allows for the creation of a subtitle file for each language, as some languages may require different start and end times due to the lengths of the subtitles in that language and the time it takes to read.
Figure 5: Choose a subtitle track and browse for a file.
The first line of the subtitle file (other than any comment lines) should contain the display interval in milliseconds (typically 1000). This value is as a base for determining the start and end times of each subtitle. Each line following the first includes three pieces of information: The start time, the end time, and the message ID. The message ID will be used in code to display the appropriate string of text. Alternatively, this parameter could be used as the actual string to be displayed as the subtitle. For a detailed explanation on how to use subtitles in Flash files, please refer to Getting Started: Working with Videos in ActionScript.
Single Line Subtitle Format
start time, end time, messageID
Contents of an Example Subtitle.txt File
1000 2000, 5000, This is the first subtitle. 8000, 11000, subtitleId2