Cameras Overview
RUSEON Core provides a high-performance, concurrent pipeline for ingesting, processing, and distributing video streams from RTSP cameras.
Camera Lifecycle Pipeline
The core architecture follows a robust pipeline:
- Configured: The camera exists in the internal BadgerDB database.
- Connecting: RUSEON Core attempts to establish a connection to the RTSP URL via TCP or UDP.
- Streaming: Connection established. The engine receives A/V packets.
- Ring Buffer: Packets are written into a high-performance, lock-free Ring Buffer in memory.
- Consumers: The HLS muxer, WebRTC engine, and disk Recorder consume frames directly from the Ring Buffer, ensuring Zero-allocation where possible and extremely low latency.
Lazy HLS
Cameras can be configured with lazy_hls. When enabled, the HLS muxer will automatically shut down if there are no active clients requesting the stream for 1 minute, saving CPU and memory resources. It starts up instantly when a new client connects.