2026-05-18-20-18-20 对齐结果视频时长

This commit is contained in:
2026-05-18 20:22:11 +08:00
parent 88cbcc65c2
commit 5264c5c7fc
7 changed files with 154 additions and 23 deletions

View File

@@ -0,0 +1,34 @@
# 测试方案
开始时间2026-05-18-20-18-20
## 自动化测试
- `python3 -m compileall backend tests`
- `node --check frontend/app.js`
- `pytest -q`
## 接口验证
- 使用样例视频调用 `/api/segment`
- 检查返回的 `duration``result_duration` 基本一致。
- 检查返回的 `source_fps``result_fps` 一致。
- 使用 `ffprobe` 检查生成结果视频时长接近 6 秒。
## 浏览器验证
- Chrome headless 打开页面。
- 点击“加载样例”并运行分割。
- 检查左侧原始视频和右侧结果视频均能加载出画面。
- 检查两个视频 `duration` 接近一致。
- 检查拖动源视频后结果视频跳到相同时间点,反向也一致。
## 执行结果
- `python3 -m compileall backend tests`:通过。
- `node --check frontend/app.js`:通过。
- `pytest -q`5 passed。
- 样例视频调用 `/api/segment`:返回 `duration=6.0``result_duration=6.0``source_fps=12.0``result_fps=12.0`
- `ffprobe storage/jobs/4cc4901e30e9/fusion_overlay.mp4`H.264、yuv420p、12fps、72 帧、6 秒。
- Chrome headless 页面流程:左侧视频 `duration=6`,右侧结果视频 `duration=6`12 个结果帧正常出现。
- Chrome headless 同步验证:源视频 seek 到 2.25 秒后结果视频为 2.25 秒;结果视频 seek 到 4.5 秒后源视频为 4.5 秒。