← Back to Skills Marketplace
xiwei26

Video to GIF

by xiwei26 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
42
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install video-to-gif-hq
Description
Convert video files or clips into animated GIFs/WebP using ffmpeg, with resizing, fps control, trimming, palette generation, and file-size optimization. Use...
README (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.

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install video-to-gif-hq
  3. After installation, invoke the skill by name or use /video-to-gif-hq
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug video-to-gif-hq
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 42 downloads so far.

How do I install Video to GIF?

Run "/install video-to-gif-hq" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Video to GIF free?

Yes, Video to GIF is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Video to GIF support?

Video to GIF is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Video to GIF?

It is built and maintained by xiwei26 (@xiwei26); the current version is v1.0.0.

💬 Comments