<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Mohammad<div class=""><br class=""></div><div class="">I can think of several reasons for this to occur. </div><div class=""><br class=""></div><div class="">- You might be losing the first key frame, and the next one doesn’t show up until 5 seconds later.</div><div class="">  * Do you see this if you start the receiver first and then the sender?</div><div class="">  * Does the video start from the beginning after the initial delay? Or is it already started?</div><div class="">  </div><div class="">- It may be a timestamping problem.</div><div class="">  * Have you tried setting sync=TRUE in the receiver? This will allow the pipeline to drop frames if needed in order to keep up with the stream time, instead of trying to display everything regardless of the lateness.</div><div class="">  * Have you tried using the <a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good/html/gst-plugins-good-plugins-rtpjitterbuffer.html" class="">jitter buffer</a>?</div><div class=""><br class=""></div><div class="">- H264 profile may induce latency</div><div class="">  * As per the standard, H264 decoders must ensure there is enough data buffered to allow appropriate decoding. Depending on the profile used during the encoding phase, forward and backward predicted frames may required more data to be buffered, hence increasing latency. Some encoders have a “low latency” configuration, in which compression level is reduced in favor of lower latency.</div><div class="">  * You need to identify if the latency is being accounted to the decoder.</div><div class=""><br class=""></div><div class="">In any case, latency is always a hard issue to tackle. At RidgeRun we developed <a href="https://developer.ridgerun.com/wiki/index.php?title=GstShark" class="">GstShark</a>, a set of open source GStreamer tracers that may help you debug this issue. Please take a look at the <a href="https://developer.ridgerun.com/wiki/index.php?title=GstShark_-_InterLatency_tracer" class="">Interlatency tracer</a>  which may help you identify latency and processing bottlenecks in your pipeline. If the decoder is queueing this data, for example, the tracers should expose this. </div><div class=""><br class=""></div><div class=""><div class="">
<div class=""><div class=""><font size="1" class="">—</font></div><div class=""><font size="1" class="">Michael Gruner <<a href="mailto:michael.gruner@ridgerun.com" class="">michael.gruner@ridgerun.com</a>></font></div><div class=""><font size="1" class="">Embedded Linux and GStreamer solutions</font></div><div class=""><font size="1" class="">RidgeRun Engineering</font></div><div class=""><font size="1" class="">Contact Us - <a href="http://www.ridgerun.com/#!contact/c3vn" class="">http://www.ridgerun.com/#!contact/c3vn</a></font></div></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Jan 22, 2018, at 03:34, Mohammad, Jamal M <<a href="mailto:MohammadJamal.Mohiuddin@ncr.com" class="">MohammadJamal.Mohiuddin@ncr.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><font face="Calibri" size="2" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-size: 11pt;" class=""><div class="">Hi Guys,</div><div class=""> </div><div class="">We are using gstreamer for Video streaming over IP.</div><div class=""> </div><div class="">On the receiver end I am using the following pipeline:</div><div class=""> </div><div class="">gst-launch-1.0 -vvv udpsrc port=5004 ! application/x-rtp, payload=96 ! rtph2 64depay ! h264parse ! imxvpudec ! imxipuvideosink sync=false</div><div class=""> </div><div class="">On the sender end we are using the following pipeline:</div><div class="">C:\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe -v filesrc location=C:\\gstreamer\\1.0\\x86_64\\bin\\hash.h264 ! h264parse ! rtph264pay ! udpsink host=<IPAddress> port=5004 sync=true</div><div class=""> </div><div class="">When I am playing the first video, it takes a long time to start playing, more than 5 seconds.</div><div class=""> </div><div class="">But from the next video, it just starts playing without any delay.</div><div class=""> </div><div class="">Is there a way so the first video also plays instantly without any delay</div><div class=""> </div><div class=""> </div><div class=""><font color="#54B948" class=""><b class="">Mohammad Jamal Mohiuddin<br class=""></b><font color="#58585A" class=""><b class="">Software Engineer, Retail Hosp/HW<br class="">NCR Corporation India Pvt Ltd.<br class=""></b></font><b class=""><a href="mailto:MohammadJamal.Mohiuddin@ncr.com" class="">MohammadJamal.Mohiuddin@ncr.com</a><span class="Apple-converted-space"> </span>|<span class="Apple-converted-space"> </span></b><a href="http://www.ncr.com/" class=""><font color="#34B056" class=""><b class="">www.ncr.com</b></font></a></font></div><div class=""><font color="#54B948" class=""><span id="cid:5040AF1E5A2B3A408DA0A7E27C2FA2E8@namprd15.prod.outlook.com"><Picture (Device Independent Bitmap) 1.jpg></span><b class=""></b></font></div><div class=""> </div><div class=""> </div><div class=""> </div></span></font><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">gstreamer-embedded mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:gstreamer-embedded@lists.freedesktop.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">gstreamer-embedded@lists.freedesktop.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-embedded" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-embedded</a></div></blockquote></div><br class=""></div></body></html>