spice, dmabuf, egl and streaming

nicolas.dufresne at gmail.com nicolas.dufresne at gmail.com
Mon Jul 18 18:55:20 UTC 2016


Le 2016-07-18 06:43, "Frediano Ziglio" <fziglio at redhat.com> a écrit :
>
> I'm quite new to gstreamer. Can you point me on some information how to
> do it? At the moment we receive dma buffers from another software (Qemu).
> More appropriately they are DRM primes which implements dma buffers.

You can wrap them using gst_dmabuf_allocator_new(). Then append that to an
empty GstBuffer, add if needed a GstVideMeta (if you have stride that is
not width * bytesPerPixels). You can then push those buffers using aposrc,
glupload should be able to import. Note, you need to force egl if on X11,
as this feature is not available in GLX.

>
> How to push them to a pipeline ? Can I use appsrc ?
>
> > In the case of EGL, it was supported only for pushing decoded buffers to
> > downstream, nonethelessright now is dead code [1]. We have to re-enable
it
> > and adapt it to GstGLMemory interfaces.
> >
> > 1. https://bugzilla.gnome.org/show_bug.cgi?id=767203
> >
> > vmjl
>
> Frediano
> _______________________________________________
> 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/20160718/6669388d/attachment.html>


More information about the gstreamer-devel mailing list