Communitygithub.com

AnayDhawan/openvidstudio-remotion-captions

轉錄、顯示及動畫字幕處理

openvidstudio-remotion-captions 是什麼?

此技能專門處理基於 Remotion 的字幕工作流程,涵蓋轉錄、顯示與動畫三大步驟。它要求所有字幕必須以 `Caption` 類型表示為 JSON 格式,並提供標準化的欄位如 `text`、`startMs`、`endMs` 及 `confidence`。使用者可透過加載 `transcribe-captions.md` 從音視頻檔案轉錄字幕,或利用 `import-srt-captions.md` 從 .srt 檔案匯入字幕。顯示字幕時則參考 `display-captions.md` 設定樣式與動畫。此技能支援 Claude Code、Cursor、Codex 等 AI 助手,適合需要動態字幕的影片編輯與自動化生成場景。

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

相關技能