Kodi Community Forum
How to Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - 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: How to Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs (/showthread.php?tid=116996)



- wsnipex - 2012-01-20

Important Note for ATI HD 5xxx series users: Stick to fglrx 11.11, as 11.12 is reported to not work on this series


- abudabi - 2012-01-20

wsnipex Wrote:Important Note for ATI HD 5xxx series users: Stick to fglrx 11.11, as 11.12 is reported to not work on this series

Ah.. So there my issue then..i am using a 5450

Thanks gents!


- wsnipex - 2012-01-20

abudabi Wrote:Ah.. So there my issue then..i am using a 5450

Thanks gents!

well not sure about this. The issues we know of have been verified on hd 5500 and 5670 and are much worse then an occasional hickup/crash. With those cards video doesn't seem to play correctly at all.

It might be possible that 5450 is another gpu architecture(older) and is therefore not affected by this.

You could nonetheless try fglrx 11.11 and see if it solves the problem.


- abudabi - 2012-01-21

Thanks wsnipex

Just to let you know I've not experienced the same stutter issue tonight. Nothing has changed on my system so maybe it was just a once-off.


- wenter - 2012-01-22

fritsch Wrote:please tell us which output you want to connect (analog, hdmi, e.g.) and pastebin the output of aplay -L. If you do it from a ssh session: sudo aplay -L

I am trying to use the analog connection (not-HDMI). Here is an output from aplay -L

xbmc@xbmc:~$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=Generic,DEV=0
HD-Audio Generic, HDMI 0
HDMI Audio Output
dmix:CARD=Generic,DEV=3
HD-Audio Generic, HDMI 0
Direct sample mixing device
dsnoop:CARD=Generic,DEV=3
HD-Audio Generic, HDMI 0
Direct sample snooping device
hw:CARD=Generic,DEV=3
HD-Audio Generic, HDMI 0
Direct hardware device without any conversions
plughw:CARD=Generic,DEV=3
HD-Audio Generic, HDMI 0
Hardware device with all software conversions
default:CARD=SB
HDA ATI SB, ALC662 rev1 Analog
Default Audio Device
front:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
Front speakers
surround40:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Digital
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
Direct sample mixing device
dmix:CARD=SB,DEV=1
HDA ATI SB, ALC662 rev1 Digital
Direct sample mixing device
dsnoop:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
Direct sample snooping device
dsnoop:CARD=SB,DEV=1
HDA ATI SB, ALC662 rev1 Digital
Direct sample snooping device
hw:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
Direct hardware device without any conversions
hw:CARD=SB,DEV=1
HDA ATI SB, ALC662 rev1 Digital
Direct hardware device without any conversions
plughw:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
Hardware device with all software conversions
plughw:CARD=SB,DEV=1
HDA ATI SB, ALC662 rev1 Digital
Hardware device with all software conversions
xbmc@xbmc:~$

What should I check next? Thanks


- fritsch - 2012-01-22

Try a custom device with:
plughw:1,0

Yesterday i was told to overwrite the .asoundrc to map this device as default - I am still thinking about how to do it - in order to change anything within xbmc.

Never the less you should get sound with plughw:1,0 which is your analog output.

Quote:plughw:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
Hardware device with all software conversions

Also check with alsamixer that this device is not muted or on a very low level.


New observations - flitter2009 - 2012-01-23

Hi,

Have spent the weekend doing some testing with the latest build and the new build seems to run really well! I've noticed that I get pixelation/weird fragments and lines whe I run 24p VC1 content on a 60Hz screen and on that screen with H264 or VC1 I get the huge CPU values that I've seen regularly.

Switching to a native 24p monitor for that content appears to let the CPU drop down after about 15minutes of playback, I can also run VC1 and H264 content with no issues. I also have no pause/resume issues which others are seeing.

Oh ... Using a 64bit build of Ubuntu instead of 32 seems to have a calming affect on the CPU too as I get lower values generally.

OS mounted NFS vs local file give the same results on my setup.

Hope this is useful ... Thanks again! This is certainly a huge step forward from VAAPI!


- EmuMannen - 2012-01-23

wenter Wrote:I am trying to use the analog connection (not-HDMI).
I use the analog output and got the following in: /home/xbmc/.asoundrc
Code:
pcm.!default {
type hw
card 1
}

ctl.!default {
type hw
card 1
}



- djselbeck - 2012-01-23

@fritsch and Fernetmenta:

I just want to thank you for your work on the xvba and ati sync implementation. With todays atifix I can watch 50hz dvds again with spline36 scaling. Before it has stuttered.

You really made my xbmc htpc system much better than before.


- flitter2009 - 2012-01-23

I should probably mention that the first file I played didn't play the sound. I had to go into the audio settings for the file and re-select the main audio stream (it's m2ts) ... Once I'd done that (and saved as default) I could hear sound okay.


- frawau - 2012-01-23

First thank you for this build... Great work, I finally got HW acceleration on my rig.

Here is my setup
MB: A75M-UD2H
CPU: A6
Display: HP 2509p (1920x1080) HDMI
OS: Ubuntu Oneiric (amd64)
Boot straight into XBMC (no display manage, no login)
Collection on NFS volume

I have been evaluating this platform to build a HTPC. I have used other XBMC builds, and I got sound working (analog, S/PDIF, HDMI), but had crashes when trying to play videos with graphic acceleration.

With this build, I finally can get video playing at decent speed. I have sound (only tried S/PDIF). Unfortunately, I find the image quality poor, on both SD and HD material. There is a lot of tearing.

For HD I used:
Big Buck Bunny (http://www.bigbuckbunny.org/index.php/download/) at 1080p
Babel (mkv rip 1080P)
The American (1080p)

All exhibited tearing (In Big Bucks Bunny, there is quite a bit of tearing in the opening images)

I also used some Music video (480/ mkv) and here too a lot of tearing

I tried 60 and 50 fps with no difference.

Any suggestion anyone? It looks to me as if AMD/ATI still has some work to do

Thanks again for your work.

Cheers,
François


- fritsch - 2012-01-23

Thx for your report.

Please enable "vsync always on" within xbmc. This should fix your tearting issues. Also the command from the firstpage: aticonfig --vs=on should help.


- carlsberg - 2012-01-23

hello , a noob question , what audio output device , and audio passthrough must i select .
It goes from ati hd6450 hdmi to onkyo 7.1 amp , i just want the hd audio .


- frawau - 2012-01-25

fritsch Wrote:Thx for your report.

Please enable "vsync always on" within xbmc. This should fix your tearting issues. Also the command from the firstpage: aticonfig --vs=on should help.

Thanks... much better indeed.


- frawau - 2012-01-25

carlsberg Wrote:hello , a noob question , what audio output device , and audio passthrough must i select .
It goes from ati hd6450 hdmi to onkyo 7.1 amp , i just want the hd audio .

Get into a shell and do
aplay -l

It should give you something similar to this


=======%<============%<=============
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 1: ALC889 Digital [ALC889 Digital]
Subdevices: 0/1
Subdevice #0: subdevice #0
=======%<============%<=============

Take note of the card number and device number for the device you want (here 0 and 3 for the hdmi device)

Go into Setting/System/Audio Output

Select The audio (HDMI or Optical.. Not sure if it makes any difference)

Set the number of channels (7.1) and set the audio and passthrough devices to "Custom" with value plughw:<card nb>,<device nb>. In the example above that would be:
plughw:0,3

Reboot and check the settings... You should now have sound... just don't forget to tune your receiver to the proper channel

Cheers,
François