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 - anthonytex - 2017-11-02

(2017-11-02, 19:12)fritsch Wrote:
(2017-11-02, 13:22)anthonytex Wrote: Good morning,
i would like to ask what's the best ( quality speaking) deinterlacing method available on ivy bridge and kaby lake Smile
thanks everyone and devs for your hard work Smile

Kaby Lake: VAAPI-MCDI
IVB: VAAPI-MADI
Thanks a lot! SmileSmile


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

I've just installed kodi 17.5 on Ubuntu server (with the apollo lake Intel 4core  celeron processor J3455).
It works but I observe huge CPU usage of kodi process during video playback (about 30-40% 1080p) and 10% when Kodi is idle.
I use setting from first post.
I have some different (as described in the firs post) deinterlace options:
Off, Deinterlace, BOB, VAAPI Motion compensated, VAAPI Motion adopt, VAAPI BOB.
How can I do to relieve the CPU?
Regards,


mesa
http://paste.ubuntu.com/25886880/
DISPLAY=:0 vainfo
http://paste.ubuntu.com/25886881/

cat ~/.kodi/temp/kodi.log
http://paste.ubuntu.com/25886882/
dmesg
http://paste.ubuntu.com/25886883/
id
http://paste.ubuntu.com/25886884/
amixer
http://paste.ubuntu.com/25886885/


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

Sadly not a Debug Log - I cannot find anything in there.

Btw. for me: 25% when watching 1080i50 content with VAAPI-MCDI.
Idle: 5% to 10% when idleing.

Here comes the important part (IDLE):
Quote:fritsch@j4250:/sys/devices/system/cpu$ cat cpufreq/policy*/scaling_cur_freq
799215
799189
799248
799215

It runs on the very lowest frequency. Therefore the "percentage" is not worth much without checking the clocks.


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

(2017-11-04, 17:20)fritsch Wrote: Sadly not a Debug Log - I cannot find anything in there.
Sorry I didn't see that the path to the log was different.
Please see:
http://paste.ubuntu.com/25887510/

Quote:It runs on the very lowest frequency. Therefore the "percentage" is not worth much without checking the clocks.

but 10-15% CPU usage when iddle isn't strange?


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

(2017-11-04, 18:09)bernid Wrote:
(2017-11-04, 17:20)fritsch Wrote: Sadly not a Debug Log - I cannot find anything in there.
Sorry I didn't see that the path to the log was different.
Please see:
http://paste.ubuntu.com/25887510/

Quote:It runs on the very lowest frequency. Therefore the "percentage" is not worth much without checking the clocks.

but 10-15% CPU usage when iddle isn't strange?

Nope. Nothing to be afraid of. If you have too much time, check this: https://www.kdab.com/hotspot-gui-linux-perf-profiler/ and report back


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

Quick question: should i still use the ppa:wsnipex/xbmc-fernetmenta-master ppa or is it these days better to stick with the official team-xbmc ppa ? Smile


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

(2017-11-04, 18:29)fritsch Wrote: Nope. Nothing to be afraid of. If you have too much time, check this: https://www.kdab.com/hotspot-gui-linux-perf-profiler/ and report back

Thanks.
I'm considering using one machine for home Media Center (Kodi) and the same machine for home router/firewall/file server and other  services.
Kodi would be installed on Ubuntu server and other features would be installed on virtual machine runing on host-Ubuntu.
I'am afraid that Kodi's relatively high CPU usage could be an issue when VM will demand more CPU power....


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

(2017-11-04, 21:46)Ectholian Wrote: Quick question: should i still use the ppa:wsnipex/xbmc-fernetmenta-master ppa or is it these days better to stick with the official team-xbmc ppa ? Smile

I haven't updated that for a long time. Everything you need is in the nightly ppa. Or the stable one if you want v17.5


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

Thank you, it seemed like that but wasn't sure. Appreciate it.


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

Ugh.... I was messing around trying to see if a distro upgrade would fix my live tv video stuttering. I had been previously using the nightlies builds on 16.04 with good success. I upgraded to 17.10 (do-release-upgrade)

My system is a J4205, 8gb ram, ssd, some hdd's. Nothing fancy. No Kodi log since it does not appear to be starting. My TV is a 4k Hisense 55H7B (kind of curious about the best settings for my tv). My dockers seem to be running fine. 

REVERTING THIS SEEMS TO HAVE FIXED MY ISSUE: I have previously setup "Want to boot with AVR / TV powered off? Have a look here: https://forum.kodi.tv/showthread.php?tid=231955&pid=2148505#pid2148505" to try troubleshooting a issue if I let the power settings put my TV to sleep where it would never wake back up without a reboot (didn't work - GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=DP-2:1920x1080@60D drm_kms_helper.edid_firmware=DP-2:edid/edid.bin" is the grub line). 

I went through the initial setup and verified everything. The one issue I ran into is the "apt install kodi kodi-bin" line. Now it wants to install kodi and kodi-x11 and will not let kodi-bin be installed due to a conflict. Is this a wayland thing? Either way here are my logs (sans kodi and amixer):

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

DISPLAY=:0 vainfo | pastebinit
error: can't connect to X server!
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gn
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
http://paste.ubuntu.com/25912673/

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

id | pastebinit
http://paste.ubuntu.com/25912677/

amixer | pastebinit
amixer: Mixer attach default error: Invalid argument
You are trying to send an empty document, exiting.


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

I was wondering if there are any useful or exiting new features or fixes in libva-intel-driver 2.0.0 that was released recently. It just made it to the stable repositories over at Arch Linux Smile, so I am able to update it conveniently. Now I know it's a different distro but some of the instructions in the OP were useful to get Kodi running and outputting perfectly on my machine (running Manjaro on a J4205) as well. So I believe this thread is also relevant for other Linux distros running Kodi with Intel hardware acceleration.


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

(2017-11-11, 16:50)jant90 Wrote: I was wondering if there are any useful or exiting new features or fixes in libva-intel-driver 2.0.0 that was released recently. It just made it to the stable repositories over at Arch Linux Smile, so I am able to update it conveniently. Now I know it's a different distro but some of the instructions in the OP were useful to get Kodi running and outputting perfectly on my machine (running Manjaro on a J4205) as well. So I believe this thread is also relevant for other Linux distros running Kodi with Intel hardware acceleration.

No :-) - Nothing we need at all. 2.1 will be useful as then we also can provide VAAPI for AMD.


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

Hi,
I've just installed newest ubuntu server+Kodi on upsquared board. Unfortunately starting kodi ends with the crash.
I use HDMI video output (DP is not used). What should I check?
Code:
############## Kodi CRASH LOG ###############

################ SYSTEM INFO ################
 Date: Wed Nov 22 15:15:53 CET 2017
 Kodi Options:
 Arch: x86_64
 Kernel: Linux 4.13.0-17-generic #20-Ubuntu SMP Mon Nov 6 10:04:08 UTC 2017
 Release: Ubuntu 17.10 (Artful Aardvark)
############## END SYSTEM INFO ##############

############### STACK TRACE #################
gdb not installed, can't get stack trace.
############# END STACK TRACE ###############

################# LOG FILE ##################

15:15:17.301 T:140416655989120  NOTICE: special://profile/ is mapped to: special://masterprofile/
15:15:17.301 T:140416655989120  NOTICE: -----------------------------------------------------------------------
15:15:17.301 T:140416655989120  NOTICE: Starting Kodi (17.6 Git:20121104-a9a7a20). Platform: Linux x86 64-bit
15:15:17.301 T:140416655989120  NOTICE: Using Release Kodi x64 build
15:15:17.301 T:140416655989120  NOTICE: Kodi compiled Nov  4 2012 by GCC 7.2.0 for Linux x86 64-bit version 4.13.4 (265476)
15:15:17.301 T:140416655989120  NOTICE: Running on Ubuntu 17.10, kernel: Linux x86 64-bit version 4.13.0-17-generic
15:15:17.302 T:140416655989120  NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
15:15:17.302 T:140416655989120  NOTICE: Host CPU: Intel® Celeron® CPU N3350 @ 1.10GHz, 2 cores available
15:15:17.302 T:140416655989120  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
15:15:17.302 T:140416655989120  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/x86_64-linux-gnu/kodi
15:15:17.302 T:140416655989120  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/x86_64-linux-gnu/kodi/addons
15:15:17.302 T:140416655989120  NOTICE: special://masterprofile/ is mapped to: /home/kodi/.kodi/userdata
15:15:17.302 T:140416655989120  NOTICE: special://envhome/ is mapped to: /home/kodi
15:15:17.302 T:140416655989120  NOTICE: special://home/ is mapped to: /home/kodi/.kodi
15:15:17.302 T:140416655989120  NOTICE: special://temp/ is mapped to: /home/kodi/.kodi/temp
15:15:17.302 T:140416655989120  NOTICE: special://logpath/ is mapped to: /home/kodi/.kodi/temp
15:15:17.302 T:140416655989120  NOTICE: The executable running is: /usr/lib/x86_64-linux-gnu/kodi/kodi.bin
15:15:17.302 T:140416655989120  NOTICE: Local hostname: htpc
15:15:17.302 T:140416655989120  NOTICE: Log File is located: /home/kodi/.kodi/temp//kodi.log
15:15:17.302 T:140416655989120  NOTICE: -----------------------------------------------------------------------
15:15:17.315 T:140416655989120   ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
15:15:17.369 T:140416655989120  NOTICE: load settings...
15:15:17.391 T:140416655989120   ERROR: PulseAudio: Failed to connect context
15:15:17.391 T:140416655989120  NOTICE: PulseAudio might not be running. Context was not created.
15:15:17.424 T:140416655989120  NOTICE: Found 1 Lists of Devices
15:15:17.424 T:140416655989120  NOTICE: Enumerated ALSA devices:
15:15:17.424 T:140416655989120  NOTICE:     Device 1
15:15:17.424 T:140416655989120  NOTICE:         m_deviceName      : hdmi:CARD=PCH,DEV=0
15:15:17.424 T:140416655989120  NOTICE:         m_displayName     : HDA Intel PCH
15:15:17.424 T:140416655989120  NOTICE:         m_displayNameExtra: HDMI #0
15:15:17.424 T:140416655989120  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
15:15:17.424 T:140416655989120  NOTICE:         m_channels        : FL,FR
15:15:17.424 T:140416655989120  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
15:15:17.424 T:140416655989120  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_RAW
15:15:17.424 T:140416655989120  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD
15:15:17.424 T:140416655989120  NOTICE:     Device 2
15:15:17.424 T:140416655989120  NOTICE:         m_deviceName      : hdmi:CARD=PCH,DEV=1
15:15:17.424 T:140416655989120  NOTICE:         m_displayName     : HDA Intel PCH
15:15:17.424 T:140416655989120  NOTICE:         m_displayNameExtra: HDMI #1
15:15:17.424 T:140416655989120  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
15:15:17.424 T:140416655989120  NOTICE:         m_channels        : FL,FR
15:15:17.424 T:140416655989120  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
15:15:17.424 T:140416655989120  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_RAW
15:15:17.424 T:140416655989120  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD
15:15:17.424 T:140416655989120  NOTICE:     Device 3
15:15:17.425 T:140416655989120  NOTICE:         m_deviceName      : hdmi:CARD=PCH,DEV=2
15:15:17.425 T:140416655989120  NOTICE:         m_displayName     : HDA Intel PCH
15:15:17.425 T:140416655989120  NOTICE:         m_displayNameExtra: HDMI #2
15:15:17.425 T:140416655989120  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
15:15:17.425 T:140416655989120  NOTICE:         m_channels        : FL,FR
15:15:17.425 T:140416655989120  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
15:15:17.425 T:140416655989120  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_RAW
15:15:17.425 T:140416655989120  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD
15:15:17.425 T:140416655989120  NOTICE:     Device 4
15:15:17.425 T:140416655989120  NOTICE:         m_deviceName      : hdmi:CARD=PCH,DEV=3
15:15:17.425 T:140416655989120  NOTICE:         m_displayName     : HDA Intel PCH
15:15:17.425 T:140416655989120  NOTICE:         m_displayNameExtra: HDMI #3
15:15:17.425 T:140416655989120  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
15:15:17.425 T:140416655989120  NOTICE:         m_channels        : FL,FR
15:15:17.425 T:140416655989120  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
15:15:17.425 T:140416655989120  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_RAW
15:15:17.425 T:140416655989120  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD
15:15:17.425 T:140416655989120  NOTICE:     Device 5
15:15:17.425 T:140416655989120  NOTICE:         m_deviceName      : hdmi:CARD=PCH,DEV=4
15:15:17.425 T:140416655989120  NOTICE:         m_displayName     : HDA Intel PCH
15:15:17.425 T:140416655989120  NOTICE:         m_displayNameExtra: HDMI #4
15:15:17.425 T:140416655989120  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
15:15:17.425 T:140416655989120  NOTICE:         m_channels        : FL,FR
15:15:17.425 T:140416655989120  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
15:15:17.425 T:140416655989120  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_RAW
15:15:17.425 T:140416655989120  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD
15:15:17.428 T:140416655989120   ERROR: CSettings: unable to load settings from special://masterprofile/guisettings.xml, creating new default settings
15:15:17.433 T:140416655989120  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
15:15:17.433 T:140416655989120  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
15:15:17.433 T:140416655989120  NOTICE: Default Video Player: VideoPlayer
15:15:17.433 T:140416655989120  NOTICE: Default Audio Player: paplayer
15:15:17.433 T:140416655989120  NOTICE: Disabled debug logging due to GUI setting. Level 0.
15:15:17.433 T:140416655989120  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
15:15:17.433 T:140416655989120  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
15:15:17.434 T:140416655989120  NOTICE: Loaded playercorefactory configuration
15:15:17.434 T:140416655989120  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
15:15:17.434 T:140416655989120  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
15:15:17.539 T:140416655989120  NOTICE: ADDONS: Using repository repository.xbmc.org
15:15:17.566 T:140416119142144 WARNING: ActiveAE::Configure - sink returned large buffer of 249 ms, reducing to 100 ms
15:15:17.585 T:140416655989120   ERROR: X11 Error: No Display found
15:15:17.585 T:140416655989120   FATAL: CApplication::Create: Unable to init windowing system


############### END LOG FILE ################

############ END Kodi CRASH LOG #############



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

(2017-11-22, 16:58)bernid Wrote: Hi,
I've just installed newest ubuntu server+Kodi on upsquared board. Unfortunately starting kodi ends with the crash.
I use HDMI video output (DP is not used). What should I check?
Code:
15:15:17.585 T:140416655989120   ERROR: X11 Error: No Display found
15:15:17.585 T:140416655989120   FATAL: CApplication::Create: Unable to init windowing system
 X isn't started when you're launching kodi. You need to start X first. I believe X isn't installed by default on Ubuntu Server, so you might need to install it.


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

Hi Guys, just need your input, my current intel GPU  can't decode HEVC, 10bit, hence I wish to change to one that can, I found this one on ebay, see link below,  before go ahead and make purchase, I thought I run the idea by you expert if it worth the efforts, appreciate any input.
Thanks 


https://www.ebay.ca/itm/Intel-I5-7500-ES-2-7GHz-3-3GHz-6MB-4Core-65W-A0-Socket-LGA1151-QKYM-Processor/352040150615?_trkparms=aid%3D222007%26algo%3DSIM.MBE%26ao%3D2%26asc%3D20170831090034%26meid%3D1adce394899f4f61a78d3f832c2943bf%26pid%3D100005%26rk%3D2%26rkt%3D6%26mehot%3Dag%26sd%3D302543304405&_trksid=p2047675.c100005.m2219