Communitygithub.com

EyalZameret/Dudu-Director-Video-kit

讓 Dudu(AI 影片導演)能從參考影片連結(YouTube 及大多數影片網站)中學習。下載影片進行私密分析、偵測每個剪輯、檢視每個鏡頭的一幀畫面、將結構化分析寫入 library/study/<id>/analysis.md 並更新 library/INDEX.md,最後刪除影片。當擁有者分享連結並說「從這個學習」、「研究這個」、「像這樣做」或要求從廣告中汲取風格時使用。

Dudu-Director-Video-kit 是什麼?

此技能讓 AI 助理(如 Claude)能夠「觀看」參考影片,藉由下載影片進行離線分析,而非僅依賴 YouTube 等平台的文字描述。適用於 Claude Code、Cursor 等支援自訂工具與工作流程的開發者平台。技能使用 yt-dlp 與 ffmpeg 工具進行下載、偵測剪輯點,並對每個鏡頭提取一個代表性畫面,生成結構化分析(shots.json、meta.json、audio.json、波形圖、頻譜圖等)。分析涵蓋導演、攝影、表演、分鏡與聲音設計五大層面,並可選擇性整合 Gemini 進行音訊與表演的額外分析。最終產出 comprehensive analysis.md 與 storyboard.json,更新 library INDEX.md 供後續腳本、簡報或剪輯時快速參考。此技能獨特之處在於讓無圖像能力的 LLM 能透過「文字化」影片進而理解其結構與風格,並強調分析而非重複使用內容。

相容平台✓Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/EyalZameret/Dudu-Director-Video-kit/tree/HEAD/.claude/skills/dudu-study

在你喜歡的 AI 中提問

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

說明文件

Dudu:從參考影片學習

Claude 無法直接觀看連結:開啟 YouTube URL 只會顯示標題與說明。此技能透過 yt-dlp 與 ffmpeg 為 Dudu 賦予「眼睛」。

1. 提取

python tools/study_video.py "<url>"            # --threshold 0.2 用於柔和剪輯,0.4 用於動作密集場景

它會寫入 library/study/<video-id>/:

  • meta.json:標題、頻道、長度
  • shots.json:每個鏡頭的開始、結束、長度,以及統計(每 10 秒剪輯數、中位數鏡頭長度)
  • shots-N.png:每個鏡頭一個標記的畫面,每張圖表 12 個畫面
  • transcript.txt:字幕(如果有的話) 下載的影片最後會被刪除。

如果下載失敗並出現 HTTP 403 或「頁面需要重新載入」,請更新 yt-dlp(pip install --user -U yt-dlp)並確保 Node 在 PATH 中:該工具會傳遞 --js-runtimes node --remote-components ejs:github 來解決 YouTube 的 JS 驗證挑戰。

2. 看(圖片)

讀取每個 shots-N.png 與 shots.json。研究五大技巧:

  • 導演: 節奏,故事放慢與加快的地方,每個段落的用意。
  • 攝影: 每個鏡頭的景別(EWS/WS/MS/MCU/CU/ECU/insert/POV)、角度、鏡頭感(廣角/標準/長焦)、光線、運鏡。
  • 表演: 表情、眼神、肢體、情感弧線、推動故事的關鍵時刻。
  • 分鏡: 鏡頭間的文法(事件 → 反應 → 細節)。
  • 聲音: 見步驟 3。

3. 聽(聲音)

Claude 無法聽,因此使用兩個來源並交叉比對:

  1. 測量數據: 讀取 audio.json(每 0.5 秒與每個鏡頭的響度、寂靜段落)、waveform.png 與 spectrogram.png(紅線 = 剪輯點,白色刻度 = 10 秒)。密集的亮色頻帶 = 動作音樂或音效;暗淡的頂部頻帶 = 高頻濾除(「水下」效果);清晰的水平線 = 音調或人聲;間隙 = 寂靜。
  2. Gemini 的耳朵(可選,需詢問擁有者):Gemini 可以觀看帶音訊的 YouTube 連結。使用 dudu-browser,開啟一個新的 Gemini 對話(純文字對話,無工具),用英文請求一個逐段帶時間戳的聲音分析(音樂、音效、寂靜、對話、剪輯點上的撞擊)以及表演分析,並告訴它在不確定時說「不確定」。 如果擁有者沒有 Gemini,則僅依賴測量數據,並在 analysis.md 中說明。保留兩個來源一致的部分。將僅由 Gemini 報告的內容(尤其是精確對話台詞)標記為「根據 Gemini,未經驗證」。

4. 撰寫 storyboard.json 與 analysis.md(同一資料夾)

  • storyboard.json:每個鏡頭包含 size, angle, lens, light, move, action, acting, sound, why,分組為 sequences。模式在 tools/storyboard.py 中。使用 python tools/storyboard.py library/study/<id>/storyboard.json 渲染,並截圖檢查。
  • analysis.md:標頭(來源、長度、類型、測量數據)→ 結構 → 值得借鏡之處 → 攝影指導 → 表演 → 聲音設計(時間/聲音/技巧表格)→ 用於我們的 30–60 秒廣告(三個最可重複使用的技巧)→ 不應複製之處(真實人物、品牌、長度)→ 可重複使用的數據。 撰寫技巧,而非描述:「在動作節拍中交替使用臉部特寫與廣角事件鏡頭」,而非「她開車」。

5. 更新資料庫索引

在 library/INDEX.md 中加入一行:id、標題、類型、節奏(每 10 秒剪輯數、中位數),以及使此參考值得重複使用的 1-2 個技巧。

6. 使用它

在撰寫簡報、腳本、鏡頭列表或剪輯時,檢查 library/INDEX.md 尋找匹配的參考資料,並說明你借用了哪個技巧及來自何處。當擁有者說「像那個廣告」時,先開啟其 analysis.md。

規則

  • 僅限研究,絕不重複使用鏡頭、畫面、音樂或肖像。下載僅供私密分析並會刪除;向擁有者告知一次:下載可能違反該網站的條款。
  • 畫面圖表保留本地(已加入 gitignore)。analysis.md、shots.json 與 meta.json 可以提交。
  • 以擁有者的語言回報:3-5 個最有用的技巧,並附上鏡頭編號作為證據。

Individual skills in this repo

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

EyalZameret/Dudu-Director-Video-kit

Used by Dudu (AI promo video director) to drive Gemini (Nano Banana images, Veo video), ChatGPT (GPT Image) and Kling (image-to-video) in a Playwright browser the owner logged into. Contains the working click paths, upload and download recipes, and the fixes for every failure we hit.

EyalZameret/Dudu-Director-Video-kit

Used by Dudu (AI promo video director) for stage 7. Measures where each clip actually moves, cuts every shot to its action, color grades problem vs solution, and assembles the rough cut with ffmpeg via tools/build_cut.py.

EyalZameret/Dudu-Director-Video-kit

Used by Dudu (AI promo video director) for stage 6. Picks the animation model with a one-shot A/B test, writes image-to-video motion prompts for Kling (and Veo / Seedance), and reviews every clip with contact sheets and a motion report.

EyalZameret/Dudu-Director-Video-kit

Used by Dudu (AI promo video director) at every gate. Checks script claims against project/product.md, structure and pacing, and reviews images and clips with keep/fix/regenerate decisions into project/qa-notes.md.

EyalZameret/Dudu-Director-Video-kit

Used by Dudu (AI promo video director) for stages 1-2. Interviews the owner for the brief and writes a 12-shot promo script (problem-agitate-solve, about 70/30 problem/solution, minimal dialogue, one CTA) into project/brief.md and project/script.md.

EyalZameret/Dudu-Director-Video-kit

Switch this session to Dudu (דודו), the AI promo video director, until the owner leaves Dudu mode.

EyalZameret/Dudu-Director-Video-kit

Used by Dudu (AI promo video director) after the picture cut. Designs the sound (cue sheet synced to cuts), generates music, effects and voice (Gemini, TTS, recordings, free libraries), and mixes it onto the cut with tools/mix_audio.py into a finished film.

EyalZameret/Dudu-Director-Video-kit

Used by Dudu (AI promo video director) for stages 3-5. Builds the style and character bible, the 12-shot list, reference sheets, location frames and the 12 keyframe prompts for Gemini / Nano Banana or ChatGPT / GPT Image, and reviews every generated image.

相關技能