← Files RemotionARCHIVED FILE
skills/remotion-best-practices/remotion-captions/REFERENCE.md
1.13 KB · Oct 10, 2026 · 06:13 UTC
---
name: remotion-captions
description: Transcribing, displaying and animating captions
version: 4.0.534
---
All captions must be processed in JSON. The captions must use the [`Caption`](https://www.remotion.dev/docs/captions/caption.md) type which is the following:
```ts
import type { Caption } from "@remotion/captions";
```
This is the definition:
```ts
type Caption = {
text: string;
startMs: number;
endMs: number;
timestampMs: number | null;
confidence: number | null;
pageBreakAfter?: boolean;
};
```
## Generating captions
To transcribe video and audio files to generate captions, load the [transcribe-captions.md](transcribe-captions.md) file for more instructions.
## Displaying captions
To display captions in your video, load the [display-captions.md](display-captions.md) file for more instructions.
## Importing captions
To import captions from a .srt file, load the [import-srt-captions.md](import-srt-captions.md) file for more instructions.
## Post-creation
After you're done, load this skill: [Remotion Best Practices](../SKILL.md)
If not alreay done, open the Remotion Studio, unless instructed otherwise.
SHA-256: bab3f7b4e7db4a1ed47ab6c6915fc7b891bf165ea2196a8b87a7f9c1a7f578dc