Communitygithub.com

Nuva-Lab/vibecut

通用影片渲染,支援動態圖形疊加。

vibecut 是什麼?

此技能提供一個基於 Remotion 的通用影片渲染引擎,能夠將影片與動態圖形疊加(如字幕、發言者標籤和情境徽章)合成為最終輸出。開發者可透過指定的 props JSON 檔案,定義影片來源、時間軸字幕、發言者註解位置以及地點/事件標籤等參數。它主要作為 `make-video` 技能的底層渲染模組,不建議直接呼叫,但支援使用 `npx remotion render` 指令進行獨立測試。技能依賴 `@remotion/captions` 與 `@remotion/media` 等套件,並內建對中文文字(使用 PingFang SC 字型)的良好支援。此外,`rules/` 目錄下收錄了關於字幕顯示、影片嵌入、文字動畫、字型載入、動畫曲線、時間軸控制及序列編排等最佳實踐文件,協助開發者快速掌握 Remotion 的各種進階模式。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Nuva-Lab/vibecut/tree/HEAD/skills/remotion-render

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Remotion 渲染技能

通用影片渲染,支援動態圖形疊加。

元件

  • VideoClip.tsx - 主要合成元件(影片 + 字幕 + 註解)
  • components/RollingCaption.tsx - 卡拉 OK 風格逐字強調效果
  • components/SpeakerLabel.tsx - 定位發言者註解
  • components/ContextBadge.tsx - 地點/事件徽章

使用方式

由 make-video 技能呼叫,通常不直接調用。

npx remotion render VideoClip output.mp4 --props=props.json

Props 介面

{
  videoSrc: string;           // public/ 中的影片檔名
  captions: Caption[];        // 帶時間軸的字幕片段
  speakers: SpeakerAnnotation[];  // 發言者標籤(含位置)
  contextBadge: {
    location: string;
    event: string;
  }
}

依賴套件

  • @remotion/captions - TikTok 風格字幕頁面
  • @remotion/media - 影片嵌入功能
  • 系統字型(PingFang SC)用於中文文字

最佳實踐(rules/)

參考 Remotion 模式的相關文件:

  • rules/display-captions.md - TikTok 風格字幕及逐字強調
  • rules/videos.md - 影片嵌入、裁剪、音量、速度
  • rules/text-animations.md - 打字機、文字強調效果
  • rules/fonts.md - 載入 Google Fonts 及本地字型
  • rules/animations.md - 插值、彈簧、緩動函數
  • rules/timing.md - 基於影格的時間與曲線
  • rules/sequencing.md - 時間軸控制的序列模式

完整文件請參閱 rules/ 資料夾。

Individual skills in this repo

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

相關技能