ffmpeg-auto-assemble
ffmpeg 自动拼接成片:一条命令把 storyboard.json(商品图/视频片段 + 口播稿)渲染成带配音、字幕花字、转场、BGM 自动闪避、响度标准化的 9:16 MP4,纯本地运行。Use when the user wants to assemble/edit/render a product…
Skill by xianyu110
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/xianyu110-ffmpeg-auto-assemble
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ffmpeg-auto-assemble/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc
What's inside
- Skill name
ffmpeg-auto-assemble- Description
- ffmpeg 自动拼接成片:一条命令把 storyboard.json(商品图/视频片段 + 口播稿)渲染成带配音、字幕花字、转场、BGM 自动闪避、响度标准化的 9:16 MP4,纯本地运行。Use when the user wants to assemble/edit/render a product video, 自动剪辑, 一键成片, 拼接视频, 图片转视频, Ken Burns, add BGM/subtitles/voice-over with ffmpeg, or batch-produce short videos without an editor.
- License
- MIT
- Instructions
- 74 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (6)
- SKILL.md
- assemble.py · scripts/
- make_bgm.py · scripts/
- make_cards.py · scripts/
- make_subs.py · scripts/
- tts_edge.py · scripts/
SKILL.md (first lines)
# ffmpeg 自动拼接成片 · Auto-assemble with ffmpeg `storyboard.json` → 配音(edge-tts)→ 每镜 Ken Burns / 视频裁切 → xfade 转场 → ASS 字幕花字 → BGM 闪避混音 → 两遍 loudnorm(-14 LUFS)→ `out/video.mp4` + `.srt`。 > Part of [ecommerce-video-skills](https://github.com/xianyu110/ecommerce-video-skills) · 脚本都在本目录 `scripts/`:`assemble.py`(主程序)· `tts_edge.py` · `make_subs.py` · `make_bgm.py`(免版权合成 BGM)· `make_cards.py`(PIL 商品卡/结尾卡) ## 输入 Inputs - `storyboard.json`(可由 `selling-point-storyboard` 生成),素材路径相对于该文件 - 环境:Python 3.9+,`pip install pillow numpy edge-tts`,ffmpeg(含 libass),CJK 字体 ## 快速开始 Quick start ```bash pip install pillow numpy edge-tts python scripts/assemble.py examples/aura-bottle/storyboard.json -o out/aura.mp4 # 仓库自带示例,约 30 秒渲染完 python scripts/assemble.py storyboard.json --tts none -o out/preview.mp4 # 离线预览(无配音,按字数估时) python scripts/assemble.py storyboard.json --size 1080x1080 -o out/main-1x1.mp4 # 主图视频 1:1 python scripts/assemble.py storyboard.json --bgm music.mp3 # 用你有版权的音乐 ``` ## storyboard 字段 Fields | 字段 | 说明 | |---|---| | 顶层 `voice` / `rate` / `pitch` | edge-tts 音色、语速(如 `+10%`)、音调 | | 顶层 `bgm` | `"auto"`(内置合成,免版权)/ 音乐文件路径 / `null` | | 顶层 `tag` | 全程左上角贴纸(品牌/型号/「演示」) | | `image` 或 `video` (+`start`) | 素材;视频从 `start` 秒截取本镜时长 | | `line` | 配音文本;镜头时长 = 配音 + 0.15s 前导 + `pad` | | `sub` | 字幕(默认同 `line`);`""` 表示本镜不出字幕;`**高亮**`、`|` 分段 | | `title` / `cta` | 花字 / 行动号召按钮 | | `motion` | `zoom_in` `zoom_out` `pan_left` `pan_right` `pan_up` `pan_down` `punch` `static` | | `fit` | `auto`(比例接近则裁满,否则模糊填充)/ `cover` / `blur` | | `transition` | 进入下一镜的 xfade 名:`fade` `slideleft` `slideup` `smoothleft` `circleopen` `wipeleft` … | | `min` / `duration` / `pad` | 最短时长 / 固定时长 / 句后留白(秒) | ## 步骤 Steps 1. 检查素材都存在、比例合适(商品图 ≥ 1000px);缺结尾卡就用 `make_cards.py` 生成: `python scripts/make_cards.py --image main.png --name "商品名" --points "卖点一|卖点二|卖点三" -o assets/end-card.png` 2. 先 `--tts none` 跑一遍看画面节奏,再正式渲染。 3. 渲染后抽帧检查:`ffmpeg -ss 3 -i out/video.mp4 -frames:v 1 check.png` 4. 交给 `platform-spec-export` 导出各平台版本;用 `cover-title-ab` 做封面。 ## 流水线细节 How it works - **Ken Burns**:逐帧 `scale(eval=frame)+crop`,比 `zoompan` 抖动小;`punch` = 0.35 秒快速推近(钩子专用)。 - **转场**:每镜多渲染半个转场长度,xfade 居中在镜头分界,**配音起点不被转场吃掉**。 - **混音**:配音按镜头起点放置;BGM 默认 -20 dB,有人声时再压 10 dB(平滑闪避);先压缩/限幅再两遍 loudnorm 到约 -14 LUFS、TP -1.5 dB。 - **字幕**:用真实配音时长生成 `build/timing.json` → `make_subs.py` → libass 烧录,同时导出 `.srt`。 ## 检查清单 Checklist - [ ] 成片时长、分辨率、帧率正确(`ffprobe out/video.mp4`) - [ ] 抽 3 帧:字幕不压商品、不进底部 UI 区 - [ ] 听一遍:配音清楚、BGM 不抢、开头无爆音 - [ ] BGM 有商用授权(`auto` 合成音乐可放心用) - [ ] 素材(图片/视频/字体)有使用授权 ## 常见问题与修复 Failure fixes | 问题 | 修复 | |---|---| | `ffmpeg failed` | 看脚本打印的 stderr 末尾;常见是路径错误或 ffmpeg 缺 libass/libx264 | | 画面边缘糊 | 素材分辨率太低;换 ≥1080px 图片或减小 `motion` 幅度(改 `static`) | | 商品被裁掉 | 该镜设 `"fit": "blur"` | | 转场处声音被切 | 不会发生(配音按镜头起点对齐);若自定义了 `duration` 过短,加长即可 | | 渲染慢 | 预设已用 `veryfast` 中间文件;最终编码可把 `-preset medium` 改为 `fast` | | 想要 1:1 / 16:9 | `--size 1080x1080` / `--size 1920x1080`,字幕字号自动按比例 | 参考与致谢:思路受 [MoneyPrinterTurbo](https://github.com/harry0703/MoneyPrinterTurbo)(MIT)「脚本→配音→字幕→合成」流水线启发,本实现为独立编写的纯 ffmpeg 版本,未复制其代码。
From xianyu110/ecommerce-video-skills, MIT.
More from xianyu110/ecommerce-video-skills
- 0.679score
ai-voiceover-edge-tts
xianyu110
AI 口播配音:用免费的 edge-tts(微软 Edge 在线语音)为带货短视频逐句生成配音,自动去首尾静音、统计每句时长、缓存复用,可选音色/语速/音调,并给出口播稿改写规则。Use when the user needs a voice-over, 配音, 口播, 旁白, TTS…
SkillAFreshness: A★ 97Claude Code +9 - 0.679score
live-stream-clips
xianyu110
直播切片:从电商直播录屏中找出高光片段(按时间戳 / 按字幕关键词 / 按停顿自动提议),批量导出 9:16 竖屏切片,自动模糊填充横屏画面、烧录标题与字幕、响度标准化,并给切片写标题与开头钩子。Use when the user has a livestream recording and wants 直播切片…
SkillAFreshness: A★ 97Claude Code +9 - 0.679score
platform-spec-export
xianyu110
TikTok Shop / 抖音 / 视频号 / 小红书 / 淘宝主图视频 / Amazon 规格导出:把一条母版视频一键转成各平台推荐画幅与编码(9:16、3:4、1:1、16:9,模糊填充或智能裁切),输出规格报告,并可叠加 UI 安全区预览。Use when the user asks for export…
SkillAFreshness: A★ 97Claude Code +9 - 0.679score
subtitles-and-text-effects
xianyu110
字幕与花字:为带货短视频生成 ASS/SRT 字幕与花字(大标题弹出、关键词高亮、贴纸标签、行动号召按钮),自动避开平台底部/右侧 UI 安全区,并用 ffmpeg/libass 烧录。Use when the user wants subtitles, captions, 字幕, 花字, 大字报, keyword…
SkillAFreshness: A★ 97Claude Code +9 - 0.679score
unboxing-comparison-review
xianyu110
开箱 / 对比评测模板:生成电商开箱视频与 A/B 对比评测的结构、口播稿、拍摄清单与分镜(含公平对比规则、测试设计、缺点与适合人群),可直接转成 storyboard.json 渲染。Use when the user wants an unboxing video, 开箱, 测评, 评测, 横评, 对比…
SkillAFreshness: A★ 97Claude Code +9 - 0.679score
cover-title-ab
xianyu110
封面与标题 A/B:为带货短视频生成多套封面(自动挑选清晰帧或用干净素材图 + 不同标题与版式)和多组标题/文案,导出 3:4 / 9:16 封面文件和对比图,并给出 A/B 测试方法与记录表。Use when the user wants a video cover, 封面, 首图, thumbnail, 标题…
SkillAFreshness: A★ 97Claude Code +9 - 0.679score
image-to-video-shots
xianyu110
主图转视频:把一张或几张商品主图/白底图/场景图,写成可直接喂给图生视频模型的镜头提示词(运镜、主体动作、光线、时长、负面约束),并保证商品不变形。Use when the user has product images and wants a product video, 主图视频, 图生视频…
SkillAFreshness: A★ 97Claude Code +9 - 0.675score
multilingual-dubbing
xianyu110
多语言本地化配音:把中文带货视频本地化为英语、日语、韩语、东南亚语(印尼/泰/越/马来/菲律宾)、西语等版本——本地化改写口播(不是直译)、选对 edge-tts 音色、生成对应字幕与花字,并用同一份 storyboard 一键渲染多语言成片。Use when the user wants dubbing…
SkillAFreshness: A★ 97Claude Code +9 - 0.674score
hook-3s-script
xianyu110
3 秒钩子脚本:为电商短视频写前 3 秒开场(台词 + 画面 + 花字),按痛点/反差/结果先行/提问/数字/场景代入等钩子类型一次给出多版,并做合规自检。Use when the user asks for a hook, 开头, 黄金 3 秒, 前三秒, opening line…
SkillAFreshness: A★ 97Claude Code +9 - 0.674score
viral-remake
xianyu110
爆款拆解复刻:把抖音/TikTok 爆款带货视频(链接、转写或口述结构)拆成 8 维结构与 5-beat 节拍,再映射到你的商品,输出拆解表 + 3 个复刻角度 + 可渲染 storyboard.json。Use when the user says 爆款, 拆解, 复刻, 对标, 仿拍, viral…
SkillAFreshness: A★ 97Claude Code +9 - 0.674score
selling-point-storyboard
xianyu110
卖点分镜表:把商品卖点拆成 15–60 秒带货短视频的逐镜分镜表(时间码、画面、台词、字幕、花字、素材来源、运镜),并直接输出可渲染的 storyboard.json。Use when the user wants a storyboard, 分镜, 分镜脚本, shot list, 带货视频脚本, video…
SkillAFreshness: A★ 97Claude Code +9 - 0.674score
multi-model-shot-prompts
xianyu110
多模型镜头提示词适配:把一份分镜表改写成适合不同视频生成模型的提示词(中/英、首帧/首尾帧/纯文生视频、运镜词表、负面约束),模型中立、不编造价格或参数。Use when the user wants the same shot list adapted for Seedance, 可灵 Kling, Veo…
SkillAFreshness: A★ 97Claude Code +9
Signals
- Stars
- 97
- Forks
- 17
- Open issues
- 0
- Last commit (this folder)
- Oct 5, 2026 (23 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from xianyu110
- 0.784score
sale-banner
xianyu110
Design promotional sale banners and store hero images for Taobao/Tmall (双11, 618, 年货节), Shopee/Lazada (9.9, 11.11, 12.12), TikTok Shop, Amazon Prime Day/Black…
SkillAFreshness: A★ 114Claude Code +9 - 0.784score
batch-background-swap
xianyu110
Batch-replace backgrounds or recolour SKU variants across a folder of product photos (white background, brand colour, seasonal scene, colour variants) while…
SkillAFreshness: A★ 114Claude Code +9 - 0.784score
ecommerce-listing-suite
xianyu110
Orchestrate a complete ecommerce image set for one product: confirm product facts, plan the gallery per platform (Amazon 7-image set, Taobao 5 main + detail…
SkillAFreshness: A★ 114Claude Code +9 - 0.784score
amazon-white-background
xianyu110
Create an Amazon-compliant white-background main image (pure #FFFFFF background, product fills ≥85% of the frame, no text, props or watermark) from a product…
SkillAFreshness: A★ 114Claude Code +9 - 0.784score
model-try-on
xianyu110
Dress a model in a real garment or accessory from a flat-lay, hanger or mannequin photo (on-model / virtual try-on) while preserving fabric, colour, fit…
SkillAFreshness: A★ 114Claude Code +9 - 0.784score
selling-point-infographic
xianyu110
Design selling-point / feature infographic images (one benefit per image, icons, callout lines, short headlines, comparison or spec rows) for Amazon secondary…
SkillAFreshness: A★ 114Claude Code +9
Cite this page
ffmpeg-auto-assemble skill. Agent Mart. https://agentmart.dev/skills/xianyu110-ffmpeg-auto-assemble (last updated 2026-10-24)