Official视频与动画github.com

Remotion 字幕

Remotion 官方字幕指南——把可读、对齐时间轴的字幕烧进上线成片。

Remotion 字幕 是什么?

给最终上线成片加字幕/本地化,静音信息流也能转化。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/remotion-dev/skills/tree/main/skills/remotion-captions

Installed? Explore more 视频与动画 skills: steipete/video-frames, steipete/summarize, openclaw/openclaw · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

所有字幕必须以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 最佳实践

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

Individual skills in this repo

This repo contains 19 individual skills — each has its own dedicated page.

相关技能