Remotion Captions

作者 remotion-dev32b241b97f4e无许可证收录于 2026年10月8日更新于 2026年10月8日

Transcribing, displaying and animating captions

仅含说明Design & Creative
AI 生成的概览

指导在 Remotion 中处理视频字幕:转录、导入 SRT 文件以及显示动画字幕。

功能
该技能定义了 Remotion 中用于字幕的 Caption 数据类型,并说明字幕必须以 JSON 形式处理。它指向多个参考文件,分别说明如何将音频和视频转录为字幕、如何从 .srt 文件导入字幕,以及如何在视频中显示字幕。它还提到后续步骤,例如加载 Remotion 最佳实践并打开 Remotion Studio。
适用场景
适用于需要字幕的 Remotion 视频项目,无论是通过转录生成、从 SRT 文件导入,还是在屏幕上渲染并添加动画。它面向字幕相关任务,而非一般视频剪辑。
运行要求
需要 Remotion 项目和 @remotion/captions 包;转录和 SRT 导入依赖所引用的说明文件及其各自的工具。不包含脚本。

All captions must be processed in JSON. The captions must use the Caption 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 [blocked] file for more instructions.

Displaying captions

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

Importing captions

To import captions from a .srt file, load the import-srt-captions.md [blocked] 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.

来源与署名

来源:remotion-dev/skills位于skills/remotion-captions提交32b241b

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架