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 - fritsch - 2019-02-17 If you post the the mandatory logs (I can directly tell you what is missing). RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-17 Sorry, i will dig deeper tomorrow. Cant post all the logs due to several errors (probably this is an indication whats wrong I will try again tomorrow. kodi@kodipc:~$ dpkg -l |grep mesa | pastebinit http://paste.ubuntu.com/p/4GwxRBqPkB/ kodi@kodipc:~$ DISPLAY=:0 vainfo | pastebinit error: XDG_RUNTIME_DIR not set in the environment. libva info: VA-API version 1.1.0 libva info: va_getDriverName() returns -1 libva error: va_getDriverName() failed with unknown libva error,driver_name=(nul l) vaInitialize failed with error code -1 (unknown libva error),exit You are trying to send an empty document, exiting. kodi@kodipc:~$ cat ~/.kodi/temp/kodi.log | pastebinit http://paste.ubuntu.com/0/ kodi@kodipc:~$ dmesg | pastebinit http://paste.ubuntu.com/0/ kodi@kodipc:~$ id | pastebinit http://paste.ubuntu.com/p/j59zThgQrC/ kodi@kodipc:~$ amixer | pastebinit amixer: Mixer attach default error: No such file or directory You are trying to send an empty document, exiting. kodi@kodipc:~$ cat /var/log/Xorg.0.log | pastebinit http://paste.ubuntu.com/0/ kodi@kodipc:~$ if i run the command as the main user: nuc_server@kodipc:~$ dpkg -l |grep mesa | pastebinit http://paste.ubuntu.com/p/PvxKrF6R7X/ nuc_server@kodipc:~$ DISPLAY=:0 vainfo | pastebinit error: can't connect to X server! error: failed to initialize display You are trying to send an empty document, exiting. nuc_server@kodipc:~$ cat ~/.kodi/temp/kodi.log | pastebinit cat: /home/nuc_server/.kodi/temp/kodi.log: No such file or directory You are trying to send an empty document, exiting. nuc_server@kodipc:~$ dmesg | pastebinit http://paste.ubuntu.com/p/kcn5MJFZqr/ nuc_server@kodipc:~$ id | pastebinit http://paste.ubuntu.com/p/tz7gJw7hqf/ RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-02-18 I think you see the error yourself: http://paste.ubuntu.com/p/j59zThgQrC/ <- seems you have forgotten some commands of the original installation. This howto assumes to be "kodi" the user starting kodi. Therefore make sure you properly added its permissions. After that post the vainfo again, please. Remember: After changing user rights, you need to reboot (or log out all sessions, but reboot is safer). RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-18 Hi, thanks again for your time. Im not at home right now but i SSHed into the machine and redid the following line: sudo usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input kodi When i start KODI and watch the PC status in "htop" i see that the CPU's are all below 10% were before all the cores were very high (kodi is just idle) kodi@kodipc:~$ DISPLAY=:0 vainfo | pastebinit error: XDG_RUNTIME_DIR not set in the environment. libva info: VA-API version 1.1.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_1 libva info: va_openDriver() returns 0 http://paste.ubuntu.com/p/kww8gcMkpx/ kodi@kodipc:~$ id | pastebinit http://paste.ubuntu.com/p/kQFBzfZVPJ/ RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-02-18 Looks good. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-18 Hey fritsch, Thanks again for all your help and creating this guide. Kodi runs good now, still have 1 issue but that has nothing to do with this. Thanks again, much appreciated. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-19 Hi again, i have a question regarding resolution. When i connect my NUC8i5BEH directly to the TV i get 4096x2160@60fps but when i connect the NUC to my Denon X2500 i can only get 3840x2160@30fps. Is it correct that this can be fixed with editing the 10-intel.conf? When i run sudo X verbose with the receiver connected i see the following output: http://paste.ubuntu.com/p/3v5VRXt95p/ Is it correct to assume that i should create the 10-intel.conf like below? https://paste.ubuntu.com/p/sNrznsZHbB/ RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-02-19 I'd rather fix the root cause, but yeah - try this xorg.conf - hopefully you get a picture. Btw. you don't want 4096x2160 but rather 3840x2160 RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-19 Ok, tonight i will try to edit the /etc/X11/xorg.conf.d/10-intel.conf RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - FernetMenta - 2019-02-19 (2019-02-19, 12:43)Henkske Wrote: Hi again, Your AVR can't do 4096x2160@60fps RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-19 True, but it should work with 3840x2160@60fps i believe 2018 models (S940H, X2500H): These models can pass through up to 4K/60fps video and upscale up to 4K/30fps video. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-02-19 According to the manual it should be able to: http://manuals.denon.com/AVRX2500h/EU/DE/download.php?filename=/AVRX2500H/EU/DE/pdf/AVRX2500H_EU_DE.pdf the 4k @ 25,30 is only for scaling, page 173 RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-02-19 One thing to take care. 8 bit RGB might need special tuning (your AVR calls that extended) while yuv420 (8bit) is supported by the standard, also page 173. Some time back I made xorg.conf entries for the lower bandwidth 4k mode - let's see how far you can get. On my Denon + Samsung TV combination I need to enable UHD mode in Samsung TV explicitely. Without that - no 4k 50,60 for me. Edit: For your Denon, go to its settings and set "4k format" to extended, done. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Henkske - 2019-02-19 Yes, UHD mode on the Samsung TV did the trick. I had it enabled for every input except the this one.... Thanks again for all your help and patience. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - uke75 - 2019-02-20 Hi all, I'm a long time Kodi user. I have updated my system to AMD 2400G and since then Kodi has been frequently crashing. Also fast forwarding HD video will crash Kodi almost immediately. dpkg -l |grep mesa | pastebinit -b pastebin.com https://pastebin.com/BVUXZK54 DISPLAY=:0 vainfo | pastebinit -b pastebin.com libva info: VA-API version 1.1.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so libva info: Found init function __vaDriverInit_1_1 libva info: va_openDriver() returns 0 https://pastebin.com/A4HGHvCc cat ~/.kodi/temp/kodi.log | pastebinit -b pastebin.com https://pastebin.com/eH4QbMN4 cat kodi_crashlog-20190220_195540.log | pastebinit -b pastebin.com https://pastebin.com/vCHCMqhp dmesg | pastebinit -b pastebin.com https://pastebin.com/VCUQpNXy amixer | pastebinit -b pastebin.com https://pastebin.com/EL45PzZP cat /var/log/Xorg.0.log | pastebinit -b pastebin.com https://pastebin.com/AccYy5j2 Thank you for your hard work and efford |