Communitygithub.com

Guilhermeslvg/video-portfolio

轉錄影片、顯示及動畫化字幕

video-portfolio 是什麼?

此技能專門處理 Remotion 影片專案中的字幕,提供從轉錄、顯示到動畫化的完整流程。它要求所有字幕資料必須以 JSON 格式處理,並遵循 Remotion 定義的 `Caption` 類型結構,包含文字、時間戳、信心度等欄位。支援從影片或音檔自動轉錄字幕(需載入 `transcribe-captions.md` 指示),或從 `.srt` 檔案匯入字幕(需載入 `import-srt-captions.md`)。顯示字幕時則透過 `display-captions.md` 提供動畫與版面配置方法。完成後應載入 Remotion 最佳實踐技能,並開啟 Remotion Studio 進行後續編輯。此技能主要用於 Remotion 平台,適合需要動態字幕或旁白的影片製作專案。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Guilhermeslvg/video-portfolio/tree/HEAD/.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 檔案以取得更多指示。

後續步驟

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

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

Individual skills in this repo

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

相關技能