vaapi and x-forwarding

Victor Jaquez vjaquez at igalia.com
Tue Jun 15 09:02:57 UTC 2021


On Tue, 15 Jun 2021 at 03:32, Marianna S. Buschle via gstreamer-devel wrote:
> 
> Now I would like a bit more elegant solution, since I need to handle anyway
> the HAVE_CONTEXT and NEED_CONTEXT messages on the bus because I want to
> decouple my pipelines.
> So I would like to do something like
> https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/blob/master/tests/examples/test-vaapicontext.c#L127

Yes, that's the way to choose programmatically and specific display
(DRM in your case).

> but with the 'vaGetDisplayDRM()'.
> However I can't seem to find python bindings for the VAAPI API?

I'm not a python expert but  this looks the way

https://docs.python.org/3.8/library/ctypes.html

>>> from ctypes import *
>>> va_drm = cdll.LoadLibrary("/usr/lib/x86_64-linux-gnu/libva-drm.so")
>>> va_drm.vaGetDisplayDRM(opened_fd)

vmjl


More information about the gstreamer-devel mailing list