How to consume VAAPI VASurface in appsink

Galoppo, Nico nico.galoppo at intel.com
Fri Aug 10 23:05:14 UTC 2018


Thank you - I just tried on a vanilla ubuntu 18.04 box. This one does support DMABuf. 

Now the following pipeline runs: 

gst-launch-1.0 -v souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! matroskademux ! vaapidecodebin ! "video/x-raw(memory:DMABuf)" ! glimagesink

However, the output is scrambled. Looks like wrong image frame metadata is passed, perhaps incorrect stride. 

The following pipeline runs correctly (not buggy), but since I'm not using a capsfilter, it's going through video/x-raw(memory:VASurface) at the glimagesink. 

gst-launch-1.0 -v souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! matroskademux ! vaapidecodebin ! glimagesink

Nico

-----Original Message-----
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> On Behalf Of Víctor Jáquez
Sent: Friday, August 10, 2018 1:32 AM
To: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
Subject: Re: How to consume VAAPI VASurface in appsink

On Thu, 09 Aug 2018 at 19:34, Galoppo, Nico wrote:
> Is this a recent addition? In my plugin, from gst-inspect (see below), 
> I see that I have version 1.8.3 of the plugin, and the src sink only 
> supports video/x-raw(memory:VASurface), 
> video/x-raw(meta:GstVideoGLTextureUploadMeta),
> and video/x-raw.

That's too old. Update at least to GStreamer 1.12, or 1.14

vmjl
_______________________________________________
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