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 - Jagsta - 2016-05-04

The behaviour is the same with the iso mounted and with a 1080p h264 mkv.

If I configure "sync playback to display" codecinfo doesn't show any frame drops, skips or missed frames, but the playback isn't smooth, as though frames are being dropped.

If I deselect "sync playback to display" codecinfo shows frame drops every few seconds, the playback looks as it did with it enabled.


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

So then - post another Debug Log - please disable component logging as one cannot see what happens cause of those huge ffmpeg component logs.


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

Ok, will do, should I generate the debug log with sync playback to display enabled or disabled? And does it matter whether it's an iso, mounted iso or mkv?

Just the debug log this time I assume?


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

For normal 1080p24 files for now. Iso is a different issue where VFS and other stuff is involved ...


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

This is with sync playback to display disabled playing back a 1080p24 mkv

http://paste.ubuntu.com/16226811/

Every drop on codecinfo corresponds with a log entry like this:

Code:
CPullupCorrection: detected pattern of length 1: 41708.33, frameduration: 41708.333333

With sync playback to display enabled I don't see those log entries, nor the drops on codecinfo, but the playback is the same


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

I have used your first post on my NUC5i3 and everything is great
No issues ;-)

I then decided to maximised my NUC usage by installing google-chrome.
Trying to launched it form kodi, the only way I found was to install the prehistoric Advanced Launcher and it work great, not the ideal but.. hey !!! for now it works !

...Almost... I have no sound !
I found some clues to fix it using alsa config file... BUT
Code:
aplay -l
aplay: device_list:268: no soundcards found...

In a previous post you have mentioned alsa....
(2015-12-28, 12:01)fritsch Wrote: Yes - works fine ... make sure it is not muted (alsamixer / kodi), check with aplay and so on ...
Your guide installed alsa-tools but not alsa-base... should I ?
I also tried to disable PepperFlash in chrome://plugins... no go

Now I'm stuck, I'm not sure what direction I should go.

Any help would be very appreciated.

thank you


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

I don't know if this will help but I got Chrome working without Advanced Launcher doing this.

sudo apt-get install -f
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb

Then installed Chrome into Kodi using plugin.program.chrome.launcher-1.1.5.zip

I had sound working too.


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

(2016-05-05, 23:05)morstef4 Wrote: I have used your first post on my NUC5i3 and everything is great
No issues ;-)

I then decided to maximised my NUC usage by installing google-chrome.
Trying to launched it form kodi, the only way I found was to install the prehistoric Advanced Launcher and it work great, not the ideal but.. hey !!! for now it works !

...Almost... I have no sound !
I found some clues to fix it using alsa config file... BUT
Code:
aplay -l
aplay: device_list:268: no soundcards found...

In a previous post you have mentioned alsa....
(2015-12-28, 12:01)fritsch Wrote: Yes - works fine ... make sure it is not muted (alsamixer / kodi), check with aplay and so on ...
Your guide installed alsa-tools but not alsa-base... should I ?
I also tried to disable PepperFlash in chrome://plugins... no go

Now I'm stuck, I'm not sure what direction I should go.

Any help would be very appreciated.

thank you

You did not follow the howto correctly and did not add your user to the audio group. Provide _all_ the logfiles this howto wants or no help is possible.


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

here :

http://paste.ubuntu.com/16259720/

thank you


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

Your log shows audio devices ... more I cannot say, cause you did not provide the logfiles this howto wants. See first post - all of them are easy to use one liners.

Quote:10:07:58 T:140189261900160 NOTICE: Device 1
10:07:58 T:140189261900160 NOTICE: m_deviceName : hdmi:CARD=HDMI,DEV=0
10:07:58 T:140189261900160 NOTICE: m_displayName : HDA Intel
10:07:58 T:140189261900160 NOTICE: m_displayNameExtra: GSM LG TV on HDMI #0
10:07:58 T:140189261900160 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
10:07:58 T:140189261900160 NOTICE: m_channels : FL,FR,LFE,FC,BC,BL,BR,FLOC,FROC,BLOC,BROC,TFC,TC,TFL,TFR,UNKNOWN1
10:07:58 T:140189261900160 NOTICE: m_sampleRates : 32000,44100,48000
10:07:58 T:140189261900160 NOTICE: m_dataFormats : AE_FMT_RAW,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_RAW
10:07:58 T:140189261900160 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_CORE,STREAM



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

kodi@NUCUbuntu:/home/stef$ dpkg -l |grep mesa | pastebinit
http://paste.ubuntu.com/16260307/

kodi@NUCUbuntu:/home/stef$ DISPLAY=:0 vainfo | pastebinit
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 0.39.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_0_39
libva info: va_openDriver() returns 0
http://paste.ubuntu.com/16260308/

kodi@NUCUbuntu:/home/stef$ dmesg | pastebinit
http://paste.ubuntu.com/16260313/

kodi@NUCUbuntu:/home/stef$ id | pastebinit
http://paste.ubuntu.com/16260314/

kodi@NUCUbuntu:/home/stef$ amixer
http://paste.ubuntu.com/16260368/


thank you


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

All perfectly fine.

Edit: If you have a denon / pioneer AVR, set Audio Settings to fixed and 48 khz


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

I have none of those.

My NUC HDMI is connected directly to my LG TV
Using Optical cable from NUC to my Samsung sound bar. HW-H551

Movies and everything else sounds are ok on kodi but not chrome.

I am checking my sound bar options now


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

Yeah - this howto is about kodi an has absolutely nothing to do with chrome ... for chrome use a basic .asoundrc in your home, e.g. /home/kodi/.asoundrc that matches your setup.
Code:
pcm.!default {
  type plug
  slave {
    pcm "hw:1,0" #fix this to match your optical out
    rate 48000
  }



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

that's exactly my problem, I do not know how to find my setup config
Code:
aplay -l
aplay: device_list:268: no soundcards found...