Files
ryan.mcgee 4adf3a5c2f Switch browser to MJPEG HTTP, reduce CPU, fix live feeds
Browser: replace WebRTC/HLS with direct MJPEG HTTP streams
(/stream/raw, /stream/overlay) served by the Go server itself.
<img> tag, no JavaScript, works in every browser, zero extra encoding.

CPU:
- Raw RTSP now uses ffmpeg -c:v copy (MJPEG passthrough), eliminating
  one full libx264 encode pass.
- Overlay RTSP throttled to 5fps (OCTOCAM_OVERLAY_RTSP_FPS); browser
  still receives the full camera framerate via MJPEG HTTP.

Architecture: new internal/mjpeg.Broadcaster fans JPEG frames out to
any number of HTTP clients with per-client drop-on-full buffering.
RTSP URLs shown in the stats bar for VLC / OctoPrint use.

Fix .gitignore to use /octocam so it doesn't match cmd/octocam dir.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 16:43:43 -05:00

3 lines
15 B
Plaintext