---
name: guanyang-remotion-captions
description: "Transcribing, displaying and animating captions"
license: "MIT"
metadata:
  decimalai-skill-id: "1e338497-071c-464f-8c82-fd8a3b3fa96b"
  decimalai-version-id: "4a51fd74-3cd5-436f-9df3-304316912bf7"
  decimalai-version: "2"
  decimalai-body-sha256: "e454cc4a34e496a38f052081352a3437d2b680422ae0251adad3d82ca4c292e6"
  decimalai-name: "guanyang/remotion-captions"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "design-media"
  decimalai-source: "https://app.decimal.ai/s/guanyang-remotion-captions@2/SKILL.md"
---
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

If not alreay done, open the Remotion Studio, unless instructed otherwise.
