video-clip-skill
Clip online videos locally with `yt-dlp`, `ffmpeg`, and the bundled ASS subtitle helper. Use when the user wants highlight clipping, subtitle burn-in, bilingual subtitle generation, or short-form video extraction from a URL or downloaded media. Prefer this skill for local clipping workflows instead of remote editors.
适合你,如果你需要从下载的在线视频中快速剪辑出精彩片段并加入字幕
/ 通过 npx 安装 校验哈希
npx oh-my-skill add qianleigood/crawclaw/video-clip-skill/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- qianleigood/crawclaw/video-clip-skill/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify qianleigood/crawclaw/video-clip-skill安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
30GitHub stars
~422最小装载
~2K含声明引用
~2K文本包总量
索引托管
怎么用
商店整理自技能原文 · 版本 f27e175 · 表述以原文为准它做什么
装上此技能后,Claude 可以剪辑在线视频,包括下载、截取片段、提取高光、添加字幕(如双语或卡拉OK),全部在本地完成。
什么时候触发
当你要求从视频链接或本地文件中剪辑精彩片段、添加字幕或制作短视频时触发。
装好后可以这样说
Claude会下载视频并精确截取该时间段。
Claude会使用自带字幕工具处理。
Claude会分析并列出候选片段供你选择。
技能原文 SKILL.md
Clip Local
Use this skill for local video clipping, not for publishing or remote editing.
Core workflow
- Verify tools first:
yt-dlpffmpegpython3- Decide the mode:
- explicit start/end times -> clip directly
- no times -> identify 3-5 highlight candidates, then ask the user which segment to keep
- Prefer source subtitles when available:
- detect original language
- download original subtitles
- trim subtitle cues to the selected clip range
- Only fall back to transcription when needed:
- if no subtitles exist and
GROQ_API_KEYis present, run Whisper fallback - otherwise ask whether to continue without subtitles
- Burn subtitles only when requested:
- plain clipping -> prefer stream copy when safe
- karaoke / bilingual output -> use the bundled ASS helper and re-encode intentionally
Execution notes
- The bundled subtitle helper lives at
scripts/ass-karaoke.py. - Keep absolute timestamps in the trimmed VTT; shift relative to clip start with the helper's offset flag.
- Re-resolve media URLs if the clip step fails after a long delay because signed stream URLs expire.
Reference routing
- Read
scripts/ass-karaoke.pywhen you need exact subtitle rendering behavior. - Read nearby runtime files only if you need to debug clipping, subtitle timing, or fallback transcription.
Working rules
- Do not use auto-translated YouTube subtitles as the primary source.
- Confirm highlights with the user before clipping when they did not specify timestamps.
- Keep clipping local; do not route this skill into external publishing flows.
- Explain when subtitle burn-in forces re-encoding and longer runtime.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…