fix(video-pipeline): 自动修复上传前引用的候选图片路径并修复音频时长精度

在 `phase-upload` 中添加 `autoFixFile` 逻辑,当 `item.file` 指向不存在的文件时,自动从 `candidates` 中匹配实际存在的文件并更新 `item.file`,避免上传阶段因用户手动换图删除候选文件而导致失败。同时修复 `capcut-timeline` 音频/视频时长计算,使用 `Math.round` 避免微秒级浮点精度问题。
This commit is contained in:
2026-05-03 16:11:08 +08:00
parent 0e3f0f7d0f
commit 7abe5f7c96
5 changed files with 103 additions and 62 deletions

View File

@@ -128,7 +128,7 @@ node scripts/pipeline.js run --manifest <path> --phase images
### Step 2-C: 人工确认(可跳过)
展示分镜图给用户 → 用户可确认全部 / 替换候选图 / 删除不合格项。
告知图片路径给用户自行查看 → 用户可确认全部 / 替换候选图 / 删除不合格项。
用户确认后 `pipeline.js confirm --manifest <path> --all`,跳过则批量设置 `confirmed=true`
### Step 3-A: 视频提示词B 模式专属,子 Agent 执行)