Kodi Community Forum
Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - 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: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server (/showthread.php?tid=231955)



RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-06

As kodi finds the soundcards - you have some permission issue with the user running this aplay -l

sudo aplay -l and see if you get more devices.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - morstef4 - 2016-05-06

I have made some progress but... not enought

Thank you fritsch and bluesmanuk.

New threat here for this : http://forum.kodi.tv/showthread.php?tid=272858


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - tocinillo - 2016-05-07

Hi!

Recently I installed the new Ubuntu 16.04 (server, LXDE+Openebox) but I tested some videos with same problem: after an hour of play, Kodi increases CPU usage 7-8% per core to more than 35-40% per core (with or without playing video), playing the same file. If I restart Kodi (kill and open again) the CPU usage returns to normality.

It's very curious, because the problem is progressive and starts exactly at hour (+-15 min), the CPU goes from 7-8% per core to 15, then 20, then 25, then 30...finally I see the total CPU usage from 30% to 130 :S

I tested it with FRESH install, no additional packages or programs, only Kodi 16.1 and openbox.

30-35 minutes playing:

Image

after 1 hour:

Image

* You can see in the first pic "House 1x01...35 minutes", in the second pic Kodi played the first epiisode (42 minutes) and 22 minutes of the second, 64 minutes in total.

I checked temps and are Ok (50-55ยบ celsius) no underlock in cpu, etc.I know that in the screens I had eminence with some addons, but I tested also only pure kodi purged (16.1 and 17) and same problem again.

I have 3-4 debug log, nothing interesting: http://pastebin.com/2gmtGKWi

The same test in Openelec (Kodi 16.1 RC2) works nicely, over 2-3 hours playing 1080p with normal CPU usage and when I return to main menu, the CPU usage is normal...so I don't know what I can do.

PS: I also tested with Kodi 17 alpha2 and same instructions that told fritsch in the first page with same result: after 1 hour the CPU usage increases A LOT. Full debug log with 17 alpha: http://pastebin.com/kTgbrxcq

PS2: I'm playing with NUC5PPYH (I tested Asrock N3000 and FN2820FYKH with same results) over NFS (Synology).

Thanks and regards.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-07

Please open a new thread for your 16.1 issue. For v17, please check with top (by pressing H) which thread is causing the issue. Also enable debug logging, perhaps we see something.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-08

You most likely miss the xorg legacy part ...


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - djnice - 2016-05-10

Hello,
I tested the Kodi picture quality with a HDMI capture device. This is a raw capture, no compression.
I used the Spears & Munsil test disc, there are the test pictures (same frame from the 1080p24 video):

Kodi 17 nightly (i3-5005u): link
Dune HD Connect (SMP8675): link
Popcorn Hour VTEN (SMP8757): link
Samsung BD-F5500 (MediaTek MT8555): link
BFS 4KM (HiSilicon Hi3798): link

It seems, the Sigma and the MediaTek SoC give the best quality, transparent output, the HiSilicon SoC overprocess the image a bit (due the Imprex engine), and Kodi is the less detailed.
Why?


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-10

Cause you did not properly setup xrandr most likely.

What were your xrandr settings? What were the kodi settings concerning Limited Range? Did you use VAAPI for decoding? And so on?


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - djnice - 2016-05-10

I used the first link for setup, with Ubuntu server 16.04, VAAPI enabled with full range.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-10

So the data that you capture is scaled from 16:235 to 0:255 - which is not untouched. Dithering was also added to the mix?

Three things to verify:

a) Make really sure the output is running at FULL (xrandr --verbose will tell)
b) Check "Use Limited" to ON in kodi - that will output the original range 16:235 without any changes to the image data.
c) Make sure your capture card actually realizes that you send "Limited Range" Data via a faked "Full range" xrandr

If c) does not work - use a custom kernel that has the Limited non clamping output mode from e.g. http://fritsch.fruehberger.net/kernel


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - djnice - 2016-05-10

OK, I will try, but the color space conversion affects the details so much?


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-10

I just looked into your images in detail - all of them seem to be full range, which makes me wonder. Can you please post a kodi Debug Log when playing that content. I think a sw decoder is used here and not VAAPI or the .bmps are somehow postprocessed.

Edit: Also if you can, reproduce with one of my "older" OpenELEC images from an usb stick. There were recent changes in the render concerning precision. Those image do the right stuff without any change needed: http://fritsch.fruehberger.net/openelec/v17_videoplayer_testing/OpenELEC-Generic.x86_64-7.0-devel-20160317171811-r22307-g8180b93.img.gz that one should be good enough for testing this file, but also don't forget the Debug Log


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - djnice - 2016-05-10

The .bmps are unprocessed 100%, and I think, the hardware decoder is working, this is the mediainfo

Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-10

I want the Debug Log please and obviously compare against SW decoding.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - djnice - 2016-05-10

This is the log: link


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-11

No, that's a cutout part of the Debug Log ... missing completely the enumeration. Verify with OpenELEC as suggested above to minimize user error.