Kodi Community Forum

Full Version: Radeon OSS with vdpau (howto)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
@fritsch - I found it, finally! Big Grin
NOW - No/few skips- V-sync/Sync-playback-to-display both enabled.

My broken XBMC
xbmc@xbmc:~$ cat /sys/devices/system/clocksource/clocksource0/current_clocksource
hpet

Working OE:
OpenELEC:~ # cat /sys/devices/system/clocksource/clocksource0/current_clocksource
tsc

High Precision Event Timer (hpet) = EVIL on my machine.

Openelec lets the kernel choose, I presume. Forcing via grub to hpet causes excessive random delays on A4-3400, from what it looks like, leading to more skips. I read the more threads/cores the worse it gets with HPET. Repeated- TSC register reads seems well suited for video time stamping. Performance_Query_counter vs get_tick_count is a problem for me on windows timings for precise I/O coding. From what I can tell they are similar-ish beasts.

My machine's fix:
Code:
sudo nano /etc/default/grub
edit this line GRUB_CMDLINE_LINUX_DEFAULT:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="radeon.audio=1 radeon.dpm=1 quiet splash"
afterwards run:
:
Code:
sudo update-grub

Code:
sudo reboot

Enjoy smoother 1080i-29.97i and 720p-59.94 playback. For me- a lot less skips on the OSD. There will be a few first opening the file as it syncs.

@pyrodex please test this on your 1080i 29.97 file. We share a similar processor.
@gfisher just tried and no luck. Thanks for the effort Wink. Personally I have never an issue with the issues you had reported with the guide here. This was personally the first issue I had with a file format so wanted to report it to the team.
@pyrodex,
Sorry that it was not your fix. If your file was not encoded properly it might not ever be fixable. My fix is for me being super picky. OP works great for 99% of viewers (all my friends/family think it is awesome on OP settings), I was getting one Skip (not Drop)/micro-judder every 1-4 seconds on content displayed near 60FPS. I am one of the unlucky who see certain video artifacts easily. I re-encode a lot of my content and unfortunately it gave me a sensitive eye.. My Gt610 did not do it. So why not try to fix it.

That fix makes it 98% of my GT610 in my eyes. Once I can get my white levels 100% correct on my Sony with 16-235 color ranges, GT610 RIP.
That is my next conquest. I have a feeling that will be much easier. The V-sync thing has been dodging me for time. Timing issues are very hard to catch.

G
I upgraded the kernel to this:
Code:
Code:
mkdir ~/kernel
cd ~/kernel
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13-rc7-trusty/linux-headers-3.13.0-031300rc7-generic_3.13.0-031300rc7.201401041835_amd64.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13-rc7-trusty/linux-headers-3.13.0-031300rc7_3.13.0-031300rc7.201401041835_all.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13-rc7-trusty/linux-image-3.13.0-031300rc7-generic_3.13.0-031300rc7.201401041835_amd64.deb
sudo dpkg -i *300rc7*deb

Been running 3.13.0-rc3-drm-fixes14-v999-na+ earlier.
Xbmc is running but no sound or video output. (using Webinterface).

dmesg | pastebinit
http://paste.ubuntu.com/6702246/

cat ~/.xbmc/temp/xbmc.log | pastebinit
http://paste.ubuntu.com/6702248/

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

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

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

Any ideas for how to fix this?
I have this version of xbmc installed and I also have pulseaudio installed and all the sound works perfectly in xbmc.
Until you usw passthrough or multichaanel audio ...
(2014-01-04, 18:12)pyrodex Wrote: [ -> ]@fritsch could you update the guide to change the startup script? I found that if you don't include a netdevice waiting it will cause issues with mysql databases. This won't affect normal installs but people who could move to a more complex setup down the road it could cause issues. I think this is a great guide and will be used for some time down the road.
That's odd because I have a WHS2011 machine that hosts my MySQL databases and the media files. It runs just fine without the wait.
It's a race condition. Your NIC comes up fast enough, his does not. If you really want to make sure, you need what he added.
If I setup a static IP address it is fine but if I use DHCP which takes a few seconds it requires the line for it to be there.
@pyrodex
http://www.videohelp.com/tools/tsMuxeR
You can use this free cross platform tool to remux your vid. Log window shows if stream errors are found. It can fix av some timing problems. It is fast.
Edit: cross platform
@pyrodex
Can you make a 30sec clip of the video? I can try it on both of my installs to see if the results are reproducible.
@VanillaXtract I could provide an download link if you want via PM, ffmpeg is giving me hell when trying to splice it up into a 30second chunk.
(2014-01-02, 01:25)fritsch Wrote: [ -> ]Jep, I looked again. Not a config problem. We are currently tracking a similar problem. Btw. do you have any chance to test this OpenELEC build: https://dl.dropboxusercontent.com/u/5572...a1cd76.tar

If that works I have an idea.

I've tried it, but still same issue.
Hi all,

@fritsch Thank you very much for your work. Amazing tutorial with detailed information !

@EricV, @gradinaruvasile
Thanks for the debian specific steps.
I'm also trying to get this working on a debian sid nad / htpc.

1) Install xserver-xorg-core from sid (1.14.5-1) -> OK
2) Install open source radeon driver from sid (7.2.0) -> OK
3 -4-5) install mesa source from experimental (10.0.0.0-1)
Apply the following patch to enable gallium3d for mesa from bug <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656719> : <http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=220;filename=mesa_9.2.2-1.1.debdiff;att=1;bug=656719>
rebuild from source
-> OK patch applied on debian sources and i generated a 10.0.0-1.1 packages version
6) take the 3.13.-rc4 kernel code and upgrade your favorite kernel
-> 3.13-rc6 installed from experimental
7) get xbmc source from fernetmenta git tree
8) configure with ./configure --enable-external-libraries --disable-external-ffmpeg --disable-vaapi --disable-crystalhd --enable-pulse. the disable-external-ffmpeg is needed for any ffmpeg version later than 2.1 (I opened a bug already but no fix yet. 2.0.2 is ok)

-> I was wondering for that last step if you generated debian packages for xbmc from source for xbmc 13.0 version ? Or do you just compile and install from source from the git repository directly ?
(2014-01-07, 23:27)spiroid Wrote: [ -> ]-> I was wondering for that last step if you generated debian packages for xbmc from source for xbmc 13.0 version ? Or do you just compile and install from source from the git repository directly ?

I used the git tree. You can get debian pkg from deb-multimedia.org. Now it works with vdpau as of 11/01/2014.