Communitygithub.com

bardu-rgb/reels

轉錄、顯示和動畫顯示字幕

reels 是什麼?

此技能專注於在 Remotion 專案中處理字幕,提供從音訊/視訊轉錄到字幕顯示與動畫的完整流程。開發者可以使用 JSON 格式的 `Caption` 型別來定義字幕,並能輕鬆地從 SRT 檔案匯入或透過轉錄產生字幕。此技能支援所有 Remotion 平台,並透過 Suggestion Skills (如 `transcribe-captions.md`、`display-captions.md`、`import-srt-captions.md`) 引導使用者逐步完成任務。最終,它會建議載入 Remotion Best Practices 技能以確保最佳實作,並在需要時啟動 Remotion Studio。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bardu-rgb/reels/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 Best Practices

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

Individual skills in this repo

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

相關技能