Kodi Community Forum
[LINUX] HOW-TO use VAAPI HW Acceleration on AMD Zacate (Fusion) 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 AMD Zacate (Fusion) platform (/showthread.php?tid=99154)



- Sea-you - 2011-08-29

If you're struggling with the following error message during starting X:

Code:
(EE) fglrx(0): atiddxDriScreenInit failed, GPS not been initialized.
(EE) fglrx(0): XMM failed to open CMMQS connection.(EE) fglrx(0):
(EE) fglrx(0): XMM failed to initialize
[glesx] __glESXExtensionInit: No GL ES2.0 capable screen found!

it could be possible that radeon and fglrx driver is loaded at the same time.

check it with lsmod

then blacklist radeon driver in /etc/modprobe.d/blacklist.conf

my 2cents for the topic


- Duefi - 2011-08-29

Sea-you Wrote:If you're struggling with the following error message during starting X:

Code:
(EE) fglrx(0): atiddxDriScreenInit failed, GPS not been initialized.
(EE) fglrx(0): XMM failed to open CMMQS connection.(EE) fglrx(0):
(EE) fglrx(0): XMM failed to initialize
[glesx] __glESXExtensionInit: No GL ES2.0 capable screen found!

it could be possible that radeon and fglrx driver is loaded at the same time.

check it with lsmod

then blacklist radeon driver in /etc/modprobe.d/blacklist.conf

my 2cents for the topic

Thank you, but that didn't make it.

I´ve got sound running at the menus, now. I´ve installed gnome and disabled the analog output. But my testing video still keeps crashing.

The Debug log shows some new different errors:

http://pastebin.com/fSnWYQ3S

Perhaps someone could have a look over it. I´m running out of ideas.

Thank you Chris


- wsnipex - 2011-08-29

12:36:01 T:139926863292160 M:3480006656 INFO: CDVDAudioCodecPassthrough::Open - disabled passthrough due to sample rate not being 48000
12:36:01 T:139926863292160 M:3480006656 DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Failed
12:36:01 T:139926863292160 M:3480006656 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
12:36:01 T:139926863292160 M:3480006656 NOTICE: Creating audio thread

It fails to use passthrough, then it tries analog, which you say is disabled.


- erhnam - 2011-08-31

I created a first test image with amd 11.8 drivers, va-api packages and a xbmc unstable package (with support for va-api) over here.

http://www.xbmcfreak.nl/en/experimental-xbmcfreak-livecd-with-amd-fusion-and-latest-nvidia-ion-drivers/


- Rapoza - 2011-08-31

Hello again,

I had an accident with my sound system and now I'm forced to analog output (3 separate amps). I'm trying to configure that thing to play 5.1 on analog but I haven't success. 2ch is fine, using personalized device "hw:1,0" or "Default" but any other thing or more than 2ch throws the unable to initialize device.

Does anything have instructions on how to setup alsa for 5.1 analog?

Hows the 24p thing? Finally shown a solution?

I've seen another funny thing. With old videos and youtubes, it all seems to play in "smurf" mode (fast)
Is it related to the framerate issue, or can be something I miss on configuration?

Thanks to all.


- trib - 2011-09-01

erhnam Wrote:I created a first test image with amd 11.8 drivers, va-api packages and a xbmc unstable package (with support for va-api) over here.

http://www.xbmcfreak.nl/en/experimental-xbmcfreak-livecd-with-amd-fusion-and-latest-nvidia-ion-drivers/

Ok, after burning it on cd (pendrive install won't work) I installed it. Sadly for sure va-api doesn't work. There is no such option in settings even it is Eden build of XBMC. I discover also lirc problems (mce remote) and shoutdown/reboot (it restart xbmc only).


- Tadream - 2011-09-01

Rapoza Wrote:Hello again,

I had an accident with my sound system and now I'm forced to analog output (3 separate amps). I'm trying to configure that thing to play 5.1 on analog but I haven't success. 2ch is fine, using personalized device "hw:1,0" or "Default" but any other thing or more than 2ch throws the unable to initialize device.

Does anything have instructions on how to setup alsa for 5.1 analog?

Hows the 24p thing? Finally shown a solution?

I've seen another funny thing. With old videos and youtubes, it all seems to play in "smurf" mode (fast)
Is it related to the framerate issue, or can be something I miss on configuration?

Thanks to all.

I have my audio devices on hw:1,1 and then it plays 5.1 (via optical).
I'm using Openelec's version (first the Dharma and now the Eden Fusion release). I think it works excellent, sporadically the 24p wobble comes but fast forward/rew and it's gone. Also an occasional freeze in the menu but imo it's already excellent. (no freezes when playing the movie). Plus my Harmony 700 and HP MCE receiver works without any problems.
No smurfs here (I hate those little blue things Big Grin)


- Rapoza - 2011-09-02

Tadream Wrote:I have my audio devices on hw:1,1 and then it plays 5.1 (via optical).
I'm using Openelec's version (first the Dharma and now the Eden Fusion release). I think it works excellent, sporadically the 24p wobble comes but fast forward/rew and it's gone. Also an occasional freeze in the menu but imo it's already excellent. (no freezes when playing the movie). Plus my Harmony 700 and HP MCE receiver works without any problems.
No smurfs here (I hate those little blue things Big Grin)

Dear Tadream,
The fact is that I'm stuck on analog outputs, you know, speaker-line out-mic. But I'm not understanding at all the alsa configuration.
I knew that some other users here where using full analog config, and I thought they would share their configs.

No smurfs in openelec? No chipmunks either? Smile

Thanks,


- hipp0 - 2011-09-04

Hey everybody,

I am following this thread for quite a long time and 4 days ago I bought the Foxconn-NT-A3500 which also comes with an AMD-Fusion CPU. So the last days I tried to figure how to get XBMC working in the best way.

After a few trials VAAPI was not the Problem. I used Natty 64 with catalyst 11.7 and the latest libraries for xvba. With the unstable PPA it does not work (some tricks here?). But VAAPI was enabled in the XBMC-PVR Build and after compiling the git tree of FernetMenta.

But the overall quality of the Videos was not good at all some are stuttering a lot and some have very huge pixels and fragments. http://forum.xbmc.org/images/smilies/confused.gif

So I give the openelec thing a chance and installed a fusion image from here (http://sources.openelec.tv/tmp/image/). The result is not perfect but it is the best I've seen so far.

Unfortunately I do not want to use a "closed" distribution because I want to use my htpc also for several other thing (backup, webserver...)

So my question is. Anybody know which ppa/git-source openelec are using for their fusion release? Because it were amazing if i can have their very good xbmc version on an Ubuntu natty.

I hope somebody can help me
http://forum.xbmc.org/images/smilies/smile.gif
Greetings,

Michael


- wsnipex - 2011-09-04

What you need is to compile mainline from git with 4 preliminary vaapi patches (2011-08-11 and later) from FernetMenta.
https://github.com/FernetMenta/xbmc/commits/vaapi

You can also just compile his vaapi branch directly, but you won't have the changes from mainline after 2011-08-07


- hipp0 - 2011-09-04

wsnipex Wrote:What you need is to compile mainline from git with 4 preliminary vaapi patches (2011-08-11 and later) from FernetMenta.
https://github.com/FernetMenta/xbmc/commits/vaapi

Thanks a lot for your reply wsnipex. I will give that a try! My htpc is installing ubuntu natty once again.

It is a stupid questions (and perhaps google can answer this) but do you know hot to exactly make a patch file from github? To apply these patches against the mainline I would open the involved files and change the code lines with vim.


- wsnipex - 2011-09-04

https://github.com/FernetMenta/xbmc/commit/d25fbc8248be3cc0b208614faca394c56157cf1a.patch
https://github.com/FernetMenta/xbmc/commit/0c2185d62f858f7b41461b4141e731dc7ec01ca6.patch
https://github.com/FernetMenta/xbmc/commit/f46d7a99bc2f3bc70f274422ec8d16257e2a97aa.patch
https://github.com/FernetMenta/xbmc/commit/dff7d824c82f957e19ad56247134912d70862188.patch

download those into your xbmc source dir,
the command to patch is:
Code:
patch -p1 < filename

do this for all 4 patches


- hipp0 - 2011-09-04

Thanks a lot for your help. I have installed the patches and build it with vaapi enabled. After watching some minutes of 1080p Movie I have to say that there is still a big difference between the version I build and the one from openelec.

In xbmc I can see some differences. In the version that I build it is not possible to adjust the refresh rate and also the the parameter pc (when pressing o durring playback) differs in the versions. In openelc it is 24 in my version it is 1.

Perhaps somebody has a good suggestions or I just have to wait for another git forke or ppa. Somebody also got the Foxconn 3500 and hast it working?


- wsnipex - 2011-09-04

what do you mean by "its not possible to adjust refresh rate"?
Is there no option "adjust refresh rate to match video" in xbmc system settings?

Maybe you are missing xrandr or some other dependencies. Check the README in the xbmc source dir and install all the dependencies mentioned there.

Also, which ati driver(fglrx) version do you use?


- hipp0 - 2011-09-04

wsnipex Wrote:what do you mean by "its not possible to adjust refresh rate"?
Is there no option "adjust refresh rate to match video" in xbmc system settings?

Maybe you are missing xrandr or some other dependencies. Check the README in the xbmc source dir and install all the dependencies mentioned there.

Also, which ati driver(fglrx) version do you use?

The option adjust refresh rate to match video exist. I can enable or disable it. But it is not possible to adjust the rate to f.e. fix to 60Hz.

I installed all dependencies mentioned in the README.ubuntu with the apt-get command. Additional to that I installed some missing libs which the linker said that they are missing during configuring. If there are missing dependencies it should not be possible to build it at all?

I use the Version 11.7 of the fglrx driver. For everything related to the driver I just do step 2 and 3 on the first page and validate it as mentioned in step 4. Perhaps I should update them?

I just checked out again the vaapi branch of FernetMenta and will have a look again.