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 - camelreef - 2017-12-14

Ah, nope! It just takes more time to start showing issues.

Test 2 I have not captured a debug log including data for the fail, thinking I was out of the woods! I'll do one later, once the TV becomes available again.

I will keep testing, xorg edgers PPA is next.


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

Enable drm.debug=0xe and see. Btw this gets now really off topic as it's proven to be an issue with the Ubuntu kernel.

Try with latest stock 4.13.x from Ubuntu mainline and compare. Then file a bug with the Ubuntu people. As 4.14 works upstream will have limited interest.


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

(2017-12-14, 08:39)fritsch Wrote: Enable drm.debug=0xe and see. Btw this gets now really off topic as it's proven to be an issue with the Ubuntu kernel.

Try with latest stock 4.13.x from Ubuntu mainline and compare. Then file a bug with the Ubuntu people. As 4.14 works upstream will have limited interest.
 Sorry, 4.14.5 mainline doesn't work either, I did a follow-up post about it. It just takes more time for the issue to show-up.
I'll post a debug log soon, the TV is busy right now.
Then I'll try xorg-edgers, see if a more recent libdrm and mesa helps in any way. My work is not done yet!


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

For audio issue I confirm that latest nightly works without AE_SINK workaround.

Thanks!
-- Stanislav


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

So, I'm exploring more.

Test 1 - LibreELEC Milhouse live nightly build
I did revisit the nightly Milhouse live stick, and really let it run for a good, good while, to see if anything developed after some time.
No issues, all good and spotless. Real nice!
Reference data:
Test 2 - Ubuntu install with mainline 4.14.5 kernel, vaapi and xorg edgers PPAs
Going all in! At least with what I know is available... The xorg edgers PPA brings more recent libdrm-intel, mesa-va-drivers, mesa...
Issues are there after about 30-40mn, still a long time later than any other test. I played it for longer without issues on a previous test, but I had no debug logging on, and I thought that all was good. Could debug logging interfere (that overlay on screen, maybe?). I'll retry that without debug going later, just to be sure.
Reference data:
Test 3 - Ubuntu install with stock Ubuntu kernel, vaapi and xorg edgers PPAs
While wondering if the kernel really brought anything and if upgrading mesa/libdrm could not be enough, and willing to use a kernel that I will not have to maintain more or less myself... I have downgraded the kernel from mainline 4.14.5 to stock Ubuntu 4.13.
Results are the same as test 2
Reference data:
Conclusions, so far

Without knowing the version used in the LibreELEC nightly, it's difficult to know the exact impact of mesa, mesa-drivers-va and libdrm.

Kernel impact appears to be null.

I really would like to know if there is a PPA for libva 2.0.0 anywhere, or if the current PPA could be brought up to that version. My gut feeling is that a jump from 1.8.3 to 2.0.0 is not something without impact. But... My guess is that Kodi (and all other dependencies in the distro) would have to be built targetting 2.x instead of 1.8, which I foresee as a blocker in an Ubuntu world.

Still on the agenda
I've just remembered a post asking me to enable drm.debug=0xe. I'll get to this and post as soon as I have figured out where/how that needs to happen!
I'll run another test 3 without debug logging, to check whether the overlay is cause for issues or not. Is this thing random, now?



I'm ready to go about any other test, suggestion, etc. that you may have!

Thanks again, everyone involved, for the time, effort, patience... It's fantastic that a numpty like me can have access to such support!


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

libva 2.0 has zero to do with your issue. Remember: Milhouse uses intel driver, not the modesetting driver. You have to use the xorg.conf I gave you for using it.


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

(2017-12-14, 20:40)fritsch Wrote: libva 2.0 has zero to do with your issue. Remember: Milhouse uses intel driver, not the modesetting driver. You have to use the xorg.conf I gave you for using it.
Understood for libva 2.0.
 Then I will try again the intel driver with your setting. I had tried it yesterday, I believe, with no positive results. But there are a few combos more to try with it. I'll report back!


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

Turn on hidden debug logging (see advancedsettings.xml) and whenever you see the artifacts press a key on the keyboard - choose one that does nothing. That way we can see if anything in kodi.log correlates with your issue.


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

(2017-12-14, 20:48)fritsch Wrote: Turn on hidden debug logging (see advancedsettings.xml) and whenever you see the artifacts press a key on the keyboard - choose one that does nothing. That way we can see if anything in kodi.log correlates with your issue.
 Will do


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

(2017-12-14, 20:44)camelreef Wrote:
(2017-12-14, 20:40)fritsch Wrote: libva 2.0 has zero to do with your issue. Remember: Milhouse uses intel driver, not the modesetting driver. You have to use the xorg.conf I gave you for using it.
Understood for libva 2.0.
 Then I will try again the intel driver with your setting. I had tried it yesterday, I believe, with no positive results. But there are a few combos more to try with it. I'll report back!   
Code:
Section "Device"
 Identifier  "Device0"
 Driver      "intel"
 Option      "DRI"  "3"
EndSection

That gives me instant artefacts (4.13 stock kernel, vaapi and xorg edgers PPAs).


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

(2017-12-14, 20:48)fritsch Wrote: Turn on hidden debug logging (see advancedsettings.xml) and whenever you see the artifacts press a key on the keyboard - choose one that does nothing. That way we can see if anything in kodi.log correlates with your issue.
 
Code:
<loglevel hide="false">1</loglevel>

That will do it? 1 being Debug logging (without showing text on screen)


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

I installed Kodi on my Asrock Beebox in 2016 using this How-To. Everything worked well until today, after I updated the packages using apt-get dist-upgrade and updated the Kernel (because of a bug that seemed to be fixed in a new kernel).
Now Kodi won't start anymore. I'm using Ubuntu 16.04.3 LTS (GNU/Linux 4.10.0-43-generic x86_64), Kodi version 18.0-ALPHA1 Git:20171104-a5436a4

Log files:
http://paste.ubuntu.com/26185437/
http://paste.ubuntu.com/26185438/
http://paste.ubuntu.com/26185439/
http://paste.ubuntu.com/26185440/
http://paste.ubuntu.com/26185442/
http://paste.ubuntu.com/26185475/

Can anybody see the issue here? Thank you in advance for any help!


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

(2017-12-15, 00:07)sibu Wrote: I installed Kodi on my Asrock Beebox in 2016 using this How-To. Everything worked well until today, after I updated the packages using apt-get dist-upgrade and updated the Kernel (because of a bug that seemed to be fixed in a new kernel).
Now Kodi won't start anymore. I'm using Ubuntu 16.04.3 LTS (GNU/Linux 4.10.0-43-generic x86_64), Kodi version 18.0-ALPHA1 Git:20171104-a5436a4

Log files:
http://paste.ubuntu.com/26185437/
http://paste.ubuntu.com/26185438/
http://paste.ubuntu.com/26185439/
http://paste.ubuntu.com/26185440/
http://paste.ubuntu.com/26185442/
http://paste.ubuntu.com/26185475/

Can anybody see the issue here? Thank you in advance for any help!
 
Quote:22:50:37.175 T:139950595938688 ERROR: CSettings: error loading settings definition from special://xbmc/system/settings/settings.xml, Line 0
Failed to open file
22:50:37.175 T:139950595938688 FATAL: Unable to load settings definitions
22:50:37.176 T:139950595938688 DEBUG: LogindUPowerSyscall - delay lock released

Is your /home directory not mounted properly? Some LVM magic that bites you / encrypted home?


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

(2017-12-14, 22:25)camelreef Wrote:
(2017-12-14, 20:44)camelreef Wrote:
(2017-12-14, 20:40)fritsch Wrote: libva 2.0 has zero to do with your issue. Remember: Milhouse uses intel driver, not the modesetting driver. You have to use the xorg.conf I gave you for using it.
Understood for libva 2.0.
 Then I will try again the intel driver with your setting. I had tried it yesterday, I believe, with no positive results. But there are a few combos more to try with it. I'll report back!    
Code:
Section "Device"
 Identifier  "Device0"
 Driver      "intel"
 Option      "DRI"  "3"
EndSection

That gives me instant artefacts (4.13 stock kernel, vaapi and xorg edgers PPAs). 
 AFAIK, libva does not support DRI3


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

That's not for libva - that's for general rendering. But funny - please remove only this line - same artefacts?