GNOME Bugzilla – Bug 705912
rtspsrc: server closes the connection but pipelines got stuck
Last modified: 2018-11-03 14:49:30 UTC
I have the following pipeline reading from a RTSP server: gst-launch-1.0 rtspsrc location="..." protocols=0x00000004 ! decodebin name=demux ! queue ! videoconvert ! vp8enc ! webmmux name=mux ! filesink location=videos/webm/20121123-1_bb_pl.webm demux. ! queue ! audioconvert ! audioresample ! vorbisenc ! mux. Most of the time it works fine and keep transcoding until the video is done. But sometimes for some reason (the server stopping to send?) the pipeline got stuck blocking my whole script. Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock Redistribute latency... Redistribute latency... Redistribute latency... WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource. Additional debug info: gstrtspsrc.c(3776): gst_rtspsrc_loop_interleaved (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: The server closed the connection. Shouldn't the element raise an error and so the pipeline can be terminated? gstreamer1.0-plugins-good:amd64 1.0.7-1~bpo70+1
Does it happen with every RTSP server? Every source (live or not?)? Does it only happen with TCP or also with UDP (unicast or multicast)? Which version of glib are you using, older versions had some bugs with child GSources.
Don't know I'm always transcoding from the same server. What do you mean by 'live'? I'm only using TCP (see 'protocols=0x00000004'). libglib2.0-0:amd64 2.33.12+really2.32.4-5 (Wheezy)
Is it a stream with infinite length or a known, fixed length? And can you try if it happens with UDP too, or is UDP not working for that stream?
Fixed length. Server only supports TCP so I can't test with UDP.
This is detected as the server doing EOF on the file descripter. A warning is posted and EOS is pushed downstream. Maybe the problem is that the EOS gets stuck somewhere?
Might be the same issue as 747801
-- 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/90.