video-to-gif
Converts a video to GIF format. Two types are supported: standard GIF (longest side max 480 px) and transparent-background GIF (240x240 px). When the user requests transparency or stickers and the video has a solid or simple background, a transparent GIF is output. Dimensions cannot be customized.
meitu video-to-gif
Usage Examples
# Standard GIF (required parameters only)
meitu video-to-gif \
--video_url ./sample.mp4 \
--prompt "Standard GIF" \
--json
# Transparent background GIF
meitu video-to-gif \
--video_url ./sample.mp4 \
--prompt "Transparent background sticker GIF" \
--json
# Full parameters with result download
meitu video-to-gif \
--video_url ./sample.mp4 \
--prompt "Standard GIF" \
--json \
--download-dir ./outputParameters
| Parameter | Required | Description |
|---|---|---|
--video_url | Yes | Alias: --video; type: string; the video to convert |
--prompt | Yes | Type: string; GIF requirement description (standard, transparent background, sticker, etc.) |
--download-dir | No | Type: string; downloads result files to the specified local directory |
--output | No | Type: string[]; specifies output file paths, mapped in order to data.result.urls |
--json | No | Outputs results in JSON format for script or agent parsing |