Install
openclaw skills install video-to-gifUse 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...
openclaw skills install video-to-gifUse this skill when the task is to convert a video file into a GIF animation.
This skill is intended for requests such as:
当任务是把一个视频文件转换成 GIF 动图时,应使用这个 Skills。
这个 Skills 适合处理以下类型的请求:
This skill uses ffmpeg to convert video into GIF and supports:
这个 Skills 使用 ffmpeg 将视频转换为 GIF,并支持:
This skill requires:
ffmpegffprobeBefore 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 依赖:
ffmpegffprobe运行脚本前先检查:
command -v ffmpeg
command -v ffprobe
如果缺少其中任意一个命令,应先提示用户安装 ffmpeg,而不是静默自动安装。
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
| 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 / 持续时间 |
ffmpeg and ffprobe are installed.fps, width, start, and duration.ffmpeg 和 ffprobe 已安装。fps、width、start、duration。Use this skill when the user wants a GIF generated from a local video file.
当用户希望从本地视频文件生成 GIF 时,应使用这个 Skills。
Do not use this skill for:
以下场景不应使用这个 Skills:
Use:
python3 scripts/convert.py <input> <output> [--fps N] [--width N] [--start T] [--duration T]
使用方式:
python3 scripts/convert.py <input> <output> [--fps N] [--width N] [--start T] [--duration T]