Communitygithub.com

bsaisuryacharan/agentshift-shorts

在已有靜態畫面與語音的基礎上,渲染疊加層並合成最終 MP4 影片。

agentshift-shorts 是什麼?

此技能專為短影音製作流程設計,能在已產生的靜態圖片與語音檔案之後,自動完成後製合成。它先透過 TTS 生成含時間戳的文字,並混音背景音樂與音效;然後使用 transparent background 技術建立 HUD 頁面,並利用 GSAP 時間軸控制字幕與訂閱卡片動畫。接著透過 `app.overlay` 模組輸出每幀 PNG,並以 `app.cinematic` 進行過渡與峰值預覽,最後以 loudnorm -14 標準合成最終 MP4。支援 Claude Code 等 AI 代理平台,讓開發者以指令驅動自動化影片產出。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bsaisuryacharan/agentshift-shorts/tree/HEAD/skills/shorts-render

在你喜歡的 AI 中提問

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

說明文件

  1. TTS 含詞時間戳 → timing.json;混音主軌(duck −12 dB)+ 嗖聲/撞擊/叮聲 → mix.wav。
  2. 建立 HUD 頁面(透明背景,window.__timelines.main 暫停的 GSAP 時間軸)。字幕 bottom:540px; left:60px; right:150px。最後一個詞後 2.2 秒加入訂閱卡片。
  3. python -m app.overlay page.html <total> work/ovl → 每幀 PNG。
  4. python -m app.cinematic test shotlist.json 60,150,… → 在每個轉場與峰值處預覽靜態畫面;在完整渲染前修正。
  5. python -m app.cinematic render shotlist.json out.mp4(含 loudnorm -14)。

Individual skills in this repo

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

相關技能