Communitygithub.com

EyalZameret/Dudu-Director-Video-kit

用于杜杜(AI宣传片导演)从参考视频链接(YouTube及大多数视频网站)学习。下载视频进行私密分析,检测每个剪切点,逐镜头审核一帧画面,将结构化分析写入 library/study/<id>/analysis.md 并更新 library/INDEX.md,之后删除视频。当所有者分享链接并说“从这个学”、“研究这个”、“像这样来做”或要求借鉴广告风格时使用。

Dudu-Director-Video-kit 是什么?

该技能赋予 AI 代理(如 Claude)从参考视频中学习的能力,弥补其无法直接观看视频的缺陷。它通过 yt-dlp 下载视频,使用 ffmpeg 检测镜头切换,并为每个镜头提取一帧静态图像,从而让 AI 能够“看见”视频内容。随后,AI 会从导演、摄影机、表演、分镜和声音设计五个维度对视频进行结构化分析,最终生成包含技术细节和可复用技巧的分析报告(analysis.md)和分镜头文件(storyboard.json)。该技能主要支持 YouTube 等主流视频网站,并集成可选的 Gemini 音频分析功能,但强调所有下载的视频仅供私密分析,分析完成后立即删除,绝不重用素材。最终,分析结果会收录到 library/INDEX.md 中,方便后续创作时快速检索和借鉴。

兼容平台✓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 的新对话。

文档

杜杜:从参考视频中学习

Claude 无法直接观看链接:打开 YouTube URL 只会显示标题和描述。本技能通过 yt-dlp 和 ffmpeg 为杜杜赋予“眼睛”。

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 不确定时就说“不确定”。 如果所有者没有 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秒广告(3个最可复用的手法)→ 不复制的内容(真人、品牌、时长)→ 可复用的数据。

text 编写技巧,而非描述:例如“在动作节拍中交替使用面部特写和全景事件镜头”,而不是“她开车”。

5. 更新资源库索引

在 library/INDEX.md 中添加一行:ID、标题、类型、节奏(每10秒剪切次数、中位数),以及使该参考值得复用的1-2个技巧。

6. 使用

在撰写创意简报、脚本、镜头列表或剪辑时,查阅 library/INDEX.md 查找匹配的参考,并说明你借鉴了哪个技巧以及来自何处。当所有者说“像那个广告”时,首先打开其 analysis.md。

规则

  • 仅用于学习,绝不重用镜头、帧画面、音乐或肖像。下载仅供私密分析,且会删除;向所有者说明一次,下载可能违反网站的条款。
  • 帧图像表格保留本地(已 git 忽略)。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.

相关技能