remotion-captions

← Back to skills

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:

Category: General & Miscellaneous
Repo: guanyang-antigravity-skills
Path: skills/remotion-best-practices/remotion-captions/SKILL.md
Updated: 7/13/2026, 3:22:42 AM

AI Summary

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:. It is useful for general automation, multi-purpose workflows, cross-disciplinary tasks, and utility skills. Source: guanyang-antigravity-skills (skills/remotion-best-practices/remotion-captions/SKILL.md).

All captions must be processed in JSON. The captions must use the Caption 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;
};

Generating captions

To transcribe video and audio files to generate captions, load the transcribe-captions.md file for more instructions.

Displaying captions

To display captions in your video, load the display-captions.md file for more instructions.

Importing captions

To import captions from a .srt file, load the import-srt-captions.md file for more instructions.

Related skills