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) - gradinaruvasile - 2013-11-28

(2013-11-28, 08:07)fritsch Wrote: @gradinaruvasile: Lol
vdpau supports BOB and Temporal deinterlacing. Retry. You have to enable it though by clicking on the movie role. Set Deinterlacing to Auto and Method also. If you have included the patch by zgreg you also have Temporal deinterlacing in high quality (we ship this in the wsnipex mesa ppa). You might have to manually apply this patch: https://github.com/grigorig/mesa/commit/08155442aba570a9d2d351795c86fdea466d806d
VDPAU Bob is working out of the box.
All my SD channels are 576i mpeg2. They work fine on my E350 setup.
Damn. Dont know how i missed that option. It works. I have bob and bob vdpau there. Whats the difference between them?
And this option if left to auto interferes with non-interlaced playback (cpu usage and such)?


RE: Radeon OSS with vdpau (howto) - Endeavour79 - 2013-11-28

HDMI Generic Audio lost

Not sure if this is a 3.12+ kernel issue or XBMC in general. My config is exactly as written in the howto..
Since an update about two weeks ago XBMC keeps "loosing" the HDMI Generic audio card if idle for a while.
When you come back to XBMC and switch menus you can hear a very long-distorted-scratching sound.
After reboot the HDMI generic device isn't showing up, only Analog and SPDIF. Only after another reboot the HDMI is back.

Logs: (let me know if you need debug version)
after restart - no HDMI Generic audio


after 2nd restart with the HDMI device found
dmesg - working


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

@Endeavour79: Logfiles please, thx.


RE: Radeon OSS with vdpau (howto) - Endeavour79 - 2013-11-28

(2013-11-28, 11:24)fritsch Wrote: @Endeavour79: Logfiles please, thx.

See above..thx


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

Don't forget dmesg. You start xbmc exactly as mentioned in the howto?


RE: Radeon OSS with vdpau (howto) - Endeavour79 - 2013-11-28

(2013-11-28, 14:07)fritsch Wrote: Don't forget dmesg. You start xbmc exactly as mentioned in the howto?

Yes, if you didn't change the start script in the last 2 week, then yes, doing exactly what's told in the howto..
I uploaded the working dmesg. Will let XBMC idle a bit and then create the one when it's not working too.


RE: Radeon OSS with vdpau (howto) - HUSKiiBOX - 2013-11-28

(2013-11-28, 11:17)Endeavour79 Wrote: HDMI Generic Audio lost

Not sure if this is a 3.12+ kernel issue or XBMC in general. My config is exactly as written in the howto..
Since an update about two weeks ago XBMC keeps "loosing" the HDMI Generic audio card if idle for a while.
When you come back to XBMC and switch menus you can hear a very long-distorted-scratching sound.
After reboot the HDMI generic device isn't showing up, only Analog and SPDIF. Only after another reboot the HDMI is back.

Logs: (let me know if you need debug version)
after restart - no HDMI Generic audio


after 2nd restart with the HDMI device found
dmesg - working

There is a option in audiosettings where you can enable "Steam silence when idle" or something like that. Could it have something to do with that?


RE: Radeon OSS with vdpau (howto) - Kokos - 2013-11-28

Hi guys,

Forgive me if this question was already asked, but it's really hard to get through the entire thread..

I use Ubuntu 12.04 because of long term support (I use it also for other server functionalities) -- do you plan to release guide/software for this system or I should rather wait for 14.04 LTS? I'd also be grateful for any guidelines how I could implement current guide steps in 12.04, if it's possible.

Thanks guys!
K


RE: Radeon OSS with vdpau (howto) - libgradev - 2013-11-28

(2013-11-28, 01:40)dubsides Wrote: So is mpeg-2 vdpau decoding working on any radeon versions? I know it's not on my 4550, and apparently it's not working on universam's 6450(which I was looking at getting before reading that).

I can't tell from this thread if it's working on most newer radeon versions and just not on the few who are talking, or if it's not working for anyone and just most people don't deal with mpeg-2(I only have to deal with it because that's what broadcast OTA TV is)?

If I can pickup a card that works for cheap on sale l would like to, appreciate any confirmations/responses

Nor is it working on mine - HD6950.

I've also experienced a worse UVD related crash since:
Code:
[20945.587790] radeon 0000:01:00.0: couldn't schedule ib
[20945.589076] [drm:radeon_uvd_free_handles] *ERROR* Error destroying UVD (-22)!
[21057.900222] [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (73728, 2, 4096, -12)
[21057.900356] [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (73728, 2, 4096, -12)
[21058.019883] [TTM] Out of kernel memory

After which I had to reboot just to get OpenGL acceleration back!

Shame. The image quality is really nice but it isn't anywhere near stable (at least with my card) yet... Sad


RE: Radeon OSS with vdpau (howto) - libgradev - 2013-11-28

(2013-11-28, 15:55)Kokos Wrote: Hi guys,

Forgive me if this question was already asked, but it's really hard to get through the entire thread..

I use Ubuntu 12.04 because of long term support (I use it also for other server functionalities) -- do you plan to release guide/software for this system or I should rather wait for 14.04 LTS? I'd also be grateful for any guidelines how I could implement current guide steps in 12.04, if it's possible.

Thanks guys!
K

I started out with a Mythbuntu 12.04 base and then upgraded to the Raring enablement stack: https://wiki.ubuntu.com/Kernel/LTSEnablementStack

From there I followed the steps on the first page.


RE: Radeon OSS with vdpau (howto) - libgradev - 2013-11-28

(2013-11-27, 21:18)deadite66 Wrote: wondering if the mpeg-2 hanging problem should be reposted in Drivers/Gallium/r600 rather than Drivers/DRI/R600, the latter seems to have few new bug posts and replies from AMD devs.

Having dug through and seen (in another bug report):
Quote:Note: classic r600 driver has been abandoned.
Please use r600g (gallium driver) instead.

I've moved it over, thanks Smile

No idea why they are accepting new bug posts to /DRI/R600...!?


RE: Radeon OSS with vdpau (howto) - laric - 2013-11-28

(2013-11-28, 17:10)libgradev Wrote: I started out with a Mythbuntu 12.04 base and then upgraded to the Raring enablement stack: https://wiki.ubuntu.com/Kernel/LTSEnablementStack

From there I followed the steps on the first page.

Wouldn't it be better to use the Saucy stack?

Code:
sudo apt-get install --install-recommends linux-generic-lts-saucy xserver-xorg-lts-saucy libgl1-mesa-glx-lts-saucy
But the problem will be when/if wsnipex doesn't build for Precise anymore then you won't get the packages as you will still be on a Precise distribution.


RE: Radeon OSS with vdpau (howto) - Endeavour79 - 2013-11-29

Fresh restart - Missing HDMI Generic again..

DMESG

Log file

Another minor bug.. Since the changed advancedsettings.xml, XBMC can't show the CPU temperature anymore.


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

You don't start xbmc as the howto suggests. You use lightdm, which needs special patching to "wait" for the hdmi audio device, which is not subject of this thread

See here: http://forum.xbmc.org/showthread.php?tid=145451&pid=1322619#pid1322619 (I use the same in my /etc/init/xbmc.conf in thread 1)


RE: Radeon OSS with vdpau (howto) - Endeavour79 - 2013-11-29

(2013-11-29, 00:09)fritsch Wrote: You don't start xbmc as the howto suggests. You use lightdm, which needs special patching to "wait" for the hdmi audio device, which is not subject of this thread

See here: http://forum.xbmc.org/showthread.php?tid=145451&pid=1322619#pid1322619 (I use the same in my /etc/init/xbmc.conf in thread 1)

Thanks fritsch, I will give it a try!
I actually followed the howto but just wasn't aware I am using lightdm instead of your script..

Update: The bug with the distorted sound and disappearing HDMI Generic audio device still exists. XBMC looses the device when running idle some time.