360 Secure SkillHub
360 安全技能中心

Ad Creative Engine

该工具可本地生成1080×1920竖版短视频广告,适配TikTok/Reels/Shorts平台,无需云API。内置Clean、Meme、UGC三种爆款风格,支持导入产品视频、图片,可设置文字钩子、用户名、转场及背景音乐,可选节拍同步。用户通过JSON配置指定参数,输出30帧H.264成品广告,适用于产品推广、品牌营销等场景。

zero2ai-hub
zero2ai-hub
热度 87.57
最近更新 2026-05-11 17:29:02
分类:创作依赖:代码执行 / 读写文件应用场景:视频编辑 / 品牌素材 / 社交媒体

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add skill-ad-creative-engine
Metadata
name
skill-ad-creative-engine
version
1.0.0
description
Generate polished 1080×1920 TikTok/Reels/Shorts video ads from product clips and images. Three viral styles: Clean, Meme, UGC. Python + ffmpeg, no cloud required.
requires
{"bins":["python3","ffmpeg"],"pip":["moviepy","pillow","librosa (optional, for beat_sync)"]}

skill-ad-creative-engine v1.0.0

Render polished short-form video ads (TikTok / Reels / Shorts) from product clips and images.
Three viral styles built-in: Clean, Meme, UGC. Runs locally — no cloud API required.

Quick Start

cd skill-ad-creative-engine
pip3 install -r requirements.txt

python3 scripts/render.py --config examples/config_example.json

Styles

Style Font Overlay Best for
clean Montserrat ExtraBold White text, drop shadow, upper-center Product launch, brand ads
meme Anton (ALL CAPS) White + 8px black stroke, top-center Viral hooks, humor ads
ugc — TikTok username pill only (no hook text) Authentic creator-style

Config Format

{
  "style": "clean",
  "hook_text": "You need this →",
  "username": "@yourstore",
  "scenes": [
    { "path": "clips/product_clip.mp4", "duration": 3.0 },
    { "path": "images/product_hero.jpg", "duration": 2.5 }
  ],
  "transitions": ["cut", "dissolve"],
  "music": "luts/background_track.mp3",
  "beat_sync": false,
  "output": "output/ad_final.mp4"
}

See examples/config_example.json for full reference.

Dependencies

pip3 install -r requirements.txt

System requirements:

  • ffmpeg (install via brew install ffmpeg or apt install ffmpeg)
  • Fonts bundled: fonts/Anton-Regular.ttf + fonts/Montserrat-ExtraBold.ttf

Output Spec

  • Resolution: 1080×1920 (9:16 vertical)
  • FPS: 30
  • Codec: H.264 + AAC audio
  • Color grade: Warm tone applied automatically

Beat Sync (optional)

Set "beat_sync": true in config + provide a music track. Requires librosa:

pip3 install librosa

Cuts will snap to detected beat timestamps for a professional music-video feel.