Community程式設計與開發github.com

remotion-captions

在 Remotion 中處理字幕

remotion-captions 是什麼?

此技能專為在 Remotion 中處理字幕而設計。它要求所有字幕必須以 JSON 格式處理,並使用標準化的 `Caption` 類型,其中包含 `text`、`startMs`、`endMs`、`timestampMs` 和 `confidence` 等字段。此技能支援三大功能:從影片或音訊檔案轉錄產生字幕(需參考 `transcribe-captions.md` 檔案)、在影片中顯示字幕(需參考 `display-captions.md` 檔案),以及從 .srt 檔案匯入字幕(需參考 `import-srt-captions.md` 檔案)。開發者需要按照這些指令文件的指引來實現完整的字幕工作流程。

相容平台~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

Structure Remotion markup for interactivity

remotion-interactivity

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

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

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

remotion-saas

Build an app with Remotion

remotion-studio

Preview a Remotion video

remotion-upgrade

Upgrade Remotion, and related packages

相關技能