remotion-dev / skills
remotion-captions
Transcribe, display, and animate captions in Remotion compositions.
Install
npx skills add https://github.com/remotion-dev/skills --skill remotion-captions- metadata
- tags: captions, subtitles, srt, import, parse
Importing .srt subtitles into Remotion
If you have an existing .srt subtitle file, you can import it into Remotion using parseSrt() from @remotion/captions.
If you don't have a .srt file, read Transcribing audio [blocked] for how to generate captions instead.
Prerequisites
First, the @remotion/captions package needs to be installed. If it is not installed, use the following command:
Reading an .srt file
Use staticFile() to reference an .srt file in your public folder, then fetch and parse it:
Remote URLs are also supported - you can fetch() a remote file via URL instead of using staticFile().
Using imported captions
Once parsed, the captions are in the Caption format and can be used with all @remotion/captions utilities.