← 返回 Skills 市场
sallyxie2026

Video to GIF

作者 sallyxie2026 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
482
总下载
2
收藏
5
当前安装
1
版本数
在 OpenClaw 中安装
/install video-to-gif
功能描述
Use when converting a video clip into a GIF with ffmpeg. Supports trimming by start time and duration, controlling frame rate and width, and returning the ou...
使用说明 (SKILL.md)

Video to GIF / 视频转 GIF

Purpose / 功能定位

English

Use this skill when the task is to convert a video file into a GIF animation.

This skill is intended for requests such as:

  • convert a video to GIF
  • make a GIF from a clip
  • export part of a video as a GIF
  • create a smaller GIF by limiting width, frame rate, or duration

中文

当任务是把一个视频文件转换成 GIF 动图时,应使用这个 Skills。

这个 Skills 适合处理以下类型的请求:

  • 把视频转成 GIF
  • 从视频里截取一段做成 GIF
  • 导出视频片段为 GIF
  • 通过限制宽度、帧率、时长来生成更小的 GIF

What This Skill Does / 这个 Skills 做什么

English

This skill uses ffmpeg to convert video into GIF and supports:

  • custom frame rate
  • custom output width
  • custom start time
  • custom duration
  • output file summary after conversion

中文

这个 Skills 使用 ffmpeg 将视频转换为 GIF,并支持:

  • 自定义帧率
  • 自定义输出宽度
  • 自定义开始时间
  • 自定义截取时长
  • 转换完成后输出结果摘要

Prerequisites / 前置依赖

English

This skill requires:

  • ffmpeg
  • ffprobe

Before running the script, check:

command -v ffmpeg
command -v ffprobe

If either command is missing, ask the user to install ffmpeg first instead of trying to auto-install it silently.

中文

这个 Skills 依赖:

  • ffmpeg
  • ffprobe

运行脚本前先检查:

command -v ffmpeg
command -v ffprobe

如果缺少其中任意一个命令,应先提示用户安装 ffmpeg,而不是静默自动安装。

Quick Start / 快速开始

English

python3 scripts/convert.py input.mp4 output.gif
python3 scripts/convert.py input.mp4 output.gif --fps 12 --width 360
python3 scripts/convert.py input.mp4 output.gif --start 00:00:03 --duration 5

中文

python3 scripts/convert.py input.mp4 output.gif
python3 scripts/convert.py input.mp4 output.gif --fps 12 --width 360
python3 scripts/convert.py input.mp4 output.gif --start 00:00:03 --duration 5

Parameters / 参数

Parameter / 参数 Type / 类型 Required / 必填 Default / 默认值 Description / 说明
input string yes - input video path / 输入视频路径
output string yes - output GIF path / 输出 GIF 路径
fps number no 15 output frame rate / 输出帧率
width number no 480 output width in pixels / 输出宽度像素
start string no 0 clip start time / 开始时间
duration string no - clip duration / 持续时间

Workflow / 工作流程

English

  1. Confirm the input file exists.
  2. Confirm ffmpeg and ffprobe are installed.
  3. Choose optional parameters such as fps, width, start, and duration.
  4. Run the conversion script.
  5. Return the output path, size, dimensions, and frame rate.

中文

  1. 确认输入文件存在。
  2. 确认 ffmpegffprobe 已安装。
  3. 选择需要的可选参数,例如 fpswidthstartduration
  4. 执行转换脚本。
  5. 返回输出路径、文件大小、尺寸和帧率。

When To Use / 适用场景

English

Use this skill when the user wants a GIF generated from a local video file.

中文

当用户希望从本地视频文件生成 GIF 时,应使用这个 Skills。

When Not To Use / 不适用场景

English

Do not use this skill for:

  • editing video timelines in a full editor
  • downloading online videos
  • generating animated stickers in platform-specific formats
  • converting images into GIF slideshows

中文

以下场景不应使用这个 Skills:

  • 完整的视频时间线编辑
  • 下载在线视频
  • 生成特定平台格式的动态贴纸
  • 把多张图片拼接成 GIF 轮播

Script / 脚本

English

Use:

python3 scripts/convert.py \x3Cinput> \x3Coutput> [--fps N] [--width N] [--start T] [--duration T]

中文

使用方式:

python3 scripts/convert.py \x3Cinput> \x3Coutput> [--fps N] [--width N] [--start T] [--duration T]
安全使用建议
This skill appears to do exactly what it says: run ffmpeg/ffprobe locally to produce a GIF. Before running, ensure you have a trusted build of ffmpeg/ffprobe installed and that the input video comes from a safe source (maliciously crafted media can sometimes exploit native codecs). You can also review scripts/convert.py yourself — it only invokes ffmpeg/ffprobe and reads/writes local files, and it does not send data externally or require credentials. If you want extra caution, run the script in a restricted environment (container or VM).
功能分析
Type: OpenClaw Skill Name: video-to-gif Version: 1.0.0 The skill is a legitimate utility for converting video files to GIFs using ffmpeg. The implementation in `scripts/convert.py` follows security best practices by using list-based arguments with `subprocess.run` to prevent shell injection and includes proper validation for input files and system dependencies. No indicators of malicious intent, data exfiltration, or prompt injection were found.
能力评估
Purpose & Capability
Name/description match the implementation: SKILL.md documents ffmpeg/ffprobe usage and the included scripts perform an ffmpeg-based conversion with options for fps, width, start, and duration. No unrelated services, binaries, or credentials are requested.
Instruction Scope
SKILL.md limits actions to checking for ffmpeg/ffprobe, validating the input file, running the conversion, and returning output metadata. It does not instruct reading unrelated files, fetching network resources, or exfiltrating data. The README explicitly warns not to auto-install ffmpeg.
Install Mechanism
No install spec is provided (instruction-only), so nothing is downloaded or written at install time. This minimizes installation risk.
Credentials
The skill requires no environment variables, no credentials, and no config paths. All requested resources (ffmpeg/ffprobe and local file paths) are appropriate for the stated task.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request persistent presence or try to modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install video-to-gif
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /video-to-gif 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial public release
元数据
Slug video-to-gif
版本 1.0.0
许可证 MIT-0
累计安装 5
当前安装数 5
历史版本数 1
常见问题

Video to GIF 是什么?

Use when converting a video clip into a GIF with ffmpeg. Supports trimming by start time and duration, controlling frame rate and width, and returning the ou... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 482 次。

如何安装 Video to GIF?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install video-to-gif」即可一键安装,无需额外配置。

Video to GIF 是免费的吗?

是的,Video to GIF 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Video to GIF 支持哪些平台?

Video to GIF 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Video to GIF?

由 sallyxie2026(@sallyxie2026)开发并维护,当前版本 v1.0.0。

💬 留言讨论