File contents 广告视频生成 Skill
使用火山引擎 Seedance 视频生成模型,将场景图和文案转为动态广告视频,支持多种运镜效果和字幕叠加。
使用方法
python3 scripts/generate_ad_video.py \
--scene-image ./scene.png \
--copy-json ./ad_copy.json \
--motion zoom \
--duration 15 \
--ratio 9:16 \
--resolution 720p \
--add-subtitles \
--output ./ad_video.mp4
参数说明
参数
类型
必填
说明
--scene-image
string
✅
场景图片路径
--copy-json
string
✅
广告文案JSON路径
--motion
string
✅
运镜效果:zoom/pan/rotate/parallax/static
--duration
number
视频时长(秒),默认10
--ratio
string
视频比例:16:9/9:16/4:3/3:4/1:1,默认16:9
--resolution
string
分辨率:480p/720p/1080p,默认720p
--add-subtitles
boolean
是否叠加字幕,默认false
--subtitle-style
string
字幕样式:bold/minimal/neon/retro,默认bold
--add-background-music
boolean
是否添加背景音乐,默认false
--music-style
string
音乐风格:upbeat/relax/epic/cute,默认upbeat
--output
string
输出视频路径,默认 ./ad_video.mp4
--watermark
boolean
是否添加水印,默认true
运镜效果说明
运镜
说明
适用场景
zoom
镜头缓慢缩放
突出商品细节
pan
镜头平移
展示全景场景
rotate
镜头轻微旋转
增加动态感
parallax
视差效果
营造立体感
static
静态画面
适合快切剪辑
输出文件
主视频文件:{output}
字幕文件(如果启用):{output}.srt
生成日志:{output}.log
事件发布
生成完成后会发布 video.generated 事件到消息总线。
依赖
ffmpeg >= 5.0(用于后期处理和字幕叠加)
Seedance 视频生成API权限
1 --- 2 name: ad-video-gen 3 description: 将场景图和文案转为广告视频,支持叠加字幕和动效 4 --- 5 6 # 广告视频生成 Skill 7 8 使用火山引擎 Seedance 视频生成模型,将场景图和文案转为动态广告视频,支持多种运镜效果和字幕叠加。 9 10 ## 使用方法 11 12 ```bash 13 python3 scripts/generate_ad_video.py \ 14 --scene-image ./scene.png \ 15 --copy-json ./ad_copy.json \ 16 --motion zoom \ 17 --duration 15 \ 18 --ratio 9:16 \ 19 --resolution 720p \ 20 --add-subtitles \ 21 --output ./ad_video.mp4 22 ``` 23 24 ## 参数说明 25 26 | 参数 | 类型 | 必填 | 说明 | 27 |------|------|------|------| 28 | `--scene-image` | string | ✅ | 场景图片路径 | 29 | `--copy-json` | string | ✅ | 广告文案JSON路径 | 30 | `--motion` | string | ✅ | 运镜效果:zoom/pan/rotate/parallax/static | 31 | `--duration` | number | | 视频时长(秒),默认10 | 32 | `--ratio` | string | | 视频比例:16:9/9:16/4:3/3:4/1:1,默认16:9 | 33 | `--resolution` | string | | 分辨率:480p/720p/1080p,默认720p | 34 | `--add-subtitles` | boolean | | 是否叠加字幕,默认false | 35 | `--subtitle-style` | string | | 字幕样式:bold/minimal/neon/retro,默认bold | 36 | `--add-background-music` | boolean | | 是否添加背景音乐,默认false | 37 | `--music-style` | string | | 音乐风格:upbeat/relax/epic/cute,默认upbeat | 38 | `--output` | string | | 输出视频路径,默认 ./ad_video.mp4 | 39 | `--watermark` | boolean | | 是否添加水印,默认true | 40 41 ## 运镜效果说明 42 43 | 运镜 | 说明 | 适用场景 | 44 |------|------|----------| 45 | zoom | 镜头缓慢缩放 | 突出商品细节 | 46 | pan | 镜头平移 | 展示全景场景 | 47 | rotate | 镜头轻微旋转 | 增加动态感 | 48 | parallax | 视差效果 | 营造立体感 | 49 | static | 静态画面 | 适合快切剪辑 | 50 51 ## 输出文件 52 53 - 主视频文件:{output} 54 - 字幕文件(如果启用):{output}.srt 55 - 生成日志:{output}.log 56 57 ## 事件发布 58 59 生成完成后会发布 `video.generated` 事件到消息总线。 60 61 ## 依赖 62 63 - ffmpeg >= 5.0(用于后期处理和字幕叠加) 64 - Seedance 视频生成API权限
lujiaheng-artpivot/openclaw-ecommerce-ad-skills/tree/main/skills/ad-video-gen commit 3240d2d056
Frequently asked questions How do I install the Ad Video Gen skill? Run npx skillmds@latest add lujiaheng-artpivot/ad-video-gen in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Ad Video Gen skill do? 将场景图和文案转为广告视频,支持叠加字幕和动效 It is listed under Coding & Dev Tools on SkillMD.
Is Ad Video Gen safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Ad Video Gen? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Ad Video Gen free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Ad Video Gen? lujiaheng-artpivot (@lujiaheng-artpivot) published this skill. Their other Agent Skills are listed on their SkillMD profile.