[LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) 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 AMD Zacate (Fusion) platform (/showthread.php?tid=99154)
- wsnipex - 2011-09-04 18:44
hmm I never tried openelec, maybe they have hacked in an option to change the refresh to a fixed value. Normal XBMC does not have it. I just set xorg to 60HZ and then use auto adjust framerate.
- ErikB - 2011-09-05 10:48
I've been working every night for a week to get this working, but I just can't.
I have a Asrock E350M1 motherboard.
I've managed to get the VAAPI running correctly with the OpenElec daily build for fusion x86 (found here: http://www.mediafire.com/openelec#d5pmbbb0ay9at,1 )
However I want to run a LAMP server and a SAMBA server parallel to XBMC, so I would really need to get xbmc with VAAPI working in an environment controlled by me (which OpenElec just isn't).
Anyway, when following the OP:s step-by-step guide, I quite early run into trouble. Performing the following code:
Robotica Wrote:This topic is a follow-up to this topic: AMD Fusion based hardware for a HTPC?
It seems to work with linux-headers-3.0??? but cannot find package for linux-headers-3.0???-generic or any of the other.
When I check with uname -r kernel is still the old, 2.6. something.
Anybody else with this problem? What to do?
- wsnipex - 2011-09-05 12:07
because the exact name of the package is not linux-headers-3.0
The "?" is just a placeholder for some version numbers.
If you really need kernel 3.0 look up the exact name first:
apt-cache search linux-headers-3
anyway, I doubt kernel 3 is really needed.
- ErikB - 2011-09-05 14:32
wsnipex Wrote:because the exact name of the package is not linux-headers-3.0
Sweet, I will try this tonight. Hopefully this helps the rest of the process to work out better as well...
- hipp0 - 2011-09-05 14:40
Exactly my Problem to.
I have running it with natty quite well. Try to skip the Kernel update. It is not necessary in my opinion (but the openelec guys running a 3.* kernell). The easiest way is to start with a ubuntu natty desktop. Do step 2 and 3 from the first page and then add a ppa. For me VAAPI is not working with the unstable ppa but with the pvr ppa.
Unfortunately I have some other problems. Some Videos have big pixels and some are stuttering. I don't know why they are stuttering because my xbmc does not drop any frames.
I also tried to build the vaapi forke from FernetMenta but it crashes. It would be perfect if there was a github for the openelc xbmc version for fusion. Sadly this does not exist.
Does someebody have the FernetMenta github working under Natty and can give me some short steps to go there?
@wsnipex: I also tried to patch the FernetMenta patches against the xbmc mainline. But I gives me some errors when patching. I am sorry I do not have the exact command line output. Have you tried to enable the patches?
- ErikB - 2011-09-05 14:47
hipp0 Wrote:Exactly my Problem to.
If you go to the URLs provided, e.g. https://github.com/FernetMenta/xbmc/commit/d25fbc8248be3cc0b208614faca394c56157cf1a.patch - you will notice that the first is some email subject / details..
My guess is that you are to run only the "code" part of the files..
E.G. only run this:
- hipp0 - 2011-09-05 14:56
ErikB Wrote:If you go to the URLs provided, e.g. https://github.com/FernetMenta/xbmc/commit/d25fbc8248be3cc0b208614faca394c56157cf1a.patch - you will notice that the first is some email subject / details..
Ah. Okay i thought that these lines get ignored by the patch tools. Have you already tried to build the mainline with these patches? I think I will try to do it, when I am at home.
Somebody know what is best choice for the ati driver? 11.7 oder 11.8 ?
- wsnipex - 2011-09-05 15:32
If you do as I described above it will patch the source. A "patch file" essentially is a diff which the patch command interprets to make the changes.
btw, I run mainline (GIT from 2nd September) with those 4 patches, and it works fine. A difference might be, that I do not have a fusion APU(which has an ATI 6300 series GPU), but an ATI 4250(onboard GFX), although I doubt it makes a big difference. Those details are handled driver internally and the vaapi interface remains the same.
Anyway, are you sure the patches were applied?
Can you post your commands?
- hipp0 - 2011-09-05 16:15
wsnipex Wrote:Anyway, are you sure the patches were applied?
As you can see it says that that the patch is already applied. patch --help says me that -N forces the patch to be applied. I compared some part of the sources and only some lines of the patch seems to be applied. So perhaps -N is the way to go? Or this deletes some important lines and I get serious problems
- wsnipex - 2011-09-05 16:21
just skip the one if it says already applied, the other 3 should not give this error
- spocky184 - 2011-09-05 22:30
following this great guide and the guide on http://wiki.cchtml.com/index.php/Ubuntu_Natty_Installation_Guide i`ve got vaapi hardware accelaration running (it`s a FOXCONN NT-A3500 Netbox Fusion E350 with a AMD HD 6310) with Opdenkamps latest xbmc-pvr build (11.0-pvr+p8~git20110829.4e9f5b7-0ubuntu1~stable48~natty), on Ubuntu Natty 11.04 desktop amd64. Latest ATI Catalyst 11.8 on Kernel 2.6.38-11-generic.
So here is exactly what i did (even if i repeat some steps mentioned in this post):
Now start playing a 1080p HD Video in XBMC, press o and look if you see (on the second line): dc:ff-vc1-vaapi or dc:ff-h264-vaapi
There you go.
Hope it`s usefull and thank you again for this great guide.
PS: The 11.8 Catalyst resolved my Suspend Problems on the AMD E350 !
- SteelWolf - 2011-09-05 23:06
No matter what I do when following these guides I end up with XBMC unable to start because it failed to connect to the X server (startx alone fails as well). I think I'm going to try starting with Ubuntu desktop instead of minimal, it seems like many of you in the thread have had success with that.
- ErikB - 2011-09-05 23:52
I also got it to work today, using ubuntu desktop, amd 64..
Cred goes out to this thread and to that thread: http://forum.xbmc.org/showthread.php?p=853855#post853855
(and of course to Lars-opdenkamp and other rep makers!)
Plays well on VAAPI with 12% load on my ASROCK E350M1
1) Seems a bit heavy to run with ubuntu desktop, would be nice to try with ubuntu minimal
2) I am having "big pixel" issues with some 1080p videos. For instance the killa-sample mkv is just big pixels. Anybody resolved this?
I'm getting close to great satisfaction!
- ErikB - 2011-09-06 00:16
What I mean with big pixels is shown in this image.
- FernetMenta - 2011-09-06 08:16
The "big pixels" are probably because killa-sample and other videos showing this are encoded with h.264 level > 4.1. The xvba backend driver reduces the number of references needed by h.264 in this case. There might be a better way of dealing with level > 4.1. vdpau does not support level > 4.1 either but plays killa-sample fine.