.vtt
   HOME

TheInfoList



OR:

WebVTT (Web Video Text Tracks) is a
World Wide Web Consortium The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web. Founded in 1994 by Tim Berners-Lee, the consortium is made up of member organizations that maintain full-time staff working together in ...
(W3C) standard for displaying timed text in connection with the
HTML5 HTML5 (Hypertext Markup Language 5) is a markup language used for structuring and presenting hypertext documents on the World Wide Web. It was the fifth and final major HTML version that is now a retired World Wide Web Consortium (W3C) recommend ...
<track> element. The early drafts of its specification were written by the
WHATWG The Web Hypertext Application Technology Working Group (WHATWG) is a community of people interested in evolving HTML and related technologies. The WHATWG was founded by individuals from Apple Inc., the Mozilla Foundation and Opera Software, ...
in 2010 after discussions about what caption format should be supported by HTML5—the main options being the relatively mature,
XML Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
-based Timed Text Markup Language (TTML) or an entirely new but more lightweight standard based on the widely used
SubRip SubRip is a free software program for Microsoft Windows which extracts subtitles and their timings from various video formats to a text file. It is released under the GNU GPL. Its subtitle format's file extension is .srt and is widely supported ...
format. The final decision was for the new standard, initially called WebSRT (Web Subtitle Resource Tracks). It shared the .srt file extension and was broadly based on the SubRip format, though not fully compatible with it. The prospective format was later renamed WebVTT. In the January 13, 2011, version of the HTML5 Draft Report, the <track> element was introduced and the specification was updated to document WebVTT cue text rendering rules. The WebVTT specification is a W3C Candidate Recommendation, and the basic features are supported by all major browsers.


Main differences from SubRip

* WebVTT's first line starts with ''WEBVTT'' after the optional
UTF-8 UTF-8 is a character encoding standard used for electronic communication. Defined by the Unicode Standard, the name is derived from ''Unicode Transformation Format 8-bit''. Almost every webpage is transmitted as UTF-8. UTF-8 supports all 1,112,0 ...
byte order mark The byte-order mark (BOM) is a particular usage of the special Unicode character code, , whose appearance as a magic number at the start of a text stream can signal several things to a program reading the text: * the byte order, or endianness, ...
* There is space for optional header data between the first line and the first cue *
Timecode A timecode (alternatively, time code) is a sequence of numeric codes generated at regular intervals by a timing synchronization system. Timecode is used in video production, show control and other applications which require temporal coordinatio ...
fractional values are separated by a
full stop The full stop ( Commonwealth English), period (North American English), or full point is a punctuation mark used for several purposes, most often to mark the end of a declarative sentence (as distinguished from a question or exclamation). A ...
instead of a
comma The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
* Timecode hours are optional * The frame numbering/identification preceding the timecode is optional * Comments identified by the word ''NOTE'' can be added *
Metadata Metadata (or metainformation) is "data that provides information about other data", but not the content of the data itself, such as the text of a message or the image itself. There are many distinct types of metadata, including: * Descriptive ...
information can be added in a
JSON JSON (JavaScript Object Notation, pronounced or ) is an open standard file format and electronic data interchange, data interchange format that uses Human-readable medium and data, human-readable text to store and transmit data objects consi ...
-style format * Chapter information can be optionally specified * Only supports extended characters as UTF-8 * CSS in a separate file defined in the companion HTML document for C tags is used instead of the FONT element * Cue settings allow the customization of cue positioning on the video


Compatibility

Firefox implemented WebVTT in its nightly builds (Firefox 24), but initially it was not enabled by default. The feature had to be enabled in Firefox by going to the "about:config" page and setting the value of "media.webvtt.enabled" to true. YouTube began supporting WebVTT in April, 2013. As of July 24, 2014, Mozilla has enabled WebVTT on Firefox by default. Subtitles in a .vtt file show online, but not when stored on a local drive.


Example of WebVTT format

A sample file from the W3C captioning Roger Bingham interviewing
Neil deGrasse Tyson Neil deGrasse Tyson ( or ; born October 5, 1958) is an American astrophysics, astrophysicist, author, and science communication, science communicator. Tyson studied at Harvard University, the University of Texas at Austin, and Columbia Univ ...


:
WEBVTT

00:11.000 --> 00:13.000
We are in New York City

00:13.000 --> 00:16.000
We're actually at the Lucern Hotel, just down the street

00:16.000 --> 00:18.000
from the American Museum of Natural History

00:18.000 --> 00:20.000
And with me is Neil deGrasse Tyson

00:20.000 --> 00:22.000
Astrophysicist, Director of the Hayden Planetarium

00:22.000 --> 00:24.000
at the AMNH.

00:24.000 --> 00:26.000
Thank you for walking down here.

00:27.000 --> 00:30.000
And I want to do a follow-up on the last conversation we did.

00:30.000 --> 00:31.500 align:right size:50%
When we e-mailed—

00:30.500 --> 00:32.500 align:left size:50%
Didn't we talk about enough in that conversation?

00:32.000 --> 00:35.500 align:right size:50%
No! No no no no; 'cos 'cos obviously 'cos

00:32.500 --> 00:33.500 align:left size:50%
Laughs

00:35.500 --> 00:38.000
You know I'm so excited my glasses are falling off here.


Other features

In June 2013, an example was added to the specification that included a new "region" setting. This feature is supported since Firefox 59 and Safari 14.1 (14.5 on iOS) but not in any other browser.


References


External links


WebVTT Standard

Mozilla's developer page concerning WebVTT implementation


{{W3C Standards Subtitling Subtitle file formats World Wide Web Consortium standards