如何在Ubuntu 16.04中的VLC中启用VA-API

我有Ubuntu 16.04。我无法在VLC中启用VA-API(我可以选择的端口中不存在VA-API输出,只有VDPAU,OpenGL GLX,X11,XCB,帧缓冲区等)。

我有一个使用集成GPU的Intel i5-4200M CPU。

On the same hardware all was working fine with Ubuntu 14.04, using either packages from the official repos or from ppa https://launchpad.net/~mc3man/+archive/ubuntu/mpv-tests

我进行了很多搜索,但找不到错误所在。

已安装以下软件包:

vlc 2.2.2-5ubuntu0.16.04.4
libva1 1.8.1-1~xenial
libva-x11-1 1.8.1-1~xenial
libva-wayland1 1.8.1-1~xenial (although I don't use Wayland)
libva-drm1 1.8.1-1~xenial
i965-va-driver 1.8.1-1~xenial

vainfo报告:

libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_40
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.40 (libva )
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 1.8.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD

On other pages I read libva-intel-vaapi-driver should be installed, but no candidate exists: I also read it's just a source package upon which i965-va-driver is built, so I should be fine with it.

vainfo输出似乎表明一切正常,事实上,使用该配置,正如我已经说过的,我可以在Ubuntu 14.04的VLC输出首选项中选择VA-API,但不能在Ubuntu 16.04上使用。

评论