Communitygithub.com

zoih6/masafat-watan-video

轉錄、顯示和動畫化字幕

masafat-watan-video 是什麼?

此技能專注於在 Remotion 影片中處理字幕,並提供完整的流程,包括生成、顯示、導入和後處理。它要求所有字幕必須以 JSON 格式處理,並遵循 Remotion 的 `Caption` 類型定義,包含 `text`、`startMs`、`endMs`、`timestampMs` 和 `confidence` 等欄位。技能文件涵蓋多個子模組:從音訊/視訊檔案轉錄字幕(需參閱 transcribe-captions.md)、在影片中顯示字幕(display-captions.md)、從 .srt 檔案導入字幕(import-srt-captions.md),以及最終套用 Remotion 最佳實踐。支援的平台主要是 Remotion Studio 開發環境。此技能對於需要精確時間軸控制、多語言字幕或動畫字幕效果的開發者非常有用。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/zoih6/masafat-watan-video/tree/HEAD/skills-docs/remotion-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.

相關技能