robby1066 / keepposted-help

Documentation, Issue Tracker, and Repository of Knowledge For Keep Posted (www.keepposted.io) — A way to keep teams informed and connected without disrupting their focus.
https://www.keepposted.io
1 stars 0 forks source link

Allow captions to be uploaded in .srt format #46

Closed robby1066 closed 3 years ago

robby1066 commented 3 years ago

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.

robby1066 commented 3 years ago

The webvtt-ruby gem looks like it could handle the conversion pretty well.

robby1066 commented 3 years ago

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.

Screenshot 2021-03-26 at 18 27 24

Documentation needs to be updated. Otherwise this can be closed.

robby1066 commented 3 years ago

Deployed and tested in production. The documentation has been updated. Closing this issue.