XBMC Community Forum
[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)



- devil103 - 2011-06-13 19:09

I am having the same problems as reported above.
Natty install, XBMC built from git following the guide and it automatically crashes XBMC/Mplayer when opening a .mkv file with the same debug info as above.

ATI 11.5 driver and vainfo output is:
Quote:libva: libva version 0.32.0-sds2
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.32
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8
vainfo: Supported profile and entrypoints
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD

Best guide so far though. I have a feeling this is going to be another little problem (hopefully)

Any suggestions?

PS: Mplayer-vaapi crashes with following message

MPlayer interrupted by signal 11 in module: preinit_libvo


- htpcero - 2011-06-13 20:31

devil103 Wrote:I am having the same problems as reported above.
Natty install, XBMC built from git following the guide and it automatically crashes XBMC/Mplayer when opening a .mkv file with the same debug info as above.

ATI 11.5 driver and vainfo output is:


Best guide so far though. I have a feeling this is going to be another little problem (hopefully)

Any suggestions?

PS: Mplayer-vaapi crashes with following message

MPlayer interrupted by signal 11 in module: preinit_libvo


I found the same results doing both a GIT build and using xbmc-pvr from Lars' PPAs, on e350 + ubuntu 11.04/amd64. When using xbmc-pvr, dependency problems also creep up but the crash is the same.

So far I haven't found any clear indication that VAAPI actually works in this scenario (people had reported success on older ubuntu releases, older fglrx). It seems we are in for some wait until this gets sorted out.


- wobu - 2011-06-14 07:47

have u tried this?

wobu Wrote:yeaah Smile

got my Vaapi and XBMC working again.
The reason was any xorg.conf setting.

i'm thinking this one

Code:
Section "Extensions"
Option "Composite" "Disable"
EndSection

is needed.

But i don't know the exactly effects of this setting....



- WytRaven - 2011-06-14 10:16

I have been trying for the better part of a week to get xbmc up on my ASUS E35M1-I Deluxe board. I built this system to be a home file/backup server + HTPC.

I used this thread as a starting point so have been trying to get up from an ubuntu natty mini.iso but cannot get xorg going at all, not with fglrx or without.

Issues I have come across and conquered so far: Nerd

1. Issues with boot process breaking mdadm arrays on reboot over and over again. Fixed using a combo of POST delays in BIOS, using a new version of mdadm from the proposed repository, and upgrading kernel to 2.6.39.

2. Issues with the onboard Realtek 8111E gigabit ethernet. Sustained transfers at gigabit speeds for more than a few minutes were causing kernel panics. Solved by installing Realtek's own linux driver.

So far I have successfully gotten this system up and running as a nice 12TB AFP file server and Time Machine backup target for my home's Mac fleet (5 x 3TB in RAID5), which allows for a centralised source for music/media files whilst allowing each mac to have it's own unique iTunes library, but as soon as I try to get xorg going it all ends in tears very quickly. I have not once been able to successfully get an X server running properly let alone XBMC...

When trying to configure xorg with X -configure it fails every time. With fglrx there are KMS issues + "Number of created screens does not match the number of detected devices" errors despite appearing to be installed correctly (had to use a special version of fglrx from a PPA patched to work with 2.6.39 but even before upgrading kernel the results where the same so I don't think this really has anything to do with it) and with radeon it's just the number of displays issue. After much searching I have tried all sorts to get this going but to no avail; I cannot get past the first hurdle Oo

There is so much on the net of people obviously just regurgitating stuff without any real knowledge "try this, try that, etc" that it makes it very difficult to find anything of value. Even trying to find an overview of how xorg works so as to be able to understand why it is breaking in the first place seems nigh impossible.

Not really expecting everyone to jump up and try to solve my issues just more sharing my experience with trying to get Ubuntu Natty + AMD Fusion to work. Blush

I haven't given up but I am currently in a state of burn out and despair after so many trys and so many failures. Wink I can only assume I am missing something pretty major or my fixes for the above issues are causing breaks elsewhere, as I see all over the net people reporting that they are up and running in XBMC and are now just trying to solve playback, refresh rate, or crashing issues.

Hopefully I will eventually get it up and running once I manage to wade through the endless supply of mis-information out there on the subject and if so I will report back here with an update on how it was resolved. Or maybe some one else has come across the same issues and already has found a solution...?

I'm about to start again from scratch for what feels like the 50th time now. Wish me luck, or the force to be with me, or something Big Grin


- Rapoza - 2011-06-14 11:29

I'm now in my nth try only to make ubuntu get the drivers working. I tried natty and maverick. Now I'll try to use old SO and drivers.

I'm starting to think that this thing doesn't work, so sorry for having followed someones for choosing the mobo model, and understanding why people using this platform goes to windows 7.

Already wasted 5 days almost completely.

Good luck WytRaven.

Thanks for all the help I received from this forum.
Sergio.


Try again soon - devil103 - 2011-06-14 12:55

wobu Wrote:have u tried this?

I'll try building xbmc again later today. First backup my root this time since I did another fresh install yesterday evening. Big Grin

How did you get get the pvr build running on natty? I run into the dependencies problem and the splitted desktop libva/libva-dev/xvba packages... No

I still have confidence to get this working and it's fun to mess around in Linux again Smile

Thanks above for the Realtek network tip, I been getting some kernel panics as well and will upate to the Realtek drivers.


- WytRaven - 2011-06-14 14:15

devil103 Wrote:How did you get get the pvr build running on natty? I run into the dependencies problem and the splitted desktop libva/libva-dev/xvba packages... No

Code:
wget http://www.splitted-desktop.com/~gbeauchesne/libva/pkgs/amd64/libva1_0.32.0-1+sds2_amd64.deb
wget http://www.splitted-desktop.com/~gbeauchesne/libva/pkgs/amd64/libva-dev_0.32.0-1+sds2_amd64.deb
wget http://www.splitted-desktop.com/~gbeauchesne/xvba-video/xvba-video_0.7.8-1_amd64.deb

apt-get install libdrm-dev
apt-get install pkg-config
dpkg -i libva1_0.32.0-1+sds2_amd64.deb
dpkg -i libva-dev_0.32.0-1+sds2_amd64.deb
dpkg -i xvba-video_0.7.8-1_amd64.deb

I think this is the fix for what you are talking about dependency-wise, the key being "apt-get install libdrm-dev" before attempting to install the others. If this isn't what you were talking about then move on - nothing to see here Wink


- wobu - 2011-06-14 14:16

i cant remember on any dependency problem, maybe i had one but i don't know it anymore.
Earlier i posted this simple guide which roughly decribes my steps which i did to get it working.
The last step (xorg.conf changes) will also cause that the Unity Desktop of Ubuntu Natty Narwhal won't work anymore. For me it isn't a problem cause i administer my HTPC via PuTTY and NoMachine from a 2nd PC.
I'm using my HTPC since the release of Natty Narwhal to watch Live TV and HD video stuff.

wobu Wrote:1. firstly install all Vaapi packages
2. checkout xbmc via git, i took the current pvr development (patching isn't needed anymore)

Code:
git clone https://github.com/opdenkamp/xbmc.git

3. Look into the README file for linux and install all packages needed for compiling xbmc
4. compile and install xbmc
5. insert into the /etx/X11/xorg.conf following section


Code:
Section "Extensions"
        Option      "Composite" "Disable"
EndSection

i needed it but i don't now exactly why, cause otherwise my xbmc always crashed on playing a video file



Succes! - devil103 - 2011-06-14 18:12

Succes!

With another new installation I now have a working XBMC vaapi.
720p with Unity Desktop, 30% CPU, dc:ff-h264-vaapi

Basically did:

Quote:installation from alternative installer (needed for lvm)
sudo apt-update
sudo apt-upgrade

sudo apt-get libdrm-dev

wget three vaapi packages and dpkg -i them

wget the latest 11.5 catalyst drivers
sudo sh ati-driver --buildpkg Ubuntu/natty
sudo dpkg -i fglrx*.deb
sudo aticonfig --initial

test with vainfo, fglrxinfo

sudo shutdown -r now (reboot!)

git from xbmc-pvr and then compile

If wanted I can make a more detailed step guide of what I did, this is just what I can quickly type up now.


- h0tzen - 2011-06-14 19:03

thank you very much for that HowTo.
please excuse the dumb question, but what does PVR stand for in xbmc-pvr?