Xpersona
A

Auto Video Editor

CLAWHUB · Unverified

Automated video editing skill for talk/vlog/standup videos. Use when: cutting video, splitting video into sentences, merging video clips, extracting audio, t... Skill: Auto Video Editor Owner: maxazure Summary: Automated video editing skill for talk/vlog/standup videos. Use when: cutting video, splitting video into sentences, merging video clips, extracting audio, t... Tags: latest:2.0.0 Version history: v2.0.0 | 2026-03-28T23:36:37.382Z | user V2 update Archive index: Archive v2.0.0: 30 files, 115287 bytes Files: docs/plans/2026-03-29-video-skill-v2.md (37081b), README.md (

62
Rank
84
Safety
971
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 971 downloads reported by the source. Last updated 10/12/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 s173gefhay1425bs9jgg6nwdt983gknj:auto-video-editor
  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-maxazure-auto-video-editor/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

94,364 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: video-editing
description: "Automated video editing skill for talk/vlog/standup videos. Use when: cutting video, splitting video into sentences, merging video clips, extracting audio, transcribing speech, auto-editing oral presentation videos, combining selected sentence clips into a final video, generating video cover/thumbnail with title, B-roll cutaway editing, persistent video overlay/watermark, blinking REC indicator, ending title cards, multi-source audio mixing, generating voiceover videos with Remotion (audio-only to video with animated visuals/subtitles). Requires ffmpeg and whisper. Remotion workflow additionally requires Node.js and npm."
argument-hint: "Provide the path(s) to video file(s) to process"
metadata: { "openclaw": { "emoji": "🎬", "os": ["darwin", "linux", "win32"], "requires": { "bins": ["ffmpeg", "python3"] }, "install": [{ "id": "ffmpeg-brew", "kind": "brew", "formula": "ffmpeg", "bins": ["ffmpeg"], "label": "Install FFmpeg (brew)" }] } }
---

# Auto Video Editing(自动视频剪辑)

根据语音内容,将口播/脱口秀类视频按句子自动切分,然后按用户选择合成带字幕的最终视频。

## Prerequisites(前置要求)

在执行任何操作之前,先运行环境检测:

```bash
python3 scripts/utils.py
```

这会自动检测平台(macOS/Linux/WSL/Windows)、GPU 类型、可用编码器、Whisper 引擎,并给出诊断报告。

如果缺少依赖,提示用户安装:
- **ffmpeg**: `brew install ffmpeg`(macOS)或 `apt install ffmpeg`(Linux/WSL)或下载 Windows 版本
- **whisper**: `pip install faster-whisper`(推荐,速度快 4 倍)或 `pip install openai-whisper`
- **中国用户**加速安装:`pip install faster-whisper -i https://pypi.tuna.tsinghua.edu.cn/simple`

如果项目根目录有 `.venv` 虚拟环境,运行 Python 脚本前先激活:
```bash
source .venv/bin/activate  # macOS/Linux/WSL
# Windows: .venv\Scripts\activate
```

### 平台说明

- **macOS (Apple Silicon)**: 自动使用 VideoToolbox 硬件编码加速,Whisper 推荐 large-v3-turbo 模型
- **macOS (Intel)**: 使用 VideoToolbox 编码,Whisper 使用 CPU 模式
- **Linux**: 自动检测 NVIDIA GPU (NVENC)、Intel QSV、AMD AMF
- **WSL**: 支持,自动检测 Windows 字体路径 (`/mnt/c/Windows/Fonts/`)
- **Windows**: 建议使用 WSL2 环境运行;支持 QSV/AMF 硬件编码
- **无独显 (集成显卡)**: Intel iGPU 使用 QSV 编码,AMD iGPU 使用 AMF 编码;Whisper 建议 medium 模型(而非 large)
- **中国用户**: 自动检测中国区域,使用清华 pip 镜像和 HuggingFace 镜像下载模型,也可通过 `--mirror` 参数强制启用

## Workflow(工作流程)

### Phase 0: Media Library Setup(素材库初始化)

首次使用时,帮助用户建立素材目录结构:

```bash
python3 scripts/media_library.py init [project_dir]
```

这会创建以下目录结构:
```
media/
├── raw/      — 原始素材(摄像机/手机直出的视频)
├── broll/    — B-roll 素材(城市街景、产品特写等)
├── bgm/      — 背景音乐(MP3/WAV/M4A)
├── assets/   — 叠加素材(水印 PNG、Logo 等)
└── output/   — 输出目录
```

**询问素材来源**:
1. 询问用户的视频文件位置(本地路径、外部设备或云端)
2. 建议将原始素材复制/移动到 `media/raw/` 目录
3. 询问是否有 B-roll、BGM 等辅助素材
4. 如果用户视频散落在多个目录,建议先集中到 `media/raw/`

**扫描并建立索引**:
```bash
python3 scripts/media_library.py scan [project_dir]
```

索引系统会自动:
- 扫描所有视频/音频/图片文件
- 提取时长、分辨率、帧率等元数据
- 关联已有的 transcript 文件
- 小型项目(< 200 文件)使用 JSON 索引(`media_index.json`)
- 大型项目自动升级为 SQLite 索引(`media_index.db`)
- 手动升级:`python3 scripts/media_library.py upgrade`

**查看素材库状态**:
```bash
python3 scripts/media_library.py status
```

**搜索素材**:
```bash
python3 scripts/media_library.py search "关键词"
```

README.md

# Video Editing Skill for OpenClaw

一个基于 AI 的自动视频剪辑 Skill,专为口播/脱口秀/Vlog 类视频设计。

它可以自动将你的视频按每句话切分,去掉口误和卡壳,加上字幕,最终合成一个可以直接发布的短视频。

> 适用于:小红书、抖音、视频号等竖屏短视频平台

## 功能特性

- **单次编码渲染** — 从原始视频直接到最终输出,只编码一次,无质量损失
- **语音识别切分** — 支持 faster-whisper(推荐,4x 加速)和 openai-whisper,自动按句子切分
- **GPU 硬件加速** — 自动检测 NVIDIA NVENC / Apple VideoToolbox / Intel QSV / AMD AMF
- **自动字幕** — 中英文自动检测,自动折行,竖屏位置优化,支持逐词高亮卡拉OK模式
- **自动封面** — 多种封面风格,支持视频取帧背景、移动端优先大标题、教程型卡片布局,也支持自定义封面 PNG
- **B-roll 替换** — 指定片段使用替代画面(保留原始音频),自动缩放裁切匹配分辨率
- **持续叠加层** — 透明 PNG 全程叠加显示(品牌水印、系列标识等)
- **闪烁圆点** — 录像机 REC 风格的周期性闪烁标志
- **结尾卡片** — 黑屏文字卡片自动拼接,带淡入淡出效果
- **背景音乐** — 支持添加 BGM,自动循环、音量控制、结尾淡出,与人声智能混音
- **静音检测** — 自动识别语音片段间的长停顿/卡壳/口误,辅助 AI 选片决策
- **音频混合** — 独立音频文件(M4A 等)可与任意画面组合,实现配音+B-roll 剪辑
- **章节时间轴** — 半透明白色章节进度条,章节名全程显示,当前章节高亮
- **变速输出** — 同时输出 1x / 1.25x / 1.5x 等多个速率版本,每个都从原始视频直接编码
- **Rotation 检测** — 自动检测 iPhone 竖屏视频的 rotation 元数据,正确识别显示尺寸
- **多视频支持** — 同时处理多个视频文件,跨视频混合选择片段
- **时长对齐** — 自动确保视频/音频流时长一致,避免平台上传时的时长不匹配报错
- **Remotion 口播生成** — 当只有语音没有画面时,使用 Remotion 生成配合语音的动态视频(TikTok 风格字幕、图文解说、动态文字等)
- **脱口秀/Standup 视频生成** — 完整的 Remotion 项目,将音频+文稿转为动态文字视频,12 种文字动画效果,自动检测笑点,3 种风格预设
- **丰富字体目录** — 内置 14 款免费中英文字体(思源黑体、霞鹜文楷/Lite、站酷系列、Inter、Montserrat 等),一键下载缓存
- **素材库管理** — 自动初始化视频项目目录结构(raw/broll/bgm/assets),双后端索引(JSON + SQLite),自动扫描和分类素材
- **填充词检测** — 自动识别中英文填充词(嗯/呃/那个/um/uh/like),标记纯填充词片段为建议跳过
- **AI 智能选片** — AI agent 基于吸引力评分自动推荐最佳片段,长视频自动拆分为多个短视频方案
- **字幕风格预设** — 6 种字幕样式(normal/karaoke/bold_pop/neon/minimal/yellow_pop)
- **多平台导出** — 一键输出 9:16(抖音/TikTok)、1:1(Instagram)、16:9(YouTube)多种比例
- **跨平台** — 支持 macOS / Linux / WSL / Windows
- **中国加速** — 自动检测中国区域,使用清华 pip 镜像和 HuggingFace 镜像

## 安装

### 方式一:通过 OpenClaw Skills 安装(推荐)

```bash
openclaw skills add https://github.com/maxazure/video-editing-skill.git
```

或手动克隆到 OpenClaw skills 目录:

```bash
git clone https://github.com/maxazure/video-editing-skill.git ~/.openclaw/skills/video-editing
```

### 方式二:手动克隆

```bash
git clone https://github.com/maxazure/video-editing-skill.git
cd video-editing-skill
```

### 安装系统依赖

**macOS:**
```bash
brew install ffmpeg
```

**Ubuntu/Debian/WSL:**
```bash
sudo apt install ffmpeg fonts-noto-cjk
```

**Windows:**
建议使用 WSL2 环境。在 WSL 中按 Ubuntu 方式安装即可。

### 安装 Python 依赖

```bash
python3 -m venv .venv
source .venv/bin/activate  # Windows WSL 同样使用此命令
pip install faster-whisper  # 推荐,速度快 4 倍
```

中国用户加速安装:
```bash
pip install faster-whisper -i https://pypi.tuna.tsinghua.edu.cn/simple
```

> Whisper 模型首次运行时会自动下载。中国用户会自动使用 HuggingFace 镜像 (hf-mirror.com)。

### 验证安装

```bash
python3 scripts/utils.py  # 运行环境诊断
```

这会输出完整的环境报告:平台、GPU、编码器、Whisper 引擎、推荐模型等。

## 素材库管理

首次使用时,初始化项目素材目录结构:

```bash
python3 scripts/media_library.py init
```

这会创建:
```
media/
├── raw/      — 原始素材
├── broll/    — B-roll 素材
├── bgm/      — 背景音乐
├── assets/   — 叠加素材(水印、Logo)
└── output/   — 输出目录
```

扫描并建立索引:
```bash
python3 scripts/media_library.py scan     # 扫描并索引
python3 scripts/media_library.py status   # 查看素材库状态
python3 scripts/media_library.py search "关键词"

_meta.json

{
  "ownerId": "kn77r46q38rajwyacwma41t8g18360e9",
  "slug": "auto-video-editor",
  "version": "2.0.0",
  "publishedAt": 1774740997382
}

docs/plans/2026-03-29-video-skill-v2.md

# Video Editing Skill V2 Implementation Plan

> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.

**Goal:** Fix critical bugs, add media library with dual-backend index (JSON/SQLite), filler word detection, AI smart clip selection guidance, animated caption presets, multi-platform export, and improve code quality.

**Architecture:** Dual-backend media index (JSON for small projects, SQLite for large) with auto-migration. New `media_library.py` manages index CRUD. Filler word detection integrated into `transcribe.py`. AI clip selection and virality scoring are SKILL.md workflow instructions for the AI agent. Overlay index bug fixed via explicit input tracking dict. Multi-platform export via `--formats` flag in `render_final.py`.

**Tech Stack:** Python 3.8+, FFmpeg, faster-whisper, SQLite3 (stdlib), JSON, Remotion (React/TypeScript)

---

### Task 1: Fix Overlay Input Index Bug in render_final.py

**Files:**
- Modify: `scripts/render_final.py:590-630`

The current code calculates overlay input indices using `len(input_files) + extra_offset` which is fragile. Replace with an explicit `extra_inputs` list that tracks inputs in order.

**Step 1: Fix the index calculation**

Replace the fragile index calculation (lines 590-630) with a tracking dict:

```python
# --- Extra inputs tracking (order matters: must match -i order in cmd) ---
extra_inputs = []  # list of (type, idx, path) — tracks order of extra -i args

if bgm_path:
    bgm_input_idx = len(input_files) + len(extra_inputs)
    extra_inputs.append(("bgm", bgm_input_idx, bgm_path))
    bgm_total = effective_duration + cover_duration + end_cards_duration
else:
    bgm_input_idx = None

cover_input_idx = None
if cover_png_path and cover_duration > 0:
    cover_input_idx = len(input_files) + len(extra_inputs)
    extra_inputs.append(("cover", cover_input_idx, cover_png_path))
    vf_parts.append(
        f"[cover_img]overlay=0:0:enable='lte(t,{cover_duration:.4f})'")

overlay_input_idx = None
overlay_path = config.get("video_overlay")
if overlay_path and os.path.isfile(overlay_path):
    overlay_input_idx = len(input_files) + len(extra_inputs)
    extra_inputs.append(("overlay", overlay_input_idx, os.path.abspath(overlay_path)))
    vf_parts.append(
        f"[overlay_img]overlay=0:0:enable='gt(t,{cover_duration:.4f})'")

rec_blink = config.get("rec_blink")
rec_dot_input_idx = None
if rec_blink:
    dot_path = rec_blink.get("dot_image")
    if dot_path and os.path.isfile(dot_path):
        rec_dot_input_idx = len(input_files) + len(extra_inputs)
        extra_inputs.append(("rec_dot", rec_dot_input_idx, os.path.abspath(dot_path)))
        bx = rec_blink.get("x", 62)
        by = rec_blink.get("y", 55)
        period = rec_blink.get("period", 1.0)
        half = period / 2
        vf_parts.append(
            f"[rec_dot]overlay={bx}:{by}:enable='if(gt(t,{cover_duration:.1f}),gte(mod(t,{period:.2f}),{half:.2f}),0)'"
        )
```

Then update th

REMOTION_VOICEOVER.md

# Remotion Voiceover Integration Guide

当有语音但没有画面(或只有语音)时,使用 Remotion 生成配合语音的视频画面。

## 适用场景

1. **纯音频口播** — 有录音/TTS 语音,需要生成匹配的画面
2. **音频 + 静态图片** — 有语音和一些图片素材,需要组合成动态视频
3. **播客可视化** — 将播客/对话音频转为带字幕和视觉效果的视频
4. **解说视频** — 配音 + 文字动画 + 背景图的组合

## Remotion 核心架构

### 项目结构

```
remotion-voiceover/
├── src/
│   ├── Root.tsx                 # 注册所有 Composition
│   ├── compositions/
│   │   ├── VoiceoverVideo.tsx   # 主 Composition(组合所有场景)
│   │   ├── Scene.tsx            # 单个场景组件
│   │   └── types.ts             # 类型定义
│   ├── components/
│   │   ├── AnimatedSubtitle.tsx  # 字幕动画组件
│   │   ├── BackgroundVisual.tsx  # 背景视觉效果
│   │   ├── AudioWaveform.tsx     # 音频波形可视化
│   │   ├── KenBurnsImage.tsx     # Ken Burns 图片动效
│   │   ├── LowerThird.tsx        # 下方三分之一信息条
│   │   ├── ProgressBar.tsx       # 进度条
│   │   └── TransitionEffect.tsx  # 转场效果
│   ├── hooks/
│   │   └── useAudioSync.ts      # 音频同步 Hook
│   └── styles/
│       └── fonts.ts             # 字体加载配置
├── public/
│   ├── audio/                   # 语音文件
│   ├── images/                  # 图片素材
│   └── fonts/                   # 本地字体文件
├── timeline.json                # 时间轴配置(AI 生成)
├── package.json
├── remotion.config.ts
└── tsconfig.json
```

### 关键依赖

```json
{
  "dependencies": {
    "remotion": "^4.x",
    "@remotion/cli": "^4.x",
    "@remotion/media-utils": "^4.x",
    "@remotion/captions": "^4.x",
    "@remotion/google-fonts": "^4.x",
    "@remotion/fonts": "^4.x",
    "@remotion/transitions": "^4.x",
    "react": "^18.x",
    "react-dom": "^18.x"
  }
}
```

## 视频模板样式

### 1. 口播字幕卡片风格(TikTok/抖音风)

适合:短视频口播、知识分享

```
┌─────────────────────────┐
│                         │
│   ┌─────────────────┐   │
│   │  渐变/纯色背景   │   │
│   │                 │   │
│   │   ┌─────────┐   │   │
│   │   │ 关键词   │   │   │
│   │   │ 高亮显示 │   │   │
│   │   └─────────┘   │   │
│   │                 │   │
│   └─────────────────┘   │
│                         │
│  ━━━━━━━━━━━━━━━━━━━━  │  ← 进度条
│  大号字幕逐词高亮显示    │  ← TikTok 风格字幕
│                         │
└─────────────────────────┘
```

**组件结构:**
```tsx
<AbsoluteFill>
  <GradientBackground colors={["#1a1a2e", "#16213e"]} />
  <KeywordCard word={currentKeyword} />
  <AnimatedSubtitle
    captions={captions}
    style="tiktok"           // 逐词高亮
    fontSize={64}
    highlightColor="#FFD700"
  />
  <ProgressBar progress={frame / durationInFrames} />
  <Audio src={voiceoverAudio} />
</AbsoluteFill>
```

**关键 API:**
- `@remotion/captions` → `createTikTokStyleCaptions()` 生成逐词字幕
- `useCurrentFrame()` + `interpolate()` 控制高亮动画
- `spring()` 实现弹性动效

### 2. 图文解说风格(教程/科普)

适合:教程、科普、产品介绍

```
┌─────────────────────────┐
│  标题区域                │
│  ─────────────────────  │
│                         │
│  ┌──────┐  ┌──────────┐ │
│  │      │  │ 文字说明  │ │
│  │ 图片  │  │ 逐行淡入  │ │
│  │ Ken   │  │          │ │
│  │ Burns │  │ • 要点1   │ │
│  │      │  │ • 要点2   │ │
│  └──────┘  └──────────┘ │
│                         │
│  字幕文字                │
└─────────────────────────┘
```

**组件结构:**
```tsx

Sponsored

Ads related to Auto Video Editor and adjacent AI workflows.