mcpField
R
remotion-captions

remotion-captions

github.com/remotion-dev创意与媒体69.1k105 次安装今天更新
代码仓库

关于 remotion-captions

用于处理 Remotion 项目字幕的技能,涵盖转录、显示和 SRT 导入。字幕数据采用 JSON,并遵循 `@remotion/captions` 的 `Caption` 类型。

主要功能

  1. 01使用 JSON 字幕数据
  2. 02遵循 `Caption` 类型
  3. 03加载字幕转录说明
  4. 04加载字幕显示说明
  5. 05从 SRT 导入字幕

适用场景

  1. 01为视频准备字幕
  2. 02在 Remotion 合成中显示字幕
  3. 03从 SRT 文件导入字幕

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/remotion-dev/remotion --skill remotion-captions

安装后在 Claude Code 中输入/remotion-captions确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

import-srt-captions.md
display-captions.md
transcribe-captions.md
agents/
openai.yaml

详细介绍

所有字幕都必须以 JSON 格式处理。字幕必须使用 Caption 类型,定义如下:

import type { Caption } from "@remotion/captions";

定义如下:

type Caption = {
  text: string;
  startMs: number;
  endMs: number;
  timestampMs: number | null;
  confidence: number | null;
  pageBreakAfter?: boolean;
};

生成字幕

如需转录视频和音频文件并生成字幕,请加载 transcribe-captions.md 文件,了解更多说明。

显示字幕

如需在视频中显示字幕,请加载 display-captions.md 文件,了解更多说明。

导入字幕

如需从 .srt 文件导入字幕,请加载 import-srt-captions.md 文件,了解更多说明。

创建后

完成后,请加载此技能:Remotion Best Practices

如果尚未打开,请打开 Remotion Studio,除非另有说明。

评论

支持 Markdown