]> git.sesse.net Git - ffmpeg/commit
hwcontext_vaapi: Make default DRM device selection more helpful
authorMark Thompson <sw@jkqxz.net>
Mon, 6 May 2019 14:43:04 +0000 (15:43 +0100)
committerMark Thompson <sw@jkqxz.net>
Sun, 2 Jun 2019 22:03:10 +0000 (23:03 +0100)
commit6b6b8a63713cf730a3793b7715be0470d6152191
tree00ce064a0b8fcc7bab028f84ada1ab0da14351e0
parentd2141a9b652c52350b5a4519ec34c59f5531fad1
hwcontext_vaapi: Make default DRM device selection more helpful

Iterate over available render devices and pick the first one which looks
usable.  Adds an option to specify the name of the kernel driver associated
with the desired device, so that it is possible to select a specific type
of device in a multiple-device system without knowing the card numbering.

For example: -init_hw_device vaapi:,kernel_driver=amdgpu will select only
devices using the "amdgpu" driver (as used with recent AMD graphics cards).

Kernel driver selection requires libdrm to work.
libavutil/hwcontext_vaapi.c