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 - TimoJ - 2018-09-01

(2018-08-09, 11:08)Dr.Feelgood Wrote: Hi,
as i had some problems with LE i wanted to go back to Ubuntu Server version.
I downloaded the latest ubuntu-18.04.1 server iso and this one seems to lack some repositories.
Do i need to download another is or could you point me in right direction to get the repositories for below packages?
 Did you install "ubuntu-18.04.1-live-server-amd64.iso" version or the one with older (alternate) installation method?
I first tried to install that version, since that is the one that Ubuntu now has set as a default download. But it had weird problems with disk partitioning and installation failed at the beginning. I then downloaded "alternate" version (without the "live" word) and had no problems and it also installed all components without any modifications to the repositories list. I downloaded it from here: http://cdimage.ubuntu.com/releases/18.04.1/release/


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - PKOneTwo - 2018-09-19

@fritsch :

read a lot of this thread and also some of OE forum posts as well as some LE forum posts:
my Graphic: Intel Ivy Bridge GPU.
My TV: LG 42LN5758 (seems to be capable of both Limited and Full RGB Input)
xrandr  --verbose says: Full

my xorg-i915.conf (from etc/X11):
Quote:Section "Device"
  Identifier "Device0"
  Driver "intel"
  VendorName "INTEL Corporation"
  Option "TripleBuffer" "false"
  Option "TearFree" "false"
EndSection

my xorg.conf (from config):
Quote:Section "Device"
  Identifier  "Device0"
  Driver      "intel"
  VendorName  "INTEL Corporation"
  Option "DRI" "3"
EndSection

So am i right to assume, that
  1. i put (probably best) TV in Limited Colour Mode + put Kodi in Limited Mode + Dithering off?
  2. i select number of buffers = 2 (double buffering)?
  3. DRI 3 should be set?
  4. What about "AccelMethod" Option? leave that or put it to SNA/UXA?
  5. What does the "Composite" option do? (https://openelec.tv/documentation/configuration/configuring-a-custom-xorg-conf#intel-graphics)

I hope you can help me out :-)


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

Only three combinations make sense:

1.) TV Limited Range -> Xrandr Full Range -> Kodi Use Limited <- what this howto suggests
2.) TV Full -> Xrandr Full -> Kodi DON'T use Limited + Dithering Enabled <- alternative if you look at pictures very often
(3.) TV Limited -> Xrandr "Limited 16:235" -> Kodi DON'T use Limited) <- in brackets, cause here we scale up and the driver scales down

Buffering:
- If TripleBuffer is disable, you choose 2 Buffers
- If TripleBuffer is enabled, you choose 3 Buffers

DRI3 is suggested as it cleans up a lot of legacy DRI code. You can see the effect in kodi GUI. With DRI3 it's measurable more fluent.

AccelMethod with the intel driver should be SNA by default in the meantime.

Composite documentation: ftp://www.x.org/pub/X11R7.7-RC1/doc/man/man5/xorg.conf.5.xhtml keep it disabled

LE make most of above things automatic for you (your TV obviously not).


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - PKOneTwo - 2018-09-19


  1. Triple vs Double Buffering: suggested is double (in Kodi), am i right? (Picture Quality Wise)
  2. "TearFree" should be also disbaled (false)?
Would look like this:
Quote:Section "Device"
  Identifier  "Device0"
  Driver      "intel"
  VendorName  "INTEL Corporation"
  Option "AccelMethod" "sna"
  Option "TripleBuffer" "false"
  Option "TearFree" "false"
  Option "DRI" "3"
EndSection
Section "Extensions"
  Option "Composite" "Disable"
EndSection



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

1) Yes
2) This answers your tearfree question Tongue


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - PKOneTwo - 2018-09-19

Although they say (https://wiki.archlinux.org/index.php/intel_graphics) to use TearFree  when sna Acclemeration is on.
And Another says disabled (https://forum.ubuntuusers.de/topic/tearing-bei-intel-bzw-tearfree-in-die-xorg-con/).
As far as i understand the second link: Tearfree is not Vsync but works well with double buffering.
Why was ist disabled in Kodi?
I'm looking to find the configuration (for getting most our of my hardware; talking about video quality).

I don't think it has anything to do with the VAAPI, but i mention it anyway:
the "Adjust Display Resfresh-Rate" is broken (at least on newest LE Milhouse Build, Mesa 18.2.0)


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

Tearfree: won't work with only DoubleBuffers. So enabling it will enable TripleBuffers therefore -> not the best for kodi.

What they are writing does not matter in regard to kodi. For the desktop turn everything on you find :-) (Edit: Especially if you need to workaround a broken compositor)

It's not broken. You just have to add resolutions to the Whitelist (a new v18 feature).


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - PKOneTwo - 2018-09-20

Thank you. Didn't see that at first


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - tutu - 2018-09-29

The download link on the first post is no longer working - is this correct?

http://releases.ubuntu.com/18.04.1/ubuntu-18.04.1-live-server-amd64.iso


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Klojum - 2018-09-29

(2018-09-29, 13:16)tutu Wrote: The download link on the first post is no longer working - is this correct?
It's working here, starting a download.


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - tutu - 2018-09-29

It's now cosmic-server. Has anyone tried a build with this?

Should I use current?

http://cdimage.ubuntu.com/ubuntu-server/bionic/daily/current/bionic-server-amd64.iso

OR:

http://cdimage.ubuntu.com/releases/18.04.1/release/ubuntu-18.04.1-server-amd64.iso

This is the link in the first post:

http://cdimage.ubuntu.com/ubuntu-server/daily/current/bionic-server-amd64.iso
Quote:Not Found
The requested URL /ubuntu-server/daily/current/bionic-server-amd64.iso was not found on this server.



RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-09-29

http://cdimage.ubuntu.com/releases/18.04.1/release/ubuntu-18.04.1-server-amd64.iso <- yes, that one, please - will change it.

I did not test cosmic at all yet, so you would be on your own :-)


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - tutu - 2018-09-29

(2018-09-29, 15:03)fritsch Wrote: http://cdimage.ubuntu.com/releases/18.04.1/release/ubuntu-18.04.1-server-amd64.iso <- yes, that one, please - will change it.

I did not test cosmic at all yet, so you would be on your own :-)
 Worked for me, up and running with my NUC again thanks  Blush


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-09-29

You have it running on cosmic?

Could you give me the logfiles from first post? (just curious which stack they ship) Please!


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - tutu - 2018-09-29

(2018-09-29, 16:48)fritsch Wrote: You have it running on cosmic?

Could you give me the logfiles from first post? (just curious which stack they ship) Please!
 Sorry no running 18.04!