Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Apply best practices for creating programmatic videos with Remotion and React
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
rules/subtitles.md
1---2name: subtitles3description: subtitles and caption rules4metadata:5tags: subtitles, captions, remotion, json6---78All captions must be processed in JSON. The captions must use the `Caption` type which is the following:910```ts11import type { Caption } from "@remotion/captions";12```1314This is the definition:1516```ts17type Caption = {18text: string;19startMs: number;20endMs: number;21timestampMs: number | null;22confidence: number | null;23};24```2526## Generating captions2728To transcribe video and audio files to generate captions, load the [./transcribe-captions.md](./transcribe-captions.md) file for more instructions.2930## Displaying captions3132To display captions in your video, load the [./display-captions.md](./display-captions.md) file for more instructions.3334## Importing captions3536To import captions from a .srt file, load the [./import-srt-captions.md](./import-srt-captions.md) file for more instructions.37