Skip to content
Marketing
Skill

/video-editing

用自然语言指令剪辑视频:裁剪、拼接、变速、跳切去静音、文字覆盖、横竖比转换、抽帧封面、转 GIF、压缩、加 BGM/水印,基于 ffmpeg。 当用户说"剪视频""裁剪视频""拼接视频""视频变速""去静音""视频加文字""视频转GIF""压缩视频""加BGM/水印"时使用。 本 SKILL 做单条视频的通用剪辑;智能画幅转换用 video-reframe,长视频切片用 clipify/video-highlights,从 0 生成用 ai-video-gen。

From plugin
easel
4.7k118 skills1 agent

Claude Code

$ npx -y skills add zju-real/easel --skill video-editing --agent claude-code

SKILL.md

video-editing.SKILL.md
name: video-editing
description: >-
  用自然语言指令剪辑视频:裁剪、拼接、变速、跳切去静音、文字覆盖、横竖比转换、抽帧封面、转 GIF、压缩、加 BGM/水印,基于 ffmpeg。
  当用户说"剪视频""裁剪视频""拼接视频""视频变速""去静音""视频加文字""视频转GIF""压缩视频""加BGM/水印"时使用。
  本 SKILL 做单条视频的通用剪辑;智能画幅转换用 video-reframe,长视频切片用 clipify/video-highlights,从 0 生成用 ai-video-gen。
layer: produce

视频剪辑

用自然语言指令做通用视频处理。所有操作都调用共享脚本 `skills/shared/scripts/video_ops.py`(subprocess 封装 ffmpeg/ffprobe), **不要现场手拼 ffmpeg 命令**——脚本已处理音画同步、字体路径、编码默认值、 错误捕获等易错点。

> 从项目根目录运行。脚本相对路径:`skills/shared/scripts/video_ops.py`。 > 每个子命令都支持 `-h` 查看参数。

输入

  • 视频文件路径 + 操作描述(用户没给路径就问)
  • 可选:目标平台/比例/时间段等参数

输出

处理后的视频/图片,存到 `outputs/主题名/`。脚本会打印 `✅ <路径> (大小)`。

与 clipify 的边界

  • **clipify** = 长视频智能切片 + 人脸追踪 pan + 逐字字幕烧录的**特化流程**。

需要"从长视频找精彩片段做成竖版短视频带字幕"时用它。

  • **video-editing(本 SKILL)** = 通用剪辑处理。单点操作或自由组合时用它。

不做人脸追踪、不做字幕烧录(那是 clipify)。

子命令速查

先 `python skills/shared/scripts/video_ops.py info -i <视频>` 看清源信息,再操作。

| 子命令 | 用途 | 关键参数 | |--------|------|----------| | `cut` | 按起止时间裁剪 | `--start --end`/`--duration`,`--reencode` 精确裁 | | `concat` | 多段拼接 | `--mode demuxer`(同参数无损)/`filter`(异参数统一) | | `speed` | 变速(音画同步) | `--factor 2.0` | | `silence-cut` | 检测静音并去除(跳切) | `--noise -30 --min-silence 0.5 --pad 0.05`(别名 `mute-cut`) | | `text` | 文字覆盖 | `--text --position --fontsize --color --start --end --box` | | `aspect` | 横竖比转换 | `--ratio 9:16 --mode pad`(补边)/`crop`(裁切) | | `frame` | 抽帧做封面 | `--time 00:00:03 --width` | | `gif` | 转 GIF | `--start --end --fps 12 --width 480` | | `compress` | 压缩 | `--crf 26` 或 `--bitrate 2M`,`--scale` 降分辨率 | | `bgm` | 加背景音乐混音 | `--music --voice-volume 1.0 --music-volume 0.3` | | `watermark` | 加图片水印 | `--logo --position --width --opacity` | | `info` | 时长/分辨率/帧率/码率(json) | `-i` |

`text` / `watermark` 位置七选一:`center top bottom top-left top-right bottom-left bottom-right`。中文字体自动探测(wqy-microhei / Noto CJK), 也可 `--font` 显式指定。

常用示例

V=skills/shared/scripts/video_ops.py

# 裁剪 00:02:00–00:15:00
python $V cut -i in.mp4 -o out.mp4 --start 00:02:00 --end 00:15:00

# 横版转竖版(社媒竖版转制刚需):补边不裁 or 裁切填满
python $V aspect -i in.mp4 -o vertical.mp4 --ratio 9:16 --mode pad
python $V aspect -i in.mp4 -o vertical.mp4 --ratio 9:16 --mode crop

# 去静音 + 1.25 倍速(先跳切再变速)
python $V silence-cut -i in.mp4 -o t.mp4
python $V speed -i t.mp4 -o out.mp4 --factor 1.25

# 第 3 秒抽帧做封面
python $V frame -i in.mp4 -o cover.jpg --time 00:00:03 --width 1080

# 2–6 秒转 GIF
python $V gif -i in.mp4 -o clip.gif --start 2 --end 6 --fps 12 --width 480

# 60 秒处叠 5 秒"关注我"字幕(底部带框)
python $V text -i in.mp4 -o out.mp4 --text "关注我" --position bottom --box --start 60 --end 65

# 加 BGM(原声 1.0 / BGM 0.3)、加右下角水印、压缩
python $V bgm -i in.mp4 -o out.mp4 --music bgm.mp3 --music-volume 0.3
python $V watermark -i in.mp4 -o out.mp4 --logo logo.png --position bottom-right --width 120
python $V compress -i in.mp4 -o small.mp4 --crf 26 --scale 720

组合操作

链式:每步产物作下一步输入。典型顺序 `cut → silence-cut → speed → text → aspect → compress`。竖版转制放最后(在最终画布上叠字幕更可控)。

平台规范(简表)

| 平台 | 比例 | 时长 | 备注 | |------|------|------|------| | 抖音/视频号/Reels | 9:16 | ≤60s 黄金,前 3s 定成败 | 1080×1920 | | 小红书视频 | 9:16 / 3:4 | ≤60s | 竖版优先 | | B站/YouTube 横版 | 16:9 | 数分钟起 | 1920×1080 | | Instagram Feed | 4:5 / 1:1 | 短 | 4:5 占屏更大 |

更详细规范按需查 `references/`(如有)。

环境要求

  • **ffmpeg + ffprobe** — ✅ 已安装(脚本启动即检查,缺则报错退出)
  • **字幕烧录/逐字字幕** — 走 clipify(需 whisper);本 SKILL 只做 `text` 覆盖

Agent 指令

1. **先 `info`** 看源比例/时长/有无音轨,再决定操作 2. **每个操作调对应子命令**,别手写 ffmpeg;不确定参数用 `<子命令> -h` 3. **多操作链式**执行,中间产物可留 `.drafts/` 4. **产物输出到** `outputs/主题名/`,最后告知路径与时长

Read more
@zju-real
Ships witheasel

An open-source AI agent for social media — discover trends, create content, publish everywhere, and learn what works across Xiaohongshu, Douyin, Zhihu, Bilibili, and more.🎨一个开源的 AI 社交媒体智能体——发现热点趋势、创作内容、一键发布至各大平台,并学习分析哪些内容真正有效,覆盖小红书、抖音、知乎、哔哩哔哩等平台。

4.7k118 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
4.7k
Star history of zju-real/easel on GitHub, a chart by star-history.com

Other skills on easel.

ai-image-gen

ai-image-gen

通用 AI 生图:文生图 / 图生图 / 图像变体。当用户说 AI 生图、AI 画图、文生图、图生图、生成图片、生成配图、图像生成、AI 出图、AI 作图、换图、改图、图像编辑、给我画一张、生成一张图 时使用。支持 OpenAI 兼容 API 与…

@zju-real@zju-realInstall Skill
ai-music

ai-music

AI 音乐 / BGM 生成:给短视频、社媒内容生成原创背景音乐 / 配乐 / 纯音乐。通过可插拔 provider(阿里 DashScope / Suno 类第三方 API)文生音乐,异步提交→轮询→下载,产物可再裁剪/归一化或加到视频。当用户说“AI…

@zju-real@zju-realInstall Skill
ai-video-gen

ai-video-gen

AI 视频生成:文生视频 / 图生视频 / 数字人首帧驱动。通过可插拔 provider(通义万相 Wan / 火山 Seedance / 快手可灵 / OpenAI 兼容)异步生成视频,用户自备 API key。当用户说 AI…

@zju-real@zju-realInstall Skill
asset-manager

asset-manager

outputs/ 目录下的产物管理:按日期/平台/类型归档、打标签、搜索历史内容、生成素材清单。 当用户说"整理素材"、"归档"、"找之前的内容"、"搜索历史"、"素材管理"、 "outputs 整理"、"之前做的"时使用。 与其他 produce 层…

@zju-real@zju-realInstall Skill
audio-denoise

audio-denoise

音频降噪:去除录音中的背景噪声、电流声、风噪、嗡嗡声,基于 ffmpeg 滤镜链(afftdn/highpass/lowpass)。 当用户说"降噪""去噪""去杂音""消除背景噪声""电流声""风噪""录音有杂音""音频降噪"时使用。 和…

@zju-real@zju-realInstall Skill
audio-editing

audio-editing

通用音频处理:音频剪辑/裁剪、格式转码(mp3/wav/m4a/aac)、音量归一化、从视频提取音轨、多段拼接、淡入淡出、变速(保音高)。当用户说“剪音频”“裁一段”“转成…

@zju-real@zju-realInstall Skill

More skills from other plugins.

seo

seo

Comprehensive SEO analysis for any website or business type. Full site audits, single-page analysis, technical SEO (crawlability,…

@agricidaniel@agricidanielInstall Skill
brag

brag

Turn the current project website into a short, polished, shareable launch video using Hyperframes. Use when someone says "/brag",…

brag3w21k
@latent-spaces@latent-spacesInstall Skill
geo-audit

geo-audit

Full website GEO+SEO audit with parallel subagent delegation. Orchestrates a comprehensive Generative Engine Optimization audit…

Questions about video-editing.

Which coding agents can use video-editing?
video-editing installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.