Color-coded subtitles not being displayed with correct colors

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
reifactor
New Cone
New Cone
Posts: 2
Joined: 07 Jun 2023 19:17

Color-coded subtitles not being displayed with correct colors

Postby reifactor » 07 Jun 2023 19:46

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>

Lotesdelere
Cone Master
Cone Master
Posts: 10064
Joined: 08 Sep 2006 04:39
Location: Europe

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

Postby Lotesdelere » 08 Jun 2023 10:30

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.

reifactor
New Cone
New Cone
Posts: 2
Joined: 07 Jun 2023 19:17

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

Postby reifactor » 11 Jun 2023 03:57

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15309
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 11 Jun 2023 08:28

VLC has always supported colours in text, AFAIK. Even old DVD subs can have colours, IIRC.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 17 guests