Questions tagged [vtt]

In C++, VTT is the virtual table table. It allows objects to be safely constructed/deconstructed when there is multiple inheritence. Details can be found here.

51 questions
39
votes
2 answers

What is the VTT for a class?

Recently ran across a C++ linker error that was new to me. libfoo.so: undefined reference to `VTT for Foo' libfoo.so: undefined reference to `vtable for Foo' I recognized the error and fixed my problem, but I still have a nagging question: what…
leedm777
  • 23,444
  • 10
  • 58
  • 87
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
4
votes
1 answer

Ffmpeg burnt in subtitles out of sync when converting to hls

I have a file that has subtitles burn into it and they are perfectly in sync. Here is the file. https://983yqbz442.s3.amazonaws.com/little-mermaid-captions.mp4 I run this command to convert to hls and it creates the .ts files and the .vtt…
user1503606
  • 3,872
  • 13
  • 44
  • 78
4
votes
2 answers

Get an Openload VTT subtitle link

I'd like to use Greasemonkey to add a subtitle download button for Openload VTT subtitles. However, I can't figure out how to access the tag. Take, for example, this French video clip with English subtitles. When I looked at the source code…
Nemo XXX
  • 644
  • 2
  • 14
  • 35
4
votes
2 answers

Get all cues and their properties from a vtt file in nodejs

Say, I have a vtt file from which I want to get all the cues and their associated properties, such as startTime, endTime etc, in nodejs environment. I have searched by all keywords I can come up with, like 'parse vtt file by javascript', but the…
Xi Xiao
  • 953
  • 1
  • 12
  • 28
3
votes
1 answer

Extract closed captions VTT from stream using ffmpeg

I can extract closed caption information from an mp4 file using ffmpeg v. 3.4.7 thus: ffmpeg -f lavfi -i movie="sample.mp4[out+subcc]" -map 0:1 -c:s webvtt /tmp/output.vtt The file was obtained by capturing a live HLS stream containing closed…
EK0
  • 305
  • 5
  • 16
3
votes
1 answer

support srt/vtt subtitle and syncing in video player flutter

I want to play srt subtitles in my app. I have integrated srt_parser so far. Also, I am able to get the current position of the player by this code inMilliseconds = _videoPlayerController.value.position.inMilliseconds; Here is srt parse code. …
Ravinder Kumar
  • 7,407
  • 3
  • 28
  • 54
3
votes
0 answers

What is a line in WEBVTT format?

I see that WebVTT allows has something called "computed line" for each cue and it is either a percentage or a numeric number. Percentage is clear enough; I want to know what does it mean to have a numeric line. Is it the line-height as per CSS or is…
Anurag Kalia
  • 4,668
  • 4
  • 21
  • 28
3
votes
1 answer

html5 MKV playback with subtitles

I am attempting to play an MKV file in my chrome browser with subtitles so I can view local video files. This has been successful, using the above method/code in Microsoft Edge, however, when I use chrome I am unable to see the subtitles (cannot use…
2
votes
0 answers

Using hls.js to play a live stream with a rolling live window, how do you keep captions in webvtt aligned?

I can play a live stream with the hls.js player using playlists master.m3u8, video.m3u8 and metadata.m3u8. The video is created using ffmpeg hls commands and is using a rolling live window with the args: -hls_list_size 20 -hls_time 2 -hls_flags…
FredArters
  • 420
  • 4
  • 14
2
votes
3 answers

RegEx matching for SRT and VTT syntax from subtitles

I am having subtitles in both srt and vtt format where I need to match and remove format specific syntax and just get clean lines with text. I have come up with this regex: /\n?\d*?\n?^.* --> [012345]{2}:.*$/m sample content (mix both srt and…
Johncze
  • 469
  • 1
  • 6
  • 19
2
votes
0 answers

How to merge segmented webvtt subtitle files and output a single file?

How to merge a segmented webvtt subtitle file and output a single file?, m3u8 looks like this…
Dobbelina
  • 71
  • 1
  • 5
2
votes
2 answers

WebVTT styling not applied in simple example

I've been trying to get .vtt subtitles working on a video using this simple HTML:
2
votes
2 answers

IE vtt track background color

Why does IE load the .vtt without a black background but chromes does, need IE to be normal and have the black background have searched around to no prevail. Any help with this issue will be greatly appreciated. HTML:
2
votes
0 answers

No subtitle stream

Hi guys! I try to get the subtitle working in chromecast app. I'm using HLS streams and my m3u file has a subtitle specified but when I check streamCount on protocol I only recieve one stream which is a "video/mp2t" stream. Maybe this isn't…
We4sZ
  • 55
  • 6
1
2 3 4