How to consume VAAPI VASurface in appsink

Galoppo, Nico nico.galoppo at intel.com
Wed Aug 8 23:41:01 UTC 2018


I have constructed a pipeline for decoding compressed video, with an appsink element at the end. The decoding pipeline is using GPU hardware decoding through libva/gst-vaapi. I am pulling samples in the appsink "new-sample" signal callback, and have confirmed that the caps include "video/x-raw(VASurface)".

My intent is to display (and potentially process) the framebuffer contained by the VASurface. Can I somehow get access to the VASurface through the GstBuffer contained in the GstSample? If so, then I could get to a DRM prime handle for GL/CL interop.

Thanks,

Nico

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180808/63ebdf52/attachment.html>


More information about the gstreamer-devel mailing list