video-recreation
完整的视频二创工具,支持视频反推、素材生成(图片/音效/背景音乐/配音/字幕)、视频合成、文件下载的全流程,集成Coze Bot API进行视觉分析,使用Edge-TTS进行语音合成
npx skills add anbeime/skill --skill video-recreation --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# video-recreation ## 任务目标 - 本Skill用于:视频二创创作,从原视频反推分析到新视频合成的完整流程 - 能力包含:视频分析、素材生成(图片/音频/配音/字幕)、视频合成、文件下载 - 触发条件:用户要求"二创视频"、"反推视频"、"视频重制"、"根据参考视频创作"等 ## 前置准备 - 环境依赖: ``` opencv-python>=4.8.0 pillow>=10.0.0 moviepy>=1.0.3 numpy>=1.24.0 requests>=2.28.0 edge-tts>=6.1.0 ``` - Edge-TTS安装: ```bash pip install edge-tts ``` - Suno API(可选): - 用于生成真实的背景音乐 - 三种配置方式: 1. **开发者模式**: 技能已预置 API Key,开箱即用 2. **用户模式**: 设置环境变量 `export SUNO_API_KEY=your_api_key` 3. **命令行模式**: 执行时指定 `--suno-api-key your_api_key` - 配置优先级: 命令行参数 > 环境变量 > 技能凭证 - 占位模式: 未配置 API Key 时自动使用占位实现 - 官网: https://suno.com - 环境变量: - `COZE_BOT_ID`: Coze Bot ID (默认: 7572557757883383858) - `COZE_API_KEY`: Coze API Key (需配置) - 输出目录结构: ``` ./output/ ├── frames/ # 视频关键帧 ├── analysis.json # 反推分析结果 ├── images/ # 生成的图片素材 ├── audio/ # 音效和背景音乐 ├── voice/ # 配音音频 ├── subtitles/ # 字幕文件 └── final.mp4 # 最终合成视频 ``` ## 操作步骤 ### 第一阶段:视频反推分析 1. **提取视频关键帧** - 调用 `scripts/video_frame_extractor.py` 提取关键帧 - 参数: `--input <原视频路径> --output ./output/frames --interval 2` - 输出:序列图片到 `./output/frames/` 2. **视觉分析** - 调用 `scripts/coze_bot_client.py` 分析关键帧 - 智能体描述分析需求:"分析这些视频帧,提取:1.画面风格 2.色调特征 3.构图方式 4.节奏模式" - 参数: `--message "<分析提示>" --image_path <关键帧路径>` - 输出:分析结果保存
- 任务目标
- 前置准备
- 操作步骤
- 第一阶段:视频反推分析
- 第二阶段:素材生成
- 第三阶段:视频合成
- 错误处理与断点续传
- 资源索引
- 注意事项
- 使用示例
- 示例1:完整二创流程
- 示例2:单独生成音效
- 示例3:单独生成背景音乐
- 示例4:断点续传
pip install edge-tts python scripts/video_frame_extractor.py \ python scripts/coze_bot_client.py \ python scripts/image_generator.py \ python scripts/sound_generator.py \ export SUNO_API_KEY=your_api_key API Key 配置优先级: 命令行参数 > 环境变量 > 技能凭证 > 占位实现 python scripts/voice_generator.py --list-voices python scripts/voice_generator.py \ python scripts/subtitle_generator.py \
What does the video-recreation skill do?
完整的视频二创工具,支持视频反推、素材生成(图片/音效/背景音乐/配音/字幕)、视频合成、文件下载的全流程,集成Coze Bot API进行视觉分析,使用Edge-TTS进行语音合成
How do I install it?
Run `npx skills add anbeime/skill --skill video-recreation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From anbeime/skill, a repository with 4,714 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
