Page 1 of 1

Color-coded subtitles not being displayed with correct colors

Posted: 07 Jun 2023 19:46
by reifactor
Does VLC support color-coded subtitles?
(eg the subtitles are coded to have different colors depending on the character speaking)

I downloaded a video with subtitles from youtube. The subtitle file is a .vtt; I'll paste the beginning of the file below (replacing the irrelevant dialog).

When played in VLC, it appears all the subtitles are the default color instead of the colors specified in the .vtt file.

I would like to know if it is possible to get VLC media player to display these color-coded subtitles.

I am not familiar at all with different subtitle formats or subtitle rendering in general.

Code: Select all

WEBVTT Kind: captions Language: en Style: ::cue(c.color10C5FA) { color: rgb(16,197,250); } ::cue(c.colorFAD850) { color: rgb(250,216,80); } ::cue(c.colorFBE799) { color: rgb(251,231,153); } ::cue(c.green) { color: green; } ## 00:00:00.474 --> 00:00:02.410 <c.colorFBE799>Blah blah blah?​</c> 00:00:02.410 --> 00:00:03.144 <c.green>Blah.​</c> 00:00:03.144 --> 00:00:04.779 <c.colorFBE799>Blah, blah blah.​</c> 00:00:04.779 --> 00:00:05.411 <c.green>Blah blah!​</c>

Re: Color-coded subtitles not being displayed with correct colors

Posted: 08 Jun 2023 10:30
by Lotesdelere
I don't know much about the VTT specifications but are you sure about the syntax being used ?
Because the above content gives white subtitles with any player I've tried.

Re: Color-coded subtitles not being displayed with correct colors

Posted: 11 Jun 2023 03:57
by reifactor
I don't know much about the VTT specifications but are you sure about the syntax being used ?
Because the above content gives white subtitles with any player I've tried.
I didn't make the subs, I downloaded them from youtube using yt-dlp. The subs on the youtube video were definitely colored as indicated.
It could be a non-standard extension to whatever vtt specifications exist, but I don't know.
Just looking to get the subs working as intended using an offline non-web-browser video player.

Re: Color-coded subtitles not being displayed with correct colors

Posted: 11 Jun 2023 08:28
by Rémi Denis-Courmont
VLC has always supported colours in text, AFAIK. Even old DVD subs can have colours, IIRC.