我遇到了一些麻烦,使我的英特尔i965驱动程序与vaapi支持。
目前,vaapi支持仅以root用户身份工作。如果我以非root用户身份运行vaainfo,则会收到以下消息:
[heiko@localhost ~]$ /bin/vainfo
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 1
libva error: va_getDriverName() failed with operation failed,driver_name=i965
vaInitialize failed with error code 1 (operation failed),exit对于root权限(看起来一切都很好,vlc与vaapi一起工作得很好):
[heiko@localhost ~]$ sudo vainfo
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_34
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.34 (libva 1.2.1)
vainfo: Driver version: Intel i965 driver - 1.2.1.pre1
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Baseline : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD我的安装有什么问题??
[heiko@localhost ~]$ getfacl /dev/dri/card0
getfacl: Entferne führende '/' von absoluten Pfadnamen
# file: dev/dri/card0
# owner: root
# group: video
user::rw-
user:heiko:rw-
group::rw-
mask::rw-
other::rw-发布于 2018-05-16 12:29:00
将自己添加到视频组中,然后重新登录:
sudo usermod -a -G video $USER然后重新测试。
发布于 2014-09-06 08:03:21
在使用E18作为我的桌面环境时,我也遇到了同样的问题。使用gnome-shell为我解决了vainfo的问题。我发现的另一个解决方法是取消设置变量$XDG_RUNTIME_DIR。
unset XDG_RUNTIME_DIR我不知道为什么这会有帮助,但它确实对我有帮助。我还发现了另一种可能的解决方法,但它在我的情况下不起作用:https://software.intel.com/en-us/forums/topic/490090也许它确实适用于您。
https://stackoverflow.com/questions/20252303
复制相似问题