I want to design a source element which can share video frames.

Nicolas Dufresne nicolas at ndufresne.ca
Fri Jul 17 19:25:41 UTC 2020


Le vendredi 17 juillet 2020 à 08:34 +0800, Psychesnet Hsieh a écrit :
> Hi Everyone,
> 
> I'm a newbie on developing gstreamer elements. We have a camera device and we
> can access the video frame via ioctl from SDK's function.
> We would like to design a source element to share video frames to any services
> on the device, is it possible?
> For now, we have a daemon(capture) which always does ioctl and access video
> frames from the driver. My plan are
> 1. Create a plugin/source element, every service can create source element to
> ask capture deliver video frames. Is it possible? How?
> 2. Create a shared memory map on capture and write a plugin/source element.
> Every service can create a source element to access a shared memory map to ask
> frames. 
>     I think this is possible. Any existing examples?
> 3. Another better suggestion?

You also expose your camera through PipeWire (it already support V4L2 ioctl
interface). Then pipewiresrc in gstreamer (as provided by the PipeWire project).
Just an idea, I'm not certain I fully understand the goal here.

> 
> Please give me some advice. Thanks. Regards
> _______________________________________________
> 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