360 Secure SkillHub
360 安全技能中心

Clip

该 Skill 通过 bash 脚本调用 yt-dlp 下载指定 YouTube 视频,再用 ffmpeg 按起始与结束时间裁剪片段,结果保存为桌面 Clips 目录下的 mp4 文件,并在完成后删除原始完整下载文件。使用前需在本机安装 yt-dlp 与 ffmpeg。

bestisblessed
bestisblessed
热度 88.76
最近更新 2026-05-11 17:28:11
分类:创作依赖:代码执行 / 读写文件 / 第三方 API应用场景:视频编辑

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add clip
Metadata
name
clip
description
Downloads given video from YouTube, clips from given start and end time, saves to folder on your Desktop
metadata
{"openclaw":{"emoji":"✂️","requires":{"bins":["yt-dlp","ffmpeg"]},"install":[{"id":"brew-ffmpeg","kind":"brew","formula":"ffmpeg","bins":["ffmpeg"],"label":"Install ffmpeg (brew)"},{"id":"brew-ytdlp","kind":"brew","formula":"yt-dlp","bins":["yt-dlp"],"label":"Install yt-dlp (brew)"},{"id":"apt-ffmpeg","kind":"apt","package":"ffmpeg","bins":["ffmpeg"],"label":"Install ffmpeg (apt)"},{"id":"apt-ytdlp","kind":"apt","package":"yt-dlp","bins":["yt-dlp"],"label":"Install yt-dlp (apt)"}],"user-invocable":true}}

clip

Downloads given video URL from YouTube, clips any start and end time range, saves to folder on your Desktop ~/Desktop/Clips. Deletes the full raw downloaed version at the end for cleanup.

Example

/clip https://www.youtube.com/watch?v=Tyej_V2ilZA 0:00 3:17 holloway-bmf-walkout

How to ask

Give timestamps: URL + start + end + optional name.

Clip https://youtu.be/VIDEO_ID from 0:00 to 1:12, name it myclip

Run

{baseDir}/clip.sh --url "https://youtu.be/VIDEO_ID" --start 0 --end 72 [--name "myclip"]

Times: seconds (72) or HH:MM:SS. Output: ~/Desktop/Clips/<name>.mp4.