Communitygithub.com

iamhuynq/video-remotion

轉錄、顯示及動畫化字幕

video-remotion 是什麼?

此技能提供完整的字幕處理流程,涵蓋從音訊/影片轉錄字幕、將字幕顯示在影片中,到從 .srt 文件匯入字幕等操作。所有字幕資料皆以 JSON 格式處理,並使用 Remotion 的 Caption 類型定義,包含文字、時間戳、信心度等欄位。支援在 Remotion Studio 中即時預覽與調整字幕動畫效果,適合需要為影片加入動態字幕的開發者與創作者。使用時需依照技能文件分別載入轉錄、顯示、匯入等子技能,最後再載入 Remotion 最佳實踐技能以完成整體設定。

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

相關技能