Communitygithub.com

GuilhermeGongora/VideoEditor

轉錄、顯示和動畫字幕

VideoEditor 是什麼?

此技能使您能夠在 Remotion 影片專案中處理字幕。它涵蓋了從音訊或影片檔案轉錄產生字幕、在影片中顯示字幕、從 .srt 檔案匯入字幕,以及使用 JSON 格式定義字幕結構的完整工作流程。字幕必須遵循 `Caption` 類型,包含文字、時間戳記和信心水準等屬性。開發者可利用此技能為影片加入準確且具備動畫效果的字幕,從而提升可及性與使用者體驗。此技能適用於 Remotion 環境,並提供後續載入「Remotion 最佳實踐」技能及開啟 Remotion Studio 的指引。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/GuilhermeGongora/VideoEditor/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 4 individual skills — each has its own dedicated page.

相關技能