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
0
votes
0 answers

HTML Video won't play vtt subtitles

here's my HTML snippet: Page Title html5-video
gmanIL
  • 23
  • 6
0
votes
1 answer

webvtt subtitles not displaying when served from a different server

I'm unable to get webvtt subtitles to display (specifically in an Ionic app using JWplayer). I've found a .vtt online on a demo, and if I use this url the demo subtitles display…
Chris
  • 439
  • 4
  • 20
0
votes
1 answer

Parse WebVTT file with SwiftUI and show just the text and sync to audio

I'm re-learning how to program and am trying to make an interactive transcript document. I really could use some pointers with how to display the text of a webVTT file ideally within a SwiftUI text view from a local file. Secondly and probably more…
Jason G
  • 13
  • 4
0
votes
0 answers

How to make the cue box of subtitles to always be fixed to the bottom of the video

I want the cue box to be fixed to the bottom of the screen. I have subtitle files in .vtt form. I am using webvtt. Try -1 .ts file @ViewChild('cVideo', { read: ElementRef }) readonly cVideo!: ElementRef ngAfterViewInit(): void…
magicfarm
  • 21
  • 1
  • 8
0
votes
1 answer

How to hide Timestamps from interactive transcript

I'm making an interactive ebooks for personal use based on the site example below: https://umd-mith.github.io/webvtt-player The site uses a VTT file and an audio file. I'd like to hide the time stamps which the JavaScript code needs however for read…
Jason G
  • 13
  • 4
0
votes
1 answer

Audio captions not showing WebVTT

I'm trying to display my captions with my audio, and it seems like chrome loads it, but i dont see it on the screen, maybe it's because it's at the bottom of the div body? I see the controls on the screen, but i don't see the audio.
Ilda
  • 61
  • 6
0
votes
0 answers

Dynamically adding styling cues to vtt subtitle track

I would like to ask if there is a way to dynamically add styling cues with the addTextTrack API. Something along the lines of: tempTrack.addCue(new VTTCue((sentence.data.start / 1000).toFixed(3), (sentence.data.end / 1000).toFixed(3),…
0
votes
0 answers

Unexpected token ':' using node-webvtt parser package unsure reason of the error?

Hey I am trying to parse a webvtt file in javascript and I wrapped the process in a try catch and it throws this error at me unsure why. Would appreciate any insight. I am using the node-webvtt package node-webvtt. I have the full vtt file but…
0
votes
1 answer

Custom styling in WebVTT subtitles

Is it possible to set custom styling for specific fragments in WebVTT (.vtt) subtitles? According to the mozilla's WebVTT API docs it is possible to set CSS pseudo-classes e.g. with: /* this works ok */ video::cue { background-color:rgba(0, 0,…
ccpizza
  • 28,968
  • 18
  • 162
  • 169
0
votes
2 answers

Replace string between two time values

I am trying to clean up broken VTT files, where the lines show: 00:00.000 -- constituent 00:06.880 but instead should show 00:00.000 --> 00:06.880 VTT is written so that it's MM:SS:MSMSMS, and minutes can be any value, so I tried to match that via a…
Anthony
  • 13,434
  • 14
  • 60
  • 80
0
votes
0 answers

FFMPEG support for WebVTT subtitle inline cues

I am trying to "soft" embed webvtt subtitles into my video using FFMPEG. I need to be able to place to the subtitles at a specific location within the video as well. I have created a webvtt file that goes along with my video however; when I pass…
Cole
  • 43
  • 4
0
votes
0 answers

Livestream WebVTT with HLS

I've implemented an HLS service with ffmpeg (which pulls a live stream from nginx-rtmp). That all works fine, but now I'm wondering what kind of programming pattern I should be using to get live captioning to work. I'm planning on using ffmpeg to…
0
votes
1 answer

How do I load.vtt file into the video thumbnails(Imageview) in my videoview android?

I've saved that file locally, but I'm not sure how to load it. my .vtt file have data like below :- WEBVTT 00:00:00.000 --> 00:00:05.000 /xxxxx/xxxx-xxx-xx-xxx.webp#xywh=0,0,160,90 00:00:05.000 -->…
Hardik K
  • 112
  • 1
  • 12
0
votes
1 answer

Setting font size in webvtt without css styling?

In an attempt to convert a ttml file into a webvtt file, I've been trying to set a font size in cues, but without css styling. For instance, instead of: WEBVTT STYLE ::cue { font-size: 80% } I would like to have the font size attribute to appear…
Fishay
  • 1
0
votes
2 answers

Match timestamps in WebVTT files with sed

I have the following PCRE2 regex that works to match and remove timestamp lines in a .webVTT subtitle file (the default for YouTube): ^[0-9].:[0-9].:[0-9].+$ This changes this: 00:00:00.126 --> 00:00:10.058 How are you today? 00:00:10.309 -->…
Hashim Aziz
  • 4,074
  • 5
  • 38
  • 68