Closed Smolky closed 3 years ago
Hey! Looking at that document, I suspect supporting VTT would entail inviting compatibility changes of unknown scope. Unless it's demonstrable that these are the only changes that will ever be needed, I'm inclined to suggest just using ffmpeg to change it:
ffmpeg -i x.srt x.vtt
I'm going to close this for now on that basis, but let me know if there's anything else I can help with.
No problem. I'll give it a try to ffmpeg
Kind regards and thanks for your time
Hi. First of all, thanks very much for this tool. I found it quite useful
I am trying to use it to create subtitles compatibles with WEBVTT
Some of the adaptations needed to create the WebVTT are easy for me. For example, I could attach esaly the voices in the cues prepending
<v speaker_1>
or by including theWEBVTT
header at top of the file.Howerver, according to this example: https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API
Subtitles have some form of:
As you can notice, microseconds are displayed with dots "." rather than commas ",". However, I notice that the "comma" is hardcode in the code so it is not easy for me to change it. I suposse that I could parse the file after generated and change it by using regular expressions.
Does it makes sense to make the timedelta format parametrizable?