Remotion Shorts — 儲存庫技能
官方格式:logic-lateral
參考資料:output/s4-19-interruptores/ · 範本:data/templates/script-logic-lateral.json。
節拍:hook → rules → countdown → explanation → reveal → outro(CTA 評論)。
視覺元素:logic-room、switch-sequence、bulb-state-reveal(+ countdown、text)。
cp data/templates/script-logic-lateral.json data/topics/mi-reto.json
npm run generar-short -- --input data/topics/mi-reto.json
自動建構器(標題含開關/燈泡):src/shorts/templates/three-switches.ts。
黃金規則
- 所有動畫依賴
useCurrentFrame()/interpolate/spring。 - 宣告式資料在 JSON 中;元件在
src/shorts/remotion/components/中。 - 若無官方幀同步整合及正當理由,不得新增 GSAP、Anime.js 或 Motion Canvas。
- FFmpeg/Satori 放在後製中,不在合成內。
- 不得破壞
HelloRemotion或ScriptVideo。 - Logic-lateral 的 outro 總是要求評論。
修改位置
| 變更 | 檔案 |
|---|---|
| 新視覺場景 | components/ + ShortVideo.tsx 中的分支 + schema |
| 範本 / 偵測 | src/shorts/templates/ + select.ts |
| 管線 | src/shorts/pipeline/ |
| 縮圖 | src/shorts/media/thumbnail.ts |
| FFmpeg | src/shorts/media/ffmpeg.ts |
| 渲染選項 | render-video.ts(gl: angle、bundle cache) |