Linux - Radeon OSS with vdpau (howto)

  Thread Rating:
  • 24 Votes - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
fritsch Online
Team-XBMC Developer
Posts: 6,617
Joined: Aug 2011
Reputation: 150
Location: Karlsruhe
Post: #1696
Most likely not. If you want it persistent, check the global config files. Google will help you :-)

PS: I don't know better, I learned PA one day prior to writing the Sink.
find quote
uuzi Offline
Junior Member
Posts: 26
Joined: Dec 2010
Reputation: 0
Location: Germany
Post: #1697
i'm trying to find out about making these settings persistent in the pulseaudio and xbmc irc channels, could not find anything about it in the manpages

it really is a weird one, every command that can be used with pactl seems to have it's implementation in pacmd and therefore is in the pa-cli-syntax and can be used in the config files.
just the set-sink-formats command does not seem to have a command in pacmd

EDIT: i now use a workaround and call a sh script via the upstart service which first calls pactl and sets the parameters and then starts xbmc. works for now.
(This post was last modified: 2014-01-13 23:01 by uuzi.)
find quote
uuzi Offline
Junior Member
Posts: 26
Joined: Dec 2010
Reputation: 0
Location: Germany
Post: #1698
and once again i'm running into problems. Smile

I built xbmc with pulse enabled but now I can't seem to enable live tv. whenever I enable TV in xbmc's settings xbmc crashes.
xbmc's log shows:
Code:
21:58:27 T:139969066665728  NOTICE: PVRManager - starting up
21:58:27 T:139969467582208  NOTICE: Thread PVRManager start, auto delete: false
21:58:27 T:139968806639360  NOTICE: Thread PVRClient start, auto delete: false
21:58:27 T:139969758697344    INFO: stopping PVRManager
21:58:27 T:139969758697344  NOTICE: PVRManager - stopping
21:58:27 T:139969467582208   DEBUG: Thread PVRManager 139969467582208 terminating
21:58:57 T:139968370415360   DEBUG: Thread JobWorker 139968370415360 terminating (autodelete)
21:58:57 T:139968772482816   DEBUG: Thread JobWorker 139968772482816 terminating (autodelete)
21:58:57 T:139967573501696   DEBUG: Thread JobWorker 139967573501696 terminating (autodelete)
21:58:57 T:139969066665728   DEBUG: Thread JobWorker 139969066665728 terminating (autodelete)

i first thought it had something to do with there not being any pvr addons installed, so I installed them via PPA. same problem. then i compiled xbmc-pvr-addons but that just gives me "addon dependancies not met" when i try to install them from zip in xbmc.

i also tried compiling xbmc with --enable-pvr but everything results in the same problem.
find quote
fritsch Online
Team-XBMC Developer
Posts: 6,617
Joined: Aug 2011
Reputation: 150
Location: Karlsruhe
Post: #1699
Not related to this howto. Use the packages this howto provide, all pvr addons are available for easy installation via apt-get. Wsnipex has picked up the --enable-pulse flag, so no need to build one your own anymore.
(This post was last modified: 2014-01-13 23:10 by fritsch.)
find quote
doctor64 Offline
Junior Member
Posts: 4
Joined: Dec 2013
Reputation: 0
Post: #1700
(2014-01-13 23:07)uuzi Wrote:  I built xbmc with pulse enabled but now I can't seem to enable live tv. whenever I enable TV in xbmc's settings xbmc crashes.

Try to disable VDPAU in xbmc settings. It help for me. I already open bug against MESA ( https://bugs.freedesktop.org/show_bug.cgi?id=73480 )

EDIT: sorry, i think you have problem with mpeg2 playback, not with just pvr enable. Should note what at least Mediaportal and PVR backends from PPA working.
(This post was last modified: 2014-01-13 23:20 by doctor64.)
find quote
fritsch Online
Team-XBMC Developer
Posts: 6,617
Joined: Aug 2011
Reputation: 150
Location: Karlsruhe
Post: #1701
@doctor64: Read again. He cannot enable the PVR Manager, cause it freezes when doing so. This happens when no pvr addon is installed and is an xbmc bug.
find quote
arkadi Offline
Junior Member
Posts: 8
Joined: Jan 2013
Reputation: 0
Location: Switzerland
Post: #1702
First of all, thank you very much for the audio passthrough Smile
DTS MA and Dolby TrueHD, as well as FLAC 5.1, now work nicely, feeding an Onkyo TX-NR5009.

Video decoding still has limits, as mentioned. From a couple of 40Mb/s files with MPEG-2 video (with 422 yuv), only one or two plays. CPU usage goes up to 120% (this a dual-core A6-5400K).

AMD A6-5400K - Asrock FM2A75 PRO4-M - 8GB DDR3-1866
xubuntu 13.10 - 3.13-rc8
find quote
gradinaruvasile Offline
Member
Posts: 73
Joined: Jan 2013
Reputation: 0
Post: #1703
You have that kind of cpu usage with vdpau activated?
find quote
libgradev Offline
Junior Member
Posts: 45
Joined: Apr 2013
Reputation: 0
Post: #1704
MPEG-2: Still busted with my card (HD6950) - this is with 3.13-rc8 and Mesa git pulled 12/01.

I get a hardlock with a white screen now - x264 content still fine. I will attempt to get some useful debugging output and update the bug tracker asap!

@doctor64: check https://bugs.freedesktop.org/show_bug.cgi?id=71796
find quote
fritsch Online
Team-XBMC Developer
Posts: 6,617
Joined: Aug 2011
Reputation: 150
Location: Karlsruhe
Post: #1705
(2014-01-14 11:29)arkadi Wrote:  First of all, thank you very much for the audio passthrough Smile
DTS MA and Dolby TrueHD, as well as FLAC 5.1, now work nicely, feeding an Onkyo TX-NR5009.

Video decoding still has limits, as mentioned. From a couple of 40Mb/s files with MPEG-2 video (with 422 yuv), only one or two plays. CPU usage goes up to 120% (this a dual-core A6-5400K).

AMD A6-5400K - Asrock FM2A75 PRO4-M - 8GB DDR3-1866
xubuntu 13.10 - 3.13-rc8

Those limitation I mentioned on the first page. We still have a huge performance issue there, yes. I miss approx 33% speed in the OSS vdpau. For your concrente videos, please open Bugs at bugs.freedesktop.org.
find quote
gradinaruvasile Offline
Member
Posts: 73
Joined: Jan 2013
Reputation: 0
Post: #1706
Do you have some clip somewhere that crashes for you and i could download? I have some hd mpeg2 samples but those work with my card with vdpau and i get no crashes/lockups. Its true, the biggest one uses ~75% CPU - its a clip with 70 Mb/s stream taken from here (big buck bunny, first segment):

http://www.w6rz.net/

All of the other few i downloaded worked with low cpu usage.
I have a Radeon HD 8570D - thats the IGP in the A8-6500 APU - in fact its a (twice) modified 6xxx series model, uses the same r600 driver and i compiled mesa, kernel, xf86-ati from git (yesterday i think).
find quote
gangkill13 Offline
Junior Member
Posts: 2
Joined: Jan 2014
Reputation: 0
Post: #1707
First of all, thanks for this howto. xbmc works like a charm except the audio.
I've got a amd e350. I wanted to reinstall linux + xbmc so i followed this howto step by step. The problem is that the audio lags about 1.5 seconds behind in the video's. It doesn't matter what the source is. I tried various options but i can't find a solution. The TV isn't the problem because my other partition works normally. I hope someone could help me.

Here are my debug messages:
dmesg: http://paste.ubuntu.com/6749964/
xbmc.log: http://paste.ubuntu.com/6750405/
Xorg.0.log: http://paste.ubuntu.com/6750241/
dpkg -l |grep mesa: http://paste.ubuntu.com/6750301/
find quote
fritsch Online
Team-XBMC Developer
Posts: 6,617
Joined: Aug 2011
Reputation: 150
Location: Karlsruhe
Post: #1708
(2014-01-14 15:03)gradinaruvasile Wrote:  Do you have some clip somewhere that crashes for you and i could download? I have some hd mpeg2 samples but those work with my card with vdpau and i get no crashes/lockups. Its true, the biggest one uses ~75% CPU - its a clip with 70 Mb/s stream taken from here (big buck bunny, first segment):

http://www.w6rz.net/

All of the other few i downloaded worked with low cpu usage.
I have a Radeon HD 8570D - thats the IGP in the A8-6500 APU - in fact its a (twice) modified 6xxx series model, uses the same r600 driver and i compiled mesa, kernel, xf86-ati from git (yesterday i think).


Guys you clearly all know, that the performance of the UVD decoder is not yet ready. It's quite clear that such files - nowhere on a real bluray image - make such problems. Please let's concentrate on the basics, which is: mpeg-2 needs to be solved. We can start the digsize benchmark war when everything is done :-)
find quote
fritsch Online
Team-XBMC Developer
Posts: 6,617
Joined: Aug 2011
Reputation: 150
Location: Karlsruhe
Post: #1709
(2014-01-14 15:19)gangkill13 Wrote:  First of all, thanks for this howto. xbmc works like a charm except the audio.
I've got a amd e350. I wanted to reinstall linux + xbmc so i followed this howto step by step. The problem is that the audio lags about 1.5 seconds behind in the video's. It doesn't matter what the source is. I tried various options but i can't find a solution. The TV isn't the problem because my other partition works normally. I hope someone could help me.

Here are my debug messages:
dmesg: http://paste.ubuntu.com/6749964/
xbmc.log: http://paste.ubuntu.com/6750405/
Xorg.0.log: http://paste.ubuntu.com/6750241/
dpkg -l |grep mesa: http://paste.ubuntu.com/6750301/

13:55:58 T:140567694534400 NOTICE: fps: 23.976024, pwidth: 1280, pheight: 688, dwidth: 1280, dheight: 688
13:55:58 T:140567694534400 NOTICE: Display resolution ADJUST : 1920x1080@ 30.00 - Full Screen (16) (weight: 0.251)

Post: DISPLAY=:0 /usr/lib/xbmc/Xbmc-xrandr | pastebinit It seems you are running 1080i resolution and should rather switch to 720p
find quote
arkadi Offline
Junior Member
Posts: 8
Joined: Jan 2013
Reputation: 0
Location: Switzerland
Post: #1710
(2014-01-14 12:12)gradinaruvasile Wrote:  You have that kind of cpu usage with vdpau activated?

Yes, for the MPEG-2 422 files, all around 120% XBMC-CPU. H.264 (bluray and HDTV captures) are fine with around 10% CPU.

Roman
find quote
Post Reply