GstBaseTransform missing frames

Nicolas Dufresne nicolas at ndufresne.ca
Thu Sep 26 13:48:17 UTC 2019


Le jeu. 26 sept. 2019 09 h 10, Abdumuminov, Umedzhon <
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
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190926/c13aa8e1/attachment-0001.html>


More information about the gstreamer-devel mailing list