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) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
|
RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Rumpelstiltskin - 2020-03-08 Guys, I would like to update this post because like me maybe he has the latest NUC model and he's gone crazy. So I've solved it using a couple of "tricks" that I don't like but that work I hope that the user (and that I thank him again with all my heart for his infinite patience and goodness) @fritsch does not want to shoot me and that if maybe I'm saying crap to correct me and I try to summarise the steps I have taken (I hope to remember them in the correct order): Installation -1.) Hardware and software : - NUC10i7FNH - OS Ubuntu Server 19.10 - Kernel : 5.5.8-050508-generic 0.) Basic Installation and script tuning Quote:sudo apt-get install ssh software-properties-common xorg xserver-xorg-legacy alsa-utils mesa-utils git-core librtmp1 libmad0 lm-sensors libmpeg2-4 avahi-daemon libnfs12 libva2 vainfo intel-media-va-driver-non-free linux-firmware dbus-x11 udisks2 openbox pastebinit udisks2 xserver-xorg-video-intel xserver-xorg-video-intel This is really very important for my system otherwise the hardware acceleration doesn't work. sudo sh -c "echo 'LIBVA_DRIVER_NAME=iHD' >> /etc/environment" sudo chmod -R 777 /dev/dri sudo chmod -R 777 /dev/dri/* sudo nano etc/modprobe.d/i915.conf Quote:options i915 enable_guc=2 enable_psr=0 sudo apt remove gdm3 sudo apt remove pulseaudio Allow "everyone" to start the Xserver Quote:sudo dpkg-reconfigure xserver-xorg-legacy ->everyone cat /etc/X11/xorg.conf.d/20intel.conf Quote:Section "Device" sudo adduser kodi sudo usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,disk kodi sudo nano /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla Quote:[Actions for kodi user] sudo nano /etc/systemd/system/kodi.service Quote:[Unit] sudo nano /etc/security/limits.conf Quote:kodi - nice -1 1.) Now we install the kodi in nightly version: Quote:sudo add-apt-repository ppa:team-xbmc/xbmc-nightlyAs we use openbox as our display manager, we need to auto start kodi, therefore create: Quote:sudo mkdir -p /home/kodi/.config/openbox cat /home/kodi/.config/openbox/autostart Quote:OUTPUT=`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'` And in my system I also had to update the graphics drivers Quote:sudo add-apt-repository ppa:oibaf/graphics-drivers @fritsch if I said nonsense or if the installation history is not correct, feel free to intervene and fix thank you all inxi : Quote:System: Host: kodi Kernel: 5.5.8-050508-generic x86_64 bits: 64 compiler: gcc v: 9.2.1 Console: tty 0 dpkg -l |grep mesa | pastebinit DISPLAY=:0 vainfo | pastebinit Note that I had to make a direcotry and copy this file "iHD_drv_video.so" into it... cat ~/.kodi/temp/kodi.log | pastebinit dmesg | pastebinit id | pastebinit amixer | pastebinit cat /var/log/Xorg.0.log | pastebinit RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - teriyaki - 2020-03-15 (2020-03-08, 12:22)Rumpelstiltskin Wrote: This is really very important for my system otherwise the hardware acceleration doesn't work.Instead of altering the permissions you should just add your user to the "render" group. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2020-03-15 video group should be enough, render should only be there for the D128 device which kodi does not need. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - teriyaki - 2020-03-15 (2020-03-15, 17:53)fritsch Wrote: video group should be enough, render should only be there for the D128 device which kodi does not need. VAAPI was failing to initialize in Kodi with just the video group. Altering the permissions to 777 like he's doing, or adding the user to the "render" group fixes it. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2020-03-15 Highly wondering, as it looks like this: Quote:drwxr-xr-x 2 root root 80 Mär 11 22:15 by-path kodi does not need the renderD128 device. Might be that for iHD is it needed: Quote:media_driver/linux/common/ddi/media_libva_util.h:#define DEVICE_NAME "/dev/dri/renderD128" Yes, that's the case. adding the user to render group therefore is the right thing to do RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Rumpelstiltskin - 2020-03-16 @teriyaki @fritsch Thanks, guys, in fact I've been kicking ass in the rendering group and it's all working fine without having to do the permit trick... Sorry, I'll take advantage of it: I have problems with the EAC3 audio, basically while I watch the movie the audio is skipping every now and then. What could it be? I'll leave you the logs. kodi.log Xorg.0.log RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - raptorq - 2020-05-25 Hey @fritsch Hi man, just reinstalled my Linux HTPC Box a few days ago, but actually have been wondering for a while about my black/grey levels in video content. Your tutorial basically works just fine for me. But I always had the impression, that video played from my HTPC (through a Denon AVC 8500h to a LG 65B6D, Denon is NOT doing any Video processing, just passthrough) seemed darker compared to content from my sattelite receiver, fire tv (both also through Denon AVR) or direct playback on the LG Oled using apps there (e.g. Prime Video, Netflix). Now I took the time, reading through the Wiki and found the page about Video levels & Color Spaces: https://kodi.wiki/view/Video_levels_and_color_space#Summary_of_Results After testing with the recommended AVSHD709 patterns, especially the Basic Tests Black Clipping Test Pattern. My settings brightness/black level Settings on the TV are very good. I can see the bars 17+ flashing. With Kodi, and your recommended setup, I can just see the last 3 or so Bars in that test. So it seems way too dark, thus loosing detail in dark scenes. Again, back to the Kodi Wiki ... in the result summary, I see that with your recommendation, you'd need the Display (in my Case OLED TV) also set to FULL Color Space: Full, Full, Full -- Video Level CORRECT : WtW & BtW Clipped, Single scaling But I am not sure I'd want that, since other sources also hit the TV through the same HDMI Uplink from my AVR, as mentioned, sattelite receiver etc. Wouldn't it be easier to recommend and use this configuration from the Wiki: Limited, Full, Limited -- Video Level CORRECT : WtW & BtB preserved, Zero scaling Which seems to be better anyway, since there is no scaling involved. I went ahead and set Kodi back to "Use limited color space" to match the latter configuration recommendation from the Wiki and Voila, I got the same black levels in the Pattern Test as with my other sources mentioned above. Pattern test is showing the desired black level details from Bar 17 upwards. Just curious, was your setup focused on PC Monitors which normally offer Full color space? What would be the reason to use that for TVs anyway, since from what I understand, also from the Wiki, most or all Video content offers Limited Color Space information anyways .... Thanks, raptor RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - tutu - 2020-07-22 Anybody else have this issue on upgrading from 19.10 to 20.04? using kodi stable and a solution please? Quote:The following packages have unmet dependencies. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - keoma - 2020-07-26 A little bit of topic, feel free to delete if too much so. I've always used this guide to setup my kodi-boxes. Bought a NUC (Gemini Lake) a year ago and it's been working great. Recently started labbing a bit with emulators and such and wanted to try vulkan. But I can't get it to work on my kodi-box. vulkaninfo gives an error instead of posting results. Works fine on my laptop which is using vanilla ubuntu desktop. I saw that this configuration casues xorg to be launched as root instead of user. And sudo vulkaninfo works.. Can anyone else using this configuration run vulkaninfo? RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Wintermute0110 - 2020-07-27 (2020-07-26, 23:44)keoma Wrote: A little bit of topic, feel free to delete if too much so. I've always used this guide to setup my kodi-boxes. Bought a NUC (Gemini Lake) a year ago and it's been working great. Recently started labbing a bit with emulators and such and wanted to try vulkan. But I can't get it to work on my kodi-box. vulkaninfo gives an error instead of posting results. Works fine on my laptop which is using vanilla ubuntu desktop. I saw that this configuration casues xorg to be launched as root instead of user. And sudo vulkaninfo works.. Can anyone else using this configuration run vulkaninfo? Here you have a upgraded version of the guide which targets Intel NUC and covers emulation. vulkan works OK with the installation steps in the guide and Ubuntu Focal Fossa. My guide is still WIP so any comment you may have please write in the thread I linked. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - NoH0w - 2020-10-01 Hi everybody... I hope some of you could throw some light to an issue that I have with kodi latest stable running over Ubuntu 20.04 (Celeron J1800 Baytrail). HW acceleration was working previously with Ubuntu 16.04 following the original guide of this thread, but after doing a dist upgrade to 20.04 and re-checking all the steps in this new version of the procedure, I'm unable to make it work again, running ffmpeg in SW mode inside kodi. Curiously Jellyfin VAAPI acceleration works properly in this same machine. I attached my logs here in case someone knows what could be happening: Thank you in advance dpkg -l |grep mesa | pastebinit https://paste.ubuntu.com/p/m2jC3YbJtT/ DISPLAY=:0 vainfo | pastebinit https://paste.ubuntu.com/p/ykTWnhCKpd/ cat ~/.kodi/temp/kodi.log | pastebinit https://paste.ubuntu.com/p/5vyZgcVsxv/ dmesg | pastebinit https://paste.ubuntu.com/p/dzNvWzqtCZ/ id | pastebinit https://paste.ubuntu.com/p/3fqTSGmXRx/ amixer | pastebinit https://paste.ubuntu.com/p/QQH9VNW6hm/ cat /var/log/Xorg.0.log | pastebinit https://paste.ubuntu.com/p/g3mrYPq84Y/ RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2020-10-01 dpkg -l |grep kodi please - from the log you have a nice mixture between ubuntu and kodi ppa. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - NoH0w - 2020-10-25 (2020-10-01, 19:15)fritsch Wrote: dpkg -l |grep kodi Apologize me for not answering, didn't see your replay before. Effectivily you were right, kodi packages installed were tied to ubuntu Xenial version and not upgraded to Focal during the process. Once done, VAAPI is now working properly!. Thank you very much for yor support Fritsch!!. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - ezechiel1917 - 2020-12-25 Hello, using this guide with old VGA (1920x1080) I had console login screen (tty) displayed on monitor after stopping Kodi (sudo systemctl stop kodi). with new VGA (3840x2160) i have no singal on monitor when exiting Kodi. I can't display tty unless Kodi is running any help appreciated. edit: looks like a bug with newer vga drivers (same behaviour for old VGA) RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Glandos - 2021-04-08 Hi everyone, Just to mark a short notice that, starting with Kodi 19 Matrix, I tried to modify the systemd unit using:
This was a great success. A little faster startup, no more sound hiccup on screen off (due to xrandr?), and a little bit faster decoding. If I understood correctly, GBM is a technique to use the display driver directly, without any X11 or Wayland. The main drawback is that… only Kodi can run, no other graphical application, even launched within Kodi. |