Run compose api as HOST_UID/GID with cache under /tmp, poll slice files for
ready_event when ffmpeg stderr is silent, invoke batch via venv python, exclude
logs from build context, and document Docker cache/VLC troubleshooting.
Co-authored-by: Cursor <cursoragent@cursor.com>
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>
Parse OpenCV rtsp_transport options correctly, use -timeout instead of removed -stimeout, map only the first video stream with -an, tighten ready detection, and disable uv bytecode compile during Docker build.
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>
MediaMTX pulls site-config RTSP into HLS with API proxying for hls.js on the demo client; simulated realtime keeps local file previews only. Also add optional JPEG frame capture and document Docker HLS host settings.
Co-authored-by: Cursor <cursoragent@cursor.com>