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

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/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


- rbrohman - 2011-08-09

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

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

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

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

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

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

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

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

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

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

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.


- rbrohman - 2011-09-03

I'm still getting that above crash screen on a fairly regular basis. Still haven't been able to identify a pattern here.

I've started a separate thread, http://forum.xbmc.org/showthread.php?tid=108860, but I'm double posting here in the hopes that maybe someone else who followed this guide encountered this or something similar and can shed some light on it.

I posted the log file at http://pastebin.com/V8aj8cV6

Any help greatly appreciated, as I'm not sure where to look next.

Thanks


vc-1 problem - ths80 - 2011-09-09

Hello,
the problem with the choppy vc-1 playback is a problem in ffmpeg.
In the official repository it has been fixed.
http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=da21440d46244c424ef4782a18fbcf6823d308fd

I opened a bugreport on trac:
http://trac.xbmc.org/ticket/11942


- SteveWilliams - 2011-09-10

Hi Alan,

Thanks very much for your guide on this! After several weeks of trying an AMD board, I finally gave up and took a Sandy Bridge CPU instead. I have a few questions which have been causing problems for me, which doesn't happen on the live XBMC repo.

When I try to output using AC3 or DTS, it simply doesn't work. I have a Denon amp which definitely supports both output formats, but I don't have a /etc/init/xbmc.conf file.

I've done a file system search for it and cannot find anything, am I being stupid?

Also, to apply updates for XBMC, do I just repeat the git process on a regular basis?


- warpnine - 2011-09-12

Hi alanwww1,

nice tutorial. Thanx for your work. Can I also use your tutorial for my Gigabyte GA-H55N-USB3, Sockel 1156, ITX with a Intel Core i3 540? That would be great.

Manny greatings

warpnine


- SteveWilliams - 2011-09-12

Hi warpnine,

You should be able to do this quite fine if you're using Ubuntu 11.04 Natty.

I stumbled upon a problem compiling MESA (it now relies upon 2 more dependences that I cannot remember the names of), so I just compiled and installed libva and got VAAPI working with no problems.

My understanding is that the Sandy Bridge and the onboard graphics on the Socket 1156 use a similar, if not the same driver on the up-to-date kernel on 11.04 anyway. So you just need to follow the rest of the instructions and give it a go.

Steve