video-stitch

Stitches multiple video clips together in sequence. Two modes are supported: plain stitching (retaining original audio) and stitching with automatic background music. Specifying a particular music URL (requires upper-level orchestration) and custom transitions are not supported.

meitu video-stitch

Usage Examples

# Plain stitch retaining original audio (required parameters only)
meitu video-stitch \
  --video_list ./clip1.mp4 \
  --video_list ./clip2.mp4 \
  --prompt "Stitch in sequence" \
  --json

# Stitch with automatic background music
meitu video-stitch \
  --video_list ./clip1.mp4 \
  --video_list ./clip2.mp4 \
  --video_list ./clip3.mp4 \
  --prompt "Stitch and add upbeat background music" \
  --json

# Adjust volume with result download
meitu video-stitch \
  --video_list ./clip1.mp4 \
  --video_list ./clip2.mp4 \
  --prompt "Stitch videos" \
  --video_volume 0.8 \
  --canvas_flag 1 \
  --json \
  --download-dir ./output

Parameters

ParameterRequiredDescription
--video_listYesType: string[]; list of at least 2 video URLs
--promptYesType: string; stitch requirement description (e.g., whether to add background music)
--music_urlNoType: string; audio input (passed in by upper-level orchestration)
--video_volumeNoType: number; default: 1; original video audio volume, range 0-1
--canvas_flagNoType: number; default: 0; options: 0 / 1
--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