我拥有一台配备 Intel HD 显卡(内核驱动程序)的笔记本电脑i915
,并且我正在尝试在 Debian Jessie 下实现硬件加速视频播放。我已经安装i965-va-driver
并libva-intel-vaapi-driver
打包,并vainfo
给了我支持的编解码器列表:
$ vainfo
libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/i386-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_36
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.36 (libva 1.4.1)
vainfo: Driver version: Intel i965 driver for Intel(R) CherryView - 1.4.1
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
...
然而,当我尝试使用 播放视频时mpv --hwdec=vaapi filename
,我得到的视频输出完全损坏:
现在,图像确实随着与音频匹配的节奏而变化,这表明解码确实发生了,但结果完全无法使用。有人碰巧有过在英特尔硬件上加速视频的经验吗?我有什么想法可能做错了吗?
这是我的/var/log/Xorg.0.log
说法:
[ 11.754] (II) intel(0): SNA initialized with Cherryview (gen8) backend
[ 11.755] (==) intel(0): Backing store enabled
[ 11.755] (==) intel(0): Silken mouse enabled
[ 11.755] (II) intel(0): HW Cursor enabled
[ 11.755] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 11.756] (==) intel(0): DPMS enabled
[ 11.757] (==) intel(0): Display hotplug detection enabled
[ 11.757] (II) intel(0): [DRI2] Setup complete
[ 11.757] (II) intel(0): [DRI2] DRI driver: i965
[ 11.757] (II) intel(0): [DRI2] VDPAU driver: va_gl
[ 11.757] (II) intel(0): direct rendering: DRI2 enabled
[ 11.757] (II) intel(0): hardware support for Present enabled