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 ./output

Parameters

ParameterRequiredDescription
--video_urlYesAlias: --video; type: string; the video to convert
--promptYesType: string; GIF requirement description (standard, transparent background, sticker, etc.)
--download-dirNoType: string; downloads result files to the specified local directory
--outputNoType: string[]; specifies output file paths, mapped in order to data.result.urls
--jsonNoOutputs results in JSON format for script or agent parsing