Community编程与开发github.com

remotion-captions

在 Remotion 中处理字幕的实用指南。

remotion-captions 是什么?

此技能专为 Remotion 视频渲染框架设计,提供了一套完整的字幕处理工作流程。它定义了统一的 `Caption` 数据类型,包含文本、时间戳和置信度等关键字段,确保所有字幕数据遵循相同的 JSON 结构。该技能涵盖了从语音转文字生成字幕、在视频中正确显示字幕、到导入 SRT 格式外部字幕文件的全部环节,每个步骤都通过独立的文档文件提供详细指令。支持该技能的开发者和 AI 代理可以无缝地在 Remotion 项目中集成、操作和自定义字幕,从而提升视频的可访问性和用户体验。

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

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · 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;
};

生成字幕

要转录视频和音频文件以生成字幕,请加载 transcribe-captions.md 文件获取更多说明。

显示字幕

要在视频中显示字幕,请加载 display-captions.md 文件获取更多说明。

导入字幕

要从 .srt 文件导入字幕,请加载 import-srt-captions.md 文件获取更多说明。

Individual skills in this repo

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

mediabunny

Multimedia handling with the Mediabunny library

remotion-best-practices

Router for all Remotion skills

remotion-captions

Transcribing, displaying and animating captions

remotion-create

Creating a new Remotion video

remotion-create

Create a new Remotion video

remotion-docs

Search Remotion documentation

remotion-docs

Search and fetch Remotion documentation pages

remotion-elements

Installs Elements, reusable video components such as titles, backgrounds, charts and caption styles, into a Remotion project with `npx remotion elements use`. Registers Element libraries in Remotion Studio with `npx remotion elements add-library`. Use when given an Element page URL or an Element library URL, or when a video needs a ready-made component.

remotion-interactivity

Best practices for writing Remotion animations that stay intuitive for agents and editable in Remotion Studio Visual Mode.

remotion-interactivity

Structure Remotion markup for interactivity

remotion-license

Find Remotion license information, FAQs, terms, and where to buy a license.

remotion-maps

Remotion Map animation knowledge

remotion-markup

Content, animation and effects best practices

remotion-markup

Best practices for writing Remotion React Markup

remotion-multimedia

Interacting with Mediabunny

remotion-render

Best practices for rendering videos

remotion-saas

Build an app with Remotion

remotion-saas

Building video apps with Remotion - framework, rendering and Player advice

remotion-studio

Preview a Remotion video

remotion-upgrade

Upgrade Remotion, and related packages

相关技能