<div dir="ltr">I don't think it is my stream - I have some control over it and it is being encoded with the Baseline profile (no B frames). <div>The latency I am referring to is the number of frames I have to push into the parser before a frame is available on the output of the decoder.  </div><div><br></div><div>The decoder is loaded in gstreamer like this:<br></div><div><div>decoder  = gst_element_factory_make ("amcviddec-omxfreescalestdvideodecoderavcv3hwbased",  "decoder");<br></div><div><br></div><div>I have found references where other people experienced the same problem and were able to get rid of most of the latency:</div><div><br></div><div><a href="https://community.freescale.com/thread/304322">https://community.freescale.com/thread/304322</a></div><div><br></div><div>"<span style="font-size:13px;color:rgb(61,61,61);font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;line-height:19.5px">Just for reference, I'm adding here that setting </span><span style="margin:0px;padding:0px;border:0px;font-size:11pt;font-family:Calibri,sans-serif;vertical-align:baseline;color:rgb(61,61,61)">vpudec->context.openparam.nReorderEnable = 0</span><span style="font-size:13px;color:rgb(61,61,61);font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;line-height:19.5px"> reduces the delay to 2 frames. When there are no B frames and no reorder is required."</span></div><div><span style="font-size:13px;color:rgb(61,61,61);font-family:'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;line-height:19.5px"><br></span></div><div>Unfortunately that parameter is not exposed through gStreamer (as far as I know).  My understanding is that on the Android platform my lowest level access to the decoder is through OMX-IL (maybe this isn't quite right), so I have been working at that level in order to see what latency I can achieve.  I have made a lot of progress, but I can't get any output frames - I think it is related to the way I am feeding data to the decoder but I'm not sure what I'm doing wrong.</div></div><div><br></div><div>-Steve</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 23, 2014 at 2:36 AM, Edward Hervey <span dir="ltr"><<a href="mailto:bilboed@bilboed.com" target="_blank">bilboed@bilboed.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 2014-10-22 at 18:53 -0600, Stephen Webb wrote:<br>
<br>
><br>
> * What I am trying to do is decode an annex B H264 stream on an<br>
> Android iMX6 platform.<br>
> * I want to decode with as little latency as possible.<br>
> * As we are already using gstreamer for other purposes, I started<br>
> there.<br>
> * I end up with ~8 frames of latency which I can't get get rid of.<br>
<br>
</span>  At which level ? Between input and output of decoder ? Which decoder<br>
was it ? Maybe your *stream* actually requires 8 frames of latency. Is<br>
it using B frames ?<br>
<span class=""><br>
> * I have switched to OpenMax IL with the idea of getting as much<br>
> control as possible.<br>
<br>
</span>  Based on everything you mention after ... it looks as though your<br>
problem is not with GStreamer ... but with either the decoder<br>
implementation (in omx-il and/or freescale VPU driver) or the stream you<br>
want to play back *requires* such a latency.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
   Edward<br>
</font></span><span class="im HOEnZb"><br>
><br>
> I'm out of ideas.  Anything helps.<br>
><br>
><br>
><br>
><br>
><br>
><br>
</span><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>