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 - 2013-12-12

where is /data/filme located? Some underwowered network share?

Retry with a local file. Make sure to enable "Adjust Refreshrate to match video" "On start / stop" and set the Sync Playback to Display to "Audio Clock" for testing.

Post a debug log of exactly that file.


RE: Radeon OSS with vdpau (howto) - ixbeemce - 2013-12-12

@fritsch:
/data/filme is stored on a local disk

I will test according to your hints this evening


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-12

Please also run a qvdpautest - not sure how well your A10 already works.
Quote:Host CPU: AMD A10-5700 APU with Radeon™ HD Graphics, 4 cores available



RE: Radeon OSS with vdpau (howto) - ixbeemce - 2013-12-12

@fritsch

Regarding DTS-HD problems:

here is the debug log:
http://paste.ubuntu.com/6562211/

here is qvdpautest:
qvdpautest 0.5.2
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): 83 frames/s
MPEG DECODING (1280x720): 124 frames/s
H264 DECODING (1920x1080): 54 frames/s
H264 DECODING (1280x720): 95 frames/s
Profile unsupported.
MPEG4 DECODING (1920x1080): 78 frames/s

MIXER WEAVE (1920x1080): 1156 frames/s
MIXER BOB (1920x1080): 1614 fields/s
MIXER TEMPORAL (1920x1080): 496 fields/s
MIXER TEMPORAL + IVTC (1920x1080): 484 fields/s
MIXER TEMPORAL + SKIP_CHROMA (1920x1080): 486 fields/s
MIXER TEMPORAL_SPATIAL (1920x1080): 488 fields/s
MIXER TEMPORAL_SPATIAL + IVTC (1920x1080): 487 fields/s
MIXER TEMPORAL_SPATIAL + SKIP_CHROMA (1920x1080): 487 fields/s
MIXER TEMPORAL_SPATIAL (720x576 video to 1920x1080 display): 1074 fields/s

MULTITHREADED MPEG DECODING (1920x1080): 82 frames/s
MULTITHREADED MIXER TEMPORAL (1920x1080): 493 fields/s

when I switch Sync Playback to Display to "Audio Clock" , I have no more aodio output (for DTS-HD)
and the AV-Receiver also didn't show DTS-HD, when I switch back to "no sync" I have audio output


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-12

I have seen in your log, that you playback 24p content at 60hz and sync to the video clock - that's a bad idea. As it cannot work without constant drops.

If you have to disable Adjust Refreshrate to match video, also disable sync playback to display (or sync to audio clock).

the qvdpau output looks fine - I think that's the fasted system I have seen yet.

gdb threads starting and stopping does not help :-) xbmc.log please

Edit: Make sure you don't mix up "Adjust Refreshrate to match video" and "Sync Playback to Display". The first switches to a refreshrate most compatible with the output fps. The latter tries to sync the content to that framerate. Therefore only both make sense, when Video Clock is used. If the first does not work, e.g. no 24p mode available, don't do the latter. When setting to Audio Clock - that is no issue.


RE: Radeon OSS with vdpau (howto) - ixbeemce - 2013-12-12

@fritsch


the log-file with DTS-HD audio but with distortions
cat xbmc1.log |pastebinit
http://paste.ubuntu.com/6562900/

the log-file with no DTS-HD audio
cat xbmc2.log |pastebinit
http://paste.ubuntu.com/6562901/


RE: Radeon OSS with vdpau (howto) - Mysqo - 2013-12-12

I currently use this kernel on my Asus E-450 system.
Code:
https://dl.dropboxusercontent.com/u/55728161/linux-image-3.12.0%2B_4.0_amd64.deb https://dl.dropboxusercontent.com/u/55728161/linux-headers-3.12.0%2B_4.0_amd64.deb
sudo dpkg -i *3.12.0*deb


Should this work fine or even better on my system?
or is there a repository for the kernel i could use?
(2013-12-10, 02:15)VanillaXtract Wrote: Out of the drm-intel-nightly, do we:

Code:
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-nightly/current/linux-image-3.13.0-994-generic_3.13.0-994.201312090431_amd64.deb
http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-nightly/current/linux-headers-3.13.0-994_3.13.0-994.201312090431_all.deb
sudo dpkg -i *3.13.0*deb



RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-12

See the workaround for stupid EDIDs :-) Your AVR does not want you to play bitstream at 24p.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-12

@Mysqo: Do you have any issues? If yes, list them.


RE: Radeon OSS with vdpau (howto) - Mysqo - 2013-12-12

(2013-12-12, 21:41)fritsch Wrote: @Mysqo: Do you have any issues? If yes, list them.

No issues after upgrading to latest xbmc, just wanted to know if i should use the latest so everyone is on the latest working build.
But i don't have any issues with the kernel im running, at least not that i know of this far.
Thanks for a good job everyone.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-12

You can also try 3.13-rc3 builds from time to time, cause when 3.13 is out - i will close that thread :-)


RE: Radeon OSS with vdpau (howto) - Claudio.Sjo - 2013-12-12

@ixbeemce

Hi,
I have an A10-5700 as well.
I use an Asus F2A85-ME
What is your motherboard?


RE: Radeon OSS with vdpau (howto) - ixbeemce - 2013-12-13

@Claudio.Sjo

Hi,
My motherboard is: ASUS F2A55-M

(good to know thas somebody uses the same processor)


RE: Radeon OSS with vdpau (howto) - ixbeemce - 2013-12-13

@fritsch

Thx for your answers.

I have installed the EDID workaround according to page 1. (I had skipped this during my initial installation because I had no DTS-HD content and I forgot it later).
But unfortunately it doesn't help.
I had test several rates but it seems that my AVR didn't except rates other than 60Hz, as you mentioned on page 1.
My problem is:
rate != 60Hz: no DTS-HD output
rate == 60Hz: DTS-HD output with gaps and/or loud distortions (in a period of several seconds)
At the moment I don't know if this is a problem of xbmc/Linux/mesa or of the AVR (Denon 1912)


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-13

Works for me on Marantz. So, as long as you need to stick to 60hz. Just disable all the hd audio codecs (DTS-Hd, TrueHD) - it will put out as LCPM, when your speaker config is set correctly. TrueHD without quality loss, for DTS-HD we use the DTS and decoder that one as ffmpeg does not have a DTS-HD decoder.

It's worth filing a bug with the alsa people for it - but i have seen really bad things with Denon AVRs to no available ...