Closed robby1066 closed 3 years ago
The webvtt-ruby gem looks like it could handle the conversion pretty well.
Added .srt
support. The .srt
file is inspected before it is validated and converted if it exists.
Also updated the text on the manage closed captions modal to make it clear that both types are supported.
Documentation needs to be updated. Otherwise this can be closed.
Deployed and tested in production. The documentation has been updated. Closing this issue.
What's the problem you're hoping this new feature will solve?
The current closed-captions process relies on using another service to generate the captions. There are many services that don't offer
.vtt
file exports, but they do offer.srt
exports, which can be converted into.vtt
files.Description of feature
People adding captions would be able to upload either a
.vtt
file or an.srt
file. When the server receives a.srt
file, it would convert it to.vtt
for use when the video is played.Alternatives and workarounds
Currently, if a person generating captions uses a tool that only exports in
.srt
, they would have to handle the conversion to.vtt
themselves before uploading, which is offloading a lot of work on the user.