remotion-dev/skills

remotion-captions

先把字幕整理为毫秒时间轴,再接入视频

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

remotion-captions 是什么?

remotion-captions 为 Remotion 字幕任务选择转写、显示或 SRT 导入流程。字幕统一使用 @remotion/captions 的 Caption JSON 类型,保存文字、毫秒起止时间及可空的时间戳与置信度,便于在视频里显示和动画化。

中文说明由本站依据来源整理;英文原文保留在页面下方。

适合用在

  • 已有 SRT 需要加入视频,或要把音视频转写成可控制显示的字幕。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 remotion-captions,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 remotion-captions

请在 Codex 的当前工作环境中安装并检查 remotion-captions 这个 Skill。

项目身份:remotion-dev/skills / remotion-captions
来源:https://github.com/remotion-dev/skills/blob/3e20ac75161bc34468845df714701cc9bf6075f4/skills/remotion-captions/SKILL.md
已定位的源文件:skills/remotion-captions/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 提供现有 Remotion 项目和音视频文件或 SRT;先说明是生成字幕、导入还是展示,避免把三个任务混在一起。

会得到什么

  • 结构明确的 Caption JSON,以及按任务生成的字幕显示或导入代码。

实际使用顺序

  1. 将任务分到转写、显示、导入 SRT,对应阅读目录中的 transcribe-captions.md、display-captions.md 或 import-srt-captions.md。
  2. 使用 Caption 数组处理字幕,核对 text、startMs、endMs、timestampMs、confidence;最后两个字段可为 null,时间单位不要混用秒和毫秒。
  3. 按所选分支实现后加载 remotion-best-practices,并在未被要求关闭预览的情况下打开 Studio,检查字幕与画面时间轴。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:已有 demo.srt 和 Remotion 工程。请用 remotion-captions 走 SRT 导入分支,先读 import-srt-captions.md,把字幕整理为 Caption JSON,再在 Studio 里检查开头两句的起止时间。没有给音频,不要声称已重新转写。
预期结果

预期得到 Caption 数组和实际预览检查记录;未运行的步骤应单列。本站未执行。

使用前先看这些限制

使用条件与边界

  • 这一入口只定义 Caption 结构和分支,具体导入与显示 API 在相邻文件中,安装时需要完整目录。
  • JSON 结构正确不代表转写文字准确,也不代表时间对齐已经通过视觉检查。
针对这个 Skill 的疑问

常见问题

为什么不直接把 SRT 文本塞进视频?

这个流程以统一的 Caption 数据模型处理字幕,后续显示和动画都使用毫秒时间轴。SRT 是输入格式,需要先按导入分支转换。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/remotion-captions/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Transcribing, displaying and animating captions

查看源文件章节 / Source sections
  • 原文:Generating captions
  • 原文:Displaying captions
  • 原文:Importing captions
  • 原文:Post-creation
原文:正文开头

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: ```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](transcribe-captions.md) file for more instructions.

原文:Displaying captions

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

原文:Importing captions

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

文件 SHA256:8ac634854b62720a4cf439e90cf6251d26ae27d5800f438b5af8936c1400bc73

仓库许可证记录:未提供;not-established,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

Transcribing, displaying and animating captions

查看历史简介来源

历史收录数据

来源仓库remotion-dev/skills
Skill源路径skills/remotion-captions/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源