Inline WebVTT styling not working

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
motbob
New Cone
New Cone
Posts: 2
Joined: 18 Feb 2018 06:54

Inline WebVTT styling not working

Postby motbob » 18 Feb 2018 07:16

Windows, 3.0.0.

When I saw "Rewrite of webVTT subtitles support, including CSS style support" in the 3.0.0 changelog, I was very excited. However, I can't get the styling to work even though I am (I think) following the spec. There's no documentation for VLC's implementation of the standard so I'm not really sure where to start solving this problem.

WebVTT lets you style the subtitles right in the subtitles file (see Example 5) instead of with an external css file. So I whipped up a very simple .vtt that should display totally black subtitles:

WEBVTT

STYLE
::cue {
color: black;
}

00:00:11.250 --> 00:00:14.416
Wh-wh-what on Earth is going on here?!

This seems to match the linked spec exactly. But no matter what I do, the subtitle line remains while. I've tried other CSS properties, and I've also tried the more complicated ways of modifying subtitle styles in the spec (e.g. identifiers as in Example 6). Nothing changes the subtitles (although things like appending "line:84%" to the end of the timecodes do work). Do I need to give up on inline styling and attach an external css file somehow?

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: Inline WebVTT styling not working

Postby InTheWings » 19 Feb 2018 10:39

Try this one. If that does not work that's a problem with the build
https://streams.videolan.org/samples/su ... T/Bill.vtt
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

motbob
New Cone
New Cone
Posts: 2
Joined: 18 Feb 2018 06:54

Re: Inline WebVTT styling not working

Postby motbob » 20 Feb 2018 00:23

Oh, thank you, the link to https://streams.videolan.org/samples/sub/WebVTT/ was pretty much what I needed to get started. Thanks!

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: Inline WebVTT styling not working

Postby InTheWings » 20 Feb 2018 11:14

I've just tested, your previous code really does show as black. There's no issue.
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 59 guests