Kodi Community Forum

Full Version: Radeon OSS with vdpau (howto)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
No and the new drivers are not yet in the ppa.
New mesa packages with advanced temporal deinterlacing (for saucy) are now in the wsnipex mesa ppa. Big thanks to wsnipex.
Ok so for people like me who experience audio drops with 24p what can we test?
I upgrade to saucy or I try the kernel you've provided here http://forum.xbmc.org/showthread.php?tid...pid1540463 ?
And if I upgrade to saucy which kernl do I use?
I updated the kernel on the start page (see history in second post), use that one - no matter if raring or saucy, it will work.

The 24p issue is fixed with that one: https://github.com/fritsch/linux/commit/...222bbd4be3 which I have included.
Upgrade to saucy done but when xbmc start it use the entire cpu
It looks like I have a problem with vdpau:

biau@htpc:~$ DISPLAY=:0 vdpauinfo
display: :0 screen: 0
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Error creating VDPAU device: 1

logs:
http://paste.ubuntu.com/6363915/ dmesg
http://paste.ubuntu.com/6363918/ xbmc
http://paste.ubuntu.com/6363921/ xorg
(2013-11-05, 12:20)biau Wrote: [ -> ]Upgrade to saucy done but when xbmc start it use the entire cpu
It looks like I have a problem with vdpau:

biau@htpc:~$ DISPLAY=:0 vdpauinfo
display: :0 screen: 0
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Error creating VDPAU device: 1

logs:
http://paste.ubuntu.com/6363915/ dmesg
http://paste.ubuntu.com/6363918/ xbmc
http://paste.ubuntu.com/6363921/ xorg

If this works:
Code:
DISPLAY=:0 VDPAU_DRIVER=r600 vdpauinfo

Put this in the /etc/environment file:

Code:
VDPAU_DRIVER=r600
And restart to make it permanent.
Add the ppas again (both wsnipex mesa and wsnipex fernetmenta)
do: sudo apt-get update && sudo apt-get dist-upgrade

After raring to Saucy update
Code:
sudo apt-add-repository ppa:wsnipex/mesa
sudo apt-add-repository ppa:wsnipex/xbmc-fernetmenta-master
sudo apt-get update
sudo apt-get install libg3dvl-mesa vdpauinfo linux-firmware xbmc xbmc-bin xorg --reinstall
sudo apt-get dist-upgrade
(2013-11-05, 12:30)gradinaruvasile Wrote: [ -> ]
(2013-11-05, 12:20)biau Wrote: [ -> ]Upgrade to saucy done but when xbmc start it use the entire cpu
It looks like I have a problem with vdpau:

biau@htpc:~$ DISPLAY=:0 vdpauinfo
display: :0 screen: 0
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Error creating VDPAU device: 1

logs:
http://paste.ubuntu.com/6363915/ dmesg
http://paste.ubuntu.com/6363918/ xbmc
http://paste.ubuntu.com/6363921/ xorg

If this works:
Code:
DISPLAY=:0 VDPAU_DRIVER=r600 vdpauinfo

Put this in the /etc/environment file:

Code:
VDPAU_DRIVER=r600
And restart to make it permanent.
no more success with this command:
biau@htpc:~$ DISPLAY=:0 VDPAU_DRIVER=r600 vdpauinfo
display: :0 screen: 0
Error creating VDPAU device: 23

(2013-11-05, 12:31)fritsch Wrote: [ -> ]Add the ppas again (both wsnipex mesa and wsnipex fernetmenta)
do: sudo apt-get update && sudo apt-get dist-upgrade

In short:
Code:
sudo apt-add-repository ppa:wsnipex/mesa
sudo apt-add-repository ppa:wsnipex/xbmc-fernetmenta-master
sudo apt-get update
sudo apt-get install libg3dvl-mesa vdpauinfo linux-firmware xbmc xbmc-bin
sudo apt-get dist-upgrade
Already done, same problem after
(but I had to do that because apt-get dist-upgrade did not get the new version of the packages before I remove and re-add the ppa)
You are missing something:
sudo apt-get install xserver-xorg-video-radeon xserver-xorg-video-ati

currently only vesa seems to be loaded
(2013-11-05, 12:44)fritsch Wrote: [ -> ]You are missing something:
sudo apt-get install xserver-xorg-video-radeon xserver-xorg-video-ati

currently only vesa seems to be loaded

Thanks, that was the problem, these two packages were no more installed after the dist-upgrade...

I've found this in the log:
Remove: xserver-xorg-video-all:amd64 (7.7+1ubuntu4), xserver-xorg-video-ati:amd64 (7.2.0+git1310021050.f1dc67~gd~r), xserver-xorg-video-intel:amd64 (2.99.904+git1310111708.e914da~gd~r), xserver-xorg-video-nouveau:amd64 (1.0.9+git1307310858.036423~gd~r), xserver-xorg-video-radeon:amd64 (7.2.0+git1310021050.f1dc67~gd~r)
End-Date: 2013-11-05 10:43:43
Hi fritsch - one quick question:

Is it safe already to use another sound sink than HDMI? I am using an USB DAC for audio output.

If it might cause some issues, I would stay on the XVBA release a little longer.
Nope - should work fine. Whipe pulseaudio if you have it.
Ok, thanks a lot for your work!
Btw. perhaps to underline this:

The xbmc builds are not in any way special. We have some patches more concerning the SDL drop, that is already done here, but still WIP on mainline. Audio / vdpau (despite some deinterlacing dropping logic) is exactly as is in mainline.

The basic things of this howto are
a) Get vdpau with mesa going (wsnipex mesa ppa)
b) Upgrade kernel to get bitstream / audio and 24p playback

That's it :-)
After 40 minutes playback in 24p, no sound drop, everything run perfectly.
Thanks fritsch and wsnipex!