Communitygithub.com

AlexGit92s/Remotion2.0

轉錄、顯示及動畫化字幕

Remotion2.0 是什麼?

此技能提供完整的字幕處理流程,包括從影片/音訊轉錄字幕、以 JSON 格式定義字幕資料、在 Remotion 影片中顯示字幕、以及從 .srt 檔案匯入字幕。字幕必須遵循 Remotion 的 Caption 型別,包含文字、時間戳記、信心度等屬性。支援的平台為 Remotion 框架,適合需要自動化字幕生成的影片製作工作流程。使用方式為依照各步驟對應的說明文件逐步操作,最後可開啟 Remotion Studio 進行預覽與調整。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/AlexGit92s/Remotion2.0/tree/HEAD/.claude/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 檔案以獲取更多說明。

後續處理

完成後,請載入此技能:Remotion 最佳實踐

如果尚未完成,請開啟 Remotion Studio,除非另有指示。

Individual skills in this repo

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

相關技能