<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div>Hi,</div><div id="yui_3_16_0_1_1426838036619_2694"><br></div><div id="yui_3_16_0_1_1426838036619_2616" dir="ltr">I have the same issue. Same kind of pipeline, I send the EOS signal to appsrc when I run out of data. I listen to the pipeline's bus to get the EOS back when it has gone through all elements. And it appears I get the EOS signal on the bus too early (the last bits of data are not played).<br></div><div id="yui_3_16_0_1_1426838036619_2587"><br><span></span></div><div id="yui_3_16_0_1_1426838036619_2656" dir="ltr"><span>Regards,</span></div><div id="yui_3_16_0_1_1426838036619_2657" dir="ltr"><span>Seb.</span></div><br> <blockquote id="yui_3_16_0_1_1426838036619_2592" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div id="yui_3_16_0_1_1426838036619_2591" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1426838036619_2590" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1426838036619_2589" dir="ltr"> <hr id="yui_3_16_0_1_1426838036619_2588" size="1">  <font id="yui_3_16_0_1_1426838036619_2593" face="Arial" size="2"> <b><span style="font-weight:bold;">De :</span></b> Subodh Chiwate <subodh.chiwate@ufomoviez.com><br> <b><span style="font-weight: bold;">À :</span></b> gstreamer-devel@lists.freedesktop.org <br> <b><span style="font-weight: bold;">Envoyé le :</span></b> Vendredi 20 mars 2015 7h57<br> <b><span style="font-weight: bold;">Objet :</span></b> How to handle EOS from an appsrc to ensure all frames are played out before pipeline closes?<br> </font> </div> <div id="yui_3_16_0_1_1426838036619_2594" class="y_msg_container"><br>Hi All,<br><br>I am using the following pipeline in Gstreamer 1.2.3 on Freescale IMX6Q<br>board. But have noticed similar behavior on the x86 desktops as well.<br>Hence providing the basic pipeline structure.<br><br>[Local Media] - [Data Processing] - [AppSrc] --> [Parser] --> [Decoder]<br>--> [Sink]<br><br>I need to use large buffers in appsrc to ensure my processing benefits<br>from the head start, but I suspect that while EOS<br>the data in buffers might get flushed without being rendered.<br><br>Referring to the sample appsrc (<br>gst-plugins-base-1.2.3/tests/examples/app/appsrc-seekable.c )<br>application from source tar ball, I raise an EOS event from the appsrc<br>"need-data" callback when I run out of data.<br>The bus Handler exits gmain_loop.<br><br>How do I ensure that all the data still in the intermediate buffers is<br>played correctly before pipeline quits.<br>Is there any signal/condition I can wait on after getting the EOS before<br>I can set the pipeline state to NULL.<br>Please let me know in case I missed something already mentioned in the<br>Manual or PWG.<br>Thanks.<br><br>--<br>Regards,<br>Subodh<br><br>-- **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. UFOMoviez India Ltd. has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. UFOMoviez India Ltd. reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the UFOMoviez India Ltd.'s e-mail system. ***************** End of Disclaimer *******************<br>_______________________________________________<br>gstreamer-devel mailing list<br><a ymailto="mailto:gstreamer-devel@lists.freedesktop.org" 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></div> </div> </div> </blockquote>  </div></body></html>