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 - 2017-04-28

No. On windows only there is a hybrid 10 bit decoder for SKL, but that sucks and is only usable for 1080p.

Skylake and Braswell do hevc-8bit fine, though.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - ((( atom ))) - 2017-05-01

I have an issue which strangely only affects some movies. Since I have a lot of media with different fps and I really don't want to go through settings all the time, I have set the rerfesh-rate to follow the content. Now for some movies kodi seems to get the rate wrong, resulting in audio-glitches, reapeating every second or so. When I nail the rate to the actual movie fps everything is fine. For now I can live with switching autorate off if a movie is affected, but if it is of interest, I could investigate a little more.


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

And nobody can help you without a Debug Log ...


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - ((( atom ))) - 2017-05-02

As I wrote: I can live with it, but if it might be of interest, I can dig deeper into the issue. I don't really need help here, to me it's a minor issue, but if it might be a generall one, I would take the time and get the logs, run some tests and so forth.. So should I go and do so, or am I the only one affected?

Gesendet von meinem SM-G920F mit Tapatalk


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - jant90 - 2017-05-04

I tried to install Kodi as per the instructions in the opening post, and it seems to run great.

However I'm wondering what would be the advantage of this approach versus simply installing Kodi on Ubuntu Desktop and install vaapi 1.7.3 from the mentioned ppa? Is it just about taking out the overhead of the desktop environment?

Also I'm wondering what is needed for 10bit hardware support in Linux? I'm testing my new ASRock J4205 Apollo Lake system and the 4k 10bit sample files are all played with the software decoder (thus they hardly play at all), they do play hardware accelerated in Kodi on Windows 10, even at 60FPS, 10bit HEVC 4k (Sony_4K_HDR_Camp.mp4).


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

Hi guys

Using Libreelec we are able to get 4k 10bit HEVC to work on Apollo Lake. But same 4k 10bit HEVC content fails to work using the steps mentioned here in the first post. Am I doing something wrong or Libreelec has some magic going on underhood ?


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

No magic. Just Kodi agile patches.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - BigL-New - 2017-05-12

Is there some PPA with kodi-agile available? I hoped so but cannot find it :-(


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

No - there is not. All that work will come to kodi mainline once the vpupdates branch is merged. Then you only need mesa 17.1 and no earlier on your system in combination with vaapi 1.7.3 or later and everything will work


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - BigL-New - 2017-05-12

Thanks fo info. An timeline for this? Will it happen before final Kodi 18?


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fatalkill3r - 2017-05-13

(2017-05-11, 20:09)fritsch Wrote: No magic. Just Kodi agile patches.

Fritsch you are awesome. Got 10bit 4k HEVC running on my Apollo Lake with Agile.
Thank you.


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

@big-nl: No. Yes.

@fatall33t: Great.


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

vpupdates was merged into v18 5 minutes ago. Starting from the next nightly build you will therefore be able to use HEVC-10 bit decoding on VAAPI.

Remember: Mesa 17.1 or later and libva/ libva-driver-intel 1.7.3 or later ist needed.

For Ubuntu 16.04 and 17.04 there is a mesa stable ppa:

Quote:sudo add-apt-repository ppa:paulo-miguel-dias/pkppa
sudo apt-get update
sudo apt-get dist-upgrade

Edit: Don't update for now, please. A patch was forgotten and now VAAPI will be skipped - carefully watch github for changes.


RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - barthand - 2017-05-15

That's great news, thank you guys - you're just awesome! I mean, really - huge respect.

Just a question though: I'm using kodi-agile for some time already on J3455-ITX (Apollo Lake) and I can't get my display to recognize 10-bit HEVC it as HDR content. As a result, I can flawlessly decode 10-bit HEVC, but it kinda it misses its point, because display doesn't display it as HDR at all (so all colours seem to be just faded).

How can we overcome this one? Is there any way?

(2017-05-14, 11:39)fritsch Wrote: vpupdates was merged into v18 5 minutes ago. Starting from the next nightly build you will therefore be able to use HEVC-10 bit decoding on VAAPI.

Remember: Mesa 17.1 or later and libva/ libva-driver-intel 1.7.3 or later ist needed.

For Ubuntu 16.04 and 17.04 there is a mesa stable ppa:

Quote:sudo add-apt-repository ppa:paulo-miguel-dias/pkppa
sudo apt-get update
sudo apt-get dist-upgrade

Edit: Don't update for now, please. A patch was forgotten and now VAAPI will be skipped - carefully watch github for changes.



RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - DannyElfman - 2017-05-15

Dear Kodi Developpers,

First of all, thanks for your amazing work. I've been reading about for a while now, used it back when it was XMBC and now I'm back with it and unfortunately having problems Sad

I am randomly having flickering black screen issue.

For 2 day in a row, I did not have any for 45 minutes and right now, it keeps flickering, for the past 20 minutes ... last time, it was 5 or 6 times during a movie ...

Here are the logs :

kodi@player:~$ dpkg -l |grep mesa | pastebinit
http://paste.ubuntu.com/24583020/
kodi@player:~$ DISPLAY=:0 vainfo | pastebinit
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
failed to open /usr/lib/x86_64-linux-gnu/dri/hybrid_drv_video.so
Failed to wrapper hybrid_drv_video.so
libva info: va_openDriver() returns 0
http://paste.ubuntu.com/24583021/
kodi@player:~$ cat ~/.kodi/temp/kodi.log | pastebinit
http://paste.ubuntu.com/24583023/
kodi@player:~$ dmesg | pastebinit
http://paste.ubuntu.com/24583024/
kodi@player:~$ id | pastebinit
http://paste.ubuntu.com/24583025/
kodi@player:~$ amixer | pastebinit
http://paste.ubuntu.com/24583026/


I am running kernel 4.10.0 on a 16.04 LTS Ubuntu on a Gigabyte Brix BACE-3000 NUC-like updated with the latest firmawre. Problem happened with both firmwares.

I had harware accelration ON and now I am trying it OFF. No changes.

Nothing really in the system log.

But the kodi logs definitely sees something happening :

"23:16:06.799 T:139899169585536 ERROR: WinSystemX11::RefreshWindow - failed to query xrandr
23:16:08.454 T:139899169585536 NOTICE: VideoPlayer: OnLostDisplay received
23:16:08.542 T:139899169585536 NOTICE: VideoPlayer: OnResetDisplay received
23:16:08.545 T:139899169585536 NOTICE: GL: Selecting Single Pass YUV 2 RGB shader
23:16:08.576 T:139899169585536 NOTICE: GL: NPOT texture support detected
23:16:08.576 T:139899169585536 NOTICE: GL: Using GL_ARB_pixel_buffer_object
23:16:08.576 T:139899169585536 NOTICE: Using GL_TEXTURE_2D
"

Any idea ? DId I do something wrong ?