XBMC Community Forum
[LINUX] HOW-TO use VAAPI HW Acceleration on new Intel Sandy Bridge platform - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/forumdisplay.php?fid=52)
+---- Thread: [LINUX] HOW-TO use VAAPI HW Acceleration on new Intel Sandy Bridge platform (/showthread.php?tid=96669)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


- rbrohman - 2011-08-09 02:26

alanwww1 Wrote:
Code:
cd ~
mkdir Builds
cd Builds
git clone git://anongit.freedesktop.org/git/libva
cd libva*
sudo apt-get build-dep libva1
wget http://paste.kde.org/6967/raw/ -O Libva_testdir_makefile.patch
patch -p1 < Libva_testdir_makefile.patch
./autogen.sh --enable-i965-driver --prefix=/usr
make
sudo make install

When I attempt to perform the "patch -p1 < Libva_testdir_makefile.patch", I get an error message "Hunk #1 failed at 23". This follows a number of lines that say "Hunk #1 succeeded at 22 with fuzz 1" (or similar).

The reject file's contents :

Code:
--- test/vainfo/Makefile.am
+++ test/vainfo/Makefile.am
@@ -23,10 +23,12 @@

bin_PROGRAMS = vainfo

-AM_CFLAGS = -I$(top_srcdir)/va -I$(top_srcdir)/test/basic -I$(top_srcdir)/src/$
+AM_LDFLAGS = -lX11
+
+AM_CFLAGS = -I$(top_srcdir)/va -I$(top_srcdir)/test/basic

vainfo_LDADD = $(top_builddir)/va/$(libvacorelib) $(top_builddir)/va/$(libvaba$
-vainfo_DEPENDENCIES =  $(top_builddir)/va/$(libvacorelib) $(top_builddir)/va/$$
+vainfo_DEPENDENCIES =  $(top_builddir)/va/$(libvacorelib) $(top_builddir)/va/$$
vainfo_SOURCES = vainfo.c

valgrind:      vainfo


Is this something I should be concerned with or is a reject expected here?

Thanks


- rbrohman - 2011-08-09 04:18

I continued on from there, but I get stuck at the point where I attempt to compile xbmc. "make -j4" produces:

"Makefile:703: *** missing `endif'. Stop."

Any ideas?

Thanks


- sraue - 2011-08-09 07:09

rbrohman Wrote:I continued on from there, but I get stuck at the point where I attempt to compile xbmc. "make -j4" produces:

"Makefile:703: *** missing `endif'. Stop."

Any ideas?

Thanks

fixed with https://github.com/xbmc/xbmc/commit/1d9a8e099595ec723b3b897d6bb02d6bf9e1ed8d


- alanwww1 - 2011-08-09 21:11

rbrohman Wrote:Is this something I should be concerned with or is a reject expected here?
Thanks

There were a lot of commits done after i made that patch so it might be that the patch is now not needed at all. I have not ha the time to test. IF you can compile libva without an error, you are good without the patch.


- rbrohman - 2011-08-10 03:01

sraue Wrote:fixed with https://github.com/xbmc/xbmc/commit/1d9a8e099595ec723b3b897d6bb02d6bf9e1ed8d

Thanks. Re-downloaded from git and all is well now.

alanwww1 Wrote:There were a lot of commits done after i made that patch so it might be that the patch is now not needed at all. I have not ha the time to test. IF you can compile libva without an error, you are good without the patch.

Ok, thanks. I figured as much, but wanted to double check.


Much appreciation for this guide. I've now got XBMC up and running with the basics functioning as expected (remote, suspend/resume, etc). Hope to start throwing some video at it tomorrow. My fingers are crossed. Smile


- rbrohman - 2011-08-19 02:16

I'm up and running, and it's almost there. Videos playing smoothly, with very low cpu usage (around 2-3%, spikes towards 10% when at 8x ffwd). Currently running video and audio over the onboard hdmi directly to the TV. However I'm coming across one problem. Every once in a while, the whole system locks up while throwing up the following screen:

[Image: IMG-20110816-00312.jpg]

When this happens, I'm completely locked out. The IR receiver's light blinks on remote presses, but nothing happens. Can't use the USB keyboard either. Only resolution is to hard reboot with power button on the htpc.

At first I thought maybe it had something to do with leaving xbmc idle (if I forgot to shut down and came back, it would often be frozen like this), but I have now also had it occur a couple of times while watching local content.

Any ideas?

Thanks


glproto error, how do I update? - jant90 - 2011-08-20 17:31

glproto error, how do I update?

I'm trying to install XBMC as is described in the start post but I run into a problem when running the following command under mesa:

Code:
./autogen.sh --prefix=/usr --with-driver=dri --disable-glut
On this the script breaks with the following error:
Code:
configure: error: Package requirements (glproto >= 1.4.14) were not met:

Requested 'glproto >= 1.4.14' but version of GLProto is 1.4.12

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLPROTO_CFLAGS
and GLPROTO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I tried (because somewhere on the internet it was mentioned this could help):
Code:
sudo apt-get install x11proto-gl-dev

But that simply returns:
Code:
x11proto-gl-dev is already the newest version.

I'm running Ubuntu Server 11.04 x86_64.

So I guess my question is: how do I update glproto?

Thanks!

Btw, among this fatal error the script also returns some other errors on which it doesn't break. The full output of the script is here: http://pastebin.ubuntu.com/670999/.


- alanwww1 - 2011-08-21 00:29

jant90 Wrote:glproto error, how do I update?
So I guess my question is: how do I update glproto?

Try to compile it from GIT:

http://cgit.freedesktop.org/xorg/proto/glproto/


- ths80 - 2011-08-24 20:05

alanwww1 Wrote:Hello !

I have the same issues. I think it is a driver problem. VC1 decoding on Sandy Bridge has just been introduced to the driver lately. I think there are some vc1 files which play ok, but most of them not. Please if you have time fill in a bugreport here:

https://bugs.freedesktop.org/enter_bug.cgi?product=libva

Would be good to test out some more bitrates types of vc1 files to determine if the problem applies for all types.

Thx

I have the issue too. But I don't think it's a driver problem. With mplayer-vaapi the problematic files play well.


- alanwww1 - 2011-08-24 21:51

ths80 Wrote:I have the issue too. But I don't think it's a driver problem. With mplayer-vaapi the problematic files play well.

Are you sure you are playing the same file in mplayer WITH VAAPI acceleration ?

If so, could you please fill in a ticket here on xbmc trac ?

Please enclose xbmc log. Also would be good to provide a sample from a video which plays fine in mplayer and does not in xbmc.