How To increase the Re-connection Time or Re-connection attempt in gstreamer

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How To increase the Re-connection Time or Re-connection attempt in gstreamer

SHISHIR JAIN
Hi, 

I am creating a Gstreamer based application, which is taking input from an IP camera. I am using uridecodebin element, A smaller version of the pipeline i am using is :

 gst-launch-1.0 -v uridecodebin uri="URL"  ! xvimagesink

The issue: Whenever  Network disconnects in between, The application is getting EOS after 20-25 seconds of attempted re-connections.
I want to increase this time to Unlimited (if I can) or at least increase it to some considerable time like 5-10 minutes. 
So that My application keep on trying to reconnect without giving EOS ever.

I have tried using rtspsrc instead of uridecodebin and tried changing the timeout , tcp-timeout property for that but still the result is same. 

Is There any other property which I can set , so that my gstreamer will keep on trying to reconnect or increase this timeout.

Here are the logs when network disconnects, It can be seen that Gstreamer tries re connection for some time and then Gives EOS.  


0:00:06.290069558 29509 0x7f83f4033ed0 WARN            multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Error sending UDP packet
0:00:06.290096684 29509 0x7f83f4033ed0 WARN            multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Reason: Error sending message: Network is unreachable
0:00:06.290132887 29509 0x7f83f4033ed0 INFO        GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<udpsink1> posting message: Error sending UDP packet
0:00:06.290191099 29509 0x7f83f4033ed0 INFO        GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<udpsink1> posted warning message: Error sending UDP packet
WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1: Error sending UDP packet
Additional debug info:
gstmultiudpsink.c(602): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1:
Reason: Error sending message: Network is unreachable
0:00:10.279194043 29509 0x7f83f4033ed0 WARN            multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Error sending UDP packet
0:00:10.279223229 29509 0x7f83f4033ed0 WARN            multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Reason: Error sending message: Network is unreachable
0:00:10.279251856 29509 0x7f83f4033ed0 INFO        GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<udpsink1> posting message: Error sending UDP packet
0:00:10.279290626 29509 0x7f83f4033ed0 INFO        GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<udpsink1> posted warning message: Error sending UDP packet
WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1: Error sending UDP packet
Additional debug info:
gstmultiudpsink.c(602): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1:
Reason: Error sending message: Network is unreachable
0:00:14.486045933 29509 0x7f83f4033ed0 WARN            multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Error sending UDP packet
0:00:14.486072119 29509 0x7f83f4033ed0 WARN            multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Reason: Error sending message: Network is unreachable
0:00:14.486102383 29509 0x7f83f4033ed0 INFO        GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<udpsink1> posting message: Error sending UDP packet
0:00:14.486142210 29509 0x7f83f4033ed0 INFO        GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<udpsink1> posted warning message: Error sending UDP packet
WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1: Error sending UDP packet
Additional debug info:
gstmultiudpsink.c(602): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1:
Reason: Error sending message: Network is unreachable
0:00:19.561007734 29509 0x7f83f4033ed0 WARN            multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Error sending UDP packet
0:00:19.561079622 29509 0x7f83f4033ed0 WARN            multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Reason: Error sending message: Network is unreachable
0:00:19.561158030 29509 0x7f83f4033ed0 INFO        GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<udpsink1> posting message: Error sending UDP packet
0:00:19.561253426 29509 0x7f83f4033ed0 INFO        GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<udpsink1> posted warning message: Error sending UDP packet
WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1: Error sending UDP packet
Additional debug info:
gstmultiudpsink.c(602): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1:
Reason: Error sending message: Network is unreachable
0:00:22.213472987 29509 0x7f83f4033ed0 WARN            multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Error sending UDP packet
0:00:22.213531309 29509 0x7f83f4033ed0 WARN            multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Reason: Error sending message: Network is unreachable
0:00:22.213591455 29509 0x7f83f4033ed0 INFO        GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<udpsink1> posting message: Error sending UDP packet
0:00:22.213667999 29509 0x7f83f4033ed0 INFO        GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<udpsink1> posted warning message: Error sending UDP packet
WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1: Error sending UDP packet
Additional debug info:
gstmultiudpsink.c(602): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1:
Reason: Error sending message: Network is unreachable
0:00:26.057304899 29509 0x7f83f4033ed0 WARN            multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Error sending UDP packet
0:00:26.057330578 29509 0x7f83f4033ed0 WARN            multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Reason: Error sending message: Network is unreachable
0:00:26.057354275 29509 0x7f83f4033ed0 INFO        GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<udpsink1> posting message: Error sending UDP packet
0:00:26.057385991 29509 0x7f83f4033ed0 INFO        GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<udpsink1> posted warning message: Error sending UDP packet
WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1: Error sending UDP packet
Additional debug info:
gstmultiudpsink.c(602): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1:
Reason: Error sending message: Network is unreachable
0:00:31.149963842 29509 0x7f83f4033ed0 WARN                 rtspsrc gstrtspsrc.c:2936:on_timeout:<source> source 1f134ca4, stream 1f134ca4 in session 0 timed out
0:00:31.150039063 29509 0x7f83f4033f20 INFO                 basesrc gstbasesrc.c:2724:gst_base_src_loop:<udpsrc1> pausing after gst_base_src_get_range() = eos
0:00:31.150102647 29509 0x7f83f4033f70 INFO                 basesrc gstbasesrc.c:2724:gst_base_src_loop:<udpsrc2> pausing after gst_base_src_get_range() = eos
0:00:31.150129457 29509 0x7f83f4033f20 INFO                    task gsttask.c:300:gst_task_func:<udpsrc1:src> Task going to paused
0:00:31.150144922 29509 0x7f83f4033f70 INFO                    task gsttask.c:300:gst_task_func:<udpsrc2:src> Task going to paused
0:00:31.150316978 29509 0x7f83d80018a0 INFO                    task gsttask.c:300:gst_task_func:<rtpjitterbuffer0:src> Task going to paused
Got EOS from element "pipeline0".
Execution ended after 0:00:30.948061630
Setting pipeline to PAUSED ...

--
Regards
Shishir Jain



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel