- Robust² - 2011-04-04 12:21
I've been trying all weekend to get VAAPI working on my Gigabyte E350-USB3 without succes. I think the problem lies with my Catalyst drivers, when running flgrxinfo I always get an 'Unable to open display (null)' error.
Anyone who has experience with this?
I'm downloading nemek's version and will report back how it works.
- Gujs - 2011-04-04 13:44
Hi,
Are you trying to run this from terminal? You have to export display first, to be able to do that:
Code:
export DISPLAY=:0.0
- blueray - 2011-04-04 20:36
nemek great work. It is working very nice with very low cpu usage. Can you update the version to 10.1?
Right now CPU usage ~5% while playing 1080p mkv without stucking
- SpectreX - 2011-04-04 21:20
+1, i`m also interested in this since i`m using a nighly build atm.
- SpectreX - 2011-04-04 21:31
poofyhairguy Wrote:But VAAPI is disabled for a reason. Its not anti-AMD bias.
Heck XBMC also disables VDPAU-based divx upscaling. As you said we are all big NVidia fanboys, yet this feature is blocked despite being available for more than a year. Why? Because its buggy, and the XBMC devs don't want to be held responsible for Third Party buggy code. Just like with VAAPI.
If VAAPI was as rock solid as normal VDPAU, it wouldn't be disabled. That is the fault of the drivers, which is the fault of AMD/Intel.
Atm, on my Zacate i`ve used the latest 11.3 drivers with Live and a VAAPI enabled build and playback was rock solid on all my HD movies. That vaapi surfaces usage patch was submitted and closed 5 weeks ago, so it could have made it to 10.1 (but i think it`s included in the latest nightly builds). So VAAPI could be enabled, or at least enabled and marked as experimental.
- Limx - 2011-04-08 01:36
I'm so frustrated! I've tried to install VAAPI for hours (see my tryings below) and no success. BUT the version posted by nemek works great also with VAAPI ... B U T how did he do that?? What I've done wrong - that costs me some nights of thinking about it 
Here what I've tried (more than one try...) May someone finds the mistake:
Code:
# http://www.multimedia4linux.de/htpc/ati_video.html
# http://www.xbmcnerds.com/index.php?page=Thread&threadID=361
# http://drpaneas.com/?p=66
# https://launchpad.net/~dtl131/+archive/catalysthacks
# http://wiki.cchtml.com/index.php/Ubuntu_Maverick_Installation_Guide
# Wohl dem, der einen extra PC nutzen kann um sich mittels SSH verbinden zu können...
# benötigte Pakete
sudo apt-get install python-software-properties pkg-config
# Paketquelle einbinden
#Stable Releases (empfohlen)
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
#Unstable Releases
#sudo add-apt-repository ppa:team-xbmc/unstable
#sudo apt-get update
#Unstable Releases mit Blu-ray Support (inoffiziell)
#sudo add-apt-repository ppa:mario-sitz/ppa
#sudo apt-get update
# XBMC installieren
sudo apt-get install xbmc-live xinit x11-xserver-utils
# Sound-Treiber installieren
sudo apt-get install linux-sound-base alsa-base alsa-utils
# Neustart
sudo reboot
#----------
sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0
sudo apt-get install ia32-libs
cd ~/; mkdir catalyst11.3; cd catalyst11.3/
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-3-x86.x86_64.run
chmod +x ati-driver-installer-11-3-x86.x86_64.run
sudo apt-get remove --purge xserver-xorg-video-radeon
sh ati-driver-installer-11-3-x86.x86_64.run --buildpkg Ubuntu/maverick
sudo dpkg -i fglrx*.deb
sudo aticonfig --initial -f
# sudo aticonfig --input=/etc/X11/xorg.conf --tls=1
fglrxinfo
# Grafik-Treiber installieren
sudo apt-get update
# Installer herunterladen
mkdir catalyst113
cd catalyst113
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-3-x86.x86_64.run
chmod +x ati-driver-installer-11-3-x86.x86_64.run
# evtl. alte Radeon-Xserver entfernen
sudo apt-get remove --purge xserver-xorg-video-radeon
# evtl. alte ati Treiber entfernen
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx
# Weitere benötigte Pakete
sudo apt-get install lib32gcc1 libc6-i386 dkms
# Version auslesen, wenn nicht bekannt
# cat /etc/lsb-release
# Treiber-Pakete erstellen
sudo sh ati-driver-installer-11-3-x86.x86_64.run --buildpkg Ubuntu/maverick
# Geduld...
# Treiber-Pakete installieren
sudo dpkg -i fglrx*.deb
# Neustart
sudo reboot
#Bitte püfen Sie zuerst mit cat /var/log/Xorg.0.log | grep UVD* ob die Videobeschleunigung vom Catalyst Treiber aktiv ist.
cat /var/log/Xorg.0.log | grep UVD*
# Ergebnis sollte sein: fglrx(0): UVD2 feature is available
#----------
# Vaapi...
# Catalysthack Quelle hinzufügen
sudo add-apt-repository ppa:dtl131/catalysthacks
sudo apt-get update
# Catalyst schon wieder deintallieren...
# Nicht fragen... machen ;)
sudo sh /usr/share/ati/fglrx-uninstall.sh
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx
sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sudo apt-get update
# libva von catalysthack installieren
# sudo apt-get install libva1
sudo apt-get install libdrm2 # bzw. libdrm
sudo apt-get install libdrm-dev
mkdir installx
cd installx
#wget http://www.splitted-desktop.com/~gbeauchesne/libva/pkgs/amd64/libva1_0.32.0-1+sds2_amd64.deb
wget https://launchpad.net/~dtl131/+archive/catalysthacks/+files/libva1_1.1.9~catalysthacks1_amd64.deb
#wget http://www.splitted-desktop.com/~gbeauchesne/libva/pkgs/amd64/libva-dev_0.32.0-1+sds2_amd64.deb
wget https://launchpad.net/~dtl131/+archive/catalysthacks/+files/libva-dev_1.1.9~catalysthacks1_amd64.deb
wget http://www.splitted-desktop.com/~gbeauchesne/xvba-video/xvba-video_0.7.8-1_amd64.deb
#sudo dpkg -i libva1_0.32.0-1+sds2_amd64.deb
#sudo dpkg -i libva-dev_0.32.0-1+sds2_amd64.deb
sudo dpkg -i libva1_1.1.9~catalysthacks1_amd64.deb
sudo dpkg -i libva-dev_1.1.9~catalysthacks1_amd64.deb
sudo dpkg -i xvba-video_0.7.8-1_amd64.deb
sudo reboot
# Test mit:
vainfo
# Test 2 mit:
fglrxinfo
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-3-x86.x86_64.run
sudo sh ati-driver-installer-11-3-x86.x86_64.run
- nemek - 2011-04-08 09:18
Quote:May someone finds the mistake:
Its looks way too complicated than it should be. Basically what u have to do is:
1. install va-api stuff (3 libs [libva & libva-dev & xvba-video] from splitted-desktop.com)
2. install catalyst
3. confirm if everything is ok (run vainfo) - if its reporting an error its probably missing linkage
4. compile xbmc with va-api enabled OR use https://launchpad.net/~lars-opdenkamp/+archive/xbmc-pvr - but it can and i guess will make problems with already installed libva
- Limx - 2011-04-08 14:46
Hi,
thx - I'll try this next time - for now your version works like a charm and I don't want to make a mistake again 
My failed steps:
Step 1:
Most the time I've installed catalyst first:
Code:
wget [url]http://www2.ati.com/drivers/linux/ati-driver-installer-11-3-x86.x86_64.run[/url]
sudo sh ati-driver-installer-11-3-x86.x86_64.run
(installed with the Installer)
Or
Compiled and than installed the 4 .deb files
Code:
sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 ia32-libs
wget [url]http://www2.ati.com/drivers/linux/ati-driver-installer-11-3-x86.x86_64.run[/url]
sudo sh ati-driver-installer-11-3-x86.x86_64.run
sh ati-driver-installer-11-3-x86.x86_64.run --buildpkg Ubuntu/maverick
sudo dpkg -i fglrx*.deb
sudo aticonfig --initial -f
sudo aticonfig --input=/etc/X11/xorg.conf --tls=1
Step 2:
After that
I've installed allways the 3 libs from splitted-desktop.com (newest version)
Code:
wget http://www.splitted-desktop.com/~gbeauchesne/libva/pkgs/amd64/libva1_0.32.0-1+sds2_amd64.deb
wget http://www.splitted-desktop.com/~gbeauchesne/libva/pkgs/amd64/libva-dev_0.32.0-1+sds2_amd64.deb
wget http://www.splitted-desktop.com/~gbeauchesne/xvba-video/xvba-video_0.7.8-1_amd64.deb
sudo dpkg -i libva1_0.32.0-1+sds2_amd64.deb
sudo dpkg -i libva-dev_0.32.0-1+sds2_amd64.deb
sudo dpkg -i xvba-video_0.7.8-1_amd64.deb
But they never running correctly... vainfo brought an error (-1) and also fglrxinfo says "Error: unable to open display (null)"
Next big mistake - I've used the standard Version of XBMC and not the xbmc-pvr...
Next time I post a log of every step 
Thx again for your great version.
- nemek - 2011-04-08 16:25
Quote:But they never running correctly... vainfo brought an error (-1) and also fglrxinfo says "Error: unable to open display (null)"
It wont work from "console".
1. Start xbmc in safe mode (or kill xbmc with xserver)
2. type: startx - enter
3. left mouse click -> applications -> shells -> bash
4. here u may check vainfo etc
- Limx - 2011-04-08 16:35
nemek Wrote:It wont work from "console".
1. Start xbmc in safe mode (or kill xbmc with xserver)
2. type: startx - enter
3. left mouse click -> applications -> shells -> bash
4. here u may check vainfo etc
Oh... THAT also sounds like a mistake I made... allways checked from console (with running xbmc...) thank you so much - I write down every of your lines and will use it for the next installation wisely
|