Communitygithub.com

EyalZameret/Dudu-Director-Video-kit

由 Dudu(AI 宣傳影片導演)在第七階段使用。測量每個片段實際運動量,剪掉每個鏡頭中無動作的部分,對問題與解決方案進行調色,並透過 tools/build_cut.py 使用 ffmpeg 組裝粗剪。

Dudu-Director-Video-kit 是什麼?

這個技能是 Dudu AI 宣傳影片導演流程的第七階段,專注於製作粗剪。它解決了一個常見問題:AI 生成的固定 5 秒片段若全部播放會顯得節奏緩慢。技能包含三個主要步驟:首先使用 motion_report.py 測量每個片段每半秒的運動量,將畫面分類為凍結、慢速相機移動或動作場景;其次根據參考的 INDEX.md 決定剪輯點,遵循節奏曲線原則(開場平穩、問題部分壓縮、高潮片段短於 1 秒、轉折與CTA放慢);最後使用 build_cut.py 根據 cut.json 組裝影片,並進行調色(問題部分用冷色調,轉折後用暖色調)。輸出為標準 H.264 1080p30 格式,並提供 contact_sheet.py 進行審查。此技能支援所有具有 Python 和 ffmpeg 環境的平台,並與後續的 dudu-sound(第八階段)無縫銜接。

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

在你喜歡的 AI 中提問

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

說明文件

Dudu:粗剪

生成器回傳固定的 5 秒片段。全部播放時感覺節奏緩慢:在我們第一次剪輯中,一位審查者說「剪輯速度太慢」,而測量顯示 52 秒中只有約 30 秒有實際動作。

1. 測量

python tools/motion_report.py project/clips/*.mp4 輸出每半秒的運動量:

  • 0.1-0.5:凍結;1-3:慢速相機移動;3+:動作。 對於數字無法察覺的時刻(例如小燈光顏色變化),裁剪並平鋪該區域: ffmpeg -i shot10.mp4 -vf "fps=2,crop=360:200:X:Y,tile=5x2" -frames:v 1 detail.png(imageio-ffmpeg 安裝的 ffmpeg 路徑:python -c "import imageio_ffmpeg; print(imageio_ffmpeg.get_ffmpeg_exe())")。

2. 決定剪輯點

  • 查看 library/INDEX.md 作為參考,了解業主想要的節奏,並匹配其數據(每 10 秒剪輯次數、中位數片段長度)。
  • 節奏是一條曲線,不是常數(參見 library/study/V5AFQaEbHQU):平靜的開場可以維持較長,問題部分壓縮,高潮部分碎裂到 1 秒以下,轉折與 CTA 放慢呼吸。
  • 只保留有動作的秒數。大多數片段最終長度為 1.5-4 秒。開場和 CTA 可以留長一些(標誌和旁白台詞需要時間)。
  • 問題部分較快的剪輯建立緊張感;讓轉折呼吸。
  • 在任何失敗(臉部變化、變形)之前剪掉。用其關鍵幀靜態加上慢速縮放來取代失敗的片段。
  • 對話可能跨越到下一個鏡頭(J/L 剪輯),因此長台詞不強制長鏡頭。

3. 建構

撰寫 project/cut.json(參見 project/cut.example.json)並執行 python tools/build_cut.py project/cut.json。

  • 在剪輯中調色:問題片段用 cold 冷色調,從轉折開始用 warm 暖色調。保持色調溫和;不要將藍色推入陰影中。
  • 輸出:H.264 [email protected], yuv420p, bt709, 1080p30。如果在舊版 Windows Media Player 中看到藍色斑塊,那是播放器的解碼器問題;請透過 ffmpeg 提取一個幀並提升飽和度(eq=saturation=4)來檢查。如果幀是乾淨的,則檔案沒問題。
  • 使用 python tools/contact_sheet.py project/out/roughcut-vN.mp4 --every 2.5 --cols 6 審查結果。

4. 下一步:聲音

先鎖定畫面,然後載入 dudu-sound(第八階段):一條連續的音樂軌道、音效和語音,使用 tools/mix_audio.py 混合。每個片段生成的音訊無法組合成一條軌道。

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 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) to learn from a reference video link (YouTube and most video sites). Downloads it for private analysis, detects every cut, reviews one frame per shot, writes a structured analysis into library/study/<id>/analysis.md and updates library/INDEX.md, then deletes the video. Use when the owner shares a link and says "learn from this", "study this", "do it like this", or asks for a style taken from an ad.

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.

相關技能