← 返回 Skills 市场
xiwei26

Video to GIF

作者 xiwei26 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
42
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install video-to-gif-hq
功能描述
Convert video files or clips into animated GIFs/WebP using ffmpeg, with resizing, fps control, trimming, palette generation, and file-size optimization. Use...
使用说明 (SKILL.md)

Video To GIF

Quick workflow

  1. Identify the input video path or ask the user to upload/provide it if missing.
  2. Choose sensible defaults unless the user specifies otherwise:
    • fps=12
    • keep the original video resolution by default; only resize when the user asks for compression/smaller file size or a target dimension
    • trim duration to ≤10 seconds if the user asks for a generic “动图” but the video is long
    • use palette generation for GIF quality
  3. Run scripts/video_to_gif.py from this skill directory.
  4. Verify the output exists and report path/size. Attach with MEDIA:\x3Cpath> if delivering in chat.

Script usage

python3 /root/.openclaw/workspace/skills/video-to-gif/scripts/video_to_gif.py \
  input.mp4 output.gif \
  --start 00:00:02 --duration 4 \
  --fps 12 --width 480

Useful options:

  • --start: clip start time, e.g. 3.5 or 00:00:03.500
  • --duration: clip length in seconds or timestamp format
  • --end: alternative to duration
  • --fps: lower values reduce size; 10–15 is usually good
  • --width: scale output width while preserving aspect ratio
  • --height: scale output height while preserving aspect ratio
  • --output-format gif|webp: WebP is usually much smaller than GIF
  • --loop: 0 means loop forever
  • --max-colors: GIF palette colors, default 256; lower reduces size

Quality and size guidance

  • Default to original resolution for clarity.
  • For Feishu/chat stickers or size-sensitive sharing, ask/choose a smaller width such as --width 360 --fps 10.
  • If GIF is too large, reduce in this order: duration, width, fps, colors.
  • If the user only needs an animated image and not strict GIF, recommend WebP because it is smaller and smoother.

Dependencies

The script requires ffmpeg and ffprobe on PATH. If missing, tell the user the dependency is absent and do not attempt risky system installation without confirmation.

安全使用建议
This skill is reasonable for local video-to-GIF/WebP conversion. Before using it, make sure ffmpeg and ffprobe are installed from a trusted source, provide only videos you intend to process, and choose an output filename that is safe to create or overwrite.
功能分析
Type: OpenClaw Skill Name: video-to-gif-hq Version: 1.0.0 The skill is a legitimate utility for converting video files to GIF or WebP formats using ffmpeg. The Python script (scripts/video_to_gif.py) follows security best practices by using list-based subprocess calls to prevent shell injection and limits its operations to file conversion and temporary directory usage. The SKILL.md instructions are well-aligned with the tool's stated purpose and contain no evidence of malicious prompt injection or unauthorized data access.
能力评估
Purpose & Capability
The stated purpose and implementation align: the skill describes converting videos or clips to GIF/WebP, and the script implements trimming, fps control, scaling, palette generation, and WebP/GIF output.
Instruction Scope
The workflow allows the agent to choose sensible conversion defaults and run the local script. This is disclosed and purpose-aligned, but users should specify start time, duration, and output path when they care about exact results.
Install Mechanism
There is no install spec and the registry metadata declares no required binaries, while SKILL.md says ffmpeg and ffprobe must already be on PATH. This is a dependency visibility issue, not hidden installation.
Credentials
Local video reading and local output writing are proportionate for this skill. The script creates output directories and invokes ffmpeg with overwrite enabled, so the chosen output file path matters.
Persistence & Privilege
No credentials, network endpoints, background agents, persistent memory, or privilege escalation are shown. Temporary palette files are created in a temporary directory and cleaned up by Python's TemporaryDirectory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install video-to-gif-hq
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /video-to-gif-hq 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: convert video clips to GIF/WebP with ffmpeg, trimming, fps controls, palette generation, and original-resolution GIF output by default.
元数据
Slug video-to-gif-hq
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Video to GIF 是什么?

Convert video files or clips into animated GIFs/WebP using ffmpeg, with resizing, fps control, trimming, palette generation, and file-size optimization. Use... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 42 次。

如何安装 Video to GIF?

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

Video to GIF 是免费的吗?

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

Video to GIF 支持哪些平台?

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

谁开发了 Video to GIF?

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

💬 留言讨论