← 返回
内容创作 Key 中文

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.
端到端TikTok广告视频管线。产品脚本→Veo底版视频→动态字幕叠加→音频混音→最终MP4。单条命令,全自动生成。
zero2ai-hub
内容创作 clawhub v2.0.0 2 版本 99891.1 Key: 需要
★ 0
Stars
📥 917
下载
💾 48
安装
2
版本
#latest

概述

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

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

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

node scripts/generate.js \
  --product-id mini_cam \
  --script-text "صوّر كل لحظة|دقة عالية|خفيف وصغير|اطلب الآن" \
  --lang AR

Dry-run (no API calls, generates dummy video for testing overlay)

node scripts/generate.js \
  --product-id test \
  --script-text "Line 1|Line 2|Line 3" \
  --dry-run

Inputs

ArgumentRequiredDefaultDescription
------------
--product-idProduct identifier (used in output filename)
--script-textCaption lines separated by `\`
--langENLanguage: EN or AR
--logononePath to logo PNG for watermark (top-right)
--audioassets/bgm_default.mp3Background music path
--veo-modelveo-3.1-generate-previewVeo model to use
--promptautoCustom Veo generation prompt
--segments1Number of Veo segments to generate & stitch
--dry-runfalseSkip Veo API call; use dummy black video

Outputs

FileDescription
------
output/tiktok/__final.mp4Final publish-ready TikTok video

Scripts

ScriptDescription
------
scripts/generate.jsMain Node.js orchestrator
scripts/tiktok_overlay_engine_v3.pyPython/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.

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)

FlagDefaultDescription
---------
--audio$DEFAULT_AUDIO env or bundled Hyperfun.mp3Audio file passed to overlay step
--slowmofalseApply 0.83x speed → fills ~12s. Overrides --extend-to auto-stretch

Environment Variables

VarDefaultDescription
---------
DEFAULT_AUDIOworkspace root audio_Hyperfun.mp3Default audio if --audio not set

版本历史

共 2 个版本

  • v2.0.0 当前
    2026-03-29 21:59 安全 安全
  • v1.0.0
    2026-03-07 02:01

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Trading Journal

zero2ai-hub
记录每笔交易的完整背景(逻辑、入场、出场、盈亏、情绪、教训),生成周度与月度业绩报告,并分析盈亏模式...
★ 2 📥 2,952
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 200,040
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,226