
UDP-multicast: allows to save bandwidth when clients are all in the same LAN, by sending packets once to a fixed multicast IP.UDP: the most performant, but doesn't work when there's a NAT/firewall between server and clients.RTSP is a standardized protocol that allows to publish and read streams in particular, it supports different underlying transport protocols, that are chosen by clients during the handshake with the server: Then edit rtsp-simple-server.yml and replace everything inside section paths with the following content: If you want to run the standard (non-dockerized) version of the server, just download the server executable and make sure to pick the arm64 variant if you're using the 64-bit version of the operative system. Make sure that the libcamera version is at least 0.0.1, otherwise upgrade it with sudo apt upgrade. Type sudo raspi-config, then go to Interfacing options, enable/disable legacy camera support, choose no. Make sure that the legacy camera stack is disabled. The server must run on a Raspberry Pi, with Raspberry Pi OS bullseye or newer as operative system. Rtsp-simple-server natively support the Raspberry Pi Camera, enabling high-quality and low-latency video streaming from the camera to any user. Paths 187 pprofĪ performance monitor, compatible with pprof, can be enabled with the parameter pprof: yes then the server can be queried for metrics with pprof-compatible tools, like:įfmpeg -list_devices true -f dshow -i dummyĪfter starting the server, the webcam can be reached on rtsp://localhost:8554/cam. Compatible with Linux, Windows and macOS, does not require any dependency or interpreter, it's a single executableĭownload and extract a precompiled binary from the release page.Natively compatible with the Raspberry Pi Camera.Run external commands when clients connect, disconnect, read or publish streams.Reload the configuration without disconnecting existing clients (hot reloading).Query and control the server through an HTTP API.Redirect readers to other RTSP servers (load balancing).Authenticate users use internal or external authentication.Serve multiple streams at once in separate paths.For instance, it's possible to publish a stream with RTSP and read it with HLS Streams are automatically converted from a protocol to another.Each stream can have multiple video and audio tracks, encoded with any RTP-compatible codec, including H264, H265, VP8, VP9, MPEG2, MP3, AAC, Opus, PCM, JPEG.Proxy streams from other servers or cameras, always or on-demand.Rtsp-simple-server is a ready-to-use and zero-dependency server and proxy that allows users to publish, read and proxy live video and audio streams through various protocols: protocol
