Multicrop GStreamer plugin

Nicolas Dufresne nicolas at ndufresne.ca
Sun Apr 12 01:43:17 UTC 2020


Le samedi 11 avril 2020 à 09:57 +0530, Naveen cherukuri a écrit :
> Hi All,
> 
> If we have an accelerated video crop block which can do 10 crops at a time, what is the best way send these cropped images out of srcpad ? And, each cropped image size can be different.

Maybe you should clarify, do you want to use the 10 croppers to crop in
parallel (on one stream), or to process 10 streams ?

For the first one, you can use similar approach as the SDX folks (this
was renamed and rewritten, but they still use the same approach). They
simply accumulate N buffers before they start (adding the equivalent in
latency for live pipelines). Otherwise, you need to step away from
GstBaseTransform, and use an internal thread so that input is no longer
blocked on output.

For the second, you'd have to write a custom element. But best would be
to have 1 element and add something to share the crop instances.
Usually, this resource management is something handled by a kernel
driver (just like we do for crop, scs, scaler HW multiplexing on other
SoC).

> 
> Video crop plugin receives cropmeta information along with input buffer. 
> 
> Thanks and regards,
> Naveen
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list