Setting the file. One moment.
Skill 01 · Remotion Best Practices
Subchapter 1.7
remotion-captions/REFERENCE.mdMarkdown982 BView on GitHub
All captions must be processed in JSON. The captions must use the Caption (opens in a new tab) 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;
pageBreakAfter?: boolean;
};To transcribe video and audio files to generate captions, load the transcribe-captions.md file for more instructions.
To display captions in your video, load the display-captions.md file for more instructions.
To import captions from a .srt file, load the import-srt-captions.md file for more instructions.