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) - metheos - 2014-08-29

(2014-08-29, 09:29)FernetMenta Wrote: All keyboard input is handled by XLib. If a window has focus, it receives the input. The only reason I can think of why you don't get input is that the window has no focus. Maybe you give the window focus by killing boblight. How exactly do you kill boblight? Can you attach a mouse and focus XBMC by clicking somewhere in the window? Would this change anything?

I plugged in a mouse and all I had to do was move the cursor outside of the boblight-v4l rendering area and xbmc started responding to the keys again. I did not have to click.

I think I know what's going on. In earlier versions of xbmc I'm almost positive the cursor started in the center of the screen, but now it's starting in the top left (which happens to be the corner that boblight-v4l uses to render).

I'm pretty sure X starts with the cursor in the middle, so is xbmc moving the cursor to the top left?


RE: Radeon OSS with vdpau (howto) - FernetMenta - 2014-08-29

I am not familiar with boblight. What is the boblight rendering area? Does it open a window? When xbmc launches it opens its window and the mouse pointer is positioned withing this window. It may be the top left corner but this still belongs to XBMC's window.


RE: Radeon OSS with vdpau (howto) - wsnipex - 2014-08-29

workaround: configure your WM to not follow the mouse, ie. to not bring windows under the mouse in front


RE: Radeon OSS with vdpau (howto) - FernetMenta - 2014-08-29

(2014-08-29, 15:16)wsnipex Wrote: workaround: configure your WM to not follow the mouse, ie. to not bring windows under the mouse in front

that is wrong and would cause other issues. the WM is told that XBMC runs fullscreen, it should not bring any other windows in front


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

s/bring/not bring/g


RE: Radeon OSS with vdpau (howto) - metheos - 2014-08-29

(2014-08-29, 15:02)FernetMenta Wrote: I am not familiar with boblight. What is the boblight rendering area? Does it open a window? When xbmc launches it opens its window and the mouse pointer is positioned withing this window. It may be the top left corner but this still belongs to XBMC's window.

boblight-v4l is a binary in the boblight project that renders the video from a capture device on a small region of the screen in order to grab pixel color data and output it to ambilight-like devices.

https://code.google.com/p/boblight/

I guess a workaround would be to script a mouse move to the center of the screen on xbmc startup. But I'm pretty sure it was in the center in previous releases.

I realize however I'm probably the only person in existence that's using boblight-v4l alongside xbmc...


RE: Radeon OSS with vdpau (howto) - funkhouser - 2014-08-29

Is there any fix for the radeon driver and DVB/Mpeg2?

Using VDPAU for both h264 and Mpeg2 decoding from the DVB card gives a lot of skipped frames (h264 files from disk run perfectly) and for Mpeg2 everything locks up on channel stop or change, for several seconds, checking the logs it's the GPU stall for more than XXXXms etc error.

Disable VDPAU acceleration and everything works perfectly.

System is Ubuntu 14.04, 3.16.0-031600-generic, xbmc 13.2, tbs6981 (propietary drivers - linuxtv drivers don't work).

Will post up logs later.


RE: Radeon OSS with vdpau (howto) - FernetMenta - 2014-08-29

(2014-08-29, 15:43)metheos Wrote: boblight-v4l is a binary in the boblight project that renders the video from a capture device on a small region of the screen in order to grab pixel color data and output it to ambilight-like devices.

https://code.google.com/p/boblight/

I guess a workaround would be to script a mouse move to the center of the screen on xbmc startup. But I'm pretty sure it was in the center in previous releases.

I realize however I'm probably the only person in existence that's using boblight-v4l alongside xbmc...

does boblight open a window? is that a visible window?
if this is the case, you do something wrong. you should not have more than a single application run without a window manager. you log states, that you run without a WM.


RE: Radeon OSS with vdpau (howto) - metheos - 2014-08-29

(2014-08-29, 16:14)FernetMenta Wrote: does boblight open a window? is that a visible window?
if this is the case, you do something wrong. you should not have more than a single application run without a window manager. you log states, that you run without a WM.

Yes, it creates a small window in the top left corner.

https://code.google.com/p/boblight/source/browse/trunk/src/clients/boblight-v4l/videograbber.cpp#187


RE: Radeon OSS with vdpau (howto) - FernetMenta - 2014-08-29

I thought this was only for debugging:

if (g_flagmanager.m_debug)
{

Have you tried with a WM? it should work then. Nevertheless, I will push a patch which positions the pointer in the center of the window on creation.


RE: Radeon OSS with vdpau (howto) - metheos - 2014-08-29

(2014-08-29, 17:05)FernetMenta Wrote: I thought this was only for debugging:

if (g_flagmanager.m_debug)
{

Have you tried with a WM? it should work then. Nevertheless, I will push a patch which positions the pointer in the center of the window on creation.

Hah, I've been running it with the -d switch thinking it was for daemon mode... But you're right, it's debug... I'll take that out tonight and see what happens. Thanks!


RE: Radeon OSS with vdpau (howto) - metheos - 2014-08-30

Well I feel a little embarrassed for having been running boblight-v4l in debug mode all this time since when I took out-d everything worked fine and the window was not created. Thanks for the help tracking it down and for patching the cursor position!


RE: Radeon OSS with vdpau (howto) - wsnipex - 2014-08-30

(2014-08-29, 15:45)funkhouser Wrote: Is there any fix for the radeon driver and DVB/Mpeg2?

Using VDPAU for both h264 and Mpeg2 decoding from the DVB card gives a lot of skipped frames (h264 files from disk run perfectly) and for Mpeg2 everything locks up on channel stop or change, for several seconds, checking the logs it's the GPU stall for more than XXXXms etc error.

Disable VDPAU acceleration and everything works perfectly.

System is Ubuntu 14.04, 3.16.0-031600-generic, xbmc 13.2, tbs6981 (propietary drivers - linuxtv drivers don't work).

Will post up logs later.
Could be DRI3 issues. I neded to downgrade my AMD system to kernel 3.15 to get rid of the GPU stalls.


AW: Radeon OSS with vdpau (howto) - Jan0sh - 2014-08-31

Current ppa version (14.0-ALPHA3 Git:795a374) freezes on video skip.
Debug log: http://paste.ubuntu.com/8198966/
dmesg: http://paste.ubuntu.com/8199009/

cat /var/log/Xorg.0.log | pastebinit
http://paste.ubuntu.com/8199017/

DISPLAY=:0 vdpauinfo | pastebinit
http://paste.ubuntu.com/8199018/

dpkg -l |grep mesa | pastebinit
http://paste.ubuntu.com/8199020/


Edit. Waited a few minutes while writing this comment and frrezed xbmc started playback again...
Xbmc log after unfreeze and playing back again:
http://paste.ubuntu.com/8199051/

I assume the magic happened at 19:48:54 and playback worked at 19:54 where there is a hole in the logfile.
Also skipping. forward/backward works now on this playback


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

Hello,
after Upgrade from Ubuntu 13.10 to 14.04 I dont have DTSHD Sound. I have test whithout an with the Edid File and with XBMC from Ubuntu and from ppa:wsnipex/xbmc-fernetmenta-master
In xbmc.log i dont have AE_FMT_DTSHD in m_dataFormats
What is wrong? Huh

http://paste.ubuntu.com/8213381/
http://paste.ubuntu.com/8213708/
http://paste.ubuntu.com/8213556/
http://paste.ubuntu.com/8213565/
http://paste.ubuntu.com/8213567/