[LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) platform

  Thread Rating:
  • 14 Votes - 4.71 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Snippo Offline
Senior Member
Posts: 115
Joined: Dec 2011
Reputation: 4
Post: #821
erhnam Wrote:Here's a new version btw:

http://xbmcfreak.binkey.nl/XBMCbuntu-v14.zip

It's working fine on my Zotac zbox nano ad10 system.

Just tested it on my HTPC. Worked fine this time Smile.
Only tested it for a few minutes but I noticed the following:
1) Overscan wasn't set properly in Ati CCC. I changed it by logging in to the desktop but a reboot resetted it.
2) Wake on USB doesn't work.
3) The remote stops working after suspending the machine.

I also had these issues on my own Ubuntu installation but didn't have time to fix them yet. Compared to my own Ubuntu install on USB stick this LiveCD boots crazy fast. Big Grin
find quote
fritsch Online
Posting Freak
Posts: 1,254
Joined: Aug 2011
Reputation: 34
Post: #822
There is especially a difference in doing deinterlacing.

If Shared surfaces are disabled & interlacing:
Image data is loaded into a pixel buffer object and deinterlaced in there with opengl the resulting texture is passed to the output
else
Image data is loaded into a pixel buffer object and a texture created and output

With shared buffers disabled you have more CPU Load in both cases (interlaced and non interlaced content), but it works more stable.

Shared Buffers enabled:
Directly passed out by fglrx stuff. Less CPU Load, cause nothing has to be done in between.
(This post was last modified: 2011-12-15 23:21 by fritsch.)
find quote
jazzparadigm Offline
Junior Member
Posts: 12
Joined: Oct 2011
Reputation: 0
Post: #823
wsnipex Wrote:only a black picture?

if yes, try to toggle fullscreen to window mode and back. After a few secs it should work.

That works, but only when I toggle to windowed mode. Switching back to fullscreen introduces flickering/artifacts. Any idea when new version is released on PPA or when building from GIT source is once again possible? It does seem quite promising thus far.
find quote
alanwww1 Offline
Team-XBMC Member
Posts: 1,299
Joined: Nov 2008
Reputation: 31
Location: Hungary
Post: #824
fritsch Wrote:With shared buffers disabled you have more CPU Load in both cases (interlaced and non interlaced content), but it works more stable.

Hi !

As you maybe know I am trying to make life easyer for Intel users with some guides, patches for VAAPI decoding and other testing stuff with Intel and kernel developers.

I am really impressed what you did here with the AMD support of XBMC. Now it looks quite perfect which was a complete mess months ago before you started working on it. Congrats to all the work done on this !

On Intel side it is also getting better and better. The only thing we miss is VAAPI deinterlacing. Work is already begun, but I am afraid that it will be a long time till we can get that work.

Until that I was thinking to do a software or OpenGL based deinterlacing.
the problem is that i am not so experienced in this area of programming, but I am learning.

Do you think that the way you do it with XVBA, so that deinterlacing is done with OpenGL, can be possible also with VAAPI ?

Thx, Cheers, Alan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
fritsch Online
Posting Freak
Posts: 1,254
Joined: Aug 2011
Reputation: 34
Post: #825
VAAPI is really impressive. I installed the htpc of a friend four days ago using your howto on an intel sandybridge system. It works perfectly.

For the deinterlace code. This code was entirely written by Fernetmenta. I am all over happy to understand in the mean time what is going on in there.

But i think it can be adapted more easy than coding the VAAPI internal way, cause the structure and architecture should totally be the same.

I sorted the specific patch out for you:
https://github.com/FernetMenta/xbmc/comm...a558531cf1
find quote
alanwww1 Offline
Team-XBMC Member
Posts: 1,299
Joined: Nov 2008
Reputation: 31
Location: Hungary
Post: #826
fritsch Wrote:VAAPI is really impressive. I installed the htpc of a friend four days ago using your howto on an intel sandybridge system. It works perfectly.

I'm glad that it worked for you. It will become even more simpler with Linux Kernel 3.2 and even with 3.3.

fritsch Wrote:I sorted the specific patch out for you:
https://github.com/FernetMenta/xbmc/comm...a558531cf1

Thanks for the help. I'll look at it and try to implement it for VAAPI. THANKS

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
jazzparadigm Offline
Junior Member
Posts: 12
Joined: Oct 2011
Reputation: 0
Post: #827
Fritsch pointed me to the fix, switching off Compiz fixes all my issues.
find quote
cadair Offline
Junior Member
Posts: 1
Joined: Dec 2011
Reputation: 0
Post: #828
Hello,

It looks like you guys are working really hard on getting hardware acceleration working. I am thinking about buying a AMD fusion system and have been having trouble working out if the hardware acceleration is at a point where it's worth buying a fusion board.

I have no problem compiling xbmc from source etc. So I was hoping if someone could tell me if the hardware acceleration is at a point where it can be used for 1080p playback?

Sorry if I am asking a question that's already answered somewhere else, in that case my google skills are not what they once were!

Thanks
find quote
Infinitatus Offline
Junior Member
Posts: 18
Joined: Nov 2011
Reputation: 0
Post: #829
cadair Wrote:Hello,

It looks like you guys are working really hard on getting hardware acceleration working. I am thinking about buying a AMD fusion system and have been having trouble working out if the hardware acceleration is at a point where it's worth buying a fusion board.

I have no problem compiling xbmc from source etc. So I was hoping if someone could tell me if the hardware acceleration is at a point where it can be used for 1080p playback?

Sorry if I am asking a question that's already answered somewhere else, in that case my google skills are not what they once were!

Thanks
you don´t need to compile it, only if you like to Big Grin . VAAPI support for HD playback is working very good now. I personally like M´troys guide (page 67) to start with (or you wait for the livecd).
Even better should be XBVA support, but i haven´t tried it yet (there is a new thread about it).
find quote
erhnam Offline
Team-XBMC Live Developer
Posts: 655
Joined: May 2009
Reputation: 2
Location: The Netherlands
Post: #830
Snippo Wrote:Just tested it on my HTPC. Worked fine this time Smile.
Only tested it for a few minutes but I noticed the following:
1) Overscan wasn't set properly in Ati CCC. I changed it by logging in to the desktop but a reboot resetted it.
2) Wake on USB doesn't work.
3) The remote stops working after suspending the machine.

I also had these issues on my own Ubuntu installation but didn't have time to fix them yet. Compared to my own Ubuntu install on USB stick this LiveCD boots crazy fast. Big Grin

1) Overscan wasn't set properly in Ati CCC. I changed it by logging in to the desktop but a reboot resetted it.

How do you set/configure this? I'll add this to the next version.
find quote
Post Reply