VTT
VTT (Web Video Text Tracks) is the standard subtitle format for HTML5 video. It provides advanced features such as styling, positioning, and metadata support.
Format
- The file must begin with the
WEBVTTheader. - Subtitle blocks, known as cues, are separated by blank lines.
- Each cue consists of:
- Cue identifier (Optional): A string used to identify the cue (e.g.,
intro). - Timecode: The start and end times, separated by
-->. Standard formats aremm:ss.mssorhh:mm:ss.mss. LingoHub supports both the period.and the comma,as decimal separators for milliseconds. - Cue settings: Optional settings (e.g.,
align:start size:50%) can follow the timecode. - Payload: The subtitle text content.
- Cue identifier (Optional): A string used to identify the cue (e.g.,
- LingoHub parses
NOTEblocks as comments. - LingoHub preserves
STYLEblocks during import and export. - The timecode line, including any settings, is used as the segment key (e.g.,
00:00:00.000 --> 00:00:02.500 align:start).
Example
Additional example files are available on GitHub.
WEBVTT
NOTE
This is a comment block in a VTT file.
intro_slide
00:00:00.000 --> 00:00:10.700
Welcome to the presentation.
main_content
00:00:10.700 --> 00:00:47.600
This is the main payload of the subtitle.Used by
- HTML5
<track>element. - Modern web video players such as Video.js and Plyr.
- Major streaming platforms.
References
Updated 28 days ago
