Batch Video to GIF Conversion
Batch convert individual videos into animated GIFs, with support for transparent-background stickers.
meitu batch video-to-gif
Note: Batch processing is available from meitu-cli v2.1.1 onward. Please upgrade if you're on an older version.
Usage Examples
# Scenario 1: Directory scan mode
meitu batch video-to-gif \
--input-dir ./videos \
--output-dir ./gifs \
--prompt "Standard GIF" \
--json
# Scenario 2: Config file mode
meitu batch video-to-gif \
--config ./batch.video-to-gif.yaml \
--output-dir ./gifs \
--jsonConfig File Example
version: 1
defaults:
outputDir: ./gifs
items:
- input: ./videos/video1.mp4
prompt: Standard GIF
- input: ./videos/video2.mp4
prompt: Transparent background sticker GIFParameter Reference
| Parameter | Required | Description |
|---|---|---|
--input-dir | No | Input directory, recursively scan for video files |
--output-dir | Yes | Output directory |
--config | No | Path to YAML/JSON config file |
--concurrency | No | Type: number; Default: 3; Number of parallel tasks |
--max-retries | No | Type: number; Default: 0; Number of retries on failure |
--skip-exist | No | Skip existing output files |
--dry-run | No | Preview the plan without executing |
--no-progress | No | Disable per-task progress logging |
--json | No | Output results in JSON format |
--json-output | No | Write results to a specified JSON file |
--skill-name | No | Server-side skill identifier |
--prompt | No | Type: string; GIF requirement description (standard/transparent background/sticker, etc.) |