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 v18 nightly based on Ubuntu 18.04 server - Rumpelstiltskin - 2018-07-22

Edit, it works ! :
Quote:[Unit]
Description = kodi-standalone using xinit
Requires = dbus.service
After = systemd-user-sessions.service network.target sound.target network-online.target

[Service]
User = kodi
Group = kodi
Type = simple
PAMName=login
ExecStart = /usr/bin/kodi-standalone
Restart = on-abort

[Install]
WantedBy = multi-user.target


Image


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-22

GBM or is your bug fixed?


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - Rumpelstiltskin - 2018-07-22

(2018-07-22, 10:41)fritsch Wrote: GBM or is your bug fixed?
 GBM works well (only washed black.. will investigate) !!! Smile

To test the bug I have to do a little reboot and see if keep a distance of hours without signal lost


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-22

(2018-07-22, 10:43)Rumpelstiltskin Wrote:
(2018-07-22, 10:41)fritsch Wrote: GBM or is your bug fixed?
 GBM works well (only washed black.. will investigate) !!! Smile

To test the bug I have to do a little reboot and see if keep a distance of hours without signal lost 
For washed out black, you need to force it to full range, which we did with xrandr before, therefore you need the proptest utility, give me the output of this one: https://www.dropbox.com/s/4kk1r9of4okqz8m/proptest?dl=0 (download it, chmod +x it and run it)


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - Rumpelstiltskin - 2018-07-22

$ sudo ./proptest
Quote:trying to open device 'i915'...done
Connector 101 (HDMI-A-1)
1 EDID:
flags: immutable blob
blobs:

value:
00ffffffffffff0011ee540001010101
001b0103807944780a23ada4544d9926
0f474abdef80714f81c0810081809500
a9c0b300010108e80030f2705a80b058
8a00501d7400001e023a801871382d40
582c4500501d7400001e000000fc0044
454e4f4e2d4156520a202020000000fd
00184b0f873c000a202020202020016f
020367f05b61101f041305142021225d
5e5f606566626364071603120f241e26
350f7f073d1ec01507505f7e03570603
677e035f7e01835f00006e030c001500
b83c2000800102030467d85dc4017880
03e30f01e0e3060501e305c301e2000f
e61146d000f001011d80d0721c162010
2c2580501d7400009e0000000000005b
2 DPMS:
flags: enum
enums: On=0 Standby=1 Suspend=2 Off=3
value: 0
5 link-status:
flags: enum
enums: Good=0 Bad=1
value: 0
6 non-desktop:
flags: immutable range
values: 0 1
value: 0
102 audio:
flags: enum
enums: force-dvi=18446744073709551614 off=18446744073709551615 auto=0 on=1
value: 0
103 Broadcast RGB:
flags: enum
enums: Automatic=0 Full=1 Limited 16:235=2
value: 0
104 aspect ratio:
flags: enum
enums: Automatic=0 4:3=1 16:9=2
value: 0
105 content type:
flags: enum
enums: No Data=0 Graphics=1 Photo=2 Cinema=3 Game=4
value: 0
106 Content Protection:
flags: enum
enums: Undesired=0 Desired=1 Enabled=2
value: 0
Connector 108 (HDMI-A-2)
1 EDID:
flags: immutable blob
blobs:

value:
2 DPMS:
flags: enum
enums: On=0 Standby=1 Suspend=2 Off=3
value: 3
5 link-status:
flags: enum
enums: Good=0 Bad=1
value: 0
6 non-desktop:
flags: immutable range
values: 0 1
value: 0
102 audio:
flags: enum
enums: force-dvi=18446744073709551614 off=18446744073709551615 auto=0 on=1
value: 0
103 Broadcast RGB:
flags: enum
enums: Automatic=0 Full=1 Limited 16:235=2
value: 0
104 aspect ratio:
flags: enum
enums: Automatic=0 4:3=1 16:9=2
value: 0
105 content type:
flags: enum
enums: No Data=0 Graphics=1 Photo=2 Cinema=3 Game=4
value: 0
109 Content Protection:
flags: enum
enums: Undesired=0 Desired=1 Enabled=2
value: 0
CRTC 51
CRTC 75
CRTC 99



RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-22

Now copy the proptest binary to the directory /usr/local/bin/

Edit your systemd serivce to add before the ExecStar line:
Code:
ExecStartPre=/usr/local/bin/proptest -M i915 -D /dev/dri/card0 101 connector 103 1

sudo systemctl daemon reload
sudo reboot

kodi now needs to be set to "Use Limited Range" and your TV also to limited Range


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - FernetMenta - 2018-07-22

(2018-07-22, 10:43)Rumpelstiltskin Wrote:
(2018-07-22, 10:41)fritsch Wrote: GBM or is your bug fixed?
 GBM works well (only washed black.. will investigate) !!! Smile

To test the bug I have to do a little reboot and see if keep a distance of hours without signal lost 
You should be aware that gbm version with gles is far far behind the quality you get with x11 version.


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - Rumpelstiltskin - 2018-07-22

IT WORKS !

@dev You're always the best!


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-22

(2018-07-22, 11:01)Rumpelstiltskin Wrote: IT WORKS !

@dev You're always the best!
 There are some outstanding issues though:
- Image viewer is just black for me (fullscreen)
- HQScalers are implemented very inefficiently (GLES2 only)

It has one advantage over X11:
- When display goes off it switches the rendering to an offline rendering node, when display comes back it switches back to HDMI out (disadvantage: as of now you might loose audio)


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - Rumpelstiltskin - 2018-07-22

infact, i noticed that:

- Prime render method : Direct To Plane -> have all full audio (AC3-DTS etc)
                                   EGL -> only DTS audio available 

its right?


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - FernetMenta - 2018-07-22

(2018-07-22, 11:05)fritsch Wrote:
(2018-07-22, 11:01)Rumpelstiltskin Wrote: IT WORKS !

@dev You're always the best!
 There are some outstanding issues though:
- Image viewer is just black for me (fullscreen)
- HQScalers are implemented very inefficiently (GLES2 only)

It has one advantage over X11:
- When display goes off it switches the rendering to an offline rendering node, when display comes back it switches back to HDMI out (disadvantage: as of now you might loose audio) 
 There is much more: performance on sw decoder path, HDR, a/v sync, etc


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - Rumpelstiltskin - 2018-07-22

- HDR ? Smile


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-22

(2018-07-22, 11:09)Rumpelstiltskin Wrote: infact, i noticed that:

- Prime render method : Direct To Plane -> have all full audio (AC3-DTS etc)
                                   EGL -> only DTS audio available 

its right?
 That's not related but also off-topic here. Open an own thread for kodi gbm please.


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-22

(2018-07-22, 11:10)FernetMenta Wrote:
(2018-07-22, 11:05)fritsch Wrote:
(2018-07-22, 11:01)Rumpelstiltskin Wrote: IT WORKS !

@dev You're always the best!
 There are some outstanding issues though:
- Image viewer is just black for me (fullscreen)
- HQScalers are implemented very inefficiently (GLES2 only)

It has one advantage over X11:
- When display goes off it switches the rendering to an offline rendering node, when display comes back it switches back to HDMI out (disadvantage: as of now you might loose audio)   
 There is much more: performance on sw decoder path, HDR, a/v sync, etc  
 Ah yes! Tone-Mapping is too new so I forgot about it. That makes HDR videos really look ugly on GBM.


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - FernetMenta - 2018-07-22

(2018-07-22, 11:19)Rumpelstiltskin Wrote: - HDR ? Smile
 When displaying HDR content on non HDR displays you need tone mapping in order to get correct colours. Implemented for X11 (OpenGL) but not for gbm (gles)