AgentSkillsCN

vc-remotion

从 render.json 中生成 Remotion Composition。

SKILL.md
--- frontmatter
name: vc-remotion
description: render.json から Remotion Composition を生成
metadata:
  short-description: Remotion 描画手順

vc-remotion

render.json から Remotion Composition を生成して動画を作るためのスキルです。

このスキルを使うタイミング

  • ユーザーが「Remotion で描画したい」と言った
  • Composition を render.json に合わせたい
  • apps/remotion が存在する

重要: 入力データ

  • work/<動画ファイル名>/render.json を唯一の入力として扱う(--public-dir work
  • render.json 内の outputs[] それぞれを Composition にする
  • URL のパス(/sample-video など、サンプル)から動画名を決定する

コマンド

bash
bun run remotion:dev -- --slug <動画ファイル名>

Composition のルール

  • output.id(horizontal/vertical)を Composition ID にする
  • output.layout.fps を FPS に使う
  • output.layout.resolution をサイズに使う
  • timeline.clipsSequence で連結する
  • 字幕は transcript_segments.jsonsegments を参照する

失敗時の対応

  • work/<動画ファイル名>/render.json が無い場合、vc run を先に実行する
  • http://localhost:3000/<動画ファイル名> が JSON を返すか確認する