返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
s

skill-tiktok-video-pipeline

End-to-end TikTok ad video pipeline. Product script → Veo base video → animated caption overlay → audio mix → final MP4. One command, full automation.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 2.0.0
安全检测
已通过
455
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

skill-tiktok-video-pipeline

# skill-tiktok-video-pipeline v2 Full end-to-end pipeline for TikTok product ads. Takes a `product_id` + `script_text` and outputs a publish-ready vertical short-form video with captions, optional logo watermark, and background music. ## Architecture ``` script_text + product_id │ ▼ Step 1: Veo 3 base video generation (9:16, ~8s) │ ▼ Step 2: Caption overlay + logo watermark └── tiktok_overlay_engine_v3.py (ffmpeg drawtext) │ ▼ Step 3: Background audio mix (20% volume, ffmpeg amix) │ ▼ output/tiktok/<product_id>_<lang>_final.mp4 ``` ## Requirements - `GEMINI_API_KEY` env var (for Veo generation) - `ffmpeg` on PATH - `uv` on PATH (for Python scripts) - `veo3-video-gen` skill installed at `skills/veo3-video-gen/` ## Usage ```bash node scripts/generate.js \ --product-id rain_cloud \ --script-text "Stop dry air!|Ultrasonic mist|Whisper-quiet|Get yours today" \ --lang EN ``` ### With logo and custom audio ```bash node scripts/generate.js \ --product-id hydro_bottle \ --script-text "Hydrogen water|Boosts energy|Pure & clean|Shop now" \ --lang EN \ --logo /path/to/brand_logo.png \ --audio /path/to/bgm.mp3 ``` ### Arabic (AR) captions ```bash node scripts/generate.js \ --product-id mini_cam \ --script-text "صوّر كل لحظة|دقة عالية|خفيف وصغير|اطلب الآن" \ --lang AR ``` ### Dry-run (no API calls, generates dummy video for testing overlay) ```bash node scripts/generate.js \ --product-id test \ --script-text "Line 1|Line 2|Line 3" \ --dry-run ``` ## Inputs | Argument | Required | Default | Description | |---|---|---|---| | `--product-id` | ✅ | — | Product identifier (used in output filename) | | `--script-text` | ✅ | — | Caption lines separated by `\|` | | `--lang` | ❌ | `EN` | Language: `EN` or `AR` | | `--logo` | ❌ | none | Path to logo PNG for watermark (top-right) | | `--audio` | ❌ | `assets/bgm_default.mp3` | Background music path | | `--veo-model` | ❌ | `veo-3.1-generate-preview` | Veo model to use | | `--prompt` | ❌ | auto | Custom Veo generation prompt | | `--segments` | ❌ | `1` | Number of Veo segments to generate & stitch | | `--dry-run` | ❌ | false | Skip Veo API call; use dummy black video | ## Outputs | File | Description | |---|---| | `output/tiktok/<product_id>_<lang>_final.mp4` | Final publish-ready TikTok video | ## Scripts | Script | Description | |---|---| | `scripts/generate.js` | Main Node.js orchestrator | | `scripts/tiktok_overlay_engine_v3.py` | Python/ffmpeg caption overlay engine | ## Caption Format Captions are split by `|` and timed evenly across the video duration. **Example:** `"Hook line!|Feature 1|Feature 2|CTA here"` → 4 pills, each shown for ~2s on an 8s video. Pill style: dark semi-transparent box, white text, centered at 75% height. ## Default Audio Place a royalty-free BGM file at `assets/bgm_default.mp3` in this skill folder to auto-mix audio in all runs. If no audio is found, the video is output without BGM. ## Pipeline Steps Detail ``` Step 1 Veo 3 generates a 9:16 base MP4 ~60–120s Step 2 Python overlays timed caption pills ~5s Step 3 ffmpeg mixes BGM at 20% volume ~5s ───────────────────────────────────────────────────────── Output Final branded MP4 ready to post ``` ## pipeline.py (v2.0.0 — Python orchestrator) Direct Python pipeline wired to overlay engine via subprocess. ```bash uv run scripts/pipeline.py \ --product rain_cloud \ --image product.jpg \ --output final.mp4 \ --audio /path/to/music.mp3 \ --slowmo ``` ### New flags (v2.0.0) | Flag | Default | Description | |---|---|---| | `--audio` | `$DEFAULT_AUDIO` env or bundled Hyperfun.mp3 | Audio file passed to overlay step | | `--slowmo` | false | Apply 0.83x speed → fills ~12s. Overrides `--extend-to` auto-stretch | ### Environment Variables | Var | Default | Description | |---|---|---| | `DEFAULT_AUDIO` | workspace root `audio_Hyperfun.mp3` | Default audio if `--audio` not set |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 skill-tiktok-video-pipeline-1776288312 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 skill-tiktok-video-pipeline-1776288312 技能

通过命令行安装

skillhub install skill-tiktok-video-pipeline-1776288312

下载

⬇ 下载 skill-tiktok-video-pipeline v2.0.0(免费)

文件大小: 10.38 KB | 发布时间: 2026-4-16 16:40

v2.0.0 最新 2026-4-16 16:40
**Major update: Pipeline now supports Veo3 video generation, enhanced caption overlay (v3), audio mixing, new `--audio` and `--slowmo` flags, and Node.js orchestration.**

- Adds Node.js orchestrator (`scripts/generate.js`) for full automation and new scripting interface.
- Integrates next-gen caption overlay engine (`tiktok_overlay_engine_v3.py`) using ffmpeg drawtext for improved pill captions and Arabic language support.
- Supports background music mixing via ffmpeg (`--audio`), default audio auto-discovery, and volume adjustment.
- Introduces new pipeline arguments for logo watermark, segment stitching, dry-run mode, and Arabic captions.
- Updates Python pipeline to support overlay v3 engine, `--audio`, and `--slowmo` for slowed videos.
- Documentation rewritten with detailed architecture diagram, usage examples, and full argument tables.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部