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 Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-02-17

If you post the the mandatory logs (I can directly tell you what is missing).


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-17

Sorry, i will dig deeper tomorrow. Cant post all the logs due to several errors (probably this is an indication whats wrongSmileSmile I will try again tomorrow.

kodi@kodipc:~$ dpkg -l |grep mesa | pastebinit
http://paste.ubuntu.com/p/4GwxRBqPkB/
kodi@kodipc:~$ DISPLAY=:0 vainfo | pastebinit
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(nul                                                                                                                                                                                                                                             l)
vaInitialize failed with error code -1 (unknown libva error),exit
You are trying to send an empty document, exiting.
kodi@kodipc:~$ cat ~/.kodi/temp/kodi.log | pastebinit
http://paste.ubuntu.com/0/
kodi@kodipc:~$ dmesg | pastebinit
http://paste.ubuntu.com/0/
kodi@kodipc:~$ id | pastebinit
http://paste.ubuntu.com/p/j59zThgQrC/
kodi@kodipc:~$ amixer | pastebinit
amixer: Mixer attach default error: No such file or directory
You are trying to send an empty document, exiting.
kodi@kodipc:~$ cat /var/log/Xorg.0.log | pastebinit
http://paste.ubuntu.com/0/
kodi@kodipc:~$


if i run the command as the main user:
nuc_server@kodipc:~$ dpkg -l |grep mesa | pastebinit
http://paste.ubuntu.com/p/PvxKrF6R7X/
nuc_server@kodipc:~$ DISPLAY=:0 vainfo | pastebinit
error: can't connect to X server!
error: failed to initialize display
You are trying to send an empty document, exiting.
nuc_server@kodipc:~$ cat ~/.kodi/temp/kodi.log | pastebinit
cat: /home/nuc_server/.kodi/temp/kodi.log: No such file or directory
You are trying to send an empty document, exiting.
nuc_server@kodipc:~$ dmesg | pastebinit
http://paste.ubuntu.com/p/kcn5MJFZqr/
nuc_server@kodipc:~$ id | pastebinit
http://paste.ubuntu.com/p/tz7gJw7hqf/


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-02-18

I think you see the error yourself: http://paste.ubuntu.com/p/j59zThgQrC/ <- seems you have forgotten some commands of the original installation.  This howto assumes to be "kodi" the user starting kodi. Therefore make sure you properly added its permissions.

After that post the vainfo again, please. Remember: After changing user rights, you need to reboot (or log out all sessions, but reboot is safer).


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-18

Hi,

thanks again for your time. Im not at home right now but i SSHed into the machine and redid the following line:

sudo usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input kodi

When i start KODI and watch the PC status in "htop" i see that the CPU's are all below 10% were before all the cores were very high (kodi is just idle)
kodi@kodipc:~$ DISPLAY=:0 vainfo | pastebinit
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 1.1.0
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_1_1
libva info: va_openDriver() returns 0
http://paste.ubuntu.com/p/kww8gcMkpx/

kodi@kodipc:~$ id | pastebinit
http://paste.ubuntu.com/p/kQFBzfZVPJ/


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-02-18

Looks good.


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-18

Hey fritsch,

Thanks again for all your help and creating this guide. Kodi runs good now, still have 1 issue but that has nothing to do with this.
Thanks again, much appreciated.


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-19

Hi again,

i have a question regarding resolution.
When i connect my NUC8i5BEH directly to the TV i get 4096x2160@60fps but when i connect the NUC to my Denon X2500 i can only get 3840x2160@30fps.
Is it correct that this can be fixed with editing the 10-intel.conf?

When i run sudo X verbose with the receiver connected i see the following output:
http://paste.ubuntu.com/p/3v5VRXt95p/

Is it correct to assume that i should create the 10-intel.conf like below?
https://paste.ubuntu.com/p/sNrznsZHbB/


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-02-19

I'd rather fix the root cause, but yeah - try this xorg.conf - hopefully you get a picture.

Btw. you don't want 4096x2160 but rather 3840x2160


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-19

Ok, tonight i will try to edit the /etc/X11/xorg.conf.d/10-intel.conf


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - FernetMenta - 2019-02-19

(2019-02-19, 12:43)Henkske Wrote: Hi again,

i have a question regarding resolution.
When i connect my NUC8i5BEH directly to the TV i get 4096x2160@60fps but when i connect the NUC to my Denon X2500 i can only get 3840x2160@30fps.

Your AVR can't do 4096x2160@60fps

Image


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-19

True, but it should work with 3840x2160@60fps i believe

2018 models (S940H, X2500H): These models can pass through up to 4K/60fps video and upscale up to 4K/30fps video.


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-02-19

According to the manual it should be able to: http://manuals.denon.com/AVRX2500h/EU/DE/download.php?filename=/AVRX2500H/EU/DE/pdf/AVRX2500H_EU_DE.pdf the 4k @ 25,30 is only for scaling, page 173


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-02-19

One thing to take care. 8 bit RGB might need special tuning (your AVR calls that extended) while yuv420 (8bit) is supported by the standard, also page 173. Some time back I made xorg.conf entries for the lower bandwidth 4k mode - let's see how far you can get. On my Denon + Samsung TV combination I need to enable UHD mode in Samsung TV explicitely. Without that - no 4k 50,60 for me.

Edit: For your Denon, go to its settings and set "4k format" to extended, done.


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-19

Yes, UHD mode on the Samsung TV did the trick. I had it enabled for every input except the this one....

Thanks again for all your help and patience.


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - uke75 - 2019-02-20

Hi all,

I'm a long time Kodi user. I have updated my system to AMD 2400G and since then Kodi has been frequently crashing. Also fast forwarding HD video will crash Kodi almost immediately.

dpkg -l |grep mesa | pastebinit -b pastebin.com
https://pastebin.com/BVUXZK54

DISPLAY=:0 vainfo | pastebinit -b pastebin.com
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
https://pastebin.com/A4HGHvCc

cat ~/.kodi/temp/kodi.log | pastebinit -b pastebin.com
https://pastebin.com/eH4QbMN4

cat kodi_crashlog-20190220_195540.log | pastebinit -b pastebin.com
https://pastebin.com/vCHCMqhp

dmesg | pastebinit -b pastebin.com
https://pastebin.com/VCUQpNXy

amixer | pastebinit -b pastebin.com
https://pastebin.com/EL45PzZP

cat /var/log/Xorg.0.log | pastebinit -b pastebin.com
https://pastebin.com/AccYy5j2


Thank you for your hard work and efford