How to handle EOS from an appsrc to ensure all frames are played out before pipeline closes?

Sébastien FENET sebastien.fenet at yahoo.fr
Sun Mar 22 12:04:34 PDT 2015


Thanks, Jan, for the tip.

As far as I am concerned, I use the Python API. In this API, there is no "gst_app_src_end_of_stream". Instead I use emit("end-of-stream"). But according to the documentation, it has the same effect : 

"When the application is finished pushing data into appsrc, it should callgst_app_src_end_of_stream() or emit the end-of-stream action signal."
I may be wrong but I made some testing a while ago and I had the impression that it was rather the audiosink that emits the EOS signal on the bus before draining its queue.
 
      De : Jan Alexander Steffens <jan.steffens at gmail.com>
 À : Sébastien FENET <sebastien.fenet at yahoo.fr>; Subodh Chiwate <subodh.chiwate at ufomoviez.com> 
Cc : Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org> 
 Envoyé le : Samedi 21 mars 2015 10h31
 Objet : Re: How to handle EOS from an appsrc to ensure all frames are played out before pipeline closes?
   
On Fri, Mar 20, 2015 at 7:57 AM, Subodh Chiwate
<subodh.chiwate at ufomoviez.com> wrote:
> I raise an EOS event from the appsrc
> "need-data" callback when I run out of data.

On Fri, Mar 20, 2015 at 8:59 AM, Sébastien FENET
<sebastien.fenet at yahoo.fr> wrote:
> 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).

How are you sending the EOS? You should use gst_app_src_end_of_stream,
not gst_element_send_event or similar.
The latter can send the EOS event before appsrc has completely drained
its internal queue.


_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150322/9b3f36ac/attachment.html>


More information about the gstreamer-devel mailing list