Remotion Captions

Skill

指导 agent 在 Remotion 视频中处理字幕:统一用 @remotion/captions 的 Caption 类型存成 JSON,可转写音视频生成字幕、导入 .srt 文件,并在合成中显示字幕、制作字幕动画。Remotion 官方技能。

remotion-dev/skills · skills/remotion-captions8.5k
README
name: remotion-captions
description: Transcribing, displaying and animating captions
version: 4.0.548

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;
  pageBreakAfter?: boolean;
};

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.

Post-creation

After you're done, load this skill: Remotion Best Practices (remotion-best-practices skill)

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