<div>
                    Hi Tim,</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>In source side (appsrc), i have set "min-latency" to "0" about for living source, </div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">    </span>there is no effect for dropping frame in "playbin".</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">       </span>Also from my log as bellow, i think about the "dropping frame" behavior happened in decoder (amcvideodec in here),</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>i see some source code of "amccodec" plugin, maybe the feature "QOS" effect the decoder to drop late frame ?</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">    </span>and whether i can disable "QOS" feature in source side ? </div><div><br></div><div><div>01-18 14:21:04.710: W/GStreamer+bufferpool(3147): 0:00:33.405310541 0x67d59690 gstbufferpool.c:632:gst_buffer_pool_set_config:<eglimagebufferpool0> can't change config, we are active</div><div>01-18 14:21:04.710: W/GStreamer+bufferpool(3147): 0:00:33.405463143 0x67d59690 gstbufferpool.c:632:gst_buffer_pool_set_config:<eglimagebufferpool0> can't change config, we are active</div><div>01-18 14:21:04.750: W/GStreamer+amcvideodec(3147): 0:00:33.438089422 0x67d59690 gstamcvideodec.c:1147:gst_amc_video_dec_loop:<amcvideodec-omxqcomvideodecoderavc0> Frame is too late, dropping (deadline 0:00:00.585545551)</div><div>01-18 14:21:04.750: W/GStreamer+amcvideodec(3147): 0:00:33.438974513 0x67d59690 gstamcvideodec.c:1147:gst_amc_video_dec_loop:<amcvideodec-omxqcomvideodecoderavc0> Frame is too late, dropping (deadline 0:00:00.551851060)</div><div>01-18 14:21:04.750: W/GStreamer+amcvideodec(3147): 0:00:33.440683653 0x67d59690 gstamcvideodec.c:1147:gst_amc_video_dec_loop:<amcvideodec-omxqcomvideodecoderavc0> Frame is too late, dropping (deadline 0:00:00.519438424)</div></div>
                <div><div><br></div><div>Thanks,</div><div><br></div><div>- Jojo</div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">在 2014年1月18日星期六,下午10:32,Tim Müller 写道:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>On Sat, 2014-01-18 at 14:42 +0800, jojo wrote:</div><div><br></div><div>Hi,</div><div><br></div><blockquote type="cite"><div><div>My gstreamer prebuilt version is :</div><div>"gstreamer-1.0-android-arm-1.2.0-release"</div><div><br></div><div>I launch gstreamer as :</div><div><br></div><div>"appsrc is-live=true do-timestamp=true" -> playbin -></div><div>GST_VIDEO_OVERLAY</div><div><br></div><div>and push data from another thread as :</div><div><br></div><div>gst_app_src_push_buffer()</div><div><br></div><div>BTW, my living stream just include video as h264</div><div><br></div><div>I want to play video without dropping any frame in "playbin" just</div><div>because of the frame is late :(</div><div><br></div><div>  Could anyone give me any hints to fix this ? thanks.</div></div></blockquote><div><br></div><div>There are two places where you can tweak things:</div><div><br></div><div>1) at the source: you have a live source, and can make it answer the</div><div>latency query by setting the min-/max-latency properties on appsrc. The</div><div>sink will query this and then knows that it might take that much time</div><div>for the frame to be captured and make its way through the pipeline.</div><div><br></div><div>2) at the sink: you can create an eglglessink yourself and set it on</div><div>playbin via the video-sink property. Sinks have a 'max-lateness'</div><div>property, which determines how late buffers have to be before they will</div><div>be dropped. So you can tweak that or even unset it (not recommended, and</div><div>shouldn't be necessary) to allow for more lateness. The default for this</div><div>is 20ms.</div><div><br></div><div>You can also set the "sync" property on the sink to FALSE, but I would</div><div>not recommend it, then the sink will not look at the timestamps at all</div><div>any more and you may get very jittery video.</div><div><br></div><div> Cheers</div><div>  -Tim</div><div><br></div><div>-- </div><div>Tim Müller, Centricular Ltd - <a href="http://www.centricular.com">http://www.centricular.com</a></div><div><br></div><div>_______________________________________________</div><div>gstreamer-android mailing list</div><div><a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a></div><div><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>