Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add support for webvtt #46

rbrito opened this issue Mar 22, 2017 · 3 comments


Copy link

@rbrito rbrito commented Mar 22, 2017


Some devices, like the high-profile chromecasts, can support subtitles, but only in a format called WebVTT. The format is based on srt and a simple conversion can be achieved by using something like:

ffmpeg -i output.vtt

It would be superb if gaupol supported WebVTT out-of-the-box, even if not in its full generality, since this is one of the formats that we can expect other software/hardware to support and gain adoption, due to the W3 Consortium formalizing it.

Thanks for maintaining gaupol as one excellent subtitle editor,


P.S.: Subtitles served via Youtube already are downloaded in WebVTT and youtube-dl converts them to srt via ffmpeg, an external tool.


This comment has been minimized.

Copy link

@otsaloma otsaloma commented Mar 22, 2017

I had not heard of WebVTT before, but it sure sounds important.

There is some weird stuff indeed like comments and cue identifiers, editing of which won't be supported, but I think I should be able to preserve them as-is, so that opening a file and saving it would not destroy anything.

I should probably manage to do this sometime in the near term.


This comment has been minimized.

Copy link

@rbrito rbrito commented Mar 23, 2017

Dear @otsaloma, first of all, thank you very much for the quick response.

Regarding WebVTT, I think that a basic support would be super nice to have, even if the support doesn't come with all the bells and whistles.

Thank you very much,


@otsaloma otsaloma closed this in 14d34a5 Apr 16, 2017

This comment has been minimized.

Copy link

@otsaloma otsaloma commented Apr 16, 2017

Basic support for WebVTT is done.

  • Comments and styles are not editable, but should be preserved in most cases. They are attached to the following subtitle and thus preserved as long as that subtitle is not removed.

  • Both time formats (HH:MM:SS.SSS and MM:SS.SSS) are supported. When saving a file, the shorter format is used if the total length is less than an hour, else the longer format.

  • Any other blocks than the header, styles, comments and cue (identifier, time, settings, text) is silently ignored and not preserved upon open + save.

  • Bold, italic and underline markup is converted when converting to another format, all other markup tags are discarded.

Feel free to test. I'll make a new release maybe in a week or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.