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) - Jarlakxen - 2014-02-04

(2014-02-02, 09:28)fritsch Wrote: @Jarlakxen: You did at least not follow the howto concerning your username. Did you set all permissions correctly?

I see lots of unplayable items in your home directory. Even the mp4 file that gets "half" opened, does not want to open vdpau at all.

Yes, i have another user but i executed the command "sudo usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip mcenter". I saw the messages of the unplayable items in the logs but the videos are fine, i can play it with VLC. Is there any way to know of why XBMC tells that the videos are unplayable?


RE: Radeon OSS with vdpau (howto) - locomot1f - 2014-02-04

(2014-02-03, 23:42)towlie Wrote: @Fritch: Firstly thank you for the excellent howto. How would I go about applying this patch?


here's where this gets answered in this post -- http://forum.xbmc.org/showthread.php?tid=174854&pid=1565732#pid1565732


RE: Radeon OSS with vdpau (howto) - gfisher - 2014-02-04

@fritsch "Pssst, don't tell anyone: http://sprunge.us/geNf"
Is that why my a4 3400 plays h.264 29.97i (59.94) much better on 10.02? Or can just expect even better performance soon?
Edit: Never mind looks too new...


RE: Radeon OSS with vdpau (howto) - gradinaruvasile - 2014-02-04

Patch applied, A8-6500 (Radeon HD 8570D IGP):
First column-before, second-after:
Code:
MPEG DECODING (1920x1080)                     83 frames/s     136 frames/s
MPEG DECODING (1280x720)                     126 frames/s     297 frames/s
H264 DECODING (1920x1080)                     54 frames/s     73 frames/s
H264 DECODING (1280x720)                     96 frames/s     172 frames/s
Profile unsupported.        
MPEG4 DECODING (1920x1080)                     78 frames/s     122 frames/s
        
MIXER WEAVE (1920x1080)                         1161 frames/s     1167 frames/s
MIXER BOB (1920x1080)                         1623 fields/s     1653 fields/s
MIXER TEMPORAL (1920x1080)                     1764 fields/s     1768 fields/s
MIXER TEMPORAL + IVTC (1920x1080)                 1757 fields/s     1765 fields/s
MIXER TEMPORAL + SKIP_CHROMA (1920x1080)             1756 fields/s     1767 fields/s
MIXER TEMPORAL_SPATIAL (1920x1080)                 1748 fields/s     1784 fields/s
MIXER TEMPORAL_SPATIAL + IVTC (1920x1080)             1759 fields/s     1732 fields/s
MIXER TEMPORAL_SPATIAL + SKIP_CHROMA (1920x1080)         1748 fields/s     1788 fields/s
MIXER TEMPORAL_SPATIAL (720x576 video to 1920x1080 display)    2134 fields/s     2140 fields/s
        
MULTITHREADED MPEG DECODING (1920x1080)                 34 frames/s     35 frames/s
MULTITHREADED MIXER TEMPORAL (1920x1080)             1908 fields/s     1925 fields/s



RE: Radeon OSS with vdpau (howto) - jovis - 2014-02-04

After reading about these promissing results I decided to wipe my old installation and follow the howto.
I came across the issue that xbcm does not get started automatically. Starting it manually gives;
---
Error: unable to open display
XBMC needs hardware accelerated OpenGL rendering.
Install an appropriate graphics driver
---

When I try the command startx, Xorg does not start with the MESA drivers but is crashed (photo: http://i.stack.imgur.com/xIG9s.jpg). Anyone a clue where it goes wrong?

dmesg: http://paste.ubuntu.com/6872453/
Xorg.log: http://paste.ubuntu.com/6872454/
Mesa: http://paste.ubuntu.com/6872546/
xbmc: log not present.

Thanks in advance!


RE: Radeon OSS with vdpau (howto) - schnappi - 2014-02-04

did you delete your old installation? in my case I had to format the drive completely otherwise residual files interefered...


RE: Radeon OSS with vdpau (howto) - wsnipex - 2014-02-04

(2014-02-03, 21:49)fritsch Wrote: Pssst, don't tell anyone: http://sprunge.us/geNf

Before:
Quote:VDPAU implementation : G3DVL VDPAU Driver Shared Library version 1.0

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

MPEG DECODING (1920x1080): 60 frames/s
MPEG DECODING (1280x720): 85 frames/s
H264 DECODING (1920x1080): 33 frames/s
H264 DECODING (1280x720): 61 frames/s
Profile unsupported.
MPEG4 DECODING (1920x1080): 45 frames/s

MIXER WEAVE (1920x1080): 301 frames/s
MIXER BOB (1920x1080): 511 fields/s
MIXER TEMPORAL (1920x1080): 144 fields/s
MIXER TEMPORAL + IVTC (1920x1080): 139 fields/s
MIXER TEMPORAL + SKIP_CHROMA (1920x1080): 153 fields/s
MIXER TEMPORAL_SPATIAL (1920x1080): 147 fields/s
MIXER TEMPORAL_SPATIAL + IVTC (1920x1080): 140 fields/s
MIXER TEMPORAL_SPATIAL + SKIP_CHROMA (1920x1080): 155 fields/s
MIXER TEMPORAL_SPATIAL (720x576 video to 1920x1080 display): 252 fields/s

MULTITHREADED MPEG DECODING (1920x1080): 20 frames/s
MULTITHREADED MIXER TEMPORAL (1920x1080): 138 fields/s

After:
Quote:AMD A4-5000 APU with Radeon™ HD Graphics
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): 110 frames/s
MPEG DECODING (1280x720): 244 frames/s
H264 DECODING (1920x1080): 44 frames/s
H264 DECODING (1280x720): 115 frames/s
Profile unsupported.
MPEG4 DECODING (1920x1080): 69 frames/s

MIXER WEAVE (1920x1080): 301 frames/s
MIXER BOB (1920x1080): 509 fields/s
MIXER TEMPORAL (1920x1080): 142 fields/s
MIXER TEMPORAL + IVTC (1920x1080): 142 fields/s
MIXER TEMPORAL + SKIP_CHROMA (1920x1080): 155 fields/s
MIXER TEMPORAL_SPATIAL (1920x1080): 141 fields/s
MIXER TEMPORAL_SPATIAL + IVTC (1920x1080): 138 fields/s
MIXER TEMPORAL_SPATIAL + SKIP_CHROMA (1920x1080): 158 fields/s
MIXER TEMPORAL_SPATIAL (720x576 video to 1920x1080 display): 252 fields/s

MULTITHREADED MPEG DECODING (1920x1080): 24 frames/s
MULTITHREADED MIXER TEMPORAL (1920x1080): 137 fields/s

1080p60 works now!!!
1080p50 also

That's brilliant - I tested on my Kabini.

Samples:
https://dl.dropboxusercontent.com/u/55728161/10mbps-1080p-60fps-L5.1-8ref-HDTV.mkv
https://dl.dropboxusercontent.com/u/55728161/1080p50-recode.mkv

mesa upgraded to 10.0.3 + this patch in the test PPA. Feedback welcome


RE: Radeon OSS with vdpau (howto) - locomot1f - 2014-02-04

thanks wsnipex!
i was about to really mess up and try to apply this patch to the kernel.


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-02-04

lol :-)

Edit: @locomot1f: Does it work? If yes, the packages can be copied over. What's your speed improvement?


RE: Radeon OSS with vdpau (howto) - locomot1f - 2014-02-04

it does work... no flickering. videos play smoothly.

i don't have qvdpautest installed, so I can't give you any real numbers -- sorry :/


RE: Radeon OSS with vdpau (howto) - libgradev - 2014-02-04

Hmmm I'd give it a test but I'm not sure if it will break my 'kinda working' MPEG-2 ;D


RE: Radeon OSS with vdpau (howto) - jovis - 2014-02-04

(2014-02-04, 15:43)schnappi Wrote: did you delete your old installation? in my case I had to format the drive completely otherwise residual files interefered...

Yes, I did format the partition .... It is a clean saucy-mini installation as the tutorial tells to do.


RE: Radeon OSS with vdpau (howto) - fritsch - 2014-02-04

Quote:(EE) [mi] EQ overflow continuing. 500 events have been dropped.
(EE)
(EE) Backtrace:
(EE) 0: /usr/bin/X (xorg_backtrace+0x3d) [0x7f4719af9fdd]
(EE) 1: /usr/bin/X (QueuePointerEvents+0x52) [0x7f47199c2a92]
(EE) 2: /usr/lib/xorg/modules/input/evdev_drv.so (0x7f470f5b4000+0x566f) [0x7f470f5b966f]
(EE) 3: /usr/bin/X (0x7f4719957000+0x91ee8) [0x7f47199e8ee8]
(EE) 4: /usr/bin/X (0x7f4719957000+0xba930) [0x7f4719a11930]
(EE) 5: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f4718a57000+0xfbb0) [0x7f4718a66bb0]
(EE) 6: /lib/x86_64-linux-gnu/libc.so.6 (ioctl+0x7) [0x7f47177632f7]
(EE) 7: /usr/lib/x86_64-linux-gnu/libdrm.so.2 (drmIoctl+0x34) [0x7f471884e3a4]
(EE) 8: /usr/lib/x86_64-linux-gnu/libdrm.so.2 (drmCommandWrite+0x1e) [0x7f47188506be]
(EE) 9: /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1 (0x7f47133a4000+0x1f39) [0x7f47133a5f39]
(EE) 10: /usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1 (0x7f47133a4000+0x213c) [0x7f47133a613c]
(EE) 11: /usr/lib/xorg/modules/drivers/radeon_drv.so (0x7f47135b1000+0x334b1) [0x7f47135e44b1]
(EE) 12: /usr/lib/xorg/modules/libexa.so (0x7f4712970000+0x5787) [0x7f4712975787]
(EE) 13: /usr/lib/xorg/modules/libexa.so (0x7f4712970000+0x7f12) [0x7f4712977f12]
(EE) 14: /usr/lib/xorg/modules/libexa.so (0x7f4712970000+0x10f08) [0x7f4712980f08]
(EE) 15: /usr/bin/X (miImageText16+0x6f) [0x7f4719ae7cdf]
(EE) 16: /usr/bin/X (0x7f4719957000+0x12fac9) [0x7f4719a86ac9]
(EE) 17: /usr/bin/X (doImageText+0x213) [0x7f47199aeef3]
(EE) 18: /usr/bin/X (ImageText+0x40) [0x7f47199af5c0]
(EE) 19: /usr/bin/X (0x7f4719957000+0x52b07) [0x7f47199a9b07]
(EE) 20: /usr/bin/X (0x7f4719957000+0x5525e) [0x7f47199ac25e]
(EE) 21: /usr/bin/X (0x7f4719957000+0x447ba) [0x7f471999b7ba]
(EE) 22: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf5) [0x7f4717692de5]
(EE) 23: /usr/bin/X (0x7f4719957000+0x44aff) [0x7f471999baff]
(EE)
(EE) [mi] EQ overflow continuing. 600 events have been dropped.



RE: Radeon OSS with vdpau (howto) - deadite66 - 2014-02-04

installed the test ppa
EDIT: so far no playback problems.


previous
Code:
lee@Fusion:~$ cat qvdpautest.txt
qvdpautest 0.5.2
AMD E-350 Processor
Unknown GPU

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


MPEG DECODING (1920x1080): 58 frames/s
MPEG DECODING (1280x720): 90 frames/s
H264 DECODING (1920x1080): 36 frames/s
H264 DECODING (1280x720): 68 frames/s
VC1 DECODING (1440x1080): 83 frames/s
MPEG4 DECODING (1920x1080): 50 frames/s

MIXER WEAVE (1920x1080): 274 frames/s
MIXER BOB (1920x1080): 370 fields/s
MIXER TEMPORAL (1920x1080): 454 fields/s
MIXER TEMPORAL + IVTC (1920x1080): 452 fields/s
MIXER TEMPORAL + SKIP_CHROMA (1920x1080): 456 fields/s
MIXER TEMPORAL_SPATIAL (1920x1080): 452 fields/s
MIXER TEMPORAL_SPATIAL + IVTC (1920x1080): 455 fields/s
MIXER TEMPORAL_SPATIAL + SKIP_CHROMA (1920x1080): 452 fields/s
MIXER TEMPORAL_SPATIAL (720x576 video to 1920x1080 display): 566 fields/s

MULTITHREADED MPEG DECODING (1920x1080): 54 frames/s
MULTITHREADED MIXER TEMPORAL (1920x1080): 466 fields/s


now
Code:
lee@Fusion:~/qvdpautest$ ./qvdpautest
qvdpautest 0.5.2
AMD E-350 Processor
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): 91 frames/s
MPEG DECODING (1280x720): 203 frames/s
H264 DECODING (1920x1080): 48 frames/s
H264 DECODING (1280x720): 119 frames/s
Profile unsupported.
MPEG4 DECODING (1920x1080): 74 frames/s

MIXER WEAVE (1920x1080): 275 frames/s
MIXER BOB (1920x1080): 385 fields/s
MIXER TEMPORAL (1920x1080): 135 fields/s
MIXER TEMPORAL + IVTC (1920x1080): 120 fields/s
MIXER TEMPORAL + SKIP_CHROMA (1920x1080): 128 fields/s
MIXER TEMPORAL_SPATIAL (1920x1080): 123 fields/s
MIXER TEMPORAL_SPATIAL + IVTC (1920x1080): 120 fields/s
MIXER TEMPORAL_SPATIAL + SKIP_CHROMA (1920x1080): 128 fields/s
MIXER TEMPORAL_SPATIAL (720x576 video to 1920x1080 display): 210 fields/s

MULTITHREADED MPEG DECODING (1920x1080): 91 frames/s
MULTITHREADED MIXER TEMPORAL (1920x1080): 147 fields/s



RE: Radeon OSS with vdpau (howto) - ddtpv - 2014-02-04

Hi all!
Help me please with high CPU load on AMD E350 Radeon HD6310. Regardless of whether you watch h264 or MPEG, i get 24 FPS&60-80% CPU load.
Linux 13.10, Foxconn nt3500.
3.13.0-031300-generic #201401192235 SMP Mon Jan 20 03:36:48 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

http://paste.ubuntu.com/6874549/
http://paste.ubuntu.com/6874553/
http://paste.ubuntu.com/6874554/
http://paste.ubuntu.com/6874555/
http://paste.ubuntu.com/6874557/