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) - fritsch - 2014-11-17

Most likely this one: https://github.com/xbmc/xbmc/commit/c70fa349c0a5c2392045dd00751f64391fbef2e2

Try to get logind working.


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

Here is a sample polkit file, thx to wsnipex fixing it: https://github.com/xbmc/xbmc/commit/c70fa349c0a5c2392045dd00751f64391fbef2e2#commitcomment-8605195


RE: Radeon OSS with vdpau (howto) - User 102910 - 2014-11-18

Hello,

you suggest to turn VAAPI acceleration completely off, so I did this.

I enabled VPDAU as you suggest and the default values are VPDAU acceleration for VC-1 and MPEG2. This works fine.

But when I enable VPDAU acceleration for x264, sometimes I get a black screen when starting a video, I hear the sound but no picture and I can't go back to Kodi (I have to switch to a free console and pkill kodi to restart it. Then the screen re-appeares.) I have the feeling that this mostly happens when I start movies/tvshows via the "Recently added" widget in Aeon.

Is this a Bug with VPDAU and x264/radeon?

I have to say that I use the xbmc-unstable ppa.

btw, maybe this is what I mean:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742896


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

Provide the logfiles from the first page.


RE: Radeon OSS with vdpau (howto) - pyrodex - 2014-11-18

(2014-11-17, 23:40)fritsch Wrote: Here is a sample polkit file, thx to wsnipex fixing it: https://github.com/xbmc/xbmc/commit/c70fa349c0a5c2392045dd00751f64391fbef2e2#commitcomment-8605195
Yup the following worked:

Code:
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.;org.freedesktop.consolekit.system.;org.freedesktop.udisks.;org.freedesktop.login1.*
ResultActive=yes
ResultInactive=yes
ResultAny=yes

Can we update the front guide for new users using kodi?


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

Will do when RC hits. It's quite easy, just a matter of changing the ppa. But I don't want people to sit on unstable, cause that will get rough _after_ helix release.


RE: Radeon OSS with vdpau (howto) - kbaggen - 2014-11-19

Hi there,
got Kodi beta 3 running on Mythbuntu 14.04 and have an AMD 5450 GPU/GFX, and hence woundring if I will have any benefit by going down this road?

I can see this gfx supports UVD 2.2! And I use Trusty.

But I am unclear if I have to do all Fritsch writes in #1, or just partly ?

Anyone guide me a bit, eg. what is the benefits!

And how to start now I already go Kodi installed?

KBN


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

sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install vdpauinfo mesa-vdpau-drivers

add an xbmc ppa near you (at least 13.2, better helix beta3).

Provide:
vdpauinfo | pastebinit

You need to disable Mpeg-2 acceleration under Video -> Acceleration (Expert Settings hierarchy).


RE: Radeon OSS with vdpau (howto) - kbaggen - 2014-11-19

Ok, thanks Fritsch!

I guess the benfints is get better hW acclerated the gpu! Especially when I use Live-TV and wanna de-interlace TV?

I read from "https://www.mythtv.org/wiki/VDPAU":


Ubuntu 14.04
For Ubuntu 14.04 the drivers for vdpau are not installed by default. To install the driver simply install the mesa-vdpau-drivers package

sudo apt-get install mesa-vdpau-drivers
NOTE: If you get no video from the above, I came across the following at XBMC.org for the wsnipex repository for mesa drivers. This mesa driver works well with the Foxconn NT-A3500 using the A350 / AMD6310 video.

sudo apt-add-repository ppa:wsnipex/mesa
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install libg3dvl-mesa vdpauinfo linux-firmware


I guess this is the same way thought as you propose!

REgarding:
(2014-11-19, 10:46)fritsch Wrote: add an xbmc ppa near you (at least 13.2, better helix beta3).

The I not sure what ppa to use, the above from "https://www.mythtv.org/wiki/VDPAU" or the one I used to get Kodi installed --> sudo add-apt-repository -s ppa:team-xbmc/unstable Huh?!!


RE: Radeon OSS with vdpau (howto) - wsnipex - 2014-11-19

ppa:team-xbmc/unstable is ok.


RE: Radeon OSS with vdpau (howto) - kbaggen - 2014-11-19

Ok, thanks boths!

Got one last questiion......been told/read that Nvidia is much better for linux......by during the above is there then any need for me to buy a new GFX card at all now? Was wounding to do so, but the beutry of AMD 5450 is it use very little power.


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

Test it and provide the above pastebinit output.


RE: Radeon OSS with vdpau (howto) - kbaggen - 2014-11-19

(2014-11-19, 11:57)fritsch Wrote: Test it and provide the above pastebinit output.

Will do......when back home from work :-)


RE: Radeon OSS with vdpau (howto) - kbaggen - 2014-11-19

Code:
kbnserver@kbnserver-desktop:/src/xbmc/xbmc-pvr-addons$ vdpauinfo
display: :0.0   screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0

Video surface:

name   width height types
-------------------------------------------
420    16384 16384  NV12 YV12
422    16384 16384  UYVY YUYV
444    16384 16384  Y8U8V8A8 V8U8Y8A8

Decoder capabilities:

name               level macbs width height
-------------------------------------------
MPEG1                 0  9216  2048  1152
MPEG2_SIMPLE          3  9216  2048  1152
MPEG2_MAIN            3  9216  2048  1152
H264_BASELINE        41  9216  2048  1152
H264_MAIN            41  9216  2048  1152
H264_HIGH            41  9216  2048  1152
VC1_SIMPLE            1  9216  2048  1152
VC1_MAIN              2  9216  2048  1152
VC1_ADVANCED          4  9216  2048  1152

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
R8G8B8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
R10G10B10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
B10G10R10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8

Bitmap surface:

name              width height
------------------------------
B8G8R8A8         16384 16384
R8G8B8A8         16384 16384
R10G10B10A2      16384 16384
B10G10R10A2      16384 16384
A8               16384 16384

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         -
HIGH QUALITY SCALING - L1        -
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y        48     2048
VIDEO_SURFACE_HEIGHT             y        48     1152
CHROMA_TYPE                      y  
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y  
CSC_MATRIX                       y  
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y  
LUMA_KEY_MAX_LUMA                y



RE: Radeon OSS with vdpau (howto) - kbaggen - 2014-11-19

A bit more info regarding my system is Duelcore pentium [email protected] + 4 GB DDR2@720mhz + AMD 5450 as above!

Before TV stream at 1080p around 8-10megabit stream took around 50%/50% of CPU (eg. cpu0/cpu1), now it seems to be around 20%/20%....so it seems to work I guess?