Ffmpeg Skill
kajisho5/ffmpeg-skill
Edit video and audio with local FFmpeg from natural-language requests: cut, trim, join, resize/reframe (9:16, 1:1), speed change, captions and subtitles (SRT/ASS, animated, karaoke), logos and text…
YouTube 视频智能剪辑工具。下载视频和字幕,AI 分析生成精细章节(几分钟级别), 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频,并生成总结文案。
$ npx skills add op7418/Youtube-clipper-skill --skill youtube-clipper -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install op7418/Youtube-clipper-skill youtube-clipper --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
Claude Code skills documentation · loads skills from .claude/skills/
Install the "youtube-clipper" agent skill from https://github.com/op7418/Youtube-clipper-skill/tree/main into .claude/skills/youtube-clipper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "youtube-clipper", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add op7418/Youtube-clipper-skill --skill youtube-clipper -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install op7418/Youtube-clipper-skill youtube-clipper --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "youtube-clipper" agent skill from https://github.com/op7418/Youtube-clipper-skill/tree/main into .agents/skills/youtube-clipper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "youtube-clipper", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add op7418/Youtube-clipper-skill --skill youtube-clipper -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install op7418/Youtube-clipper-skill youtube-clipper --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "youtube-clipper" agent skill from https://github.com/op7418/Youtube-clipper-skill/tree/main into .cursor/skills/youtube-clipper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "youtube-clipper", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add op7418/Youtube-clipper-skill --skill youtube-clipper -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install op7418/Youtube-clipper-skill youtube-clipper --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "youtube-clipper" agent skill from https://github.com/op7418/Youtube-clipper-skill/tree/main into .gemini/skills/youtube-clipper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "youtube-clipper", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install op7418/Youtube-clipper-skill youtube-clipperInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add op7418/Youtube-clipper-skill --skill youtube-clipper -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "youtube-clipper" agent skill from https://github.com/op7418/Youtube-clipper-skill/tree/main into .github/skills/youtube-clipper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "youtube-clipper", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add op7418/Youtube-clipper-skill --skill youtube-clipper -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install op7418/Youtube-clipper-skill youtube-clipper --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "youtube-clipper" agent skill from https://github.com/op7418/Youtube-clipper-skill/tree/main into .opencode/skills/youtube-clipper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "youtube-clipper", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
youtube-clipperYouTube 视频智能剪辑工具。下载视频和字幕,AI 分析生成精细章节(几分钟级别), 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频,并生成总结文案。
Youtube Clipper is an agent skill from op7418/Youtube-clipper-skill. YouTube 视频智能剪辑工具。下载视频和字幕,AI 分析生成精细章节(几分钟级别), 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频,并生成总结文案。 使用场景:当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词:视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 27 other files, including scripts and reference files (for example `.github/REPOSITORY_SETTINGS.md`, `FIXES_AND_IMPROVEMENTS.md` and `README.md`).
It sits in Media & Creative. It works with YouTube, FFmpeg, Homebrew and Python. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f31f077. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadWriteBashGlobAskUserQuestionFrom allowed-tools in the SKILL.md frontmatter.
Ships 5 files in scripts/ (Python and Shell, from the files we listed), which the agent can run.
Shell commands in SKILL.md call:
python3ffmpegbrewpipyt-dlpnpxFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip and npx, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Youtube Clipper loads about 1.6k tokens when it runs, and up to ~6.1k if it reads all its reference files. Until then it costs about 46 tokens; SKILL.md has 445 words of instructions outside code blocks.
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.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Read, Write, Bash, Glob, AskUserQuestionAutomated 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.
The full file from op7418/Youtube-clipper-skill at commit f31f077, republished under its MIT licence (© op7418). 445 words, ~1,605 tokens.
.claude/skills/youtube-clipper/SKILL.md (or your agent's skills folder). This skill also uses 24 other files; get the full folder from GitHub.Installation: If you're installing this skill from GitHub, please refer to README.md for installation instructions. The recommended method is
npx skills add https://github.com/op7418/Youtube-clipper-skill.
你将按照以下 6 个阶段执行 YouTube 视频剪辑任务:
目标: 确保所有必需工具和依赖都已安装
检测 yt-dlp 是否可用
yt-dlp --version检测 FFmpeg 版本和 libass 支持
# 优先检查 ffmpeg-full(macOS)
/opt/homebrew/opt/ffmpeg-full/bin/ffmpeg -version
# 检查标准 FFmpeg
ffmpeg -version
# 验证 libass 支持(字幕烧录必需)
ffmpeg -filters 2>&1 | grep subtitles检测 Python 依赖
python3 -c "import yt_dlp; print('✅ yt-dlp available')"
python3 -c "import pysrt; print('✅ pysrt available')"如果环境检测失败:
brew install yt-dlp 或 pip install yt-dlpbrew install ffmpeg-full # macOSpip install pysrt python-dotenv注意:
/opt/homebrew/opt/ffmpeg-full/bin/ffmpeg (Apple Silicon)目标: 下载 YouTube 视频和英文字幕
询问用户 YouTube URL
调用 download_video.py 脚本
cd ~/.claude/skills/youtube-clipper
python3 scripts/download_video.py <youtube_url>脚本会:
向用户展示:
输出:
<id>.mp4(使用视频 ID 命名,避免特殊字符问题)<id>.en.vtt目标: 使用 Claude AI 分析字幕内容,生成精细章节(2-5 分钟级别)
调用 analyze_subtitles.py 解析 VTT 字幕
python3 scripts/analyze_subtitles.py <subtitle_path>脚本会输出结构化字幕数据:
你需要执行 AI 分析(这是最关键的步骤):
为每个章节生成:
章节生成原则:
向用户展示章节列表:
📊 分析完成,生成 X 个章节:
1. [00:00 - 03:15] AGI 不是时间点,是指数曲线
核心: AI 模型能力每 4-12 月翻倍,工程师已用 Claude 写代码
关键词: AGI、指数增长、Claude Code
2. [03:15 - 06:30] 中国在 AI 上的差距
核心: 芯片禁运卡住中国,DeepSeek benchmark 优化不代表实力
关键词: 中国、芯片禁运、DeepSeek
... (所有章节)
✓ 所有内容已覆盖,无遗漏目标: 让用户选择要剪辑的章节和处理选项
使用 AskUserQuestion 工具让用户选择章节
询问处理选项:
确认用户选择并展示处理计划
目标: 并行执行多个处理任务
对于每个用户选择的章节,执行以下步骤:
python3 scripts/clip_video.py <video_path> <start_time> <end_time> <output_path><章节标题>_clip.mp4<章节标题>_original.srtpython3 scripts/translate_subtitles.py <subtitle_path><章节标题>_translated.srt<章节标题>_bilingual.srtpython3 scripts/burn_subtitles.py <video_path> <subtitle_path> <output_path><章节标题>_with_subtitles.mp4python3 scripts/generate_summary.py <chapter_info><章节标题>_summary.md进度展示:
🎬 开始处理章节 1/3: AGI 不是时间点,是指数曲线
1/6 剪辑视频片段... ✅
2/6 提取字幕片段... ✅
3/6 翻译字幕为中文... [=====> ] 50% (26/52)
4/6 生成双语字幕文件... ✅
5/6 烧录字幕到视频... ✅
6/6 生成总结文案... ✅
✨ 章节 1 处理完成目标: 组织输出文件并展示给用户
创建输出目录
./youtube-clips/<日期时间>/输出目录位于当前工作目录下
组织文件结构:
<章节标题>/
├── <章节标题>_clip.mp4 # 原始剪辑(无字幕)
├── <章节标题>_with_subtitles.mp4 # 烧录字幕版本
├── <章节标题>_bilingual.srt # 双语字幕文件
└── <章节标题>_summary.md # 总结文案向用户展示:
✨ 处理完成!
📁 输出目录: ./youtube-clips/20260121_143022/
文件列表:
🎬 AGI_指数曲线_双语硬字幕.mp4 (14 MB)
📄 AGI_指数曲线_双语字幕.srt (2.3 KB)
📝 AGI_指数曲线_总结.md (3.2 KB)
快速预览:
open ./youtube-clips/20260121_143022/AGI_指数曲线_双语硬字幕.mp4询问是否继续剪辑其他章节
问题: FFmpeg subtitles 滤镜无法正确解析包含空格的路径
解决方案: burn_subtitles.py 使用临时目录
问题: 逐条翻译会产生大量 API 调用
解决方案: 每批 20 条字幕一起翻译
目标: 生成 2-5 分钟粒度的章节,避免半小时粗粒度
方法:
区别:
路径:
/opt/homebrew/bin/ffmpeg/opt/homebrew/opt/ffmpeg-full/bin/ffmpeg (Apple Silicon)<章节标题>_clip.mp4<章节标题>_bilingual.srt<章节标题>_with_subtitles.mp4<章节标题>_summary.md文件名处理:
/, \, :, *, ?, ", <, >, |)当用户触发这个 Skill 时:
记住:这个 Skill 的核心价值在于 AI 精细章节分析 和 无缝的技术处理,让用户能快速从长视频中提取高质量的短视频片段。
© op7418, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 24 other files (scripts, references) in the repository root of op7418/Youtube-clipper-skill.
Open the folder on GitHubat commit f31f077
Youtube Clipper 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Youtube Clipper this skillop7418/Youtube-clipper-skill | 2.2k | — | ~1.6k | Automated safety check: Notes | MIT | |
| Ffmpeg Skillkajisho5/ffmpeg-skill | 1.9k | — | ~7.4k | Automated safety check: Pass | MIT | |
| Claude Real VideoHUANGCHIHHUNGLeo/claude-real-video | 2.2k | — | ~639 | Automated safety check: Pass | MIT | |
| Claude Real VideoHUANGCHIHHUNGLeo/claude-real-video | 2.2k | — | ~559 | Automated safety check: Pass | MIT | |
| Youtube Transcribekennyzir/7deer_skills | 322 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Watchmathiaschu/watch | 142 | — | ~4k | Automated safety check: Warn | MIT |
kajisho5/ffmpeg-skill
Edit video and audio with local FFmpeg from natural-language requests: cut, trim, join, resize/reframe (9:16, 1:1), speed change, captions and subtitles (SRT/ASS, animated, karaoke), logos and text…
HUANGCHIHHUNGLeo/claude-real-video
Watch a video for the user. An agent skill from HUANGCHIHHUNGLeo/claude-real-video.
HUANGCHIHHUNGLeo/claude-real-video
幫 Leo 看影片。當 Leo 丟影片連結(YouTube/IG/TikTok)或本機影片檔,要摘要、分析、拆解對標時使用——Claude 不能直接吃影片,先用這個工具抽關鍵幀+逐字稿+運鏡節奏+聲音/語氣/手勢時間軸再讀。
kennyzir/7deer_skills
YouTube video transcription and memory workflow. An agent skill from kennyzir/7deer_skills.
mathiaschu/watch
Watch a video from YouTube, Instagram, X/Twitter, Vimeo, TikTok or any of ~1800 yt-dlp sites (or a local path).
barefootford/buttercut
Sets up a Mac or Windows PC for ButterCut. An agent skill from barefootford/buttercut.
Categories
YouTube 视频智能剪辑工具。下载视频和字幕,AI 分析生成精细章节(几分钟级别), 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频,并生成总结文案。. Youtube Clipper is an agent skill from op7418/Youtube-clipper-skill.
Youtube Clipper fits situations like: media & Creative work in your project.
Run `npx skills add op7418/Youtube-clipper-skill --skill youtube-clipper -a claude-code`. Or copy the skill folder (the op7418/Youtube-clipper-skill repository) into .claude/skills/youtube-clipper in your project. Claude Code loads it when a task matches its description.
Run `npx skills add op7418/Youtube-clipper-skill --skill youtube-clipper -a codex`. Or copy the skill folder (the op7418/Youtube-clipper-skill repository) into .agents/skills/youtube-clipper in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add op7418/Youtube-clipper-skill --skill youtube-clipper -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/youtube-clipper, .gemini/skills/youtube-clipper, .github/skills/youtube-clipper and .opencode/skills/youtube-clipper in your project.
Going by SKILL.md and its folder, Youtube Clipper needs Python and a shell for the scripts in its folder and the command-line tools its instructions call (python3, ffmpeg, brew, pip, yt-dlp and npx). Our summary lists: Python 3; Node.js; A Bash shell. Its frontmatter pre-approves these tools: Read, Write, Bash, Glob, AskUserQuestion.
SKILL.md contains no URLs. Its commands use pip and npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. 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.
Youtube Clipper is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.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 4.5k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Youtube Clipper: Ffmpeg Skill (kajisho5/ffmpeg-skill, 1.9k stars), Claude Real Video (HUANGCHIHHUNGLeo/claude-real-video, 2.2k stars), Claude Real Video (HUANGCHIHHUNGLeo/claude-real-video, 2.2k stars) and Youtube Transcribe (kennyzir/7deer_skills, 322 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
op7418 (a GitHub user) maintains it in op7418/Youtube-clipper-skill, which has 2,227 GitHub stars. The repository was last updated on January 22, 2026.
Source: op7418/Youtube-clipper-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.