Skip to main content

clipgen — Short Video Auto Generator / 短视频自动生成器

AI 配音 + 字幕 + 画面,一键生成短视频 / AI-powered short video generator with TTS, subtitles and visuals.
No API key required. Completely free. / 不需要 API Key,完全免费。

pip install clipgen

# English
clipgen quick "Hey guys" "Today I want to share a tool" "Follow me"

# 中文
clipgen quick "大家好" "今天介绍一个好用的工具" "关注我"

clipgen demo


Quick Start / 快速上手

One-liner / 一句话命令

clipgen quick "script 1" "script 2" "script 3"

Auto-detects English or Chinese. First line → title, middle → content, last → CTA.
自动检测中英文,无需任何配置。

Interactive wizard / 交互式向导

clipgen wizard

Step by step input. Best for beginners. / 一步步输入,适合小白。

Modify & regenerate / 不满意就修改

clipgen refine

Edit scenes, change templates, tweak colors, re-generate. All interactive.
修改文案、换模板、调颜色,改完重新生成。

Advanced / 进阶

clipgen build my_video.yaml        # 从 YAML 配置文件生成
clipgen templates                   # 查看模板列表
clipgen --help                      # 完整帮助

Features / 功能

  1. 6 visual templates / 6 套画面模板 — title, comparison, terminal, code_diff, question, cta
  2. AI TTS voiceover / AI 配音 — Edge-TTS, supports Chinese & English, free / 免费
  3. Auto subtitle generation / 自动字幕 — SRT with proper timing
  4. FFmpeg video composition / FFmpeg 合成 — 1080×1920 portrait MP4

Built-in Templates / 内置模板

Template Description
title Title card with grid background & tags / 标题卡
comparison Split-screen VS comparison / 分屏对比
terminal Terminal window with command output / 终端演示
code_diff Before/After code diff / 代码对比
question A/B voting card / 投票互动
cta Call-to-action follow prompt / 关注引导

Custom Templates / 定制模板

A template is a (draw: ImageDraw, scene: dict) function:

from clipgen.utils import *
from clipgen.engine import register_template

def render(draw, scene):
    gradient_bg(draw)
    draw.text((100, 500), scene.get("text"), fill=hex_rgb("#fff"), font=F(36))

register_template("my_template", render)

Then use it with template: my_template in your config.

Dependencies / 依赖

  • Python ≥ 3.10
  • Pillow, PyYAML, edge-tts, imageio-ffmpeg
  • No API key needed. Zero cost. / 不需要任何 API Key,完全免费

License

MIT

Metadata

Release files for clipgen 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clipgen 0.2.0
File Size Uploaded Provenance Actions
clipgen-0.2.0.tar.gz 18.3 kB Without provenance Details for clipgen-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clipgen 0.2.0
File Interpreter ABI Platform Actions
clipgen-0.2.0-py3-none-any.whl Python 3 none any Details for clipgen-0.2.0-py3-none-any.whl

Total release size: 38.9 kB

Release files / clipgen-0.2.0.tar.gz

Download URL clipgen-0.2.0.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4d59bed95fb01e759b773b56b5d2bc4ead0dabcfda2bb9f696ba45d514c37830
BLAKE2b-256 checksum
How to use checksums
267f542bbb53d47e5b2b52913392964aeccf7b814822f73b5f5d49f1c434705c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / clipgen-0.2.0-py3-none-any.whl

Download URL clipgen-0.2.0-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e5c888f4f1eb8fa46b355b7a604b68a46622fcd412edf8d0fb704540ebdf942
BLAKE2b-256 checksum
How to use checksums
f29fb5045e668f305064028ac98ff2127d536adaaabc0a6d0ebf1610f323c627
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Security for clipgen 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page