Remotion Captions

Provides a Caption type definition and links to skills for transcribing, displaying, and importing captions in Remotion videos.

Remotion bc2c857 4 files · 10.4 KB Updated 3.9k repo stars

File contents

All captions must be processed in JSON. The captions must use the Caption type which is the following:

import type { Caption } from "@remotion/captions";

This is the definition:

type Caption = {
  text: string;
  startMs: number;
  endMs: number;
  timestampMs: number | null;
  confidence: number | null;
};

Generating captions

To transcribe video and audio files to generate captions, load the transcribe-captions.md file for more instructions.

Displaying captions

To display captions in your video, load the display-captions.md file for more instructions.

Importing captions

To import captions from a .srt file, load the import-srt-captions.md file for more instructions.

remotion-dev/skills/tree/main/skills/remotion-captions commit bc2c857739

Frequently asked questions

npx skillmds add remotion-dev/remotion-captions