360 Secure SkillHub
360 安全技能中心

视频提取

该 Skill 调用 shell 脚本和 ffmpeg,从视频首帧或指定时间点提取一张画面,适合生成缩略图或快速检查视频内容,输出 JPG/PNG 图片;文档未给出短片段截取的具体用法。

jili544
jili544
热度 53.13
最近更新 2026-05-11 17:30:52
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换 / 视频编辑

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add my-test-viedo
Metadata
name
video-frames
description
Extract frames or short clips from videos using ffmpeg.
homepage
https://ffmpeg.org
metadata
{"clawdbot":{"emoji":"🎞️","requires":{"bins":["ffmpeg"]},"install":[{"id":"brew","kind":"brew","formula":"ffmpeg","bins":["ffmpeg"],"label":"Install ffmpeg (brew)"}]}}

Video Frames (ffmpeg)

Extract a single frame from a video, or create quick thumbnails for inspection.

Quick start

First frame:

{baseDir}/scripts/frame.sh /path/to/video.mp4 --out /tmp/frame.jpg

At a timestamp:

{baseDir}/scripts/frame.sh /path/to/video.mp4 --time 00:00:10 --out /tmp/frame-10s.jpg

Notes

  • Prefer --time for “what is happening around here?”.
  • Use a .jpg for quick share; use .png for crisp UI frames.