Skip to content

改进 FFprobe 预检诊断与引擎健康详情 - #54

Merged
ooolabdev merged 6 commits into
ooolabdev:mainfrom
Zhong-fan:fix/ffprobe-failure-details
Oct 26, 2026
Merged

ooolabdev merged 6 commits into
ooolabdev:mainfrom
Zhong-fan:fix/ffprobe-failure-details

Conversation

@Zhong-fan

@Zhong-fan Zhong-fan commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

问题

FFprobe 因缺少运行时 DLL 而启动失败时,视频预检可能误报“视频无效”。预检发生在项目创建前,缺少可追查的诊断日志;顶部状态只显示异常数量,难以判断具体哪个引擎无法运行。

修改

  • 将 Windows 缺少 DLL 的退出码 0xC0000135 识别为引擎启动故障;其他非零退出保留 stderr、退出码和可执行文件路径,不直接判定视频损坏。
  • 预检失败时,在应用日志目录写入 ffprobe-probe-latest.log,项目尚未创建也能诊断;日志写入失败时保留原始错误。
  • 顶部显示异常引擎名称,并可展开查看路径、文件是否存在、是否可启动及详细错误,补充中英文文案。
  • 与当前 main 的多任务界面、更新提醒、GPU 检测缓存和自动优化规划兼容。引擎清单与第三方通知保持 main 当前版本。

验证

基于 main c72207e 完成冲突解决后,在 Windows x64 上验证:

  • 前端:49 个测试文件、328 项测试通过;诊断服务 6 项测试通过。包含引擎详情、更新提醒、多任务和错误文案回归。
  • npm run build、npm run verify:licenses、npm run verify:colmap-lock 通过。
  • 引擎脚本测试:64 项通过,8 项平台相关测试跳过。
  • 完整后端:Windows GNU target 的锁定依赖 cargo check 和全目标 cargo clippy -- -D warnings 通过;Rust 格式检查通过。
  • 独立 Rust 验证入口导入本次合并后的真实 FFprobe、进程、视频解析和错误模块,24 项测试通过。覆盖 0xC0000135 分类、预项目日志、日志写入失败保留原始错误,以及真实 FFprobe 对正常视频、损坏输入和纯音频文件的处理。真实进程验证使用本地 FFprobe n8.1.2-50-g1a748fe2cd-20260831;不代表 main 当前锁定引擎组合已重新验证。

本次未运行完整应用的 MSVC Rust 测试、桌面壳、安装包或完整生成流水线。前端构建保留现有 PlayCanvas worker externalization 和大包提示;GNU 后端构建脚本保留现有 MinGW linker 提示。

维护者修复补充(2026-10-25)

已完成同步最新 main c00a09d8 的修复与验证,代码保存在维护者仓库分支:

此提交尚未进入本 PR 的源分支。 当前 GitHub 连接无法写入作者的 fork;以上分支经仓库所有者授权建立,供作者合入。提交以本 PR 原 head 5670a523 和 main c00a09d8 为父提交,保留双方历史。

修复内容

  • 解决 commands、FFprobe 和国际化文件的冲突,保留 main 的全景识别、完整 FFprobe 元数据、64 KiB 输出捕获限制,以及最新错误分类。
  • 在首次 analyze_input 和生成规划的预检失败时记录诊断,保留 source identity 校验与缓存复用。
  • 日志目录无法解析、目录创建失败或日志写入失败均不会覆盖原始错误;预检成功时不会因诊断目录不可用而失败。
  • 保留 PR 的缺少 DLL 识别、引擎详情展示与翻译;增加日志目录不可用的回归用例,并适配 main 新增的结构化进程退出状态。

本次验证

  • npm test:65 个前端测试文件、536 项测试通过;诊断服务 6 项测试通过。
  • npm run build、verify:licenses、verify:colmap-lock 通过。
  • 引擎脚本测试:74 项通过,1 项平台相关用例跳过。
  • Rust 格式检查通过。
  • 独立 Rust 验证入口直接导入实际 FFprobe、进程、视频解析、错误及分类模块:29 项通过;另有 3 项真实 FFprobe 验证通过,覆盖正常视频的元数据保留、损坏输入和纯音频。
  • 未修改的 process::resources::tests::first_cpu_sample_and_missing_pid_are_unknown 在当前环境因无法取得进程内存值而失败,已单列排除;没有将完整 Rust 测试报告为全部通过。Windows 专用 DLL 测试及完整 Tauri 桌面流程未在当前 Linux 环境运行。

作者可在 PR 分支中合入:

git fetch https://github.com/ooolabdev/ooosplat.git fix/pr54-main-sync-20261025
git switch fix/ffprobe-failure-details
git merge --ff-only FETCH_HEAD
git push origin fix/ffprobe-failure-details

@Zhong-fan
Zhong-fan marked this pull request as ready for review September 28, 2026 06:09
@Zhong-fan Zhong-fan changed the title 改进 FFprobe 预检诊断并更新 Windows FFmpeg 8.1 构建 改进 FFprobe 预检诊断与引擎健康详情 Oct 13, 2026
ooolabdev and others added 3 commits October 25, 2026 21:36
Preserve projection metadata and bounded FFprobe capture.
Log initial analysis and planning failures without masking their original cause.
Retain both FFprobe diagnostic suffix handling and reshoot translations. Add seven regression cases for source/reshoot localization with diagnostic suffixes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants