Batch Video Audio Add

Add background music (BGM) or voiceover narration to videos in batch, with support for adding both sequentially.

meitu batch video-audio-add

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-audio-add \
  --config ./batch.video-audio-add.yaml \
  --output-dir ./dubbed \
  --json

Config File Example

version: 1
defaults:
  outputDir: ./dubbed
items:
  - video: ./videos/video1.mp4
    audioUrl: https://example.com/bgm.mp3
    prompt: add gentle background music
  - video: ./videos/video2.mp4
    prompt: Add voiceover narration

Parameter Reference

ParameterRequiredDescription
--output-dirYesOutput directory
--configYesPath to YAML/JSON config file (config file required)
--concurrencyNoType: number; Default: 3; Number of parallel tasks (recommend 1-2 for video)
--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-nameNoSkill name for server-side attribution