Skip to content

RTSP output

Sapsan acts as an RTSP server: any stream can be pulled over RTSP — the standard way to feed video into NVRs, analytics systems, and other media servers.

Configuration

Enabling the RTSP listener is enough:

listeners:
  rtsp:
    - port: 554

Playback

ffplay rtsp://server:554/cam1

What the server supports:

  • OPTIONS, DESCRIBE, SETUP, PLAY, TEARDOWN methods;
  • RTP/AVP/TCP (interleaved) transport — works over a single TCP port, firewall-friendly;
  • an RTCP Sender Report before the first RTP packet of each track — the client gets absolute time anchoring right away;
  • H264 and HEVC video, AAC audio (RFC 3640);
  • original stream timestamps are preserved.

Note

TODO: exact RTSP URL scheme (path = stream name?), UDP transport, RTSP playback authorization.

Next steps