How to detect when all packets in pipeline are fully processed

Nicolas Dufresne nicolas at ndufresne.ca
Sat Sep 5 12:07:36 UTC 2020


Le sam. 5 sept. 2020 07 h 00, bojan74 <bojan.flander at gmail.com> a écrit :

> Any idea/advice? :)
>
> I know in advance that I need to process for example 10000 RTP packets with
> VP8 and for result I want webm file.
>
> I am pushing those 10000 packets inside appsrc one after another and I just
> like to know when all those packets were processed in filesink. Just to
> know
> when I can send EOS.
>

EOS is a serialized event, that you push after the last buffer, not need to
wait to send it. What you later have to wait for is the EOS message, though
GstBus, directly or via the main loop.


> Cause I found out that if I send EOS too soon then I get only a part of
> whole video on filesink cause it looks like EOS came in the middle of
> packet
> processing.
>
> Or is there some other way to send EOS, for example as the last "special"
> push inside apparc so that EOS will be processed after last packet come to
> filesink?
>
>
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200905/4a772ee4/attachment.htm>


More information about the gstreamer-devel mailing list