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) - sheepy - 2014-12-23

(2014-12-23, 15:57)fritsch Wrote: cat /etc/group |grep -i xbmc

Thanks for this information. But this is not the problem. I tested vdpauinfo with another user.

the kodi user has both: video and audio
Quote:audio:x:29:xbmc
video:x:44:xbmc
plugdev:x:46Confusedwi,xbmc
fuse:x:105:xbmc
xbmc:x:1001:
with xbmc vdpauinfo runs (see log)


//EDIT:
Now I had tested the driver with qvdpautest and it looks like mpeg-2 decoding is in shaders (see post 1 Mpeg-2 Crashes)
But If I disabled Mpeg-2 under Video Acceleratio it will crash, too. Only If i disable the whole vdpau it works. But than I have drop outs, if I play adiohd material (for example dts-hd streams)

the output is:
Quote:qvdpautest 0.5.2
AMD Athlon™ 5350 APU with Radeon™ R3
Unknown GPU

VDPAU API version : 1
VDPAU implementation : G3DVL VDPAU Driver Shared Library version 1.0

FATAL: get_bits failed : No backend implementation could be loaded.!!

MPEG DECODING (1920x1080): 124 frames/s
MPEG DECODING (1280x720): 279 frames/s
H264 DECODING (1920x1080): 64 frames/s
H264 DECODING (1280x720): 150 frames/s
Profile unsupported.
MPEG4 DECODING (1920x1080): 106 frames/s

MIXER WEAVE (1920x1080): 632 frames/s
MIXER BOB (1920x1080): 454 fields/s
MIXER TEMPORAL (1920x1080): 146 fields/s
MIXER TEMPORAL + IVTC (1920x1080): 182 fields/s
MIXER TEMPORAL + SKIP_CHROMA (1920x1080): 200 fields/s
MIXER TEMPORAL_SPATIAL (1920x1080): 186 fields/s
MIXER TEMPORAL_SPATIAL + IVTC (1920x1080): 182 fields/s
MIXER TEMPORAL_SPATIAL + SKIP_CHROMA (1920x1080): 207 fields/s
MIXER TEMPORAL_SPATIAL (720x576 video to 1920x1080 display): 347 fields/s

MULTITHREADED MPEG DECODING (1920x1080): 18 frames/s
MULTITHREADED MIXER TEMPORAL (1920x1080): 223 fields/s



RE: Radeon OSS with vdpau (howto) - fritsch - 2014-12-23

Your issue is 10.5 mesa version. It segfaults. Use what ubuntu provides 10.1.3 or 10.3.x.


RE: Radeon OSS with vdpau (howto) - sheepy - 2014-12-23

(2014-12-23, 16:48)fritsch Wrote: Your issue is 10.5 mesa version. It segfaults. Use what ubuntu provides 10.1.3 or 10.3.x.
I downgrade mesa to 10.3.1. Now VDPAU is working.

I followed this guide to get a working media center with audio hd (dts-hd) but there are some drops in the audio playback, too.


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-12-23

Yeah, use a 3.16.x kernel and make sure to use the settings provide in the howto.


RE: Radeon OSS with vdpau (howto) - sheepy - 2014-12-23

(2014-12-23, 17:41)fritsch Wrote: Yeah, use a 3.16.x kernel and make sure to use the settings provide in the howto.
Mhnm I have kernel 3.16.7
When I set up "Adjust Refreshrate to match video" the audio is lost. Audio-HD only works with 60HZ on my machine.


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-12-23

Yeah, then it's clear that you will get drops. The 60hz bug is filed, I just linked it half a day ago. Nothing we can do for you.

Disable passthrough, use Video Clock and Resample Audio.


RE: Radeon OSS with vdpau (howto) - sheepy - 2014-12-23

(2014-12-23, 19:15)fritsch Wrote: Yeah, then it's clear that you will get drops. The 60hz bug is filed, I just linked it half a day ago. Nothing we can do for you.

Disable passthrough, use Video Clock and Resample Audio.

Okay, thank you Smile


RE: Radeon OSS with vdpau (howto) - MXIIA - 2014-12-24

The way I'm understanding this post, this has been merged into Kodi mainline as of 14.0?

So I can install Kodi in the traditional sense for my distro, or is using this method still advised?


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-12-24

You can install it wherever you want.

This is a minimal howto here, for "kodi only" users.

Depending on your distribution, you will need new enough libs, those are:

Mesa >= 10.1.3 - but not 10.5-devel (that segfaults) including mesa-vdpau-drivers
Linux Kernel >= 3.16.x but < 3.17 (as this has new power states which _might_ not work for you). On Ubuntu I suggest the 3.16.x via ubuntu mainline.

That's it.

Unity, kde, both use compositing, make vertical sync worse.


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-12-24

https://bugs.freedesktop.org/show_bug.cgi?id=86837 <- Here is a bugreport for the Mesa 10.5 segfault. Nice, it's f**cked up in the linker.


RE: Radeon OSS with vdpau (howto) - locomot1f - 2014-12-24

(2014-12-24, 12:29)fritsch Wrote: https://bugs.freedesktop.org/show_bug.cgi?id=86837 <- Here is a bugreport for the Mesa 10.5 segfault. Nice, it's f**cked up in the linker.

nice! thanks, @fritsch, for the link to the bug report.
i'll be sure to add my 2 cents after the holidays.

'tis a shame. it was working well at one point.

enjoy the holy-days.

btw - kernel 3.18.1 working fine for me on my AMD A6-6400K APU with Radeon™ HD Graphics


RE: Radeon OSS with vdpau (howto) - philsu - 2014-12-28

Hi Fritsch,
I was wondering if the Kabini apu's were ok for temporal deinterlacing for 576i/1080i and lanczos upscaling for 576i?
I burn't my fingers earlier with a DN2820 nuc and don't want to make the same mistake againSmile


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-12-28

Kabini can do that, but it is limited to 2048x1152.

What about a chromebox? With Celeron 2955U?


RE: Radeon OSS with vdpau (howto) - philsu - 2014-12-28

Excellent, that's all I needed to know. Chromebox would be perfect, but for my needs the Kabini is cheaper.
Would the most basic Kabini do temporal and lanczos (2650) or would I need a 5150?


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-12-28

No idea - I only had a zotac version of an early kabini roughly a year ago. Perhaps someone else in here know.

How much does it cost?