Kodi Community Forum
Linux Radeon OSS with vdpau (howto) - 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: Linux Radeon OSS with vdpau (howto) (/showthread.php?tid=174854)



RE: Radeon OSS with vdpau (howto) - feersum - 2013-11-05

I have been using XBMC for 3 years or so to playback mythtv recordings from an HDPVR on an E350 - going from mythbox and mythtv 0.23 to PVR addon and 0.26 - previously using the fglrx driver

At the time the only recordings that played well were 720/60p (I remember interlaced didnt work at all) so I set the cable boxes to output 720/60p

These seemed to playback fine - and according the on-screen video diagnostics I seem to remember being close the 60 refresh rate

Ive just updated to the OSS driver as described here and noted comments about 36 fps limit - even though the qvdpautest indicates an H264 decoding rate above 60 - and the diagnostics show Im getting around 40-50 - but obviously many frames are being skipped which I think I can detect visually compared to fglrx (although less CPU is being used)

Just wondering what the issue is with the fps limit and what would be needed to up the speed to 60 or if its ever going to be at all possible to run at 60 with oss driver

Thanks for any information


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-11-05

Decoding 720p60 is near the limit of current E350 performance with oss vdpau drivers. Additionally you need to upscaled (bilinear or even lanczos) which costs some other cycles.

Tell your cabel box to put out 1080i50 and do the deinterlacing yourself with the new temporal algorithm and save yourself the upscaling.

The AMD devs are aware of this 33% performance miss - but all good ideas until now did not come to a solution sadly. Never the less - feature wise OSS vdpau can do far more than fglrx could ever do (Codec wise and concerning deinterlacing).


RE: Radeon OSS with vdpau (howto) - beschmid - 2013-11-06

@fritsch - the command #sudo do-release-upgrade is gives me the info below, any ideas?

An unresolvable problem occurred while calculating the upgrade.

This can be caused by:
* Upgrading to a pre-release version of Ubuntu
* Running the current pre-release version of Ubuntu
* Unofficial software packages not provided by Ubuntu

If none of this applies, then please report this bug using the
command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal.


Restoring original system state

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done


RE: Radeon OSS with vdpau (howto) - handleunknown - 2013-11-06

So for the kernel I see in the 'readme' that there was specific patches added, what are these patches and will they be necessary for the official release for 3.12? Also last question to confirm, stock XBMC will run fine? w/o SDL preferablly


RE: Radeon OSS with vdpau (howto) - feersum - 2013-11-06

(2013-11-05, 22:54)fritsch Wrote: Decoding 720p60 is near the limit of current E350 performance with oss vdpau drivers. Additionally you need to upscaled (bilinear or even lanczos) which costs some other cycles.

Tell your cabel box to put out 1080i50 and do the deinterlacing yourself with the new temporal algorithm and save yourself the upscaling.

The AMD devs are aware of this 33% performance miss - but all good ideas until now did not come to a solution sadly. Never the less - feature wise OSS vdpau can do far more than fglrx could ever do (Codec wise and concerning deinterlacing).

thanks very much for the quick update - should have said was previously using your great xvba updates (self compiling from github) prior to oss upgrade


RE: Radeon OSS with vdpau (howto) - gfisher - 2013-11-06

@fritsch i tried unstable nightly https://launchpad.net/~team-xbmc/+archive/unstable and it works!
no crazy menus like wsnipex/fernet menta.
to remove xbmc i only removed bin. not autoremove.
Code:
sudo apt-get remove xbmc xbmc-bin
deb http://ppa.launchpad.net/team-xbmc/unstable/ubuntu saucy main - via software manager
deb-src http://ppa.launchpad.net/team-xbmc/unstable/ubuntu saucy main - via software manager
sudo apt-get update
sudo apt-get install xbmc xbmc-bin
xbmc
it opens menus like normal. i also get temporal deinterlacing it is good. it is bugy and crashes some. but the menus work. hope this helps debug fernetmenta branch for my box.
thanks G


RE: Radeon OSS with vdpau (howto) - nitroboost - 2013-11-06

(2013-11-06, 01:07)beschmid Wrote: @fritsch - the command #sudo do-release-upgrade is gives me the info below, any ideas?

grep Broken /var/log/dist-upgrade/apt.log

This is likely because of the xorg video drivers. You should be fine removing the ones it's complaining about, running the upgrade, then running the post install commands fritsch has provided, but toss xserver-xorg-video-all onto the install list. Make sure to do this all before rebooting, and you should be in business.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-11-06

(2013-11-06, 05:04)gfisher Wrote: @fritsch i tried unstable nightly https://launchpad.net/~team-xbmc/+archive/unstable and it works!
no crazy menus like wsnipex/fernet menta.
to remove xbmc i only removed bin. not autoremove.
Code:
sudo apt-get remove xbmc xbmc-bin
deb http://ppa.launchpad.net/team-xbmc/unstable/ubuntu saucy main - via software manager
deb-src http://ppa.launchpad.net/team-xbmc/unstable/ubuntu saucy main - via software manager
sudo apt-get update
sudo apt-get install xbmc xbmc-bin
xbmc
it opens menus like normal. i also get temporal deinterlacing it is good. it is bugy and crashes some. but the menus work. hope this helps debug fernetmenta branch for my box.
thanks G

It is buggy and crashsome? I rather think something with your drivers is broken. Running it since more than three days with my primary usecase livetv (1080i50, 576i). And remember: Every crash has a crashlog.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-11-06

(2013-11-06, 02:13)handleunknown Wrote: So for the kernel I see in the 'readme' that there was specific patches added, what are these patches and will they be necessary for the official release for 3.12? Also last question to confirm, stock XBMC will run fine? w/o SDL preferablly

Read again I linked you to my kernel github (kernel patches). Mainline v13 since > Alpha 9 will work fine.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-11-06

(2013-11-06, 08:11)nitroboost Wrote:
(2013-11-06, 01:07)beschmid Wrote: @fritsch - the command #sudo do-release-upgrade is gives me the info below, any ideas?

grep Broken /var/log/dist-upgrade/apt.log

This is likely because of the xorg video drivers. You should be fine removing the ones it's complaining about, running the upgrade, then running the post install commands fritsch has provided, but toss xserver-xorg-video-all onto the install list. Make sure to do this all before rebooting, and you should be in business.

Use sudo apt-get install ppa-purge and ppa-purge the wsnipex mesa and the oibaf ppa that you have prior to doing release-upgrade. Afterwards do the release upgrade and add them again.


RE: Radeon OSS with vdpau (howto) - Iamroot - 2013-11-06

Thanks for all the great effort here and I was able to have the XBMC up and running.
The problem I have is I didn't get the audio working when playing an on line video

sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC662 rev3 Analog [ALC662 rev3 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

Card 0 is what I'm expecting to get the sound as I'm using DVI from the video card.
Another strange I can see is when I open the audio page during playing the online video, the audio source listed as "Undetermined-Stereo(1/1)" . I can't change it , so not sure if it is the root cause.
Any suggestion will be appreciated.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-11-06

Please post your xbmc.log, aplay -L and aplay -l and also cat /etc/group all into a pastebin


RE: Radeon OSS with vdpau (howto) - gfisher - 2013-11-06

(2013-11-06, 10:38)fritsch Wrote:
(2013-11-06, 05:04)gfisher Wrote: @fritsch i tried unstable nightly https://launchpad.net/~team-xbmc/+archive/unstable and it works!
no crazy menus like wsnipex/fernet menta.
to remove xbmc i only removed bin. not autoremove.
Code:
sudo apt-get remove xbmc xbmc-bin
deb http://ppa.launchpad.net/team-xbmc/unstable/ubuntu saucy main - via software manager
deb-src http://ppa.launchpad.net/team-xbmc/unstable/ubuntu saucy main - via software manager
sudo apt-get update
sudo apt-get install xbmc xbmc-bin
xbmc
it opens menus like normal. i also get temporal deinterlacing it is good. it is bugy and crashes some. but the menus work. hope this helps debug fernetmenta branch for my box.
thanks G

It is buggy and crashsome? I rather think something with your drivers is broken. Running it since more than three days with my primary usecase livetv (1080i50, 576i). And remember: Every crash has a crashlog.

Sorry. I should clarify. On the unstable ppa built 4 days ago. Opening movies in the beginning while it was getting fanart if i pressed play it crashed to desktop (never happened on this op build before). Also the screen saver kicks in saying it did not get that input from key or something while watching a show, moving mouse fixed that.. I assumed these bugs were from the merge you mentioned. :-) I watched a show last night and it looks good. Temporal deinterlacing is very high quality. Thank you so much. I am not sure why unstable worked but this fernetmenta ppa did not? Again this could be part of the merge and I appreciate that. I will switch ppa back to this one and if it does not work clean install. It is very possible drivers are messed up. Thanks


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-11-06

Now I understand you correctly. Drivers are fine. You said crashing directly after you mentioned the new "temporal" deinterlacing. Now it makes sense. Yes this merge window is an evil one :-)


RE: Radeon OSS with vdpau (howto) - Iamroot - 2013-11-06

(2013-11-06, 15:43)Iamroot Wrote: Thanks for all the great effort here and I was able to have the XBMC up and running.
The problem I have is I didn't get the audio working when playing an on line video

sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC662 rev3 Analog [ALC662 rev3 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

Card 0 is what I'm expecting to get the sound as I'm using DVI from the video card.
Another strange I can see is when I open the audio page during playing the online video, the audio source listed as "Undetermined-Stereo(1/1)" . I can't change it , so not sure if it is the root cause.
Any suggestion will be appreciated.

sudo aplay -L |pastebinit
http://paste.ubuntu.com/6370684/

sudo aplay -l |pastebinit
http://paste.ubuntu.com/6370690/

cat /etc/group |pastebinit
http://paste.ubuntu.com/6370701/

cat xbmc.log |pastebinit
http://paste.ubuntu.com/6370706/

BTW, "Undetermined-Stereo(1/1)" may not be the issue. I tried to play another Movie, which can show a DTS 5.1 as audio source. But still no sound.
Thanks for the help