2026-05-18-19-41-29 修复样例视频浏览器显示

This commit is contained in:
2026-05-18 19:43:25 +08:00
parent 72d0e9a168
commit f89ce5f5f6
7 changed files with 133 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
# 测试方案
开始时间2026-05-18-19-41-29
## 测试项
- `bash scripts/generate_sample.sh`
- `ffprobe` 检查 `storage/samples/synthetic_guidewire.mp4` 编码。
- `pytest -q`
- `curl -s http://127.0.0.1:8001/api/health`
- `curl -s http://127.0.0.1:8001/api/samples`
- 使用样例视频调用 `/api/segment`,确认后端仍可读取视频。
## 验收标准
- 样例视频编码为 H.264 或至少返回 `codec_tag_string=avc1`
- 点击“加载样例”后左侧原始视频面板能显示视频画面。
- 分割接口仍可处理样例视频。
## 执行结果
- `bash scripts/generate_sample.sh`:通过,重新生成样例视频和样例图像。
- `ffprobe storage/samples/synthetic_guidewire.mp4`:通过,返回 `codec_name=h264``codec_tag_string=avc1``pix_fmt=yuv420p`
- `pytest -q`通过4 个测试全部通过。
- `/api/samples`:通过,返回新的样例视频大小 `638484` 字节。
- `/api/segment` 使用新样例视频:通过,返回 `job_id=da013f73c636` 和 3 帧分割结果。
- `git diff --check`:通过,无空白格式错误。