Remotion Captions

作者 remotion-dev32b241b97f4e無授權條款收錄於 2026年10月8日更新於 2026年10月8日

Transcribing, displaying and animating captions

僅含說明Design & Creative
AI 產生的概覽

指導在 Remotion 中處理影片字幕:轉錄、匯入 SRT 檔案,以及顯示動畫字幕。

功能
此技能定義了 Remotion 中用於字幕的 Caption 資料型別,並說明字幕必須以 JSON 形式處理。它指向多個參考檔案,分別說明如何將音訊與影片轉錄為字幕、如何從 .srt 檔案匯入字幕,以及如何在影片中顯示字幕。它也提到後續步驟,例如載入 Remotion 最佳實務並開啟 Remotion Studio。
適用情境
適用於需要字幕的 Remotion 影片專案,無論是透過轉錄產生、從 SRT 檔案匯入,或在畫面上算繪並加入動畫。它面向字幕相關工作,而非一般影片剪輯。
執行需求
需要 Remotion 專案與 @remotion/captions 套件;轉錄與 SRT 匯入依賴所引用的說明檔案及其各自的工具。未包含指令碼。

All captions must be processed in JSON. The captions must use the Caption type which is the following:

ts
import type { Caption } from "@remotion/captions";

This is the definition:

ts
type Caption = {  text: string;  startMs: number;  endMs: number;  timestampMs: number | null;  confidence: number | null;  pageBreakAfter?: boolean;};

Generating captions

To transcribe video and audio files to generate captions, load the transcribe-captions.md [blocked] file for more instructions.

Displaying captions

To display captions in your video, load the display-captions.md [blocked] file for more instructions.

Importing captions

To import captions from a .srt file, load the import-srt-captions.md [blocked] file for more instructions.

Post-creation

After you're done, load this skill: Remotion Best Practices

If not alreay done, open the Remotion Studio, unless instructed otherwise.

來源與署名

來源:remotion-dev/skills位於skills/remotion-captions提交32b241b

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架