Questions tagged [webvtt]

WebVTT (Web Video Text Tracks) is a plain-text subtitle format designed for use with HTML5 video.

WebVTT (Web Video Text Tracks) is a plain-text subtitle format designed for use with HTML5 video. It was developed by the W3C and WHATWG and widely based on the SubRip file format.

References

183 questions
16
votes
3 answers

What's the benefit of WEBVTT(.vtt) over SubReal (.srt)?

I finally came to a conclusion that google-chrome does not support .srt because WEBVTT is HTML5 standard. Now I am wondering what's the reasoning behind this decision. It seems that google-chrome might have supported .srt too because: .srt was…
RNA
  • 1,164
  • 2
  • 19
  • 35
14
votes
4 answers

Does HTML5 Video support srt textTrack?

I have tried the html5 video with textTrack, it works properly with .vtt (WebVTT). However, it doesn't work with .srt. So my question is whether html5 support .srt on the chrome or firefox? I have looked the information in w3 but there are no…
Thomas Lee
  • 1,001
  • 2
  • 13
  • 31
13
votes
2 answers

Issue with loading vtt from cross domain

I have issue with loading vtt from cross domain: "Unsafe attempt to load URL Domains... protocols and ports must match." I tried to add crossorigin="true" to the video, it's working in chrome and firefox but it's not working in the Internet Explorer…
Park
  • 143
  • 1
  • 12
13
votes
8 answers

Crossorigin errors when loading VTT file

I'm new to using the audio tag in HTML 5 and wanted to build a player. I wanted to test using a VTT file in a track tag to see how closed captioning could work. Here is my code:
linnium
  • 368
  • 1
  • 4
  • 15
12
votes
9 answers

How can I convert Amazon Transcribe json response to a caption format (srt, webvvt, etc)?

Trying to find a package that convert my json response from the Amazon AWS Transcribe service with no luck. You can see an example of the JSON in the JavaScript part of the Fiddle. I wouldn't like to take the naive approach and just "bundle" like 10…
Daniel Angel
  • 489
  • 1
  • 6
  • 14
11
votes
3 answers

How do I convert the WebVTT format to plain text?

Here is a sample of WebVTT WEBVTT Kind: captions Language: en Style: ::cue(c.colorCCCCCC) { color: rgb(204,204,204); } ::cue(c.colorE5E5E5) { color: rgb(229,229,229); } ## 00:00:00.060 --> 00:00:03.080 align:start position:0% …
magician11
  • 4,234
  • 6
  • 24
  • 39
10
votes
2 answers

How to enable CORS for html5 video loading vtt file?

My Need html5 video element loads both a video and a vtt file saved in a different domain. The problem vtt is not loaded and error Text track from origin has been blocked from loading: Not at same origin as the document, and parent of track element…
Xi Xiao
  • 953
  • 1
  • 12
  • 28
10
votes
1 answer

Using Javascript to convert .srt to .webvtt

Looking for a client-side way to convert .srt to .WebVtt, as HTML5 video doesn't support .srt for tags. So far I only came across server-side solutions. Thanks ahead
Tomcatom
  • 365
  • 3
  • 6
  • 16
10
votes
2 answers

Is it possible for HTML5 video to play subtitles embedded in mp4 file as a track?

I imported Webvtt file into mp4 file as a track, following the instruction Subtitling with GPAC ,and I checked that subtitles are properly shown when I using GPAC's Osmo4 player. Now, I'd like to play this video with subtitle through HTML5 video…
han0ah
  • 229
  • 2
  • 12
9
votes
0 answers

HTML5 track cues empty

I am attempting to display subtitles for an audio recording using a webvtt element like so:
7
votes
2 answers

Any app which can transform .vtt to .srt?

Are there any apps which can transform from .vtt to .srt format? I tried subtitleeditor which doesn't have support for .vtt. If anybody does know of any specific app which can be used to do the same, please share.
shirish
  • 477
  • 1
  • 4
  • 12
7
votes
4 answers

Convert WebVTT file from Youtube to plain text

I am downloading WebVTT files from youtube using youtube-dl. A typical file looks like this: WEBVTT Kind: captions Language: en 00:00:00.730 --> 00:00:05.200 align:start position:0% [Applause] 00:00:05.200 --> 00:00:05.210 align:start…
user1029296
  • 609
  • 8
  • 17
6
votes
2 answers

Javascript parser for RDF/JSON from WEBVTT

Good evening. Straight to the point - I would need a script that grabs RDF/JSON structure from specific time interval in WEBVTT file. Does such a thing exist? RDF/JSON is Talis specified file structure that looks like this: { "S" : { "P" : [ O ] }…
3mpetri
  • 599
  • 1
  • 9
  • 26
6
votes
1 answer

How to properly convert RTL subtitles in ffmpeg?

I'm using the following command to extract subtitles from a video file, and save it as vtt. ffmpeg -i video.mkv -map 0:s:0 subs.vtt 2>&1 It's working and outputs the subtitles file. The problem is with RTL (right to left) languages (Hebrew, Arabic…
HTMHell
  • 5,761
  • 5
  • 37
  • 79
6
votes
1 answer

What is the content_type for WebVtt?

I'd like to allow my application to permit .vtt files on upload. Right now it was only accepting .txt files, but I'd like to add .vtt capability for captions. I've tried this *with no luck: validates_attachment_content_type :caption, …
Sonny Black
  • 1,585
  • 4
  • 23
  • 41
1
2 3
12 13