[LINUX] HOW-TO use VAAPI HW Acceleration in Intel Core i3 / i5 / i7 integrated GPU
HarryRosen
Senior Member Posts: 254 Joined: Dec 2009 Reputation: 0 |
2011-04-23 01:48
Post: #221
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?
|
| find quote |
margante
Junior Member Posts: 3 Joined: Apr 2011 Reputation: 0 |
2011-04-25 06:22
Post: #222
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 updateI 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 updateI 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 smbclientFrom here on everything is the same as the first page: Code: cd ~At this point I was able to run a startx session and run xbmc using the command: Code: exec xbmc --standaloneIt 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. |
| find quote |
HarryRosen
Senior Member Posts: 254 Joined: Dec 2009 Reputation: 0 |
2011-04-25 16:22
Post: #223
Thanks will give it a shot today
|
| find quote |
HarryRosen
Senior Member Posts: 254 Joined: Dec 2009 Reputation: 0 |
2011-04-25 22:51
Post: #224
That worked great, just how do you get it to autostart into xbmc?
|
| find quote |
margante
Junior Member Posts: 3 Joined: Apr 2011 Reputation: 0 |
2011-04-28 02:17
Post: #225
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. |
| find quote |
margante
Junior Member Posts: 3 Joined: Apr 2011 Reputation: 0 |
2011-04-28 05:10
Post: #226
HarryRosen Wrote:That worked great, just how do you get it to autostart into xbmc? I got my XBMC to autostart by following the link I posted earlier (http://forum.xbmc.org/showthread.php?tid=38473). However, there were a few differences. When I installed rcconf there was no gdm to turn off. In the end I don't think it hurt anything because it still worked but what do I know. Also the tty directory /etc/events.d/tty1 has changed to /etc/init/tty1.conf From there on everything else is the same. Other than that being the noob that I am, I had trouble for a few minutes trying to figure out how to update a readonly file. |
| find quote |
HarryRosen
Senior Member Posts: 254 Joined: Dec 2009 Reputation: 0 |
2011-04-28 14:18
Post: #227
Great Thanks, I ended up using a version of OpenElec, it worked just like a live cd but with VAAPI already included.
|
| find quote |
tstack77
Member Posts: 59 Joined: Oct 2008 Reputation: 0 |
2011-04-29 23:44
Post: #228
alanwww1 Wrote:We have to wait for Intel and Xorg devs to solve the problems. Most of the problems will be solved in Natty final, but we have to see later. Is it now known if natty final fixed all of the issues? |
| find quote |
alexb38
Junior Member Posts: 44 Joined: Nov 2010 Reputation: 0 Location: France |
2011-05-27 00:22
Post: #229
I'm experiencing a problem with VAAPI since sometime : when I activate VAAPI and play some x264 content, then XBMC freezes and I need to restart it.
Here is the setup I'm using : - Intel Core i3 540, 4GB of memory, raid 5 - Gentoo Linux - XBMC, built on May 23 2011 (Git:b30c4327399cdc53a2fd95ea98757754f950453a) Installed versions: 9999{tbz2}(00:33:41 23/05/2011)(alsa bluray css pulseaudio rtmp sse sse2 vaapi webserver xrandr -altivec -avahi -debug -joystick -midi -profile -udev -vdpau) - with external ffmpeg, built on May 23 2011 (git-N-30149-g458f20b) Installed versions: 9999{tbz2}(00:12:19 23/05/2011)(3dnow 3dnowext X alsa bzip2 encode faac hardcoded-tables mmx mmxext mp3 network qt-faststart rtmp sdl ssse3 theora threads truetype vaapi vorbis vpx x264 xvid zlib -aac -altivec -amr -avx -bindist -celt -cpudetection -custom-cflags -debug -dirac -doc -frei0r -gsm -ieee1394 -jack -jpeg2k -oss -pic -schroedinger -speex -static-libs -test -v4l -v4l2 -vdpau -video_cards_nvidia) - kernel 2.6.38-gentoo-r5-ipv6-64 (x86_64) - xorg-server 1.10.1.901 - xf86-video-intel 2.15.0 - mesa 7.10.2-r1 - libdrm 2.4.25 - libva 1.0.12 I installed the packages specified for "Intel Graphics Package 2011Q1" Here is the part of the log when playing a video in x264 : http://pastebin.com/rRUiQJCA When I open the video, there's a black screen below the library view but nothing happens, no image and no sound. At this point I pressed "X" (stop) and after that XBMC freezes : Code: 23:43:12 T:140706974553984 M:3509981184 DEBUG: SDLKeyboard: scancode: cb, sym: 0139, unicode: 0000, modifier: 1000Here are the lines about graphics init at the start of the log : Code: 00:45:39 T:140587379574656 M:3550851072 WARNING: VIDEO database configuration is experimental.The output of vainfo : Code: $ DISPLAY=:1 vainfoEDIT2: or not, because in config.h of libva-1.0.12 there are lines like this : #define PACKAGE_STRING "libva 0.32.0" The problem started a few months ago after updating some packages and XBMC. It worked ok when I had the packages mentionned here : http://intellinuxgraphics.org/2010Q4.html and the latest XBMC from that time (I think xbmc still used subversion at this time). When the VAAPI option isn't activated, everything works fine... Does anyone have an idea on how to solve this problem ?
(This post was last modified: 2011-05-27 00:52 by alexb38.)
|
| find quote |
Krautmaster
Senior Member Posts: 198 Joined: Jul 2010 Reputation: 1 |
2011-05-28 19:36
Post: #230
hmi cannot build libva with my clarkdale any more...
Quote:make[3]: Betrete Verzeichnis '/root/Builds/libva/test/encode' ideas? |
| find quote |

Search
Help