GstRtspSink - Multicast: Difference between revisions

From RidgeRun Developer Wiki
(Created page with "This page describes how to use GstRtspSink multicast capabilities. __TOC__ == RTSP and Multicast == In unicast RTSP, the server sends a copy of the stream packets to each c...")
 
Line 55: Line 55:
   </center>
   </center>
</html>
</html>
The multicast property enables or disables the overall multicast operation. If disabled, none of the multicast-related properties have effect.


Minimum and maximum address is the multicast addresses range available that the RTSP server may use to start streaming. If the first address is already in use, it will connect to the next available address. The same behavior applies to the ports.
Minimum and maximum address is the multicast addresses range available that the RTSP server may use to start streaming. If the first address is already in use, it will connect to the next available address. The same behavior applies to the ports.
The time-to-live 'ttl' property is only available when multicast is enabled. It can takes values from 0 to 255.


== Example ==
== Example ==

Revision as of 23:42, 21 June 2017

This page describes how to use GstRtspSink multicast capabilities.

RTSP and Multicast

In unicast RTSP, the server sends a copy of the stream packets to each client, each one to a different IP address and port negotiated during the initial handshaking. As the number of clients increases, the server would require to send more and more duplicates of the same stream.

In multicast RTSP, the server sends a single stream to a multicast IP address and port, and points the clients to that address. The handshaking process and keepalive messages are still exchanged between the server and each client, however the media streaming will be multicast.

Multicast Properties

The multicast streaming can be configured using some element properties. The following table summarizes the properties related to multicast.

Name Property Default value
Multicast multicast false
Minimum address multicast-ip-min 254.2.0.1
Maximum address multicast-ip-max 254.2.0.10
Minimum port multicast-port-min 5000
Maximum port multicast-port-max 5010
TTL multicast-ttl 16
Table 1. Properties associated to multicast

The multicast property enables or disables the overall multicast operation. If disabled, none of the multicast-related properties have effect.

Minimum and maximum address is the multicast addresses range available that the RTSP server may use to start streaming. If the first address is already in use, it will connect to the next available address. The same behavior applies to the ports.

Example