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>
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>
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>