Batch Video Element Remove

Remove passersby, subtitles, watermarks, or all text from videos in batch, supporting multi-type combined removal.

meitu batch video-element-remove

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

Usage Examples

# Scenario 1: Directory scan mode
meitu batch video-element-remove \
  --input-dir ./videos \
  --output-dir ./clean \
  --prompt "Remove watermark" \
  --json

# Scenario 2: Config file mode
meitu batch video-element-remove \
  --config ./batch.video-element-remove.yaml \
  --output-dir ./clean \
  --json

Config File Example

version: 1
defaults:
  outputDir: ./clean
items:
  - input: ./videos/video1.mp4
    prompt: Remove the watermark at the bottom right corner
  - input: ./videos/video2.mp4
    prompt: Remove subtitles

Parameter Reference

ParameterRequiredDescription
--input-dirNoInput directory, recursively scans for video files
--output-dirYesOutput directory
--configNoPath to YAML/JSON config file
--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
--promptNoType: string; Description of elements to remove