rtspsrc: suggest multicast but do not require it
Submitted by Nicola
Created attachment 342267
rtsp stream from a particular camera works fine with vlc but not with gstreamer, here are the relevant manufacter documentation
The RTSP server handles SETUP requests with multiple transport suggestions. The first transport
possible will be chosen by the server. This allows a client to implement a seamless automatic
‘prefer multicast over unicast’ scenario. This in turn yields a system that makes efficient use of
bandwidth if possible (multicast), while still guaranteeing delivery of video if not (unicast).
To do so, a client needs to specify a multicast transport first and unicast as second, as fallback
option. If the encoder has a multicast stream available, it responds with the multicast connection
parameters. If it hasn't, it responds with unicast connection parameters.
Not every RTSP client available supports this behaviour
If a multicast address is given inside the sdp gstreamer only try multicast and if no data can be received it errors out this way:
Could not connect to server, no protocols left
gstreamer logs attached
Attachment 342267, "logs":