<div dir="ltr"><div>As a follow up, I have determined that the program, Tutorial #4,l thinks that the stream is "NOT LIVE", however it never hits the buffering_cb function in tutorial-4.c, so this function is not responsible for the delay.</div>
<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 23, 2014 at 9:15 PM, Ricky Houghton <span dir="ltr"><<a href="mailto:ricky.houghton@gmail.com" target="_blank">ricky.houghton@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I was able to successfully compile and run the tutorials on my Nexus 7 device. (Thanks to all who made this possible.) </div>
<div><br></div><div>I modified the code for Android Tutorial #4 slightly to serve up a live stream from a H.264 device serving up a RTSP stream. The video displays correctly and everything works nicely. I've left it running for more than an hour with no issue.</div>

<div><br></div><div>However there is a constant delay of about 4 to 5 seconds on the video stream. I've used Bing and Google to search for an answer, but can't seem to find which buffer/cache variable might contribute to the delay. (The code appears to ignore buffering if the stream is live, but there is clearly some buffering underneath that is creating this delay)</div>

<div><br></div><div>Please note, the delay is constant over the hour, so I'm pretty sure the decoder is able to keep up - and the latency/delay doesn't increase which lends me to believe there is a buffer/cache value that is set rather high. </div>

<div><br></div><div>Thanks,</div><div><br></div><div>Ricky</div><div><br></div><div>btw, when the application starts, I do receive a few messages similar to this one, however they quickly disappear once the video stream synchronizes and stabilizes. It normally takes about 3 or 4 seconds for this, then everything is fine. I do not see this message again, no matter how long I run the encoder.</div>

<div><br></div><div> 01-23 21:10:54.550: W/GStreamer+amcvideodec(2319): 0:00:28.046864000 0x69d96860 gstamcvideodec.c:1025:gst_amc_video_dec_loop:<amcvideodec-omxnvidiah264decode0> Frame is too late, dropping (deadline 0:00:00.194772226)</div>

<div><br></div><div>. <br></div></div>
</blockquote></div><br></div>