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) - locomot1f - 2014-03-24

(2014-03-24, 17:47)locomot1f Wrote: I've been trying to switch my system from S/PDIF to HDMI for sound... setup reasons.

I've not had the best luck with getting the sound to cooperate.
The sound will start off playing correctly, then at any random time it will start to degrade, and get scratchy.
I've searched the forum for this, and I've seen things about it. things to try (sync A/V, set to fixed 48.0, etc.) but nothing seems to correct this.
I've also seen the issue about Upower, as you'll see in my log I get a few of those... but I did not see an answer to this solution.
can someone help point me in the right direction?

here's... Johnny! -- http://pastebin.com/VSjLPrmz

oh! I can reproduce this error, without fail, when i play a music file, and set 'ProjectM' for visualization.
that's how i was able to get the log.
otherwise, when i play a video... i could go 5min - 30min before the distortion will show up.
once it starts though, it will keep coming back quicker and quicker... make me think it's a buffering issue... Huh

would a sound clip help?
it will take some time, but i can try to get one.


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

@talvins: visit #xbmc-xvba on freenode - then your problem can be solved without spamming the rest of the thread.
@locomot1f: I have seen absolutely nothing in a first glance.


RE: Radeon OSS with vdpau (howto) - tiasg - 2014-03-24

(2014-03-23, 20:58)Cheddoleum Wrote: One interesting thing: it does not crash on stop playback if any of the following are true:

* Debug logging enabled (i.e. debug overlay displayed over video)
* The info overlay displayed
* I stop with the onscreen controls instead of simply hitting the stop button
* I stop immediately after skipping or while paused, when the video position overlay is showing
* Menus are displayed when I press stop

I have the exact same issue after following this howto. As soon as i turn off debug logging, XBMC is crashing when i stop Videos.
Here are the logs, though as stated by Cheddoleum the Crash Log doesn't show anything because Debug Logging has to be turned off to reproduce the Error.

dmesg: http://paste.ubuntu.com/7119106/
Xorg.0.log: http://paste.ubuntu.com/7119109/
vdpauinfo: http://paste.ubuntu.com/7119110/
Mesa: http://paste.ubuntu.com/7119120/
X-Randr (while playing a Movie): http://paste.ubuntu.com/7119128/
XBMC Crashlog (debug turned off): http://paste.ubuntu.com/7119134/
XBMC Log with debugging enabled and no Stop/Crash Problem: http://paste.ubuntu.com/7119139/

greetz
Matthias


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

Will be fixed in Trusty with mesa 10.1 the relevant patch just landed in mesa git. I will update the howto at the very point this one gets merged to trusty.


RE: Radeon OSS with vdpau (howto) - talvins - 2014-03-24

(2014-03-24, 19:58)fritsch Wrote: @talvins: visit #xbmc-xvba on freenode - then your problem can be solved without spamming the rest of the thread.

ok, ok but now I erased all my previous xvba installation so...

Can you just tell me WHERE I misfired ?

dmesg | pastebinit
http://pastebin.com/TsDqf6pm

cat ~/.xbmc/temp/xbmc.log | pastebinit
http://pastebin.com/J8GTd4pt

cat /var/log/Xorg.0.log | pastebinit
http://pastebin.com/ZXdNueNa

DISPLAY=:0 vdpauinfo
display: :0 screen: 0
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Error creating VDPAU device: 1

dpkg -l |grep mesa | pastebinit
http://pastebin.com/V5bv648T

Thanks !


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

Your half cut xbmc.log tells, that your Xserver does not come up at all and therefore the vdpau module cannot be loaded. It's really hard to tell ... but there is obviously something wrong in the way you start your xserver.


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

Furthermore you completely miss the ati / radeon drivers ... I am really not sure, what you did during installation:

sudo apt-get install xserver-xorg-video-radeon xserver-xorg-video-ati


RE: Radeon OSS with vdpau (howto) - Cheddoleum - 2014-03-25

(2014-03-24, 22:18)tiasg Wrote: I have the exact same issue after following this howto. As soon as i turn off debug logging, XBMC is crashing when i stop Videos.
Here are the logs, though as stated by Cheddoleum the Crash Log doesn't show anything because Debug Logging has to be turned off to reproduce the Error.

Thanks, it's nice to see some confirmation of this effect. (And thanks for capturing the logs.) On experimenting I've found that the crash-on-stop will only happen if there is no overlay of any kind on the video. If the onscreen controls are showing, or the info or debug overlays, or the skip/pause overlay because you've just skipped or paused before stopping, then it doesn't crash. But press stop when it's just showing plain video with no overlay and the crash happens.


RE: Radeon OSS with vdpau (howto) - talvins - 2014-03-25

(2014-03-24, 22:42)fritsch Wrote: Furthermore you completely miss the ati / radeon drivers ... I am really not sure, what you did during installation:

sudo apt-get install xserver-xorg-video-radeon xserver-xorg-video-ati

I do this approximatively 10 times, purge, resinstall Sad And I SWEAR I don't cut half XBMC log ! It's discouraging...


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

Try to run OpenELEC. If this also does not boot / run then there is another issue. If it runs, it's a problem on your side. http://snapshots.openelec.tv gunzip the image and dd it to an empty usb stick.


RE: Radeon OSS with vdpau (howto) - talvins - 2014-03-25

Just a curious log before trying OpenELEC :

Code:
DISPLAY=:0  LIBGL_DEBUG=verbose glxinfo | grep -i interop
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/r600_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
libGL: driver does not expose __driDriverGetExtensions_r600(): /usr/lib/x86_64-linux-gnu/dri/r600_dri.so: undefined symbol: __driDriverGetExtensions_r600
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: r600
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL: driver does not expose __driDriverGetExtensions_swrast(): /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: undefined symbol: __driDriverGetExtensions_swrast
libGL: Can't open configuration file /home/ben/.drirc: No such file or directory.
libGL: Can't open configuration file /home/ben/.drirc: No such file or directory.
    GL_NV_texture_env_combine4, GL_NV_texture_rectangle, GL_NV_vdpau_interop,

For my strange 'Error creating VDPAU device: 23' on vdpauinfo, I have the answer !!! And it works now ! In fact, I launched vdpauinfo under a sudo. If I su - xbmc then DISPLAY=:0 vdpauinfo, I have http://pastebin.com/QpLy6vN9
And glxinfo it's ok too.

But XBMC log always stop at "load settings".


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

sudo chown xbmc:xbmc /home/xbmc/.xbmc -R


RE: Radeon OSS with vdpau (howto) - adolchristin - 2014-03-25

(2014-03-24, 22:21)fritsch Wrote: Will be fixed in Trusty with mesa 10.1 the relevant patch just landed in mesa git. I will update the howto at the very point this one gets merged to trusty.

Have you got a pointer to the patch? I want to make sure that the patch that fixes this issue makes it into the arch linux mesa package as well.

Thanks again for your work.


RE: Radeon OSS with vdpau (howto) - FernetMenta - 2014-03-25

http://cgit.freedesktop.org/mesa/mesa/commit/?id=92e543c45da4581b1940178a94e6f2d66c749367


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

(2014-03-17, 05:21)gfisher Wrote: OK- I fresh installed OP guide 100% (ssh working now) also to a blank hard drive (same 7750 HDMI audio distortion, HDMI 0 chosen):
aplay -l http://pastebin.com/Yi8WBgrW
mesa http://pastebin.com/JHhQ81sM
vdpauinfo http://pastebin.com/z4QriPv5
xorg.0.log http://pastebin.com/c0RDKQS6
dmesg http://pastebin.com/t977K96x
xbmc.log http://pastebin.com/E5U38jf9
EDIT: mp3 of distortion http://www6.zippyshare.com/v/41893211/file.html

Fresh logs during playback.

I have no luck either...
although on my machine, as I stated, it doesn't happen right away... it can take anywhere from 5 to 30 minutes to show up.
it as just distortion in the audible sound, and then gets gradually worst, til it sounds like what you posted.

have you opened a bug report on this anywhere? have you gotten anywhere with this?