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 739391 - rtspsrc: rtsp wms streams not working 1.3.1 onwards [regression]
rtspsrc: rtsp wms streams not working 1.3.1 onwards [regression]
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal critical
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 788267 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-10-30 09:42 UTC by Matin Momin
Modified: 2018-11-03 14:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matin Momin 2014-10-30 09:42:23 UTC
Rtsp wms streams not working from version 1.3.1 onwards (not working in 1.4.3 either). It was working in version 1.2.4. I can see that there are quite a few  changes in gstrtspsrc.c between versions 1.24 and 1.3.1. In version 1.3.1 (and onwards), for rtsp wms streams the gst_rtspsrc_stream_configure_transport() function in gstrtpssrc.c is not getting called at all.

I downloaded source of gst-plugins-good versions 1.2.4, 1.3.1 and 1.4.3 and built them all on my x86, Ubuntu Linux 14.04. And tried the following pipeline 

./bin/gst-launch-1.0 rtspsrc location="rtsp://a1989.l1140549988.c11405.e.lm.akamaistream.net/D/1989/11405/v0001/reflector:49988" ! fakesink dump=1

It gives fakesink dump output for version 1.2.4, but fails for versions 1.3.1 and 1.4.3.

Also tested with stream
rtsp://a1671.l2063252432.c20632.g.lm.akamaistream.net/D/1671/20632/v0001/reflector:52432
Comment 1 Tim-Philipp Müller 2014-12-13 00:22:54 UTC
Still broken with 1.4 and git master. Works with 1.2.

$ gst-play-1.0 rtsp://195.134.224.231/snowboard_100.wmv
Now playing rtsp://195.134.224.231/snowboard_100.wmv
Pipeline is live.
ERROR The stream is of a different type than handled by this element. for rtsp://195.134.224.231/snowboard_100.wmv
ERROR debug information: gstasfdemux.c(957): gst_asf_demux_chain_headers (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstASFDemux:asfdemux0: The stream is of a different type than handled by this element.
Comment 2 Wim Taymans 2015-02-03 16:40:19 UTC
First part of the patch:

commit 852c040c89bd99bd11598a628934a2b48b1e9a64
Author: Wim Taymans <wtaymans@redhat.com>
Date:   Tue Feb 3 17:35:52 2015 +0100

    rtspsrc: fix container handling
    
    We detect a container correctly now so we need to revert the weird
    check there was before.
    Use gst_rtspsrc_stream_push_event() to push the caps event on the
    right pad.
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=739391
Comment 3 Wim Taymans 2015-02-03 16:41:14 UTC
It still doesn't work with decodebin because of it delays the linking and we lose the first buffer with the asf header. Works now if manually making a pipeline.
Comment 4 Sebastian Dröge (slomo) 2015-03-05 08:23:19 UTC
See https://bugzilla.gnome.org/show_bug.cgi?id=745599#c8 for a fix for something that was broken by this commit.
Comment 5 Sebastian Dröge (slomo) 2015-03-05 11:19:22 UTC
The part of the commit about buffering might not be right but IRC discussing didn't give any conclusions :) Should be reconsidered, or the comment above it should be removed.

<wtay> slomo, also unsure if the comment about the buffering is still true, in general, I think you want buffering for container streams
<slomo> wtay: ok, then maybe the container condition should go away completely?
<slomo> because otherwise you will never buffer for non-container streams
<andoni> bilboed, this could avoid conflicts of recipes going through the fetch step for the same local sources
<wtay> slomo, that's a good thing, you don't want to buffer
<slomo> i see
<wtay> don't you think?
<wtay> or you think buffering for a non-live stream is better because of our crappy resampling?
<slomo> i don't know :) i have no opinion on that yet, other than that the buffering code in jitterbuffer looked confusing to me last time i looked ;)
Comment 6 Tim-Philipp Müller 2015-08-13 16:54:07 UTC
All the Windows Media RTSP streams I had seem to be down.

Does anyone have URLs that are still up?
Comment 7 Tim-Philipp Müller 2015-08-14 10:48:13 UTC
un-blocker-ing this, since it's not a regression from 1.4 but has been broken for longer (and also we can't fix it without test streams).
Comment 8 Robert Demeter 2015-09-12 16:12:31 UTC
here are some RTSP test streams with WMS:

rtsp://windowsmedia.zdv.uni-mainz.de/zdvsys/Samples/pinball.wmv
rtsp://windowsmedia.zdv.uni-mainz.de/zdvsys/Samples/racecar_300.wmv
rtsp://windowsmedia.zdv.uni-mainz.de/zdvsys/Samples/snowboard_100.wmv
rtsp://windowsmedia.zdv.uni-mainz.de/zdvsys/Samples/snowboard_300.wmv
Comment 9 Robert Demeter 2015-09-14 14:48:07 UTC
I did a regression test. Something wrong happens after this commit (3/06/2014):

"rtspsrc: skip streams with same control url"
commit-ID: 224239096df26f9d32c7172c9786ef82aeac1367

in gstrtspsrc.c file, new_manager_pad() function, all_added flag remains false. so, please clarify if setup, added and container parameters of ostream are set correctly.
Comment 10 Tim-Philipp Müller 2015-09-14 16:16:30 UTC
Thanks a lot for the sample URLs and for bisecting, that's helpful.
Comment 11 Robert Demeter 2015-09-29 17:12:31 UTC
this issue can be reproduced with gstreamer 1.6.0.
Comment 12 Edward Hervey 2016-02-22 07:48:52 UTC
Still seems to fail with master. Works with vlc.

$ gst-launch-1.0 rtsp://windowsmedia.zdv.uni-mainz.de/zdvsys/Samples/snowboard_300.wmv
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://windowsmedia.zdv.uni-mainz.de/zdvsys/Samples/snowboard_300.wmv
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 2
Progress: (request) SETUP stream 2
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.
Additional debug info:
gstrtspsrc.c(4767): gst_rtspsrc_loop_udp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
The server closed the connection.
Comment 13 Edward Hervey 2018-03-22 13:05:08 UTC
*** Bug 788267 has been marked as a duplicate of this bug. ***
Comment 14 GStreamer system administrator 2018-11-03 14:55:23 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/138.