How to Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - Printable Version
+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Support (/forumdisplay.php?fid=33)
+--- Forum: General Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/forumdisplay.php?fid=52)
+---- Thread: How to Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs (/showthread.php?tid=116996)
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
How to Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - wsnipex - 2011-12-15 17:47
XVBA has been deprecated and is not developed anymore.
AMD Gfx users should not use this howto anymore, instead follow http://forum.xbmc.org/showthread.php?tid=174854
Nvidia and Intel users should switch to mainline.
The information below is only kept for reference
Notice for xbmc-xvba-testing users:
FernetMenta bleeding edge development snapshots moved to ppa:wsnipex/xbmc-fernetmenta-master
------------------------------------- old post -------------------------------------
What is Xvba
X-Video Bitstream Acceleration is the AMD API for hardware accelerated video playback on Radeon and Fusion GPUs with UVD.
here is an article with some background information, if you are interested.
The development was started and organized by masterchief FernetMenta (H264, huge part of xbmc integration) and fritsch (VC1, bugfixes, (mpeg-2)).
What you get on AMD:
- great improvements over VAAPI(xvba-va-driver) in stability, performance and robustness.
- H264, VC-1 decoding support including smooth 24p playback.
What does not yet work:
- mpeg2/4: not yet enabled in fglrx
- fglrx doesn't support HD audio(DTS HD/MA) yet
- H264 with Level >= 5.1 (artefacts, judder - fglrx driver limitation)
If you find garbage with non supported h264 levels or too many reframes(>4 @1080p), you can disable xvba for this file. You will need a fast CPU for this to work.
Fixed as of 06/28/12
- video renderer rewritten for improved performance and stability
- improved windowing: multi display support
What you need:
on AMD GPUs:
- fglrx binary driver(amd catalyst) >= 11.11 (>=fglrx 2:8.911) - 13.6 recommended - installed as debs (see step 2 below) on AMD (integrated) GPUs
on Nvidia GPUs:
- nvidia binary driver
on Intel (integrated) GPUs:
- intel open source driver, libva
Ubuntu Packages are available here:
Tested Git builds: https://launchpad.net/~wsnipex/+archive/xbmc-xvba not updated anymore
Frodo stable: https://launchpad.net/~wsnipex/+archive/xbmc-xvba-frodo
Unstable development snapshots: https://launchpad.net/~wsnipex/+archive/xbmc-xvba-testing not updated anymore
Xbmc-Live Xvba: http://www.xbmcfreak.nl/en/exclusive-xbmcbuntu-with-xvba-support-preview-version/
edit 06/15/12: xbmcbuntu 12.04 with xvba: http://xbmcfreak.binkey.nl/xbmcbuntu-11.9-wsnipex-testing-v1.iso
Arch packages: http://aur.archlinux.org/packages.php?ID=55296
Gentoo ebuild: https://bugs.gentoo.org/show_bug.cgi?id=453012
please note, that those are not made and supported by us.
NOTE: Compositing window managers (e.g. compiz, gnome-shell) do not play well with XBMC
If you have issues, please first disable compiz. If you want unity you can try unity-2d.
You should also set vsync to always on in XBMC - system - settings - system - video output.
AMDs Tearfree option must be disabled as it causes problems.
fglrx cannot do DTS-HD and True-HD audio. You have to set the your speakers to 2.0 in order to get these formats correctly downmixed.
To workaround another bug, also enable LPCM for now if you use audio over HDMI.
assign 512MB RAM to your GFX card, if you have integrated GFX
Attention for AMD Trinity APUs(Ax5xxx): you need a newer kernel, so you must install ubuntu 12.10 quantal
Howto Install XBMC PVR Xvba for AMD GPUs from scratch
note this howto was originally written specifically for AMD Xvba. If you run nvidia or intel replace the drivers as appropriate.
edit: updated guide to ubuntu 12.04
edit 2012-08-10: very comprehensive guide by guilmxm: http://youresuchageek.blogspot.fr/2012/06/xbmc-install-and-config-howto-for-linux.html
edit 2012-09-30: install script for ubuntu 12.10 by Bram77: http://forum.xbmc.org/showthread.php?tid=141369
We will use an 64-bit 12.04 Ubuntu Precise minimal to start with the newest basic packages for your OS.
AMD trinity users must use ubuntu 12.10
Choose Command-line-install and use xbmc for username.
After reboot, install ssh so you can continue work with Putty (for win) or with the "ssh -l xbmc your.IP.address" from a linux terminal. We will install py-properties to easyly add the needed ppas and add the user (I have chosen xbmc as the username) to the video and audio group because without this the xserver can not access your gpu directly and falls back to software rasterizer.
Get a terminal with crtl+alt+f1, then
We need to install the AMD/ATI drivers
optional: disable underscan(black borders)
Choose which Xvba build to use, do only one step here
Step 3: Tested Git Builds
Alternative Step 3: Frodo stable
Auto Start Xbmc
allow xbmc to change its nice level:
add following line at the end of the file. xbmc stands for your username, so adjust to fit if you chose something else
create the file /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla
Enable Dirty Region Rendering (drastically reduces CPU load on XBMC idle) and DDS Fanart
NOTE: do not do this as root or with sudo. this file must belong to your normal xbmc user
Recommended Xbmc settings
Optional: workaround for suspend resume
since fglrx seems to have a bug with suspend/resume xbmc can have video playback problems after wakeup.
here is a workaround that will restart X automatically after resume. You should only use it if you have auto-login enabled.
add a new file /etc/pm/sleep.d/99_fglrx
Movie Scraping not working with TMDB?
Install the Youtube plugin in Xbmc, the tmdb scraper depends on it.
too high idle CPU load?
disable the RSS feed in System - Appearance - Skin
Get wireless LAN working:
sample /etc/asound.conf for fusion systems: Only relevant for Eden branch, Audio Engine does not use it.
Adjust if you want SPDIF.
auto mount external drives/usb sticks
create the file /etc/udev/rules.d/11-media-by-label-auto-mount.rules
click the link above
How to use the Xvba packages from Xbmcbuntu
remove currently installed xbmc version:
now follow step3 from above.
Manually upgrade fglrx:
This driver only supports AMD series >=5xxx cards. If you have <=4xxx series you must download the fglrx-legacy driver and replace the filename accordingly.
Edit: update to best driver for precise:
- jazzparadigm - 2011-12-15 22:07
Great effort. Tried installing it according to guide, but get the following error:
Full log: http://pastebin.com/gk7dQ9nt
- wsnipex - 2011-12-15 22:50
could you explain a bit what you did? does any mkv play?
does it work if you disable shared surfaces in video settings?
- jazzparadigm - 2011-12-15 22:53
wsnipex Wrote:could you explain a bit what you did? does any mkv play?
It seems to work when I play 1080p mkv's in windowed mode, but on fullscreen I get artifacts all over. Did not try to switch off shared surfaces, deleted the binary and am building from source as we speak. Will let you know more once that is done.
- fritsch - 2011-12-15 23:37
Do you always try this with the same video?
Could you provide me a sample of it? just the first 5MB. Is this possible?
- jazzparadigm - 2011-12-16 00:04
fritsch Wrote:Do you always try this with the same video?
Most of it is proprietary content, so that would not be a good idea. Here is some of the file information: http://pastebin.com/9DPJeDHV
Maybe you can provide a public file (i.e. http://www.h264info.com/clips.html) that you are certain that works. I will see if I can get it to play.
- fritsch - 2011-12-16 00:18
Every H264 movie with a h264 level <= 4.1 should work.
(sent you a pm with a sample link)
As talked per pm: disable compiz did fix the problems.
- wsnipex - 2011-12-16 09:47
added a note in OP about compiz, Please disable it if you have problems.
Awesome - Infinitatus - 2011-12-16 20:39
Congratulations, just installed your xbmc PVR Xvba and it is working perfectly till now. I tried 2 movies from http://www.h264info.com/clips.html and they work like a charm. And those menus, so snappy and quick, my hand can´t even follow.
(My system boots in +/- 20 seconds with a SSD installed and my media on a external usb Hd.
BTW I would like to know how Erhnam managed to boot to XBMC in 7 seconds with a SSD.)
Just 2 remarks:
1. You might want to put apt-get install lightdm in your guide for linuxnoobs like me, who just follow your guide to the letter. (I didn´t even know what a cross window manager was)
2. The standard weather script Weather Underground crashed. for the moment I use another weather add-on.
For the rest, I am really really impressed. Keep up the good work. I hope that AMD will help you too.
- abudabi - 2011-12-16 20:59
Yeah... kudos to you guys.
Has AMD been approached about the help that is needed from their side for the 5.1 problem? What has the response been? Anything us plebs can do to help?
- kobik - 2011-12-16 21:45
Hey, it seems I was too slow to start this thread
Nice work so far guys.
You really made me happy specifically about one issue I had and it's deinterlacing LiveTV content. At last I can see sports without having a feeling like someone is stabbing me in the eyes
I would like to report a few things, though:
1. Unlike the builds from Lars' repository I'm having lots of crashes when navigating.
2. Fast forwarding on x16 or above stutters
3. Playing a video with the following specs shows a green solid image (Was playing fine on VAAPI)
- fritsch - 2011-12-17 00:04
For the first video:
Could you provide me a sample of the first file? (5MB?)
Second one: 5.1 as you have seen right.
What crashes are this? Does it just quit to desktop or do you get a freeze? Does this happen with Shared Surfaces on? Do you watch interlaced TV while this happens?
If it does not crash to desktop, eg segfaults. Could attach to the running process with gdb?
We have seen some effects in fglrx we are not really amused about...
- wsnipex - 2011-12-17 09:58
howto get a gdb backtrace mini howto
In case of a hanging/locked up xbmc process
with XBMC running:
in the gdb shell/prompt (gdb):
In case xbmc crashes completely to desktop, or X restarts
you should have a xbmc_crashlog* file in your home dir
then let us know the url pastebinit outputs.
- kobik - 2011-12-17 13:07
fritsch Wrote:For the first video:
For some reason after reboot the video can be watched normally, do you still want a sample?
Regarding the crash, it crashes completely.
I'm not using any desktop, so, all I see is just a black screen and then monit restarts XBMC service.
Tell me what info and how to get it, and I'll deliver.
- fritsch - 2011-12-17 13:15
Okay, this looks like a segfault. Does this crash happen only with Shared Surfaces enabled?
Edit: Do you watch interlaced content when it crashes?