rtspsrc ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource

Diego Buffa diego.buffa at gmail.com
Wed Oct 19 12:55:39 UTC 2016


Hi all,
I am running the following pipeline:
GST_DEBUG=rtspsrc:5 gst-launch-1.0 rtspsrc "location=rtsp://
192.168.214.117:10201/3GPP/1" user-id=******* user-pw=********
protocols=0x4 debug=true  !   fakesink
where 192.168.214.117 is a IP camera, and after a while I recieve the
following error:

ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not
read from resource.
Additional debug info:
/home/user/yocto/fido/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0-plugins-good/1.4.5-r0/gst-plugins-good-1.4.5/gst/rtsp/gstrtspsrc.c(4641):
gst_rtspsrc_loop_interleaved (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive message. (Parse error)

Here is the part of the log generated by GST_DEBUG=5:

1:53:05.891397809   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4571:gst_rtspsrc_loop_interleaved:<rtspsrc0> we received a
server message
1:53:05.891532476   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4607:gst_rtspsrc_loop_interleaved:<rtspsrc0> got data message
1:53:05.891666476   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4431:gst_rtspsrc_handle_data:<rtspsrc0> pushing data of size
1446 on channel 0
1:53:05.891990476   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4561:gst_rtspsrc_loop_interleaved:<rtspsrc0> doing receive
with timeout 114 seconds, 993252 usec
1:53:05.892382476   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4571:gst_rtspsrc_loop_interleaved:<rtspsrc0> we received a
server message
1:53:05.892520476   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4607:gst_rtspsrc_loop_interleaved:<rtspsrc0> got data message
1:53:05.892658809   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4431:gst_rtspsrc_handle_data:<rtspsrc0> pushing data of size
1446 on channel 0
1:53:05.892981809   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4561:gst_rtspsrc_loop_interleaved:<rtspsrc0> doing receive
with timeout 114 seconds, 992260 usec
1:53:05.893353142   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4571:gst_rtspsrc_loop_interleaved:<rtspsrc0> we received a
server message
1:53:05.893488809   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4607:gst_rtspsrc_loop_interleaved:<rtspsrc0> got data message
1:53:05.893728142   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4431:gst_rtspsrc_handle_data:<rtspsrc0> pushing data of size
1446 on channel 0
1:53:05.894069476   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4561:gst_rtspsrc_loop_interleaved:<rtspsrc0> doing receive
with timeout 114 seconds, 991176 usec
1:53:05.894463809   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4571:gst_rtspsrc_loop_interleaved:<rtspsrc0> we received a
server message
1:53:05.894605809   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4607:gst_rtspsrc_loop_interleaved:<rtspsrc0> got data message
1:53:05.894743809   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4431:gst_rtspsrc_handle_data:<rtspsrc0> pushing data of size
1055 on channel 0
1:53:05.895046809   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4561:gst_rtspsrc_loop_interleaved:<rtspsrc0> doing receive
with timeout 114 seconds, 990192 usec
1:53:06.151676476   414   0x77c230 WARN                 rtspsrc
gstrtspsrc.c:4641:gst_rtspsrc_loop_interleaved:<rtspsrc0> error: Could not
receive message. (Parse error)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not
read from resource.
Additional debug info:
/home/user/yocto/fido/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0-plugins-good/1.4.5-r0/gst-plugins-good-1.4.5/gst/rtsp/gstrtspsrc.c(4641):
gst_rtspsrc_loop_interleaved (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive message. (Parse error)
Execution ended after 1:53:05.693676143
Setting pipeline to PAUSED ...
1:53:06.152789809   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:4995:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd 16
1:53:06.152885142   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:5007:gst_rtspsrc_loop_send_cmd:<rtspsrc0> cancel previous
request 64
1:53:06.152954476   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:5014:gst_rtspsrc_loop_send_cmd:<rtspsrc0> connection flush
busy 64
1:53:06.153019476   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:4242:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 1
1:53:06.153084142   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:4245:gst_rtspsrc_connection_flush:<rtspsrc0> connection flush
1:53:06.153211142   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:5056:gst_rtspsrc_loop:<rtspsrc0> pausing task, reason error
1:53:06.153309476   414   0x77c230 WARN                 rtspsrc
gstrtspsrc.c:5075:gst_rtspsrc_loop:<rtspsrc0> error: Internal data flow
error.
1:53:06.153373809   414   0x77c230 WARN                 rtspsrc
gstrtspsrc.c:5075:gst_rtspsrc_loop:<rtspsrc0> error: streaming task paused,
reason error (-5)
1:53:06.153825142   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4995:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd 16
1:53:06.153930809   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:5014:gst_rtspsrc_loop_send_cmd:<rtspsrc0> connection flush
busy 64
1:53:06.154007142   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4242:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 1
1:53:06.154223476   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:4995:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd 4
1:53:06.154306142   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:5018:gst_rtspsrc_loop_send_cmd:<rtspsrc0> not interrupting
busy cmd 16
Setting pipeline to READY ...
1:53:06.155186809   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:7697:gst_rtspsrc_thread:<rtspsrc0> got command 4
1:53:06.155291142   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4242:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 0
1:53:06.155363142   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:4245:gst_rtspsrc_connection_flush:<rtspsrc0> connection flush
1:53:06.155695809   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:4995:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd 8
1:53:06.155781809   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:5007:gst_rtspsrc_loop_send_cmd:<rtspsrc0> cancel previous
request 64
1:53:06.155850809   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:5014:gst_rtspsrc_loop_send_cmd:<rtspsrc0> connection flush
busy 4
1:53:06.155915809   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:4242:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 1
1:53:06.155977476   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:4245:gst_rtspsrc_connection_flush:<rtspsrc0> connection flush
Setting pipeline to NULL ...
1:53:06.156605142   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:7493:gst_rtspsrc_pause:<rtspsrc0> PAUSE...
1:53:06.156700809   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:7773:gst_rtspsrc_stop:<rtspsrc0> stopping
1:53:06.156710476   414   0x77c230 DEBUG                rtspsrc
gstrtspsrc.c:7571:gst_rtspsrc_pause:<rtspsrc0> PAUSE is not supported
1:53:06.156787476   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:4995:gst_rtspsrc_loop_send_cmd:<rtspsrc0> sending cmd 16
1:53:06.156872142   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:5007:gst_rtspsrc_loop_send_cmd:<rtspsrc0> cancel previous
request 8
1:53:06.156987476   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:5014:gst_rtspsrc_loop_send_cmd:<rtspsrc0> connection flush
busy 16
1:53:06.157060809   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:4242:gst_rtspsrc_connection_flush:<rtspsrc0> set flushing 1
1:53:06.157236142   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:6968:gst_rtspsrc_close:<rtspsrc0> TEARDOWN...
1:53:06.160181809   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:7033:gst_rtspsrc_close:<rtspsrc0> closing connection...
1:53:06.160292809   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:4210:gst_rtsp_conninfo_close:<rtspsrc0> closing connection...
1:53:06.160732809   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:4216:gst_rtsp_conninfo_close:<rtspsrc0> freeing connection...
1:53:06.160862476   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:1576:gst_rtspsrc_cleanup:<rtspsrc0> cleanup
1:53:06.160929809   414   0x76a2e0 DEBUG                rtspsrc
gstrtspsrc.c:1525:gst_rtspsrc_stream_free:<rtspsrc0> free stream 0x75f09eb8

(gst-launch-1.0:414): GStreamer-CRITICAL **: gst_mini_object_unref:
assertion 'mini_object->refcount > 0' failed
Freeing pipeline ...

Attached the last packets exchanged between gstreamer and the IP camera
saved with Wireshark.
Any ideas of what could be the problem? I tried with VLC and it worked fine
for days. I guess it could be something related to that particular camera
as with other models it never caused problems.

Actually I need to solve the problem with gstreamer-0.10 but it gives the
same problem of 1.0.

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161019/e85ecd18/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: capture
Type: application/octet-stream
Size: 10369 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161019/e85ecd18/attachment-0001.obj>


More information about the gstreamer-devel mailing list