Communitygithub.com

akshayDev17/ai-explainer-video

將影片從其片段組裝完成 — 靜默渲染每個視窗、串接、一次混入旁白並驗證。這是課程解說影片管線的第 8 階段。

ai-explainer-video 是什麼?

此技能負責將課程解說影片管線的最終階段 — 第 8 階段:影片組裝。它透過無聲渲染每個視窗片段、使用無損 `-c copy` 串接所有片段、然後將單一已測量好的旁白音軌一次性混入,最終產生完整的 MP4 影片。此方法避免了在每個片段邊界重啟音軌的常見問題,確保音訊與旁白在「樣本層級」上完美同步。技能會驗證每個片段的時間線視窗、確保無間隙覆蓋,並檢查最終音訊是否與旁白一致。它依賴 `ffmpeg` 和無頭 Chromium,並透過一個組裝工具 (`assemble.mjs`) 運作,支援使用 `--only <key>` 參數進行單一片段的冒煙測試。若發生錯誤(例如快取未命中),則會提示使用者檢查設定。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/akshayDev17/ai-explainer-video/tree/HEAD/skills/craft-video-assemble

在你喜歡的 AI 中提問

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

說明文件

craft-video-assemble — 完成的影片

屬於 explainer-video-from-coursework 管線的一部分 — 第 8 階段,共 8 階段。作為渲染階段的編排器。

管線的工具與場景主機位於同類技能 explainer-video-from-coursework 中:以 node ../explainer-video-from-coursework/tools/<tool>.mjs 執行,解析路徑相對於此技能的資料夾。從專案根目錄執行,因此 out/ 暫存目錄會位於你的筆記旁。

前置需求: 腳本、out/<name>/<NN>/timeline.json、manifest.json 以及 narration.wav;機器上需安裝 ffmpeg 和無頭 Chromium(請參閱 SETUP.md)。

若出現 [setup] / Playwright cache not found 錯誤,表示缺少 ffmpeg 或 Chromium——請將對應的 SETUP.md 步驟告知使用者並重新執行。

node ../explainer-video-from-coursework/tools/assemble.mjs --script out/<name>/scripts/<NN>-*.json \
                        --work out/<name>/<NN> --name <output> \
                        --dest <destination>

對每個片段:透過其專屬主機與設定渲染自己的視窗,靜默——片段刻意靜默,因為若為每個片段個別混入旁白,會在每個邊界重啟整條音軌。接著串接(-c copy),將單一已測量的旁白音軌一次性混入,並進行驗證。使用 --only <key> 僅渲染單一片段,用於冒煙測試。

斷言:每個片段都有時間線視窗與 manifest.json 條目·視窗無間隙地覆蓋整個時間線·完成的音訊在樣本層級上與旁白相符。

完成條件: 執行返回 0 並輸出 [done] …<output>.mp4,且顯示 audio ok。MP4 檔案會被複製到 --dest 指定的目錄。

維護

若你修改此檔案,或使用者要求變更此階段,請告知使用者主要技能 explainer-video-from-coursework 中的 「第 8 階段 — /assemble」 部分必須同步更新,並在你的回覆中指明該部分。

Individual skills in this repo

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

akshayDev17/ai-explainer-video

Synthesize narration and build the measured timeline for one video. Stage 4 of explainer-video-from-coursework — the one-shot TTS primitive.

akshayDev17/ai-explainer-video

Retitle and curate the videos in an explainer-video plan — write enrichment.json and merge it. Stage 2 of explainer-video-from-coursework; run it alone to retitle an existing plan.

akshayDev17/ai-explainer-video

Decompose a coursework notes directory into an explainer-video plan and prove no content-bearing section is dropped. Stage 1 of explainer-video-from-coursework; run it alone to (re)plan a directory.

akshayDev17/ai-explainer-video

Generate YouTube chapters and English captions for one finished video. Stage 6 of explainer-video-from-coursework.

akshayDev17/ai-explainer-video

Render one scene config over one time window to an MP4 (or a handful of QA stills). Stage 7 of explainer-video-from-coursework — the render primitive.

akshayDev17/ai-explainer-video

Author and iterate the animated visuals for one video's segments. Stage 5 of explainer-video-from-coursework; it re-invokes the audio stage when a beat needs a hold.

akshayDev17/ai-explainer-video

Write and validate the spoken narration for one explainer-video. Stage 3 of explainer-video-from-coursework; run it alone to (re)write a video's script.

akshayDev17/ai-explainer-video

Plan an explainer-video series from a directory of coursework notes — decompose into videos (proving nothing is dropped), retitle and curate, write the narration, synthesize the audio, author the visuals, then render and assemble the finished cut. Use when the user wants to turn structured coursework notes into explainer videos.

相關技能