Video surce plugin with multiple pads
nicolas at ndufresne.ca
Wed Jun 17 12:35:38 UTC 2020
Le jeudi 11 juin 2020 à 03:54 -0500, Myzhar a écrit :
> Hi all,
> I'm going to write a source plugin for a device that has multiple video
> I thought to use "GstPushSrc" but I'm not sure that it can support a pad for
> each video source.
GstBaseSrc and GstPushSrc are design for single pad (it's a limitation
of it's threading model). You'll have to build on top of GstElement or
implement multiple GstPushSrc (e.g. with a shared context/singleton).
> The plugin is for a stereo camera and it should stream Left RGB image, Right
> RGB image and the Depth map.
> Any suggestion?
In GStreamer, stereo image are stored in a single GstBuffer. Split
allocation views can be express as a top/bottom placement and two
GstMemory stored in GstBuffer.
> Thank you
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
More information about the gstreamer-devel