video-canvas-expand

Expands the video canvas outward (outpainting), with AI intelligently filling in the expanded regions.

meitu video-canvas-expand

Usage Examples

# Default four-direction expansion (required parameters only)
meitu video-canvas-expand \
  --video_url ./sample.mp4 \
  --prompt "AI intelligently fill expanded regions" \
  --json

# Specify expansion ratio and directions
meitu video-canvas-expand \
  --video_url ./sample.mp4 \
  --prompt "Natural scene expansion" \
  --expand_ratio 0.2 \
  --directions "left,right" \
  --json

# Single-direction expansion with result download
meitu video-canvas-expand \
  --video_url ./sample.mp4 \
  --prompt "Sky expansion" \
  --expand_ratio 0.3 \
  --directions up \
  --json \
  --download-dir ./output

Parameters

ParameterRequiredDescription
--video_urlYesType: string; the video to expand
--promptYesType: string; description of the content to fill in the expanded area
--expand_ratioNoAlias: --ratio; type: number; default: 0.3; expansion ratio per edge (relative to original edge length), range 0-0.5
--directionsNoType: string; default: left,right,up,down; expansion directions; any combination of left / right / up / down (comma-separated)
--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