Kodi Community Forum

Full Version: [LINUX] HOW-TO use VAAPI HW Acceleration in Intel Core i3 / i5 / i7 integrated GPU
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
FYI, support for limited RGB mode has been added to 2.6.39-rc1.
done:

used 10.10 x45 minimal
ppa's of page 1
built libva by myself using the Sandy Bridge how to (post1)
used the git from https://github.com/opdenkamp/xbmc inkluding pvr.
patched with patch from post 1
used the startup scripts of the Sandy Bridge how to.

VDR installation here :

http://schnere.bveml.net/en/node/22

But on TV material with VAAPI enabled, no CPU interlace mode can be enabled and in addition, sometimes i get a green picture Wink

So i use VAAPI disabled with my i3 530 right now and it works good so far. The performance is better, in some scenes in Avatar it stuuters in past, but only extrem high detailed scene (one in that movie) and i could see the CPU on 100% - with the new installation the scene works but at 80+% too Wink

But thats an extreme, so i got no other 1080p movie who stresses the cpu that much.

thx
Hrm - I just tried similar - built per recipe in i3/i5 post, but also built libva per Sandy post. Everything seems to go OK, but xbmc wouldn't start at all. Returns to prompt after a second or so.

Nothing in logs anywhere. Will try again tomorrow - just installed a clean 10.10 x64 minimal. Pity LVM can't do snapshots with rollback and merge (like VirtualBox) - would make testing this stuff so much easier.

D.
halfwalker Wrote:Pity LVM can't do snapshots with rollback and merge (like VirtualBox) - would make testing this stuff so much easier.
D.

I can suggest Acronis True Image backup.

http://www.acronis.com/homecomputing/pro...trueimage/

It has a linux based bootcd, With that you can backup, restore a full linux system in 5 minutes to even to an smb share, or an usb key. A minimal xbmc system backup file is around 350mb.

This way it is easy to test anything.
It is not free, but worth its price.
haha i use Acronis too, works fine so far.

@halfwalker

the Sandy How To works fine for Clarkdales too, but you dont need the ppas of xorg-edgers for VAAPI.

I combined various how to's to one here:

http://www.computerbase.de/forum/showthr...p?t=882014

just follow up the commands - of course u dont have to take the xbmc version of this tutorial or the VDR if u dont use TV.

Take the XBMC from this how-to.

Edit:

Krautmaster Wrote:hm is there a difference of installing xbmc-live out of a ppa instead of using

Quote:sudo wget http://paste.kde.org/7158/raw/ -O /etc/init/xbmc.conf
sudo ln -s /lib/init/upstart-job /etc/init.d/xbmc
sudo wget http://paste.kde.org/7022/raw/ -O /usr/bin/runXBMC
sudo chmod a+x /usr/bin/runXBMC

anyway, i still have various shutdown problems and i dont know how to find out why.
XBMC closes without generating an crashlog and starts again a few seconds later. Once faild, u have to reboot manually.

The problem is randomized, shutdown works in 8 of 10 cases ...

Any ideas?

Edit:

is it possible to build xbmc-live by my own? Normaly, with ppas, i install xbmc and xbmc-live and it works good so far but without this clock patch and most of the ppas are compiled without VAAPI...
XBMC is easy to build, same possible for the Live package?
Thanks

Edit2:

The problems are not only on 11Pre, same for 10.0 Dharma Branch

any ideas?
Hi,

just tested again you howto on my notebook (i330+arrandale gpu).

Everything runs smooth!

Thank you very much!

By the way, do you know if there is an easy way to get the GPU temperature (to display in xbmc in system panel) without resorting to something like "lm-sensors" ?

Typhoe
typhoe Wrote:Hi,
just tested again you howto on my notebook (i330+arrandale gpu).

Everything runs smooth!

Thank you very much!

By the way, do you know if there is an easy way to get the GPU temperature (to display in xbmc in system panel) without resorting to something like "lm-sensors" ?
Typhoe

Smile It is really good to hear that i was able to help a lot of people here.

About Sensors i have not went into that one. I think it needs just a little googling. If anyone could help out, i will add it to the guide. (Sorry but i have no time currently to do it myself)
hey, i installed a fresh ubuntu minimal installation on two systems... my SPDIF doesnt work any more? Anyone with the same problem right now?

Alsa 1.0.23 minimal 10.10 + all ch unmuted
hm is it possible to cut of the acceleration for MPEG2 streams?
Quote:vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple :VAEntrypointVLD <- removable?
VAProfileMPEG2Main :VAEntrypointVLD <- removable?
VAProfileH264Baseline :VAEntrypointVLD
VAProfileH264Main :VAEntrypointVLD
VAProfileH264High :VAEntrypointVLD

I am asking because of interlaced SD TV, which doesn't work with VAAPI enabled. On my Zacate system, there is only VAProfileH264 accelerated and i can use CPU deinterlacing in SD TV with VAAPI enabled.

Maybe i can configure VAAPI in my i3 system to exclude MPEG2 ?


Thx
Krautmaster Wrote:hey, i installed a fresh ubuntu minimal installation on two systems... my SPDIF doesnt work any more? Anyone with the same problem right now?

Alsa 1.0.23 minimal 10.10 + all ch unmuted

I had the same problem , take a look at this ... http://ubuntuforums.org/showthread.php?p=10310168 ... it worked for me.
I have tried this guide so many times, I have no idea why I can't get it to work properly, Everything seems fine until I try and compile xbmc, Is it possible to install the live version and then recompile in the VAAPI?
HarryRosen Wrote:I have tried this guide so many times, I have no idea why I can't get it to work properly, Everything seems fine until I try and compile xbmc, Is it possible to install the live version and then recompile in the VAAPI?

I felt your pain...for three days I have been trying to work through this guide and I was about to give up. I was stuck at the same point you were. I could not compile the xbmc. It was giving me an error about not being able to find a directory related to python. I searched Google and finally found an answer that worked so I will share with you everything I did. Warning I am not an expert and I may not have done everything perfect but in the end it worked

I started out by installing the Maverick mini version of Unbuntu and the only option I selected that was not the default was the "OpenSSH server" option. From there I followed alanwww1 instructions with a few minor changes which I will detail below:

No changes from what he listed here:

Code:
sudo apt-get update
sudo apt-get install udisks upower xorg alsa-utils mesa-utils
sudo adduser YourUserName video
sudo adduser YourUserName audio
sudo reboot

I replaced this line "sudo apt-get install libva1 vainfo i965-va-driver libva-glx1 libva-dev" he originally had with this line "sudo apt-get install libdrm2 libva1 i965-va-driver vainfo" that I found in a reply in this thread. See Below:

Code:
sudo apt-get update
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libdrm2 libva1 i965-va-driver vainfo
sudo reboot

I couldn't get it to compile xbmc correctly later on due to a python error and libva missing so I had to add "python2.6-dev" to the list below and also "libva-dev". I also added the "smbfs" and "smbclient" variables so that I could connect to the drives on my windows network through the windows smbclient.

Code:
sudo apt-get install git-core make g++ gcc gawk pmount libtool nasm yasm automake cmake gperf zip unzip bison libsdl-dev libsdl-image1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libfribidi-dev liblzo2-dev libfreetype6-dev libsqlite3-dev libogg-dev libasound-dev python-sqlite libglew-dev libcurl3 libcurl4-gnutls-dev libxrandr-dev libxrender-dev libmad0-dev libogg-dev libvorbisenc2 libsmbclient-dev libmysqlclient-dev libpcre3-dev libdbus-1-dev libhal-dev libhal-storage-dev libjasper-dev libfontconfig-dev libbz2-dev libboost-dev libenca-dev libxt-dev libxtst-dev libxmu-dev libpng-dev libjpeg-dev libpulse-dev mesa-utils libcdio-dev libsamplerate-dev libmms-dev libmpeg3-dev libfaad-dev libflac-dev libiso9660-dev libass-dev libssl-dev fp-compiler gdc libwavpack-dev libmpeg2-4-dev libmicrohttpd-dev libmodplug-dev libssh-dev gettext cvs autopoint dh-autoreconf python2.6-dev libva-dev smbfs smbclient

From here on everything is the same as the first page:

Code:
cd ~
git clone git://git.videolan.org/libbluray.git
cd libbluray/
./bootstrap
./configure --prefix=/usr
make
sudo make install

cd ~
git clone git://github.com/xbmc/xbmc.git
cd xbmc
./bootstrap
./configure --prefix=/usr --enable-vaapi --enable-libbluray

wget http://paste.kde.org/7020/raw/ -O ./ReferenceClockHang.patch
patch -p1 < ./ReferenceClockHang.patch

make
sudo make install
sudo ln -s /usr/lib/libva.so.1 /usr/lib/libva-0.31.1.1.so.1
sudo ln -s /usr/lib/libva-glx.so.1 /usr/lib/libva-glx-0.31.1.1.so.1

At this point I was able to run a startx session and run xbmc using the command:

Code:
exec  xbmc  --standalone

It is still not perfect. I still have to change a few things to make it boot into xbmc instead of a command line but it feels great to know that I can get to xbmc and my movies run smoothly. I hope this helps. Thanks alanwww1 for the great starting point.
Thanks will give it a shot today
That worked great, just how do you get it to autostart into xbmc?
HarryRosen Wrote:That worked great, just how do you get it to autostart into xbmc?

Still working on that. I will post when I figure it out. I believe this is the answer here: http://forum.xbmc.org/showthread.php?tid=38473 but I have not been able to get the time to try it out.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19