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 ./outputParameters
| Parameter | Required | Description |
|---|---|---|
--video_url | Yes | Type: string; the video to expand |
--prompt | Yes | Type: string; description of the content to fill in the expanded area |
--expand_ratio | No | Alias: --ratio; type: number; default: 0.3; expansion ratio per edge (relative to original edge length), range 0-0.5 |
--directions | No | Type: string; default: left,right,up,down; expansion directions; any combination of left / right / up / down (comma-separated) |
--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 |