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: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-02 Okay... * same issue with startup color space as Isengard * videos all start 4-5 seconds into the video, instead of at 0 * resuming a video tends to result in the picture playing in fast-motion for several seconds And the biggie... I can definitely trigger problems. The system doesn't crash like it does with Isengard, but instead I get a totally garbled lurching picture with the UI occasionally coming on and flashing "buffering". Once started, this happens on all videos until I reboot. https://www.youtube.com/watch?v=ONfn4ouW3Vw Going to enable logging and capture that. RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-02 And... I just managed to lock it up identically to Isengard. http://paste.ubuntu.com/12637082/ It took some time to happen (that's a 2mb logfile), but it was having problems for a while before it crashed. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-10-02 (2015-10-02, 10:04)Sunflux Wrote: Okay... Not an issue we cover here - as this is a kernel hack - a hack we all know that is just a hack Quote:* videos all start 4-5 seconds into the video, instead of at 0Thanks for this report. Quote:* resuming a video tends to result in the picture playing in fast-motion for several seconds Also thanks for this. Quote:And the biggie... I can definitely trigger problems. The system doesn't crash like it does with Isengard, but instead I get a totally garbled lurching picture with the UI occasionally coming on and flashing "buffering". Once started, this happens on all videos until I reboot. https://www.youtube.com/watch?v=ONfn4ouW3Vw Thanks for the below Debug Log. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-10-02 Your log looks damn broken :-) ... Sadly I cannot outrule any SAMBA issues ... RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-02 Remember it doesn't happen if VAAPI render is disabled... RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-02 Just in case you were wondering, here's a stress test log with VAAPI render disabled. Certainly not problem-free, but the system didn't crash and video was still playing fine when I rebooted. http://paste.ubuntu.com/12637308/ RE: New Era: VAAPI with EGL interoperation - psysfaction - 2015-10-02 I was just able to order a Beebox in Germany and my friend will bring it to my place In Asia in 3 weeks :-) Feeling excited to start testing. Been following this thread and read all 100 pages :-) Thank you for all the work RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-10-02 (2015-10-01, 21:07)BigL-New Wrote: File which works:Fritsch do you know why above file doesn't work as expected? It's really annoing, i've tried few things but still no luck. BTW kernel with hack doesn't have latest intel video driver - a lot of messages "*ERROR* timed out waiting for Punit DDR DVFS request" in dmesg. Maybe it's important for file above and also for all of the tests? (at least on BSW) RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-10-02 I think I've found problems - here is full log from sysylog while starting Kodi: Code: Oct 2 18:01:26 bee systemd[1]: Started kodi-standalone using xinit. My autostart file is as above (the one with problems) - i've changed only sleep to 10 to better see which command has problems. RE: New Era: VAAPI with EGL interoperation - furii - 2015-10-02 (2015-10-02, 11:06)fritsch Wrote:(2015-10-02, 10:04)Sunflux Wrote: * videos all start 4-5 seconds into the video, instead of at 0Thanks for this report. also noticed something similar to this the other day but hadn't had time to come report it. i believe it is related to the change introduce a week or two ago where playback doesn't start until the refresh rate has changed. it noticed when going back through the settings the pause for X seconds (which i believe was renamed) had been reverted to off. previously on my system i had a 5 second delay. i put a 5 second delay back in and when playing a file the refresh rate switch occurred and the ui stayed displayed for a few seconds. after several adjustment i was not able to get perfect playback. either i will miss a couple seconds of video and have to back up or i will see the ui before play back start. i believe i settled on switching it back to off for the time being. i can update to the latest (i think i'm on the 9/26 build) and do some more testing and provide logs later if it will help. edit: updated to the 10/2 passthrough build and this is working correctly for me. i also didn't have the colorspace issue others have reported. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-10-02 (2015-10-02, 18:24)BigL-New Wrote: I think I've found problems - here is full log from sysylog while starting Kodi: Problem with the testing kernel: Quote:Oct 2 18:01:26 bee kernel: [84255.045935] [drm:valleyview_update_wm [i915]] *ERROR* timed out waiting for Punit DDR DVFS request You have a braswell and therefore need the other kernel I gave you last time ... which does not have the passthrough patches, but the DVFS fixes ... RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-10-02 (2015-10-02, 11:45)Sunflux Wrote: Just in case you were wondering, here's a stress test log with VAAPI render disabled. Certainly not problem-free, but the system didn't crash and video was still playing fine when I rebooted. It looks good. Fernet found a bug that could have caused the "mem leak". The EGLContext was not destroyed and probably all allocated surfaces would remain unfreed: https://github.com/FernetMenta/xbmc/commit/c454251f94e5d5cb000d22a355ac9665734453c7 I will be travelling until Sunday ... so don't expect any new build until then. RE: New Era: VAAPI with EGL interoperation - lexi81 - 2015-10-02 (2015-10-02, 22:14)fritsch Wrote:(2015-10-02, 11:45)Sunflux Wrote: Just in case you were wondering, here's a stress test log with VAAPI render disabled. Certainly not problem-free, but the system didn't crash and video was still playing fine when I rebooted. When I run Kodi in limited 16-235 mode I can easily lock Kodi. The skin doesn't rebuild totally and I have to reboot through JSON. Is that related to the mem leak fix? It doesn't happen when I run Kodi in full configuration. Log: http://xbmclogs.com/purnggoap The log wil show I'm running Arctic Zephyr, but it happens with Confluence as well. Depending on the amount of video or sequence of videos, I get garbled video like the YouTube video above or the skin artefacts. Video: https://youtu.be/2coGdXzwZ9Q (don't mind the black levels, that's the camera playing tricks ) RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-03 (2015-10-02, 22:14)fritsch Wrote:(2015-10-02, 11:45)Sunflux Wrote: Just in case you were wondering, here's a stress test log with VAAPI render disabled. Certainly not problem-free, but the system didn't crash and video was still playing fine when I rebooted. Hey, no problem... just trying to help where I can! I know skipping around like that seems like a ridiculous non-real-world occurrence, but I've just found that forces the issue quickly, especially with that high bitrate file. And if you saw the YouTube garbled video, once that starts, it happens on every single video I play - and shortly after that, the system will die. The first time the lockup happened, I was 40 minutes into a movie, hit the shortskipback button once, and boom - frozen. Nothing else had occurred before then. RE: New Era: VAAPI with EGL interoperation - Eisi2005 - 2015-10-04 Hello , I use the Isengard version from 0923. When I watch a BluRay the sound comes slightly delayed so that I have set myself the delay in Kodi +175 . After that it was perfect.WhatI have to put in the advancedsettings.xml ? < video> < latency > <delay > 0 < / delay> <refresh > < min > 23 < / min > < max > 24 < / max > <delay > 0 < / delay> < / refresh> < / latency > </ video> Thanks |