Page 1 of 1

WebVTT subtitles from youtube

Posted: 28 Jan 2019 23:18
by xaelias
Hi,

I'm downloading some videos from youtube (to be able to watch offline) and the subtitles that are with the video.
For that I use youtube-dl.

Except the resulting files behave weirdly in VLC.
AFAIK, VLC is fully compatible with WEBVTT subtitles, and these contain cues like the following:

Code: Select all

00:31:20.711 --> 00:31:22.246 size:66% position:67%
Except VLC will just display the resulting text (size:66% position:67%) which is not great from a user perspective :-D

I was wondering first if I was doing something wrong (from what I read on the vtt website, that format is actually valid).
And if there was a way to fix this (beyond me going ahead and manually fix these vtt files which I'm not super keen on).

Thank you very much for your help.

PS: I'm on mac, I don't know if it matters but will do my best to try it on a windows machine ASAP.
PPS: I tried on the 3.0.6 version (and 3.0.2 before that I believe?)

Re: WebVTT subtitles from youtube

Posted: 29 Jan 2019 10:07
by InTheWings
I see no issues.
yt dl output:

https://pastebin.com/raw/NahsAWmm

Re: WebVTT subtitles from youtube

Posted: 29 Jan 2019 14:56
by xaelias
I don't have all these headers in mine. But also I'm starting to wonder if it's not the embedding that's breaking everything (I ask youtube-dl to spit out an mkv).
That helps thanks.
I'll keep digging!