Agent skill

Ffmpeg Skill

by jiushiwon in jiushiwon/wg-skills

FFmpeg 多媒体处理技能 — 将自然语言描述转为正确的 ffmpeg 命令,覆盖视频剪辑、转码、水印、合成、提取、生成等操作。内置一键安装脚本(Windows/Mac/Linux)。触发词:ffmpeg、视频剪辑、视频裁剪、视频转码、视频压缩、去水印、加水印、视频拼接、视频合成、提取音频、视频转…

Apache-2.0Auto-check passedMedia & Creative

Install Ffmpeg Skill

skills CLI
$ npx skills add jiushiwon/wg-skills --skill ffmpeg-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jiushiwon/wg-skills ffmpeg-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jiushiwon/wg-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/vibeCoding/video/ffmpeg-skill .claude/skills/ffmpeg-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ffmpeg-skill
GitHub stars
112
Token cost
~1.4k tokens
SKILL.md length
256 words
Files
15 (incl. scripts, references)
Skills in repo
12
Repo updated
First seen
Licence
Apache-2.0

At a glance

FFmpeg 多媒体处理技能 — 将自然语言描述转为正确的 ffmpeg 命令,覆盖视频剪辑、转码、水印、合成、提取、生成等操作。内置一键安装脚本(Windows/Mac/Linux)。触发词:ffmpeg、视频剪辑、视频裁剪、视频转码、视频压缩、去水印、加水印、视频拼接、视频合成、提取音频、视频转…

  • Works in 10 steps: 必须先检测安装:任何操作前检查 ffmpeg -version 是否可执行 → 路径必须引号:Windows 路径含空格或中文时必须用双引号包裹 → 默认 -y 覆盖:所有命令默认加 -y,但在执行前确认不会误覆盖用户重要文件 → …
  • Tasks that involve Video production
  • SKILL.md covers 定位, 核心能力, 工作流 and 使用场景, plus 5 more sections
  • Runs PowerShell and Shell scripts from its folder; calls ffmpeg and bash

What it does

Ffmpeg Skill is an agent skill from jiushiwon/wg-skills. FFmpeg 多媒体处理技能 — 将自然语言描述转为正确的 ffmpeg 命令,覆盖视频剪辑、转码、水印、合成、提取、生成等操作。内置一键安装脚本(Windows/Mac/Linux)。触发词:ffmpeg、视频剪辑、视频裁剪、视频转码、视频压缩、去水印、加水印、视频拼接、视频合成、提取音频、视频转 GIF、截取视频帧、调整播放速度、画中画、批量处理视频、给视频加字幕、修改分辨率、音频替换、倍速播放、视频倒放。

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 16 other files, including scripts and reference files (for example `README.md`, `references/codec-guide.md` and `references/commands-audio.md`).

It sits in Media & Creative, covering Video production. It works with FFmpeg and Linux. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Video production

Example prompts

  • “/ffmpeg-skill”

Requirements

  • A Bash shell
  • PowerShell

Workflow steps

10 steps, taken from the first numbered list in SKILL.md.

  1. 必须先检测安装:任何操作前检查 ffmpeg -version 是否可执行
  2. 路径必须引号:Windows 路径含空格或中文时必须用双引号包裹
  3. 默认 -y 覆盖:所有命令默认加 -y,但在执行前确认不会误覆盖用户重要文件
  4. ss 位置规则
  5. 无损复制限制:-c copy 只能在关键帧位置切割,不能与滤镜同时使用
  6. 不删原始文件:skill 只生成新文件,绝对不删除用户的源文件
  7. delogo 局限性:只遮盖固定位置水印,不能还原被遮盖画面,动态水印基本无效
  8. 安装脚本安全:安装脚本询问确认后才执行,不偷偷改系统环境变量
  9. GIF 两步走:视频转 GIF 必须先生成调色板再编码,否则色彩极差
  10. concat 用 demuxer:拼接相同编码的视频优先用 concat demuxer(-f concat),不用重编码

What it can do on your machine

Read from SKILL.md and the folder at commit 3569fb8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (PowerShell and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • ffmpeg
    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ffmpeg Skill loads about 1.4k tokens when it runs, and up to ~8.8k if it reads all its reference files. Until then it costs about 55 tokens; SKILL.md has 256 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from jiushiwon/wg-skills at commit 3569fb8, republished under its Apache-2.0 licence (© jiushiwon). 256 words, ~1,352 tokens.

Download SKILL.mdSave it as .claude/skills/ffmpeg-skill/SKILL.md (or your agent's skills folder). This skill also uses 14 other files; get the full folder from GitHub.
name
ffmpeg-skill
description
FFmpeg 多媒体处理技能 — 将自然语言描述转为正确的 ffmpeg 命令,覆盖视频剪辑、转码、水印、合成、提取、生成等操作。内置一键安装脚本(Windows/Mac/Linux)。触发词:ffmpeg、视频剪辑、视频裁剪、视频转码、视频压缩、去水印、加水印、视频拼接、视频合成、提取音频、视频转 GIF、截取视频帧、调整播放速度、画中画、批量处理视频、给视频加字幕、修改分辨率、音频替换、倍速播放、视频倒放。
argument-hint
[操作描述] [输入文件] [参数...]
user-invocable
true
triggers
ffmpeg, 视频剪辑, 视频裁剪, 视频分割, 视频转码, 视频压缩, 视频格式转换, 去水印, 加水印, 视频拼接, 视频合成, 提取音频, 视频转 GIF, 截取视频帧, 调整播放速度, 倍速播放, 视频倒放, 画中画, 批量处理视频, 给视频加字幕, 修改分辨率, 音频替换, 混音, 视频去声…

ffmpeg-skill

FFmpeg 多媒体处理技能 — 把自然语言指令转成正确、安全的 ffmpeg 命令。

定位

本 skill 是 FFmpeg 的命令翻译层:用户说"把视频压缩到 10MB 以内",输出对应的 ffmpeg 命令行并执行。skill 不捆绑 FFmpeg 本体,只提供安装脚本和命令模板。

核心能力

操作域说明关键命令/滤镜
安装检测自动检测 + 一键安装脚本scripts/install-ffmpeg.ps1 / .sh
剪辑裁剪、分割、调速、倒放-ss, -t, setpts, reverse
转码格式转换、压缩、分辨率、帧率-c:v, -crf, scale, -r
去水印模糊遮盖固定区域水印delogo
加水印图片水印、文字水印、动态水印overlay, drawtext
合成拼接、画中画、多轨混合concat, overlay, amix
提取抽帧、提取音频/字幕、视频转 GIF-vn, -an, -map, fps
音频替换音轨、音量、混音、淡入淡出volume, atempo, amix, afade
生成图片序列→视频、单图+音频、测试画面-loop, -framerate

工作流

Step 0: 检测 FFmpeg 是否安装
  → 已安装 → Step 1
  → 未安装 → 提供安装选项:
      "FFmpeg 未安装,请选择安装方式:"
      - 运行 scripts/install-ffmpeg.ps1 (Windows)
      - 运行 scripts/install-ffmpeg.sh (Mac/Linux)
      - 参考 references/install-guide.md 手动安装
  → 用户确认后执行安装,然后进入 Step 1

Step 1: 解析用户意图 → 匹配操作域
Step 2: 查 references/ 中对应命令模板,填充参数
Step 3: 构造完整命令 → 确认文件不会误覆盖
Step 4: 通过 Bash 执行 ffmpeg 命令
Step 5: 验证输出文件,报告结果

使用场景

场景 1:去水印
用户:帮我把 video.mp4 右上角的水印去掉

AI:
  1. 先定位水印:
     ffmpeg -i "video.mp4" -vf "delogo=x=W-250:y=10:w=240:h=60:show=1" -t 5 preview.mp4
  2. 用户确认位置后执行:
     ffmpeg -i "video.mp4" -vf "delogo=x=W-250:y=10:w=240:h=60" -c:a copy output.mp4
场景 2:视频剪辑
用户:把 demo.mp4 从第 30 秒开始,剪出 15 秒

AI:
  ffmpeg -ss 00:00:30 -i "demo.mp4" -t 00:00:15 -c:v libx264 -c:a aac output.mp4
场景 3:视频压缩
用户:把这个视频压缩到小一点,最好 720p

AI:
  ffmpeg -i "input.mp4" -vf "scale=1280:-1" -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k output.mp4
场景 4:视频拼接
用户:把 part1.mp4、part2.mp4、part3.mp4 拼成一个视频

AI:
  生成文件列表 filelist.txt → 执行:
  ffmpeg -f concat -safe 0 -i filelist.txt -c copy output.mp4
场景 5:提取音频
用户:把这个视频的声音单独导出来,要 MP3

AI:
  ffmpeg -i "video.mp4" -vn -c:a libmp3lame -q:a 2 audio.mp3
场景 6:视频转 GIF
用户:把 video.mp4 的 5~8 秒转成 GIF

AI:
  先创建调色板再生成 GIF(两步,保证画质)
  ffmpeg -ss 00:00:05 -t 3 -i "video.mp4" -vf "fps=10,scale=480:-1:flags=lanczos,palettegen" palette.png
  ffmpeg -ss 00:00:05 -t 3 -i "video.mp4" -i palette.png -vf "fps=10,scale=480:-1:flags=lanczos,paletteuse" output.gif
场景 7:倍速播放
用户:把视频调成 1.5 倍速

AI:
  ffmpeg -i "input.mp4" -vf "setpts=0.6667*PTS" -af "atempo=1.5" output.mp4
场景 8:画中画
用户:把 main.mp4 作为主画面,pip.mp4 放在右下角小窗

AI:
  ffmpeg -i "main.mp4" -i "pip.mp4" -filter_complex "[1:v]scale=iw/4:ih/4[pip];[0:v][pip]overlay=W-w-10:H-h-10" -c:a copy output.mp4

约束红线

  1. 必须先检测安装:任何操作前检查 ffmpeg -version 是否可执行
  2. 路径必须引号:Windows 路径含空格或中文时必须用双引号包裹
  3. 默认 -y 覆盖:所有命令默认加 -y,但在执行前确认不会误覆盖用户重要文件
  4. -ss 位置规则:
    • 放 -i 前 → 快速 seek,精度 ±关键帧间隔 → 适合粗略裁剪
    • 放 -i 后 → 精确到帧,但慢 → 适合精确裁剪
    • 推荐:-ss 放 -i 前 + 重编码(不 -c copy)= 又快又准
  5. 无损复制限制:-c copy 只能在关键帧位置切割,不能与滤镜同时使用
  6. 不删原始文件:skill 只生成新文件,绝对不删除用户的源文件
  7. delogo 局限性:只遮盖固定位置水印,不能还原被遮盖画面,动态水印基本无效
  8. 安装脚本安全:安装脚本询问确认后才执行,不偷偷改系统环境变量
  9. GIF 两步走:视频转 GIF 必须先生成调色板再编码,否则色彩极差
  10. concat 用 demuxer:拼接相同编码的视频优先用 concat demuxer(-f concat),不用重编码

安装脚本使用

Windows
powershell
# 在 ffmpeg-skill 目录下
powershell -ExecutionPolicy Bypass -File scripts/install-ffmpeg.ps1

脚本逻辑:检测 ffmpeg → winget 安装 → 失败则从 gyan.dev 下载 → 询问是否添加 PATH。

Mac / Linux
bash
# 在 ffmpeg-skill 目录下
bash scripts/install-ffmpeg.sh

脚本逻辑:检测 ffmpeg → Mac 用 brew → Linux 检测包管理器(apt/dnf/pacman 等)→ 自动安装。

手动安装

参考 references/install-guide.md。

常见问题处理

错误现象原因解决
No such file or directory路径有空格未加引号用双引号包裹路径
-ss 位置不精确用了 -c copy 在非关键帧位置剪去掉 -c copy 改为重编码
GIF 色彩像浆糊直接转未先建调色板用两步流程(palettegen + paletteuse)
concat 拼接失败编码格式或分辨率不一致先统一转码后再拼接,或用 concat filter
字幕乱码未指定中文字体加 fontsdir 指向系统字体目录
hevc 编码器不可用FFmpeg 构建不含 libx265改用 libx264

详细陷阱和解决方案见 references/gotchas.md。

与其他技能的关系

技能关系
image-forge-skill互补:image-forge 处理静态图片,ffmpeg-skill 处理视频/音频
workflow-diagram-skill无直接关联
icon-image-catch-skill可用于抓取水印素材图片

参考资料索引

文件内容
references/install-guide.md三平台手动安装指引
references/gotchas.md常见陷阱与最佳实践
references/codec-guide.md编码器与容器格式速查
references/filter-guide.md滤镜参数速查(scale/crop/delogo/overlay/drawtext)
references/commands-trim.md剪辑类命令模板
references/commands-convert.md转码类命令模板
references/commands-watermark.md水印类命令模板
references/commands-compose.md合成类命令模板
references/commands-extract.md提取类命令模板
references/commands-generate.md生成类命令模板
references/commands-audio.md音频类命令模板

© jiushiwon, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 14 other files (scripts, references) in vibeCoding/video/ffmpeg-skill of jiushiwon/wg-skills.

  • SKILL.md
  • README.md
  • references/codec-guide.md
  • references/commands-audio.md
  • references/commands-compose.md
  • references/commands-convert.md
  • references/commands-extract.md
  • references/commands-generate.md
  • references/commands-trim.md
  • references/commands-watermark.md
  • references/filter-guide.md
  • references/gotchas.md
  • references/install-guide.md
  • scripts/install-ffmpeg.ps1
  • scripts/install-ffmpeg.sh

Open the folder on GitHubat commit 3569fb8

Compare with similar skills

Ffmpeg Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ffmpeg Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ffmpeg Skill this skilljiushiwon/wg-skills112—~1.4kAutomated safety check: PassApache-2.0
Record Demolibnativeapi/nativeapi161—~2.9kAutomated safety check: PassMIT
Env Setupwwwzhouhui/skills_collection282—~3.5kAutomated safety check: NotesNone
Youtube DownloaderOpenMinis/MinisSkills444—~1.8kAutomated safety check: PassMIT
Video EditingLeoYeAI/openclaw-master-skills2.2k—~2.7kAutomated safety check: NotesMIT
Video Clipping ReferenceRightNow-AI/openfang18k—~4.1kAutomated safety check: WarnApache-2.0

Similar skills

  • Record Demo

    libnativeapi/nativeapi

    Record a demo video of a desktop app — launch it, play a scripted scenario with smooth synthetic mouse input, and capture the screen (cursor and click highlights included) straight to an…

    161 GitHub stars~2.9k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Env Setup

    wwwzhouhui/skills_collection

    Checking and provisioning the machine's environment for the video-agent-kit plugin — probing for ffmpeg/ffprobe that actually carry the encoders and filters we render with (libx264/aac/libmp3lame…

    282 GitHub stars~3.5k tokensUpdated 2 days ago
    Media & CreativeAuto-check: notes
  • Youtube Downloader

    OpenMinis/MinisSkills

    Download YouTube videos or extract audio using yt-dlp + ffmpeg in the Linux shell.

    444 GitHub stars~1.8k tokensUpdated today
    Media & CreativeAuto-check passed
  • Video Editing

    LeoYeAI/openclaw-master-skills

    Automated video editing skill for talk/vlog/standup videos. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub stars~2.7k tokensUpdated 2 mo ago
    Media & CreativeAuto-check: notes
  • Video Clipping Reference

    RightNow-AI/openfang

    Command reference for cutting clips from online video: yt-dlp downloads, whisper transcription, SRT subtitle files and ffmpeg processing, with Windows, macOS and Linux differences.

    18k GitHub stars~4.1k tokensUpdated 3 mo ago
    Media & CreativeAuto-check: warnings
  • Ppt Compressor

    LeoYeAI/openclaw-master-skills

    This skill should be used when the user wants to compress a PowerPoint (.pptx) file by reducing the size of embedded videos and large images.

    2.2k GitHub stars~3.9k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed

More from jiushiwon/wg-skills

All 12 skills in this repo
  • Frontend UI Foundry

    jiushiwon/wg-skills

    A skill your agent uses when generating UI for a specific scenario (mobile/PC/官网/管理端/营销页/文档/金融/原生/3D), when refactoring an existing HTML/Vue/React project to a unified design system, when extracting…

    112 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Workflow Diagram Skill

    jiushiwon/wg-skills

    A skill your agent uses when 用户想用一句话生成流程图、工作流图解、开发流程图、AI 流程图或任何步骤型图解,支持多风格输出(flat icon / 暖白手账风 / dark / cute),并提供现成模板一键出图。

    112 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Uniapp App Generate Skill

    jiushiwon/wg-skills

    This skill should be used when the user wants to create a standardized uni-app project for WeChat mini-program, H5, and App from scratch.

    112 GitHub stars~5k tokensUpdated yesterday
    Auto-check: notes
  • Fastapi Init Skill

    jiushiwon/wg-skills

    FastAPI 项目一键初始化技能。面向零基础小白,提供环境探测、自动安装、完整 Web 骨架生成、SSE 流式框架、JWT 鉴权、统一响应封装、文件上传接口、一键启动/重启脚本、Swagger 文档,内置 MySQL(默认)/ PostgreSQL / MongoDB 数据库选择。用户只需说"帮我搭一个 FastAPI 项目"即可一条命令完成从零到跑的完整链路。触发词:"FastAPI…

    112 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check: notes
  • Frontend Request Skill

    jiushiwon/wg-skills

    A skill your agent uses when designing or reviewing the request layer of a frontend project (web / uni-app / mini-program), including request.ts wrappers, interceptors, deduplication, mocks, error…

    112 GitHub stars~3.6k tokensUpdated yesterday
    Auto-check passed
  • React Generate Skill

    jiushiwon/wg-skills

    This skill should be used when the user wants to create a standardized React 18 + TypeScript + Vite + Zustand project from scratch.

    112 GitHub stars~2.8k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Ffmpeg Skill

What does Ffmpeg Skill do?

FFmpeg 多媒体处理技能 — 将自然语言描述转为正确的 ffmpeg 命令,覆盖视频剪辑、转码、水印、合成、提取、生成等操作。内置一键安装脚本(Windows/Mac/Linux)。触发词:ffmpeg、视频剪辑、视频裁剪、视频转码、视频压缩、去水印、加水印、视频拼接、视频合成、提取音频、视频转…. Ffmpeg Skill is an agent skill from jiushiwon/wg-skills.

When should I use Ffmpeg Skill?

Ffmpeg Skill fits situations like: tasks that involve Video production.

How do I install Ffmpeg Skill in Claude Code?

Run `npx skills add jiushiwon/wg-skills --skill ffmpeg-skill -a claude-code`. Or copy the skill folder (vibeCoding/video/ffmpeg-skill in jiushiwon/wg-skills) into .claude/skills/ffmpeg-skill in your project. Claude Code loads it when a task matches its description.

How do I install Ffmpeg Skill in Codex?

Run `npx skills add jiushiwon/wg-skills --skill ffmpeg-skill -a codex`. Or copy the skill folder (vibeCoding/video/ffmpeg-skill in jiushiwon/wg-skills) into .agents/skills/ffmpeg-skill in your project. Codex loads it when a task matches its description.

Can I use Ffmpeg Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jiushiwon/wg-skills --skill ffmpeg-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ffmpeg-skill, .gemini/skills/ffmpeg-skill, .github/skills/ffmpeg-skill and .opencode/skills/ffmpeg-skill in your project.

What does Ffmpeg Skill need to run?

Going by SKILL.md and its folder, Ffmpeg Skill needs PowerShell and a shell for the scripts in its folder and the command-line tools its instructions call (ffmpeg and bash). Our summary lists: A Bash shell; PowerShell.

Does Ffmpeg Skill access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ffmpeg Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Ffmpeg Skill use?

Ffmpeg Skill is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ffmpeg Skill use?

About 1.4k tokens (SKILL.md is roughly 5.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.4k tokens, read only when the agent opens those files.

What are the alternatives to Ffmpeg Skill?

Skills that share tags, products or a category with Ffmpeg Skill: Record Demo (libnativeapi/nativeapi, 161 stars), Env Setup (wwwzhouhui/skills_collection, 282 stars), Youtube Downloader (OpenMinis/MinisSkills, 444 stars) and Video Editing (LeoYeAI/openclaw-master-skills, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ffmpeg Skill?

jiushiwon (a GitHub user) maintains it in jiushiwon/wg-skills, which has 112 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 7, 2026.

Source: jiushiwon/wg-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.