After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776314 - rtspsrc: suggest multicast but do not require it
rtspsrc: suggest multicast but do not require it
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-20 15:17 UTC by Nicola
Modified: 2018-11-03 15:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
logs (56.21 KB, text/plain)
2016-12-20 15:17 UTC, Nicola
  Details
proposed fix (1.10 KB, patch)
2016-12-20 15:18 UTC, Nicola
reviewed Details | Review

Description Nicola 2016-12-20 15:17:44 UTC
Created attachment 342267 [details]
logs

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
Comment 1 Nicola 2016-12-20 15:18:28 UTC
Created attachment 342268 [details] [review]
proposed fix

this patch solves the issue
Comment 2 Sebastian Dröge (slomo) 2016-12-21 08:04:56 UTC
Review of attachment 342268 [details] [review]:

::: gst/rtsp/gstrtspsrc.c
@@ +6046,2 @@
     if (stream->is_multicast)
+      protocols |= GST_RTSP_LOWER_TRANS_UDP_MCAST;

This seems wrong. You now allow multicast even if protocols (as set via the property) did not allow it. Or am I missing something?
Comment 3 Nicola 2016-12-21 08:26:48 UTC
yes, this is probably wrong, 

actually if multicast is detected inside sdp other protocols set via the property are excluded, maybe we should remove this line?
Comment 4 GStreamer system administrator 2018-11-03 15:15:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/332.