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 Krypton v17 based on Ubuntu 16.04 server - camelreef - 2017-12-13 (2017-12-13, 07:46)fritsch Wrote: Fix comes here: https://github.com/xbmc/xbmc/pull/13181 btw. you might still have older versions in /var/cache/apt/archives directory - you can install them by sudo dpkg -i just make sure you specify all .deb packages needed with the same version.nah... I clean the cache in a script on machines that I will maintain remotely, that's one less cause for full partitions... I was a bit on autopilot, so the script came in early, before production stage.. Cool, a fix! Yay! RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2017-12-13 Just pushed the fix. Will be in tomorrow's ppa. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Stanislav - 2017-12-13 The audio issue is still in the latest nightly. Kodi logs continuously: 09:59:40.348 T:140694283790080 INFO: CActiveAESink::OpenSink - initialize sink 09:59:40.348 T:140694283790080 DEBUG: CActiveAESink::OpenSink - trying to open device PULSE:iec958:CARD=C20,DEV=0 09:59:40.374 T:140694283790080 ERROR: PulseAudio: Failed to connect context 09:59:40.374 T:140694283790080 NOTICE: PulseAudio might not be running. Context was not created. 09:59:40.374 T:140694283790080 ERROR: CActiveAESink::OpenSink - no sink was returned 09:59:40.374 T:140694292182784 ERROR: ActiveAE::InitSink - returned error 09:59:40.874 T:140694292182784 DEBUG: CSettingsManager: requested setting (audiooutput.dspaddonsenabled) was not found. Here are the full debug logs: dpkg -l | grep mesa DISPLAY=:0 vainfo (also produces stderr): libva info: VA-API version 0.40.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_0_39 libva info: va_openDriver() returns 0 kodi.log dmesg id amixer Reverting to nightly from 2 days ago resolves the issue. Thanks for looking! -- Stanislav RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2017-12-13 Thanks - you spotted another issue :-) For the time being, start kodi with AE_SINK=ALSA kodi RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2017-12-13 Ouh that shows another issue :-( - does it work if you start it with: AE_SINK=ALSA kodi ? (latest version again please). RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Stanislav - 2017-12-13 Yes it works, except that audio out changed to HDA Intel again (this also happened a few days ago). I changed it back to USB DAC and it is fine now. So now my .config/openbox/autostart looks like this: OUTPUT=`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'` xrandr -display :0 --output $OUTPUT --set "Broadcast RGB" "Full" xrandr -display :0 --output $OUTPUT --set "Broadcast RGB" "Video 16:235 pass-through" xsetroot #000000 xset -dpms devmon & AE_SINK=alsa MALLOC_MMAP_THRESHOLD_=131072 /usr/bin/kodi --standalone while [ $? -ne 0 ]; do AE_SINK=alsa MALLOC_MMAP_THRESHOLD_=131072 /usr/bin/kodi --standalone done openbox --exit RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2017-12-13 Yeah ... needs a more intrusive fix in the code. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2017-12-13 Fix for using PA even if no PA Server running: https://github.com/xbmc/xbmc/pull/13184 RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - MicTie - 2017-12-13 (2017-12-13, 11:52)Stanislav Wrote: Yes it works, except that audio out changed to HDA Intel again (this also happened a few days ago). I changed it back to USB DAC and it is fine now.Also for me this change fixes the problem! RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2017-12-13 Should work correctly tomorrow without further changes. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - camelreef - 2017-12-13 (2017-12-13, 16:07)fritsch Wrote: Should work correctly tomorrow without further changes.At what time is that build happening? I'm impatient! :oP RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2017-12-13 Yeah - so work on that! RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - camelreef - 2017-12-14 (2017-12-13, 16:07)fritsch Wrote: Should work correctly tomorrow without further changes.There is still an issue after the PPA update. playing never starts. http://paste.ubuntu.com/26180636/ Nico RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - camelreef - 2017-12-14 (2017-12-14, 04:58)camelreef Wrote:Playing resumed when I removed the Sync playback to display setting.(2017-12-13, 16:07)fritsch Wrote: Should work correctly tomorrow without further changes.There is still an issue after the PPA update. playing never starts. Back to 4K testing! RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - camelreef - 2017-12-14 Test1
Test 2
Do you think there is any point checking with stock 4.13 kernel and the xorg edgers PPA (updated mesa and libdrm)? I probably will at some point, as I would really prefer to run a kernel that is getting updates through the normal mechanisms, if I can help it... But heh, it's also an appliance, it's not that exposed. I will also check a mainline 4.13 kernel, it may be a problem introduced by an Ubuntu patch, and then it could be possible to get a fix from the standard channels. |