批量视频分辨率超分
批量专项视频分辨率超分,支持目标720P/1080P/2K/4K,仅做像素级分辨率重建。
meitu batch video-resolution-upscale
注意:批量处理功能自 meitu-cli 2.1.1 起开始支持,低版本请先升级后再使用。
使用示例
# 场景一:目录扫描模式
meitu batch video-resolution-upscale \
--input-dir ./low-res \
--output-dir ./hd \
--target-resolution 1080P \
--json
# 场景二:配置文件模式
meitu batch video-resolution-upscale \
--config ./batch.video-resolution-upscale.yaml \
--output-dir ./hd \
--json配置文件示例
version: 1
defaults:
outputDir: ./hd
items:
- input: ./videos/low1.mp4
targetResolution: 1080P
- input: ./videos/low2.mp4
targetResolution: 4K参数说明
| 参数 | 必需 | 说明 |
|---|---|---|
--input-dir | 否 | 输入目录,递归扫描视频文件 |
--output-dir | 是 | 输出目录 |
--config | 否 | YAML/JSON 配置文件路径 |
--concurrency | 否 | 类型:number;默认:3;并行执行数量(视频建议设为 1-2) |
--max-retries | 否 | 类型:number;默认:0;失败重试次数 |
--skip-exist | 否 | 跳过已存在的输出文件 |
--dry-run | 否 | 仅预览计划,不执行 |
--no-progress | 否 | 禁用逐个任务的进度日志 |
--json | 否 | 以 JSON 格式输出结果 |
--json-output | 否 | 将结果写入指定 JSON 文件 |
--skill-name | 否 | 服务端归属的技能名称 |
--target-resolution | 否 | 类型:string;目标分辨率(720P/1080P/2K/4K) |