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)



- alanwww1 - 2012-01-25 16:51

alecxx Wrote:I'm comparing right now an "Alan implementation"(i5 2500k+z68,VAAPI) AND a ZACATE e350 (xbmcbuntu 24.01.12 build), side by side...AND...they perform almost equally.

Interesting comparison. You checked also Deinterlacing quality ? I think this is an area where Intel could improve. Currently only BOB is implemented.


- alecxx - 2012-01-25 17:41

No, i just tested with "p" material...

Btw, just IMHO, I prefer AMD colors..AND dark scenes are WAY better...

compared over a DELL Ips monitor (0-255)


- Redsandro - 2012-02-05 17:19

I am not sure if this is related to the latest build, but XBMC crashes EVERY FIRST TIME after loggin in during media scanning now. The second time it works.

http://pastebin.com/BhGuZ4xW

Since last year I have been doing nothing on my HTPC except automatic updates, so I am automatically thinking of an XBMC update.

Using this repo:
Code:
$ cat /etc/apt/sources.list.d/xbmc-nathanrennie.list
# RED 2011-12-06
# XBMC VAAPI Nathan Rennie-Waldock

#Stable
deb http://ppa.launchpad.net/nathan-renniewaldock/xbmc-stable/ubuntu oneiric main
deb-src http://ppa.launchpad.net/nathan-renniewaldock/xbmc-stable/ubuntu oneiric main

#Nightly
deb http://ppa.launchpad.net/nathan-renniewaldock/xbmc-nightly/ubuntu oneiric main
deb-src http://ppa.launchpad.net/nathan-renniewaldock/xbmc-nightly/ubuntu oneiric main



RE: [LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform - gsjosh - 2012-04-09 01:47

So I've been trying to get this working for a long time now, but I'm rather stuck. I used MTroi's wonderful small guide with the only exception that I used the latest Catalyst drivers (12.3) and the official stable XBMC release (11.0) as here. I know fglrx is working fine:

Code:
htpc@HTPC:~$ DISPLAY=:0 fglrxinfo
display: :0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 6310 Graphics
OpenGL version string: 4.2.11566 Compatibility Profile Context

and also the libraries are installed correctly:

Code:
htpc@HTPC:~$ DISPLAY=:0 vainfo
libva: VA-API version 0.32.0
libva: User requested driver 'xvba'
libva: Trying to open /usr/lib/va/drivers/xvba_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.32 (libva 1.0.15)
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8
vainfo: Supported profile and entrypoints
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileVC1Advanced            :    VAEntrypointVLD

but XBMC doesn't want to use VAAPI, I get this in the xbmc.log:

Code:
ERROR: VAAPI - failed executing vaCreateContext(m_display->get() , m_config , avctx->width , avctx->height , VA_PROGRESSIVE , m_surfaces , m_surfaces_count , &m_hwaccel->context_id) at line 424 with error ffffffff:unknown libva error

I have seen a user in the same thread here having a similar problem, but he didn't respond to having a solution. Anybody?


RE: [LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform - Redsandro - 2012-04-09 04:16

Although I'd like to say: This whole thread has become obsolete, since Eden is released and as you can read here, va-api wrapper is both no longer maintained and no longer a requirement:

http://www.phoronix.com Wrote:As xvba-va-driver wrapper development stopped in June this year and all-over performance and stability did not really impress the users, we implemented direct xvba support for xbmc.
http://www.phoronix.com/scan.php?page=news_item&px=MTAyODU
-edit-
Fixed URL.


However, I tried a fresh installation of XBMC on Lubuntu 12.04 beta 2 (with additional drivers of course) and I couldn't get fluent playback. So I restored my 11.10 image on my HTPC. I don't really have the time to go on another adventure to get stuff working. Initially, it was necessary to get hardware that was too modern for FOSS to play nice, but now that I've got it working one way or the other, my next upgrade will be "when things go easy and without ado, like they should." Smile

Anyway, as a reference, here is how I got it running:
http://forum.xbmc.org/showthread.php?tid=99154&pid=908362#pid908362


RE: [LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform - abudabi - 2012-04-09 07:23

Yeah.. Just ditch the VAAPI wrapper and use Xvba. I did and it works a treat!

http://forum.xbmc.org/showthread.php?tid=116996


RE: [LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform - gsjosh - 2012-04-09 12:08

Hah! That's both great and bad. Great that there is a better solution, bad since I spent my whole easter weekend getting my first Ubuntu install working. Big Grin Thanks anyway, I'll be lurking the other thread then.


RE: [LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform - Krautmaster - 2012-07-21 14:58

hi there, what is the current status to deinterlacing?

Im installing that way:

sudo su
wget https://dl.dropbox.com/u/21136636/scripts/amd_1204_vnsi
chmod 777 amd_1204_vnsi
./amd_1204_vnsi

-> lightdm
-> none none depending on IR


RE: [LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform - fritsch - 2012-07-21 17:35

@Krautmaster:
you are using the wsnipex repository, which is using direct XVBA support. XVBA provides BOB like deinterlacing. Don't mix this with vaapi.


RE: [LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform - Litus - 2012-10-01 21:43

(2012-04-09 07:23)abudabi Wrote:  Yeah.. Just ditch the VAAPI wrapper and use Xvba. I did and it works a treat!

http://forum.xbmc.org/showthread.php?tid=116996

Thank you so much! I was afraid I would never decide to issue the hardware acceleration on xbmc AMD zacate. But your link helped! I finally go to sleep happy! :-)