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 759204 - rtspsrc does not emit no-more-pads unless all streams are added
rtspsrc does not emit no-more-pads unless all streams are added
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.6.1
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-12-08 19:14 UTC by Evan Callaway
Modified: 2018-11-03 15:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Evan Callaway 2015-12-08 19:14:25 UTC
Here is a simple pipeline that I can use to pull a video stream from a camera:

GST_DEBUG=rtspsrc:5 gst-launch-1.0 rtspsrc -e location=rtsp://user:pass@192.168.103.67/rtsp/onvif?profile=stream_all debug=1 ! decodebin ! fakesink

I found that there is some inconsistency in whether the no-more-pads signal is emitted in rtspsrc; some cameras emit the signal and others do not.

Here's a sample of my debug output:

gstrtspsrc.c:2943:pad_blocked:<rtspsrc0>^[[00m pad udpsrc1:src blocked, activating streams
gstrtspsrc.c:4280:gst_rtspsrc_activate_streams:<rtspsrc0>^[[00m activating streams
gstrtspsrc.c:4317:gst_rtspsrc_activate_streams:<rtspsrc0>^[[00m unblocking stream pad 0x7fd37001faf0
gstrtspsrc.c:4317:gst_rtspsrc_activate_streams:<rtspsrc0>^[[00m unblocking stream pad 0x7fd37001e990
gstrtspsrc.c:2987:new_manager_pad:<rtspsrc0>^[[00m got new manager pad <manager:recv_rtp_src_0_2042830296_98>
gstrtspsrc.c:2995:new_manager_pad:<rtspsrc0>^[[00m stream: 0, SSRC 79c31dd8, PT 98
gstrtspsrc.c:3013:new_manager_pad:<rtspsrc0>^[[00m stream 0x7fd37001faf0, container 0, added 1, setup 1
gstrtspsrc.c:3013:new_manager_pad:<rtspsrc0>^[[00m stream 0x7fd37001e990, container 0, added 0, setup 1

As you can see, we attempt to activate two streams, but only actually add one of them, so no-more-pads is never emitted in new_manager_pad.  It seems as though no-more-pads should be emitted when all streams have either been added or can't be added.

Please let me know your thoughts on this.
Comment 1 Sebastian Dröge (slomo) 2015-12-09 09:17:01 UTC
How would you know if a stream can (never) be added?

What is the reason why it happens for your cameras? Does it happen because the non-added streams never have any data?
Comment 2 Edward Hervey 2018-01-15 10:06:12 UTC
Evan, any news on this ?
Comment 3 Edward Hervey 2018-01-15 10:07:41 UTC
Would this be the same issue as bug #739419
Comment 4 GStreamer system administrator 2018-11-03 15:06:38 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/245.