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) - deivid - 2014-02-02

I have a 6400k APU, governor is ondemand, so current frequency is 1.8ghz.

My cpu is at 10-12% with xbmc idle. Why is this? With the default xbmc (on debian) cpu was at 1% with algorithmdirtyregions=3 and nofliptimeout=0.

Also, my cpu usage is high when playing movies. (40-60%), did I do something wrong? I'm running XBMC 12.3 with the PPAs listed here and 3.13.0 kernel

Thanks


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

might help to post some logs...

also, you should be running Gotham = XBMC 13.xxx -- also on the first post.

1% -- wow!!! is that even possible?


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

@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.


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

(2014-02-02, 05:50)deivid Wrote: I have a 6400k APU, governor is ondemand, so current frequency is 1.8ghz.

My cpu is at 10-12% with xbmc idle. Why is this? With the default xbmc (on debian) cpu was at 1% with algorithmdirtyregions=3 and nofliptimeout=0.

Also, my cpu usage is high when playing movies. (40-60%), did I do something wrong? I'm running XBMC 12.3 with the PPAs listed here and 3.13.0 kernel

Thanks

Check the "Keep Audio alive" and your Vsync settings. Ah and 12.3 is totally wrong.


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

(2014-02-01, 18:28)locomot1f Wrote: @schnappi -- question, are you using passthrough?


i believe this is a known issue with linux + passthrough
i too am having the same issues.

after fiddeling around with mplayer and alsa I hope to be on the right path.
please try the following. maybe it is a problem according power management found on http://wiki.ubuntuusers.de/Soundkarten_konfigurieren/HDA?redirect=no
Code:
sudo echo 0 | sudo tee /sys/module/snd_hda_intel/parameters/power_save
sudo echo N | sudo tee /sys/module/snd_hda_intel/parameters/power_save_controller



RE: Radeon OSS with vdpau (howto) - deivid - 2014-02-03

(2014-02-02, 09:30)fritsch Wrote:
(2014-02-02, 05:50)deivid Wrote: I have a 6400k APU, governor is ondemand, so current frequency is 1.8ghz.

My cpu is at 10-12% with xbmc idle. Why is this? With the default xbmc (on debian) cpu was at 1% with algorithmdirtyregions=3 and nofliptimeout=0.

Also, my cpu usage is high when playing movies. (40-60%), did I do something wrong? I'm running XBMC 12.3 with the PPAs listed here and 3.13.0 kernel

Thanks

Check the "Keep Audio alive" and your Vsync settings. Ah and 12.3 is totally wrong.

You are right. It was Gothal alpha 11 or 12 I can't remember. Gonna check that, thanks.


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

@wsnipex. Bravo. The update today with mesa 10.02 (from 10.1) and driver and xbmc, so far, seems to have really improved PQ and occasional microjudders on 1080i 29.97 h.264 happague-hdpvr playback. Playback looks VERY good now. Thank you.


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

@wsnipex: will the test branch be reverted back to 10.1 devel when they get the looping issue fixed?


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

(2014-02-03, 16:33)libgradev Wrote: @wsnipex: will the test branch be reverted back to 10.1 devel when they get the looping issue fixed?

if needed


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

(2014-02-03, 17:08)wsnipex Wrote:
(2014-02-03, 16:33)libgradev Wrote: @wsnipex: will the test branch be reverted back to 10.1 devel when they get the looping issue fixed?

if needed

what is the status of that issue?
do you need more logs?
is there anything i (we) can do to help?


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

(2014-02-03, 17:08)wsnipex Wrote:
(2014-02-03, 16:33)libgradev Wrote: @wsnipex: will the test branch be reverted back to 10.1 devel when they get the looping issue fixed?

if needed

It's just for the MPEG-2 issues with my card (which were improving, if not yet fixed, under 10.1 dev) Smile


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

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


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

For SI Users, that one also can be interesting: https://github.com/OpenELEC/OpenELEC.tv/commit/3db2b507ed9c9fef4710ac63c5942be77b862613


RE: Radeon OSS with vdpau (howto) - towlie - 2014-02-03

(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


@Fritch: Firstly thank you for the excellent howto. How would I go about applying this patch?


RE: Radeon OSS with vdpau (howto) - libgradev - 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

WOW - blooming impressive bit of work Cool