RTSP::Server(3pm)

RTSP::Server3pm

Lightweight rtsp/rtp server. like icecast, for audio/video streams.

Usage

  use AnyEvent;
  use RTSP::Server;
  # defaults:
  my $srv = new RTSP::Server(
      log_level             => 2,   # 0 = no output, 5 = most verbose
      max_clients           => 100,
      client_listen_port    => 554,
      source_listen_port    => 5545,
      rtp_start_port        => 20000,
      client_listen_address => '0.0.0.0',
      source_listen_address => '0.0.0.0',
  );
  # listen and accept incoming connections asynchronously
  # (returns immediately)
  $srv->listen;
  # main loop
  my $cv = AnyEvent->condvar;
  # ...
  $cv->recv;
  undef $srv;  # when the server goes out of scope, all sockets will
               # be cleaned up

Overview

This server is designed to enable to rebroadcasting of RTP media streams to clients, controlled by RTSP. Please see README for more information.

Usage

After starting the server, stream sources may send an ANNOUNCE for a desired mountpoint, followed by a RECORD request to begin streaming. Clients can then connect on the client port at the same mountpoint and send a PLAY request to receive the RTP data streamed from the source.

Bundled applications

Includes rtsp-server.pl, which basically contains the synopsis.

Coming soon

Priv dropping, authentication, client encoder, stats, tests

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Author

Mischa Spiegelmock, <[email protected]>

From librtsp-server-perl 0.06-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.