remotion-captions

仓库创建 2026年7月27日最近提交 2 天前SkillHot 收录 2 天前
▸ 精选理由

明确 Caption 类型与字段,能减少字幕导入与时间轴错误。

这个 Skill 做什么

规定 Remotion 中字幕的 JSON 格式与必需字段,确保兼容与同步。

帮你把视频字幕统一成 Remotion 能识别的 JSON 格式,包含文字、开始/结束时间、timestampMs 和置信度等字段。遇到要把自动转写或外部字幕导入 Remotion、保证与视频帧严格对齐时会用到。特别之处是强制使用 Remotion 的 Caption 类型,保证兼容性和时间轴同步,方便后续渲染和调试。

▸ 展开 SKILL.md 英文原文

Dealing with captions in Remotion

开发编程字幕RemotionJSON通用
0
Stars
0
Forks
12
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/melonwer/hearsay/main/.agents/skills/remotion-captions/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/melonwer/hearsay/main/.agents/skills/remotion-captions/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
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;
};
```

## 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.

## 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有