Oryx(SRS Stack) is an all-in-one, out-of-the-box, and open-source video solution for creating online video services, including live streaming and WebRTC, on the cloud or through self-hosting.
WEBVTT
00:05.000 --> 00:09.000
<v Roger Bingham>We are in New York City
00:10.000 --> 00:16.000
<v Roger Bingham>We’re actually at the Lucern Hotel, just down the street
00:16.000 --> 00:18.000
<v Roger Bingham>from the American Museum of Natural History
00:18.000 --> 00:20.000
<v Roger Bingham>And with me is Neil deGrasse Tyson
00:20.000 --> 00:22.000
<v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium
00:22.000 --> 00:24.000
<v Roger Bingham>at the AMNH.
00:24.000 --> 00:26.000
<v Roger Bingham>Thank you for walking down here.
WEBVTT
00:05.000 --> 00:09.000
<v Roger Bingham>We are in New York City
The second WebVTT segment file, subtitle1.vtt:
WEBVTT
00:10.000 --> 00:16.000
<v Roger Bingham>We’re actually at the Lucern Hotel, just down the street
00:16.000 --> 00:18.000
<v Roger Bingham>from the American Museum of Natural History
00:18.000 --> 00:20.000
<v Roger Bingham>And with me is Neil deGrasse Tyson
The last WebVTT segment file, subtitle2.vtt:
WEBVTT
00:20.000 --> 00:22.000
<v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium
00:22.000 --> 00:24.000
<v Roger Bingham>at the AMNH.
00:24.000 --> 00:26.000
<v Roger Bingham>Thank you for walking down here.
Specification: https://www.w3.org/TR/webvtt1/
Hello WebVTT
Example:
Access the HTML page in web server:
WebVTT for HLS
Convert mp4 to HLS:
The m3u8 file is something like bellow:
The first WebVTT segment file,
subtitle0.vtt
:The second WebVTT segment file,
subtitle1.vtt
:The last WebVTT segment file,
subtitle2.vtt
:Create a
subtitles.m3u8
for WebVTT:And need a
index.m3u8
to associate video and subtitle:Access the
index.m3u8
page in Safari browser:HLS Live Stream with WebVTT
Safari:
VLC:
SRS Player(hls.js):