rtspsrc

rtspsrc — Receive data over the network via RTSP (RFC 2326)

Synopsis




enum        GstRTSPProto;
            GstRTSPSrc;

Object Hierarchy


  GObject
   +----GstObject
         +----GstElement
               +----GstRTSPSrc

Properties


  "debug"                gboolean              : Read / Write / Construct
  "location"             gchararray            : Read / Write / Construct
  "protocols"            GstRTSPProto          : Read / Write / Construct
  "retry"                guint                 : Read / Write / Construct

Description

Makes a connection to an RTSP server and read the data. rtspsrc strictly follows RFC 2326 and therefore does not (yet) support RealMedia/Quicktime/Microsoft extensions.

RTSP supports transport over TCP or UDP in unicast or multicast mode. By default rtspsrc will negotiate a connection in the following order: UDP unicast/UDP multicast/TCP. The order cannot be changed but the allowed protocols can be controlled with the "protocols" property.

rtspsrc currently understands SDP as the format of the session description. For each stream listed in the SDP a new rtp_streamd pad will be created with caps derived from the SDP media description. This is a caps of mime type "application/x-rtp" that can be connected to any available rtp depayloader element.

rtspsrc will internally instantiate an RTP session manager element that will handle the RTCP messages to and from the server, jitter removal, packet reordering along with providing a clock for the pipeline. This feature is however currently not yet implemented.

rtspsrc acts like a live source and will therefore only generate data in the PLAYING state.

Example launch line

gst-launch rtspsrc location=rtsp://some.server/url ! fakesink

Establish a connection to an RTSP server and send the stream to a fakesink.

Last reviewed on 2006-06-20 (0.10.4)

Element Information

plugin rtsp
author Wim Taymans <wim@fluendo.com>
class Source/Network

Details

enum GstRTSPProto

typedef enum
{
  GST_RTSP_PROTO_UDP_UNICAST    = (1 << 0),
  GST_RTSP_PROTO_UDP_MULTICAST  = (1 << 1),
  GST_RTSP_PROTO_TCP            = (1 << 2),
} GstRTSPProto;


GstRTSPSrc

typedef struct _GstRTSPSrc GstRTSPSrc;

Property Details

The "debug" property

  "debug"                gboolean              : Read / Write / Construct

Dump request and response messages to stdout.

Default value: FALSE


The "location" property

  "location"             gchararray            : Read / Write / Construct

Location of the RTSP url to read.

Default value: NULL


The "protocols" property

  "protocols"            GstRTSPProto          : Read / Write / Construct

Allowed protocols.

Default value: UDP Unicast|UDP Multicast|TCP


The "retry" property

  "retry"                guint                 : Read / Write / Construct

Max number of retries when allocating RTP ports.

Allowed values: <= 65535

Default value: 20