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 \
--jsonConfig 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 audioParameter Reference
| Parameter | Required | Description |
|---|---|---|
--output-dir | Yes | Output directory |
--config | Yes | Path to YAML/JSON config file (config file is required) |
--concurrency | No | Type: number; Default: 3; Number of parallel tasks (recommended 1-2 for videos) |
--max-retries | No | Type: number; Default: 0; Number of retries on failure |
--skip-exist | No | Skip existing output files |
--dry-run | No | Preview the plan without executing |
--no-progress | No | Disable per-task progress logging |
--json | No | Output results in JSON format |
--json-output | No | Write results to a specified JSON file |
--skill-name | No | Server-side skill identifier |