[LINUX] HOW-TO use VAAPI HW Acceleration in Intel Core i3 / i5 / i7 integrated GPU

  Thread Rating:
  • 4 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
gven Offline
Junior Member
Posts: 17
Joined: May 2011
Reputation: 0
Post: #241
alexb38 Wrote:Any idea? Confused

Not really, since the problem appears to be in your build of XBMC. If I were in your position, I would try to create a clean machine (perhaps a virtual machine or a live CD of a distro) get the latest production drivers and stack and then get the required libraries for building XBMC from standard repositories, not have any XBMC 10 on it at all and see if that 11 build works when vlc is working on that configuration with hardware decoding (this testing cannot be run from a virtual machine but you can run it from a live cd boot).

This is just in case all the testing and downloading earlier resulted in some incompatible libraries being added and to make sure that there is no possibility of any contamination with XBMC 10 files (since the symptoms you have are exactly the same as that of XBMC 10).
find quote
MightyMouth Offline
Junior Member
Posts: 12
Joined: Dec 2010
Reputation: 0
Post: #242
I am running into an error when trying to compile XBMC

Code:
checking for hci_devid in -lbluetooth... no
Could not find suitable version of libbluetooth
checking for main in -lyajl... no

I started with a fresh ubuntu 10.10 x86 server install and ran through every step including the ones for the minimal install just in case.

I tried
Code:
sudo apt-get build-dep xbmc
which failed so I tried copying the dependancies out of the README.linux file which is a real pain because instead of a list of packages to install some of the dependancies are in other packages and even if they weren't someone thought it a good idea to add commas after every one.

Anyway I wound up with this
Code:
sudo apt-get install debhelper python-support cmake autotools-dev autoconf automake unzip libboost-dev zip libtool libgl1-mesa-dev libgl1-mesa-dev libglu1-mesa-dev libglu-dev libglew-dev libmad0-dev libjpeg-dev libsamplerate-dev libogg-dev libvorbis-dev libfreetype6-dev libfontconfig-dev libbz2-dev libfribidi-dev libsqlite3-dev libmysqlclient-dev libasound-dev libpng12-dev libpng-dev libpcre3-dev liblzo2-dev libcdio-dev libsdl-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libenca-dev libjasper-dev libxt-dev libxmu-dev libxinerama-dev libcurl4-gnutls-dev libcurl4-gnutls-dev libdbus-1-dev libhal-storage-dev libhal-dev libpulse-dev libavahi-common-dev libavahi-client-dev libxrandr-dev libavcodec-dev libavformat-dev libavutil-dev libpostproc-dev libswscale-dev libmpeg2-4-dev libass-dev libmpcdec-dev libflac-dev python-dev gawk gperf nasm libcwiid1-dev libbluetooth-dev zlib1g-dev libsmbclient-dev libiso9660-dev libssl-dev lsb-release libvdpau-dev libmicrohttpd-dev libmodplug-dev librtmp-dev curl python-dev libyajl-dev

Which seems to have done the trick and XBMC compiled ok. I have not compared the Build-depends in the guide to this list so I don't know all which were missing but I suspect it was the last one in the list at least libyajl-dev.

Also when running make install I got an error /bin/bash: gtk-update-icon-cache: command not found
so I did
Code:
sudo apt-get install libgtk2.0-bin
which got rid of the error.
(This post was last modified: 2011-06-18 00:56 by MightyMouth.)
find quote
arnoo Offline
Junior Member
Posts: 4
Joined: May 2011
Reputation: 0
Post: #243
try this:

Code:
apt-get install libbluetooth3 libbluetooth-dev
find quote
alecxx Offline
Junior Member
Posts: 22
Joined: Jun 2011
Reputation: 0
Post: #244
alexb38 Wrote:Ok, yes I used the good option "Use GPU acceleration (experimental)" just under /dev/dvd in "input & codecs".

Here we can see that VLC is really using VAAPI :
Code:
libva: libva version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/dri/i965_drv_video.so
libva: va_openDriver() returns 0
[0x1f60f60] avcodec decoder: Using VA API version 0.32 for hardware decoding.

same problem here:
10.10 server, x4500hd with correct vainfo output but when i try to play MKv in xbmc 11pre with VAAPI enabled it crashes back to Desktop.

any idea?
find quote
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Post: #245
new upstream vaapi for lucid, I thought some of you may want newer drivers

https://launchpad.net/~x3lectric/+archiv.../+packages
find quote
o_dog Offline
Senior Member
Posts: 104
Joined: Aug 2008
Reputation: 0
Post: #246
just wanted to check what the status of intel X4500MHD is, still just able to decode mpeg2 right? Starting to doubt intels intentions of actually developing support for h264 under linux.
find quote
alanwww1 Offline
Team-XBMC Member
Posts: 1,299
Joined: Nov 2008
Reputation: 31
Location: Hungary
Post: #247
o_dog Wrote:just wanted to check what the status of intel X4500MHD is, still just able to decode mpeg2 right? Starting to doubt intels intentions of actually developing support for h264 under linux.

There is a branch living for libva just for G45 h264 decoding.

http://cgit.freedesktop.org/libva/?h=g45-h264

It is not merged into mainline libva, but you might can try the branch out. I think after git checkout you can change to the g45-h264 branch and build that, instead of the mainline libva.

Hope it helps...

Phoronix article:

http://www.phoronix.com/scan.php?page=ne...&px=OTMxNw

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
o_dog Offline
Senior Member
Posts: 104
Joined: Aug 2008
Reputation: 0
Post: #248
alanwww1 Wrote:There is a branch living for libva just for G45 h264 decoding.

http://cgit.freedesktop.org/libva/?h=g45-h264

It is not merged into mainline libva, but you might can try the branch out. I think after git checkout you can change to the g45-h264 branch and build that, instead of the mainline libva.

Hope it helps...

Phoronix article:

http://www.phoronix.com/scan.php?page=ne...&px=OTMxNw

Thanks, tried it, vainfo reports the correct info but xbmc crashes back to console as soon as you try to start playback of a h264 file with vaapi enabled. Works great without it though =)
find quote
tmiland Offline
Junior Member
Posts: 10
Joined: Jul 2011
Reputation: 0
Location: Norway
Post: #249
Hello and thank you for the guide! Smile

I am experiencing stuttering when vaapi is enabled with 1080p mkv files,
runs smooth when i disable vaapi, you have any idea what the issue might be?

I'm running a fresh install of ubuntu 11.04 on a asrock core 100ht-bd --> http://www.asrock.com/nettop/overview.as...20100HT-BD
find quote
xbmc_pitti Offline
Junior Member
Posts: 22
Joined: Dec 2010
Reputation: 0
Post: #250
tmiland Wrote:Hello and thank you for the guide! Smile

I am experiencing stuttering when vaapi is enabled with 1080p mkv files,
runs smooth when i disable vaapi, you have any idea what the issue might be?

I'm running a fresh install of ubuntu 11.04 on a asrock core 100ht-bd --> http://www.asrock.com/nettop/overview.as...20100HT-BD

I have the same issue here. The Problem seems that the GPU Clock
is not adjusted automaticly. On Windows you can see with GPU-Z that
the initial GPU Clock is at 480mhz. After starting xbmc and playing a 1080p file
the Clock speed is at 684mhz. So I went to the Bios and set IGP to 677mhz. After that 1080p plays smooth with vaapi. So I think the GPU Turbo dosn't work with the actual intel drivers.
(This post was last modified: 2011-07-27 10:44 by xbmc_pitti.)
find quote
Post Reply