Commit Graph

4 Commits

Author SHA1 Message Date
op
3979e13ca9 Prevent concurrent RTSP recording on the same camera.
Reserve camera ownership under registry lock before spawning ffmpeg, return 409 for conflicts without retry, and transcode slices to 1080p H.264 for more stable playback.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-26 16:32:55 +08:00
Kevin
9f9f24aa05 Add RTSP prewarm keep-alive and track backend/.env for team defaults.
Background ffmpeg pull on all site cameras reduces cold-start latency on start_surgery; timing logs record connect and ready phases. Enable via RTSP_PREWARM_ENABLED in the committed env.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-26 13:16:42 +08:00
Kevin
30e6acea70 Replace chain 1 with RTSP slice batch pipeline and add 24h segment TTL.
Route live recording through ffmpeg MP4 segments and the 5.15 batch subprocess, remove simulated RTSP chain 2, purge expired slices on startup and hourly, and expose TTL settings to the demo client.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-25 10:24:25 +08:00
Kevin
1af442481e 重组为 backend/clients/docs 三层结构,并清理 git 污染。
将后端迁入 backend/,完善根目录 .gitignore,删除误提交的 .mypy_cache 缓存文件。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-21 16:02:25 +08:00