Subtitle VTT support

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
BlueKnight68
New Cone
New Cone
Posts: 6
Joined: 19 May 2020 10:58

Subtitle VTT support

Postby BlueKnight68 » 19 May 2020 11:08

Hi,

i wanted to do Karaoke-sessions and therefore would like to add (web)VTT subtitle files.
It works partially, i see the text correctly and in time, but
the colors are not display, all is white or whatever color i decided to give it in the settings,
but the color of the VTT-Files are obviously ignored.

Does VLC now support full VTT specs (with Style-sections, ::cue etc.) or what part of VTT is supported
Is there any other way of making the subtitles in VTT colored (i.e. only the current word or group of
words is colored, which i havent found yet) to play it in VLC ?

in VTT-File i use for example
STYLE
::cue { background-image: linear-gradient(to bottom, dimgray, lightgray) }
::cue(c.captions-curr-word) { color: cyan }

(... and then refer to it in the lyrics of course)

Best regards

BlueKnight68
New Cone
New Cone
Posts: 6
Joined: 19 May 2020 10:58

Re: Subtitle VTT support

Postby BlueKnight68 » 20 May 2020 11:17

well in the meantime i found the answer myself:
(Web)VTT (current uptodate and HTML5) is not explicitly mentioned in the Documentation and seems officially not even be supported,
(though works to an extend)

whereas the very similar (older but more common) format .srt ("SubRip", organisation hosting it is not working anymore, people dead i guess)
see https://wiki.videolan.org/Subtitles/

is supported but allows not for any styling / css except for simple (bold, underline, ... and maybe color, which i havent tested yet)
see https://wiki.videolan.org/SubRip/

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

Re: Subtitle VTT support

Postby InTheWings » 20 May 2020 11:50

VLC supports CSS. But but complex styling, it's not a web browser.
:!: 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 !

BlueKnight68
New Cone
New Cone
Posts: 6
Joined: 19 May 2020 10:58

Re: Subtitle VTT support

Postby BlueKnight68 » 20 May 2020 12:02

SRT: Simple format like <b> bold, <i> italics, <u> underline, <font color="color name or #code"> WORK, tested on VLC version 3.0.8

@InTheWings: CSS in a subtitle File of VTT format you mean ? (included or separate, and if separate how to refer to it ?)
I would be curious of an example VTT File with CSS styles (probably make one word "cyan")

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

Re: Subtitle VTT support

Postby InTheWings » 20 May 2020 13:40

http://git.videolan.org/?p=vlc.git;a=blob;f=NEWS;h=b100d9e1d8f6802894b729dcc80a3583f023a07d;hb=HEAD#l164
:!: 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 !

BlueKnight68
New Cone
New Cone
Posts: 6
Joined: 19 May 2020 10:58

Re: Subtitle VTT support

Postby BlueKnight68 » 20 May 2020 19:56

Thanks and sorry for bothering, i was really on Version 3.0.8 (error was obviously fixed with 3.0.9).
Updating to 3.0.10 i can confirm that STYLE sections now work for VTT (tested for coloring text, words and background).

I havent tested for more complicated things like
::cue { background-image: linear-gradient(to bottom, dimgray, lightgray) }

but color is enough for me ... will work
Thanks again !

arnabanimesh
New Cone
New Cone
Posts: 1
Joined: 06 Jun 2021 13:00

Re: Subtitle VTT support

Postby arnabanimesh » 06 Jun 2021 13:01

I am using VLC 3.0.12 in Win10x64 it still shows <i> instead of italics


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: blueice_haller and 96 guests