Open Captions using SRT File

I have a video and and SRT file for subtitles for the video.

I would like to burn the subtitles onto the video using shotstack.

Ideally I would upload the video, srt file, and an html template.

How do I do this?

Thanks :slight_smile:

There is no built in way to do this just yet although we have something on our roadmap.

For now you need to write a script to parse the SRT file and create HTML or text assets through the video. We have a demo here using PHP which does this using our SDK and a third part library to parse the SRT file: php-demos/captions.php at main ยท shotstack/php-demos ยท GitHub

A full write up is here: How to add captions to video using PHP โ€” Shotstack

It should be pretty easy to port something similar across to other languages.