Communitygithub.com

wataee/ai-video-editing

轉錄、顯示和動畫化字幕

ai-video-editing 是什麼?

這個技能專注於在影片中處理字幕,使用 Remotion 的 Caption 類型作為標準格式。它提供了完整的字幕工作流程,包括從影片或音訊檔案轉錄生成字幕、在影片中顯示字幕、以及從 .srt 檔案匯入字幕。此外,它還指示在完成後載入 Remotion Best Practices 技能,並開啟 Remotion Studio。此技能支援 Remotion 框架,適合需要程式化控制字幕的開發者和影片編輯者。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/wataee/ai-video-editing/tree/HEAD/references/remotion-skills-official/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 Best Practices

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

Individual skills in this repo

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

相關技能