Batch Video Stitching

Batch concatenate multiple video segments in sequence, supporting plain stitching with original audio retained or stitching with automatic background music addition.

meitu batch video-stitch

Note: Batch processing is available from meitu-cli v2.1.1 onward. Please upgrade if you're on an older version.

Usage Examples

# Config file mode (config file required)
meitu batch video-stitch \
  --config ./batch.video-stitch.yaml \
  --output-dir ./outputs \
  --json

Config File Example

version: 1
defaults:
  outputDir: ./outputs
items:
  - input:
      - ./clips/clip1.mp4
      - ./clips/clip2.mp4
      - ./clips/clip3.mp4
    prompt: Stitch videos and add background music
  - input:
      - ./clips/clip4.mp4
      - ./clips/clip5.mp4
    prompt: Plain stitch with original audio

Parameter Reference

ParameterRequiredDescription
--output-dirYesOutput directory
--configYesPath to YAML/JSON config file (config file is required)
--concurrencyNoType: number; Default: 3; Number of parallel tasks (recommended 1-2 for videos)
--max-retriesNoType: number; Default: 0; Number of retries on failure
--skip-existNoSkip existing output files
--dry-runNoPreview the plan without executing
--no-progressNoDisable per-task progress logging
--jsonNoOutput results in JSON format
--json-outputNoWrite results to a specified JSON file
--skill-nameNoServer-side skill identifier