Communitygithub.com

AnayDhawan/openvidstudio-remotion-captions

转录、显示和动画化字幕的Remotion技能

openvidstudio-remotion-captions 是什么?

该技能为Remotion视频编辑框架提供完整的字幕处理管线,涵盖从音频/视频转录、SRT导入到字幕样式化与动画展示的全流程。基于Remotion的`Caption`类型定义(包含文本、时间戳、置信度及分页控制字段),开发者能轻松集成AI语音识别结果或导入现有字幕文件。支持通过JSON格式进行字幕数据交换,并提供了三个专项指南文件分别处理转录、显示和导入操作。适用于需要自动化生成视频字幕、实现动态文字动画或创建多语言视频内容的AI Agent与开发者工具链场景。

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

在你喜欢的 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文件获取更多说明。

Individual skills in this repo

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

相关技能