Agent skill
compose-video
视频后期处理与合成。当用户说"加背景音乐"、"合并视频"、"加片头片尾"、想为成片添加 BGM、或需要将多集视频拼接时使用。
Install this agent skill to your Project
npx add-skill https://github.com/ArcReel/ArcReel/tree/main/agent_runtime_profile/.claude/skills/compose-video
SKILL.md
合成视频
使用 ffmpeg 进行视频后期处理和多片段合成。
使用场景
1. 添加背景音乐
python .claude/skills/compose-video/scripts/compose_video.py --episode {N} --music background_music.mp3 --music-volume 0.3
2. 合并多集视频
python .claude/skills/compose-video/scripts/compose_video.py --merge-episodes 1 2 3 --output final_movie.mp4
3. 添加片头片尾
python .claude/skills/compose-video/scripts/compose_video.py --episode {N} --intro intro.mp4 --outro outro.mp4
4. 后备拼接
正常流程中视频由 Veo 3.1 逐场景独立生成,最终需要拼接成完整剧集。当标准的转场拼接(xfade 滤镜)因编码参数不一致而失败时,后备模式使用 ffmpeg concat demuxer 做无转场的快速拼接,确保至少能输出完整视频:
python .claude/skills/compose-video/scripts/compose_video.py --episode {N} --fallback-mode
工作流程
- 加载项目和剧本 — 检查视频文件是否存在
- 选择处理模式 — 添加 BGM / 合并多集 / 添加片头片尾 / 后备拼接
- 执行处理 — 使用 ffmpeg 处理,保持原始视频不变,输出到
output/
转场类型(后备模式)
根据剧本中的 transition_to_next 字段:
| 类型 | ffmpeg 滤镜 |
|---|---|
| cut | 直接拼接 |
| fade | xfade=transition=fade:duration=0.5 |
| dissolve | xfade=transition=dissolve:duration=0.5 |
| wipe | xfade=transition=wipeleft:duration=0.5 |
处理前检查
- 场景视频存在且可播放
- 视频分辨率一致(由 content_mode 决定画面比例)
- 背景音乐 / 片头片尾文件存在(如需要)
- ffmpeg 已安装并在 PATH 中
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
web-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
release
项目发版流程:询问版本步进类型,更新前后端版本号,锁定依赖,提交、打 tag 并推送。当用户提到"发版"、"release"、"bump version"、"升版本"、"打 tag"、"发布新版本"时使用此 skill。
generate-clues
生成线索设计参考图(道具/环境)。当用户说"生成线索图"、"画道具设计"、想为重要物品或场景创建参考图、或有 major 线索缺少 clue_sheet 时使用。确保跨场景视觉一致。
generate-characters
生成角色设计参考图(三视图)。当用户说"生成角色图"、"画角色设计"、想为新角色创建参考图、或有角色缺少 character_sheet 时使用。确保视频中角色形象一致。
Didn't find tool you were looking for?