feat(video-pipeline): 增强参考图自动上传与视频生成重试机制

- 在 `init-manifest` 阶段添加输入文件清理日志和 WARNING 提示
- `getReferences` 改为异步并自动将本地参考图上传至 OSS,减少手动操作
- `phase-videos` 支持 `pending`/`failed` 状态 item 的自动重试,自动清理旧视频引用
- 优化 `phase-assemble` 中字幕与配音开关的逻辑,根据实际内容动态判断
This commit is contained in:
2026-05-03 02:03:17 +08:00
parent 6e8d2b8baa
commit 0e3f0f7d0f
10 changed files with 713 additions and 12 deletions

View File

@@ -29,7 +29,7 @@ async function phaseImages(manifest, manifestPath, options) {
log('images', '首尾帧模式不支持 MJ自动降级为 Gemini')
model = 'gemini'
}
const refs = getReferences(manifest, accountConfig)
const refs = await getReferences(manifest, accountConfig)
log('images', `${items.length} 张, 模型: ${model}, 画幅: ${ratio}, 参考图: ${refs.localPaths.length}本地/${refs.urls.length}URL, 并发: 全并行`)