Xpersona
S

Short Video Auto Editing

CLAWHUB · Unverified

基于 MoviePy 和 Edge TTS,实现短视频素材自动筛选、裁剪、AI配音、字幕同步及批量混剪生成。 Skill: Short Video Auto Editing Owner: dally-bee Summary: 基于 MoviePy 和 Edge TTS,实现短视频素材自动筛选、裁剪、AI配音、字幕同步及批量混剪生成。 Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-25T12:38:46.220Z | auto Initial release of short-video-auto-editing: - Automates short video mashup generation for platforms like 抖音, 视频号, 小红书. - Integrates MoviePy for video editing, Edge TTS for AI voiceover, and automated subtitle syncing. - Supports

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s171bp8hpt2eswfa27y9m3dg8983gh0g:short-video-auto-editing
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-dally-bee-short-video-auto-editing/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

10,650 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

# 短视频混剪自动化技能

> 基于 MoviePy 的批量视频生成工作流

---

## 📌 技能概述

**技能名称**: `short-video-auto-editing`

**版本**: 1.0.0

**适用场景**:
- 抖音/视频号/小红书短视频批量生成
- 门店宣传视频自动化
- 团购推广视频制作
- 多版本 A/B 测试视频

**核心能力**:
- ✅ 素材自动筛选与裁剪
- ✅ AI 配音生成(Edge TTS)
- ✅ 字幕自动同步
- ✅ 批量混剪输出
- ✅ 重复率控制(≤40%)

---

## 🎯 标准工作流

### Phase 1: 素材准备(10 分钟)

**素材库规范**:
```
~/视频素材/
├── 原始素材/          # 原始拍摄视频
│   ├── LCD_采耳/
│   ├── MUX_健身/
│   └── ...
├── 输出/              # 生成结果(自动排除)
└── 音频库/            # 预生成配音
```

**素材要求**:
- 格式:MP4/MOV
- 分辨率:≥1080p
- 时长:≥30 秒(便于裁剪)
- 数量:≥20 个(保证多样性)

**素材索引**:
```python
MATERIALS = [
    "/path/to/video1.mp4",
    "/path/to/video2.mp4",
    # ... 至少 20 个
]
```

---

### Phase 2: 文案创作(15 分钟)

**文案规范**:
- 口语化、自然流畅
- 包含门店信息 + 团购引导
- 避免绝对化用词
- 符合平台合规要求

**文案模板**(以采耳为例):
```python
COPYWRITING = [
    """
    在常熟想找个地方好好放松一下
    老成都采耳馆开了有些年头了
    环境干净师傅手法也到位
    累了困了过来躺一会儿挺舒服的
    位置就在万达团购嘛左下角自己看哈
    """,
    # ... 至少 10 条独立文案
]
```

**文案库要求**:
- 数量:≥10 条
- 每条字数:60-100 字
- 时长:15-20 秒朗读
- 重复率:≤30%

---

### Phase 3: 配音生成(5 分钟)

**Edge TTS 配置**:
```python
import edge_tts

VOICES = {
    "晓晓": "zh-CN-XiaoxiaoNeural",      # 女声,温暖
    "云扬": "zh-CN-YunyangNeural",        # 男声,专业
    "云健": "zh-CN-YunjianNeural",        # 男声,活力
    "晓艺": "zh-CN-XiaoyiNeural",         # 女声,活泼
}

async def generate_audio(text, voice, output_file):
    communicate = edge_tts.Communicate(text, voice)
    await communicate.save(output_file)
```

**配音轮换策略**:
- 4 种音色循环使用
- 避免同一文案重复音色
- 每条配音单独保存

---

### Phase 4: 视频生成(自动)

**核心脚本**:
```python
from moviepy import (
    VideoFileClip, AudioFileClip, TextClip,
    CompositeVideoClip, concatenate_videoclips, vfx
)

def generate_video(c文案,音色,素材索引,output_path):
    # 1. 生成配音
    audio_file = f"audio_{文案 id}_{音色}.mp3"
    generate_audio(文案,音色,audio_file)
    
    # 2. 加载音频获取时长
    audio = AudioFileClip(audio_file)
    duration = audio.duration
    
    # 3. 裁剪并拼接素材(3-4 秒/片段)
    clips = []
    current_time = 0
    for idx in 素材索引:
        if current_time >= duration:
            break
        clip = VideoFileClip(MATERIALS[idx])
        clip = clip.with_duration(min(3.5, clip.duration))
        clip = clip.with_effects([vfx.Resize(height=1920)])
        clip = clip.with_effects([vfx.Crop(
            x1=clip.w//2 - 540, y1=0, width=1080, height=1920
        )])
        clips.append(clip)
        current_time += clip.duration
    
    # 4. 拼接视频
    video = concatenate_videoclips(clips, method="compose")
    video = video.with_duration(duration)
    
    # 5. 生成字幕
    subtitles = generate_subtitles(文案,duration)
    subtitle_clips = []
    for start, end, text in subtitles:
        txt = TextClip(
            text=text,
            font='/System/Library/Fonts/STHeiti Light.ttc',
            font_size=50,
            color='white',
            stroke_color='black',
            stroke_width=2,
            duration=end - start
        )
        txt = txt.with_position(('center', video.h - 150)).with_start(start)
        subtitle_clips.append(txt)
    
    # 6. 

_meta.json

{
  "ownerId": "kn7266x7pc69e19wmcvb5p7tyh83efs2",
  "slug": "short-video-auto-editing",
  "version": "1.0.0",
  "publishedAt": 1774442326220
}

skill-card.md

## Description:

Automates short-form video mashup production with MoviePy-based media selection and editing, Edge TTS voiceover generation, subtitle synchronization, quality checks, and batch output.

This skill is ready for commercial/non-commercial use.

## Publisher:

[dally-bee](https://clawhub.ai/user/dally-bee)

### License/Terms of Use:

MIT-0

## Use Case:

Social media operators, creators, and developers use this skill to generate batches of 15-20 second vertical promotional videos for platforms such as Douyin, WeChat Channels, and Xiaohongshu. It is intended for workflows that combine local video materials, marketing copy, AI voiceover, subtitles, quality checks, and repeated variant generation.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Marketing copy submitted for voiceover may be handled by Edge TTS rather than staying entirely local.

Mitigation: Use only copy you are comfortable processing with Edge TTS, and avoid sensitive unpublished customer or business text unless that handling is acceptable.

Risk: Batch generation writes multiple media outputs and may target the wrong path if configuration is not checked.

Mitigation: Confirm output paths before batch runs and keep generated videos in the documented output directory.

Risk: Generated promotional videos can repeat source materials or fail platform-ready quality checks.

Mitigation: Maintain a sufficiently large source-material library and run the documented checks for duration, resolution, frame rate, audio presence, file size, and repetition.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/dally-bee/skills/short-video-auto-editing)
- [Artifact skill documentation](artifact/SKILL.md)

## Skill Output:

**Output Type(s):** [markdown, code, configuration, guidance]

**Output Format:** [Markdown with Python code blocks, workflow steps, configuration examples, and quality-control guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Targets batch generation of 15-20 second 1080x1920 short videos using MoviePy media processing and Edge TTS voice rotation.]

## Skill Version(s):

1.0.0 (source: server release metadata and artifact documentation)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Short Video Auto Editing and adjacent AI workflows.