<div dir="ltr">Hi, <div><br></div><div>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 :</div><div><div><br></div><div><i> gst-launch-1.0 -v uridecodebin uri="URL" ! xvimagesink</i></div></div><div><i><br></i></div><div><i>The issue: </i>Wheneve<i>r </i>Network disconnects in between, The application is getting EOS after 20-25 seconds of attempted re-connections.</div><div>I want to increase this time to Unlimited (if I can) or at least increase it to some considerable time like 5-10 minutes. </div><div>So that My application keep on trying to reconnect without giving EOS ever.</div><div><br></div><div>I
have tried using rtspsrc instead of uridecodebin and tried changing the
timeout , tcp-timeout property for that but still the result is same. </div><div><br></div><div>Is There any other property which I can set , so that my gstreamer will keep on trying to reconnect or increase this timeout.</div><div><br></div><div>Here
are the logs when network disconnects, It can be seen that Gstreamer
tries re connection for some time and then Gives EOS. </div><div><br></div><div><br></div><div><div><span tabindex="0" class=""><span class="">0:00:06.290069558</span></span> 29509 0x7f83f4033ed0 WARN multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Error sending UDP packet</div><div><span tabindex="0" class=""><span class="">0:00:06.290096684</span></span> 29509 0x7f83f4033ed0 WARN multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Reason: Error sending message: Network is unreachable</div><div><span tabindex="0" class=""><span class="">0:00:06.290132887</span></span> 29509 0x7f83f4033ed0 INFO GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<udpsink1> posting message: Error sending UDP packet</div><div><span tabindex="0" class=""><span class="">0:00:06.290191099</span></span> 29509 0x7f83f4033ed0 INFO GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<udpsink1> posted warning message: Error sending UDP packet</div><div>WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1: Error sending UDP packet</div><div>Additional debug info:</div><div>gstmultiudpsink.c(602): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1:</div><div>Reason: Error sending message: Network is unreachable</div><div><span tabindex="0" class=""><span class="">0:00:10.279194043</span></span> 29509 0x7f83f4033ed0 WARN multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Error sending UDP packet</div><div><span tabindex="0" class=""><span class="">0:00:10.279223229</span></span> 29509 0x7f83f4033ed0 WARN multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Reason: Error sending message: Network is unreachable</div><div><span tabindex="0" class=""><span class="">0:00:10.279251856</span></span> 29509 0x7f83f4033ed0 INFO GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<udpsink1> posting message: Error sending UDP packet</div><div><span tabindex="0" class=""><span class="">0:00:10.279290626</span></span> 29509 0x7f83f4033ed0 INFO GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<udpsink1> posted warning message: Error sending UDP packet</div><div>WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1: Error sending UDP packet</div><div>Additional debug info:</div><div>gstmultiudpsink.c(602): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1:</div><div>Reason: Error sending message: Network is unreachable</div><div><span tabindex="0" class=""><span class="">0:00:14.486045933</span></span> 29509 0x7f83f4033ed0 WARN multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Error sending UDP packet</div><div><span tabindex="0" class=""><span class="">0:00:14.486072119</span></span> 29509 0x7f83f4033ed0 WARN multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Reason: Error sending message: Network is unreachable</div><div><span tabindex="0" class=""><span class="">0:00:14.486102383</span></span> 29509 0x7f83f4033ed0 INFO GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<udpsink1> posting message: Error sending UDP packet</div><div><span tabindex="0" class=""><span class="">0:00:14.486142210</span></span> 29509 0x7f83f4033ed0 INFO GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<udpsink1> posted warning message: Error sending UDP packet</div><div>WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1: Error sending UDP packet</div><div>Additional debug info:</div><div>gstmultiudpsink.c(602): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1:</div><div>Reason: Error sending message: Network is unreachable</div><div><span tabindex="0" class=""><span class="">0:00:19.561007734</span></span> 29509 0x7f83f4033ed0 WARN multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Error sending UDP packet</div><div><span tabindex="0" class=""><span class="">0:00:19.561079622</span></span> 29509 0x7f83f4033ed0 WARN multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Reason: Error sending message: Network is unreachable</div><div><span tabindex="0" class=""><span class="">0:00:19.561158030</span></span> 29509 0x7f83f4033ed0 INFO GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<udpsink1> posting message: Error sending UDP packet</div><div><span tabindex="0" class=""><span class="">0:00:19.561253426</span></span> 29509 0x7f83f4033ed0 INFO GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<udpsink1> posted warning message: Error sending UDP packet</div><div>WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1: Error sending UDP packet</div><div>Additional debug info:</div><div>gstmultiudpsink.c(602): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1:</div><div>Reason: Error sending message: Network is unreachable</div><div><span tabindex="0" class=""><span class="">0:00:22.213472987</span></span> 29509 0x7f83f4033ed0 WARN multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Error sending UDP packet</div><div><span tabindex="0" class=""><span class="">0:00:22.213531309</span></span> 29509 0x7f83f4033ed0 WARN multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Reason: Error sending message: Network is unreachable</div><div><span tabindex="0" class=""><span class="">0:00:22.213591455</span></span> 29509 0x7f83f4033ed0 INFO GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<udpsink1> posting message: Error sending UDP packet</div><div><span tabindex="0" class=""><span class="">0:00:22.213667999</span></span> 29509 0x7f83f4033ed0 INFO GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<udpsink1> posted warning message: Error sending UDP packet</div><div>WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1: Error sending UDP packet</div><div>Additional debug info:</div><div>gstmultiudpsink.c(602): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1:</div><div>Reason: Error sending message: Network is unreachable</div><div><span tabindex="0" class=""><span class="">0:00:26.057304899</span></span> 29509 0x7f83f4033ed0 WARN multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Error sending UDP packet</div><div><span tabindex="0" class=""><span class="">0:00:26.057330578</span></span> 29509 0x7f83f4033ed0 WARN multiudpsink gstmultiudpsink.c:602:gst_multiudpsink_render:<udpsink1> warning: Reason: Error sending message: Network is unreachable</div><div><span tabindex="0" class=""><span class="">0:00:26.057354275</span></span> 29509 0x7f83f4033ed0 INFO GST_ERROR_SYSTEM gstelement.c:1835:gst_element_message_full:<udpsink1> posting message: Error sending UDP packet</div><div><span tabindex="0" class=""><span class="">0:00:26.057385991</span></span> 29509 0x7f83f4033ed0 INFO GST_ERROR_SYSTEM gstelement.c:1858:gst_element_message_full:<udpsink1> posted warning message: Error sending UDP packet</div><div>WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1: Error sending UDP packet</div><div>Additional debug info:</div><div>gstmultiudpsink.c(602): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSink:udpsink1:</div><div>Reason: Error sending message: Network is unreachable</div><div><span tabindex="0" class=""><span class="">0:00:31.149963842</span></span> 29509 0x7f83f4033ed0 WARN rtspsrc gstrtspsrc.c:2936:on_timeout:<source> source 1f134ca4, stream 1f134ca4 in session 0 timed out</div><div><span tabindex="0" class=""><span class="">0:00:31.150039063</span></span> 29509 0x7f83f4033f20 INFO basesrc gstbasesrc.c:2724:gst_base_src_loop:<udpsrc1> pausing after gst_base_src_get_range() = eos</div><div><span tabindex="0" class=""><span class="">0:00:31.150102647</span></span> 29509 0x7f83f4033f70 INFO basesrc gstbasesrc.c:2724:gst_base_src_loop:<udpsrc2> pausing after gst_base_src_get_range() = eos</div><div><span tabindex="0" class=""><span class="">0:00:31.150129457</span></span> 29509 0x7f83f4033f20 INFO task gsttask.c:300:gst_task_func:<udpsrc1:src> Task going to paused</div><div><span tabindex="0" class=""><span class="">0:00:31.150144922</span></span> 29509 0x7f83f4033f70 INFO task gsttask.c:300:gst_task_func:<udpsrc2:src> Task going to paused</div><div><span tabindex="0" class=""><span class="">0:00:31.150316978</span></span> 29509 0x7f83d80018a0 INFO task gsttask.c:300:gst_task_func:<rtpjitterbuffer0:src> Task going to paused</div><div>Got EOS from element "pipeline0".</div><div>Execution ended after <span tabindex="0" class=""><span class="">0:00:30.948061630</span></span></div><div>Setting pipeline to PAUSED ...</div></div><br clear="all">-- <br><div class="gmail_signature"><div dir="ltr">Regards
<div></div>
<div>Shishir Jain</div>
<div><br></div>
<div><br></div></div></div>
</div>