How to Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs

  Thread Rating:
  • 21 Votes - 4.71 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
FernetMenta Offline
Team-XBMC Member
Posts: 1,627
Joined: Jul 2010
Reputation: 34
Location: Munich
Post: #781
Quote:The Killa sampla runs perfectly except that at ~7secs the screen goes black for about 1/10 sec if I have enabled A/V sync

Note that killa samples switches fps. It start with 23.976, then switches to 23.952

->> CalcFrameRate framerate was:23.976024 calculated:23.952096

This triggers re-configuration of renderer.
find quote
Robotica Offline
Posting Freak
Posts: 928
Joined: Aug 2010
Reputation: 3
Post: #782
(2012-06-28 09:12)fritsch Wrote:  Level 51 "has landed"
http://phoronix.com/forums/showthread.ph...post271698

For now I could only test this with E350, E450 on Ubuntu 12.04 and flgrx 12.6b.
Make sure to really X stoppend, when you modify amdscdb.
Great! So the post on phoronix actually worked... Thanks for all efforts to make AMD the best x86 HTPC chips.
find quote
.:B:. Offline
Fan
Posts: 329
Joined: Mar 2010
Reputation: 0
Post: #783
Code:
[root@mnemosyne ~]# grep HWUVD_H264Level51Support=V1 /etc/ati/amdpcsdb
HWUVD_H264Level51Support=V1
[root@mnemosyne ~]# uname -a
Linux mnemosyne 3.0.36-1-lts #1 SMP PREEMPT Sat Jun 23 10:57:18 CEST 2012 x86_64 GNU/Linux
[root@mnemosyne ~]# pacman -Q catalyst-test
catalyst-test 12.6-6
[root@mnemosyne ~]# lspci|grep VGA
00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Wrestler [Radeon HD 6310]

Testing as we speak, with the killa sample and some horribly encoded anime DVD @ High@L5.1 >_>.

Edit: both work fine Smile. 9% on CPU0, 36% on CPU1.

[Image: UXx2u.jpg]

* Netgear WNDR3700, OpenWrt Attitude Adjustment 12.09 :: HP Procurve V1410-8G switch
* OpenELEC 3.0.1: Zotac Nano AD10, Sony KDL52-NX800
* Debian Wheezy x86_64: Phenom II X4 980 BE, HD6950, Dell U2312HM
* Debian Wheezy x86_64: Celeron G530, NFS/MySQL/DLNA/ZFS server
(This post was last modified: 2012-06-28 13:55 by .:B:..)
find quote
DavidGGG Offline
Junior Member
Posts: 24
Joined: Dec 2010
Reputation: 0
Post: #784
Having a hard time finding samples that are bad enough.. I found a bunch of samples here and tested War Horse which is 1080p L4.1 with 5 ref frames. I also tested a 720p sample which was L3.1 with 5 refframes. Unfortunately neither had defects even with yesterday's setup.

A sidenote: I wonder how people manage to create out-of-spec videos. I e in Handbrake there are no instructions that say you should avoid refframes >4, but there's also nowhere to select level, I think it sets level automatically based on your other choices.
find quote
fritsch Offline
Posting Freak
Posts: 1,273
Joined: Aug 2011
Reputation: 36
Post: #785
@Robotica:
It was a kind of "libamdxvba.so" reengineering :-). I found that key months before - but always enabled it at the wrong position :-). But happy it works now.

As Kano pointed out, this should also work while xserver is running:
Code:
aticonfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1
find quote
Hotz87 Offline
Junior Member
Posts: 11
Joined: Jun 2012
Reputation: 0
Post: #786
Nice works great! Only thing left now is the HD audio :-)

Code:
uname -a:
Linux HTPC 3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
dpkg -l | grep fglrx:
ii  fglrx                                2:8.960-0ubuntu1                                   Video driver for the AMD graphics accelerators
ii  fglrx-amdcccle                       2:8.960-0ubuntu1                                   Catalyst Control Center for the AMD graphics accelerators
lspci | grep VGA
00:01.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Wrestler [Radeon HD 6320]
find quote
fritsch Offline
Posting Freak
Posts: 1,273
Joined: Aug 2011
Reputation: 36
Post: #787
@DavidGGG:
It is not only reframes. At 720p you can do alot more. See the latest patch in fernetmenta's trunk. There you see a calculation.
find quote
schumi2004 Offline
Fan
Posts: 643
Joined: Aug 2011
Reputation: 4
Post: #788
(2012-06-28 10:19)wsnipex Wrote:  for everyone interested in trying to enable L5.1:

EDIT: Easier method: thx Kano for pointing this out
Code:
sudo amdconfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1


alternative method:
Code:
sudo service lightdm stop
sudo cp -p  /etc/ati/amdpcsdb  /etc/ati/amdpcsdb.bak
sudo sed -i '/UvdEnabled=V1/ a HWUVD_H264Level51Support=V1' /etc/ati/amdpcsdb
sudo reboot

Please report back with results and following info:
- What GFX card do you use
- uname -a
- dpkg -l | grep fglrx

I'm having a Zotac AD02 with OpenELEC on it so just entering this command in console should be enough?

sudo amdconfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1

Is there a way back in case it fails?

[Image: watched-clearlogo.jpg]
(This post was last modified: 2012-06-28 22:26 by schumi2004.)
find quote
fritsch Offline
Posting Freak
Posts: 1,273
Joined: Aug 2011
Reputation: 36
Post: #789
@schumi2004:
yeah, there is an easy way back:
Disable: sudo amdconfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,0
Enable: sudo amdconfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1

Btw. some users could not get this work with a running X. I talked to a gentoo guy yesterday.
So, if /etc/ati/amdpscdb does not enable it at all, please do the following:

Code:
sudo service lightdm stop
sudo amdconfig --set-pcs-u32=MCIL,HWUVD_H264Level51Support,1
sudo service lightdm start


@All:
Catalyst 12.6 final was released. I could not get it running on either E350 or E450. You get a green unsupported watermark (yeah, could remove this). Worse aticonfig tells you "Unsupported Hardware" and does not do any settings. So I would suggest you waiting for an upgrade, till these things are sorted out. I did not have enough time yesterday night to see what additional files are missing, to workaround this behaviour. I downgraded to 12.6b.
find quote
wsnipex Offline
Team-XBMC packaging monkey
Posts: 1,821
Joined: Jun 2011
Reputation: 51
Post: #790
afaik openelec does not use sudo, so just run as root. setting it to 0 disables it again. You can also backup for driver config as shown in the alternative method.
To be sure, ask the openelec guys Wink
find quote
Post Reply