GstBaseTransform missing frames

Abdumuminov, Umedzhon umedzhon.abdumuminov at intel.com
Thu Sep 26 14:00:54 UTC 2019


So, I can block pipeline on EOS, finish processing, push frames, unlock EOS event to let it finish pipeline.

Am I correct? If so, thanks a lot!

From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> On Behalf Of Nicolas Dufresne
Sent: Thursday, September 26, 2019 16:48
To: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
Subject: Re: GstBaseTransform missing frames


Le jeu. 26 sept. 2019 09 h 10, Abdumuminov, Umedzhon <umedzhon.abdumuminov at intel.com<mailto:umedzhon.abdumuminov at intel.com>> a écrit :
Hi guys,

We have problem with missing some frames due to finishing pipeline before we done with processing.

We have inherited our elements from GstBaseTransform. Our elements do processing in their own threads in parallel.
According to documentation (https://gstreamer.freedesktop.org/documentation/base/gstbasetransform.html#GstBaseTransformClass::generate_output) we can return GST_BASE_TRANSFORM_FLOW_DROPPED and it is fine.
So, when filesrc reach end of file and send EOS we didn't finished processing yet, but due to EOS pipeline finishes and we are losing some frames that are in processing.

We would like to keep processing in our own threads and do not lose frames when pipeline finishes.
Is there any convenient way to make pipeline wait until we finished? or maybe we  can return something different instead of "drop" status?

Just wait and push when you receive the Eos event. This event is on the streaming thread with stream lock held.

Don't forget to report your latency!


Thank you in advance!

Umed

--------------------------------------------------------------------
Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park,
17 Krylatskaya Str., Bldg 4, Moscow 121614,
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

--------------------------------------------------------------------
Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park,
17 Krylatskaya Str., Bldg 4, Moscow 121614,
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190926/62c3886a/attachment.html>


More information about the gstreamer-devel mailing list