Kodi Community Forum

Full Version: [Ubuntu 14.04] VAAPI Not working on Intel i965 Haswell
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hello,

recently my kodi upgraded to Krypton and It stop playing H.264 encoded movies. I realized it was related with HW Aceleration. If I disable VAAPI, movies play right. Most noticeable error is:
Code:
failed to import VA buffer NV12 into EGL image

Here all my logs:

Code:
dpkg -l |grep mesa | pastebinit
http://paste.ubuntu.com/23973391/
Code:
[code]DISPLAY=:0 vainfo | pastebinit
    libva info: VA-API version 0.38.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_36
    libva info: va_openDriver() returns 0
http://paste.ubuntu.com/23973393/
Code:
cat ~/.kodi/temp/kodi.log | pastebinit
http://paste.ubuntu.com/23973397/
Code:
dmesg | pastebinit
http://paste.ubuntu.com/23973398/
Code:
id | pastebinit
http://paste.ubuntu.com/23973400/
Code:
amixer | pastebinit
http://paste.ubuntu.com/23973401/

Any advice upgradin Mesa drivers?
Jep your mesa is too old. As you seem to like outdated distributions, you can use the wsnipex mesa ppa back from this time.

Code:
sudo add-apt-repository ppa:wsnipex/mesa
sudo apt-get update
sudo apt-get dist-upgrade
Thanks, that did the trick. Mesa updated and VAAPI working fine.

ps.: I've a lot of things installed and working fine inside this nuc. I'm afraid some of them stop working if I upgrade to 16.04.
I took a swing at updating Kodibuntu 14.04 to 16.04. Amazingly it worked just fine. (Mind you, I only run Kodi) Of course, you'll want to update your Kodi/mesa/vaapi ppa to point to xenial instead of trusty. You might also want to clone your 14.04 before attempting the upgrade, just in case.

It's probably better to install 16.04 from the ground up, though..
Installed the latest mesa ppa but still getting the following error

09:49:01.548 T:139986085365504 ERROR: VAAPI::GLUnMapSurface - Error: the requested function is not implemented(20)
09:49:01.549 T:139986085365504 ERROR: VAAPI::GLMapSurface - Error: the requested function is not implemented(20)
09:49:01.584 T:139986085365504 ERROR: VAAPI::GLUnMapSurface - Error: the requested function is not implemented(20)
09:49:01.584 T:139986085365504 ERROR: VAAPI::GLMapSurface - Error: the requested function is not implemented(20)
09:49:01.650 T:139986085365504 ERROR: VAAPI::GLUnMapSurface - Error: the requested function is not implemented(20)
09:49:01.651 T:139986085365504 ERROR: VAAPI::GLMapSurface - Error: the requested function is not implemented(20)

Running Kodibuntu

Linux kodi-HTPC 3.13.0-108-generic , Ubuntu Trusty

Guessing my base OS is too old?
Quote:09:40:35.453 T:139989804496896 NOTICE: GL_RENDERER = Mesa DRI Intel® Ironlake Desktop
09:40:35.453 T:139989804496896 NOTICE: GL_VERSION = 2.1 Mesa 10.6.6

Follow the above post.
I don't understand. I installed the latest version (10.6.6.) available in the wsnipex mesa ppa. What else?
What does: vainfo state?

It seems your VAAPI implementation, including mesa driver level is too old. That won't wor anymore. You can disable VAAPI entirely then.
(2017-02-12, 14:40)fritsch Wrote: [ -> ]What does: vainfo state?

It seems your VAAPI implementation, including mesa driver level is too old. That won't wor anymore. You can disable VAAPI entirely then.

Code:
libva info: VA-API version 0.38.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_35
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.38 (libva 1.6.0.pre1)
vainfo: Driver version: Intel i965 driver - 1.3.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc

Will an upgrade to 16.04 resolve this?
Ouh 1.3.0!

Try adding wsnipex vaapi ppa, too and retry.
Thx Big Grin for this post, i have the same issue on ubuntu 14.04.

wsnipex vaapi ppa solved this issue. Cool
Code:
sudo -i
add-apt-repository ppa:wsnipex/vaapi
apt-get install intel-vaapi-driver

or in one line :
Code:
sudo add-apt-repository ppa:wsnipex/vaapi && sudo apt-get update && sudo apt-get upgrade

thx again Smile
(2017-02-12, 15:11)fritsch Wrote: [ -> ]Ouh 1.3.0!

Try adding wsnipex vaapi ppa, too and retry.

Thanks fritsch. That fixed it.
Hi, I am running mythbuntu 14.04. Tried following the various suggestions on this thread, including adding both repositories and doing an apt-get update and an apt-get dist-upgrade. No joy.

Here is the message I get:when I try to play an mpeg2 720p recording with vaapi enabled for mpeg2:

Code:
ERROR: failed to import VA buffer NV12 into EGL image: 12292

kodi.log can be found here - http://filebin.ca/3GqDUsc1XViJ

vainfo:
Code:
libva info: VA-API version 0.39.2
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_38
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.39 (libva 1.7.1)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 1.6.1.pre1 (1.6.1.pre1)
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
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice

When I try

Code:
sudo apt-get install intel-vaapi-driver
I get the following:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package intel-vaapi-driver


Any assistance would be greatly appreciated!

Marc
Pages: 1 2 3