# Remotion Captions

> Dealing with captions in Remotion

Dealing with captions in Remotion

- Page: https://ss33.ai/skills/guanyang/remotion-captions-80051204439
- Publisher: guanyang
- Category: [Creative & Media](https://ss33.ai/skills/category/creative-and-media-0j3x01) › [Video](https://ss33.ai/skills/category/creative-and-media-0j3x01/video-yerjjv)
- License: MIT
- Source: https://github.com/guanyang/open-agent-hub/blob/a6da8875f8539134b778b1013ccbe3f74ade4677/skills/remotion-best-practices/remotion-captions/SKILL.md

## Skill

SKILL.md: https://ss33.ai/api/v1/ss33/download/guanyang/remotion-captions-80051204439

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;
};
```

## 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.
