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 - noggin - 2015-07-31 (2015-07-30, 18:53)lmyllari Wrote: Sounds like I should revisit my kernel patch for limited range video. I think a better implementation would be to add a new driver property to select HDMI output range tagging (auto or limited), make Kodi switch to full range output on start up and set the new control based on the Kodi limited range setting. Yes - though that would introduce two "Limited Range" settings potentially? 1. To configure the GPU to output Limited Range (which is currently the default for 720p and 1080i/p outputs - hence the requirement for the xrandr autostart mod to force the GPU into Full range output) 2. To configure Kodi to output "Limited Range for Full Range output", which is what we do to get 16-235 Limited Range video output from Kodi when the GPU is in "Full mode" but which minimises banding and enables <16 and >235 levels to be preserved, as they haven't been scaled to 0-255 at any point. If the GPU defaulted to Full Range, then we'd also need Kodi to default to "Limited Range for Full Range output", otherwise the default install would deliver crushed blacks and clipped whites on displays which are configured for "Limited" which is the standard HDMI default range? RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-07-31 Could it possible to make it auto based on gpu chipset ? Example : if an intel chipset is detected oe auto add code in autostart Or during oe setup ask to enable or disable full range Popcorn hour for example has only a menĂ¹ where select 10-255/16-235 RE: New Era: VAAPI with EGL interoperation - trsqr - 2015-07-31 In general, I've been thinking about having some kind of predefined settings based on GPU auto-detection. Example: detected 1 Intel Haswell-based GPU - now disable VDPAU, enable VAAPI, set deinterlacing to MCDI for 576i and 1080i material and use lanczos3 upscaling. Of course it will be impossible to cover all possible systems, but at least 70% should be pretty easily covered. EDIT: Sorry for off-topic, let's not continue this discussion in this thread. Opened a new thread for this: http://forum.kodi.tv/showthread.php?tid=233846 RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-07-31 it's rather simple, a quick bash for running over the heads and setting the machines to full range when intel is detected. You can use the sysfs interface for that. RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-07-31 (2015-07-31, 14:40)trsqr Wrote: In general, I've been thinking about having some kind of predefined settings based on GPU auto-detection. Yes this would be fantastic Sorry for ot RE: New Era: VAAPI with EGL interoperation - john.cord - 2015-08-01 I tested the Dev Build posted by fritsch on my Bedroom Intel 2820 NUC and 50fps Playback produces a lot of missed Frames. On my Livingroom Chromebox Celeron everything is fine... RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-08-01 No idea without debuglogs ... RE: New Era: VAAPI with EGL interoperation - gdachs - 2015-08-02 I believe that the power button of the nuc should go to suspend2ram instead of powering it off. I added Code: HandlePowerKey=suspend Gerald RE: New Era: VAAPI with EGL interoperation - ep0ch - 2015-08-02 Hi fritsch, I'm getting frameskips/drops every few mins (5-10 mins?). Anything you can help with? logs: http://sprunge.us/bHid I'm using the kodi build you posted on 25/07/2015 Thanks!! RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-08-02 Quote:09:15:34 T:140671026439936 ERROR: Decode - avcodec_decode_video returned failure Can you produce with: http://solidrun.maltegrosse.de/~fritsch/1080i50_h264.ts or too short? The above is plain bad data from the backend :-( RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-08-02 Quote:09:17:24 T:140670984476416 ERROR: failed to import VA buffer NV12 into EGL image: 12291 This is also good. It looks like the decode failure is propagated. It seems it is not handled, that when decoding a frame failes, that it won't spit a decoded surface ... but I am not expert enough here. @FernetMenta: Any idea? RE: New Era: VAAPI with EGL interoperation - ep0ch - 2015-08-02 Okay, may be ignore my post. I seem to have solved it, but not quite sure which change i made resolved it. Could be rebooting the NAS, changing some de-interlace settings or setting "pause during refresh rate change" to "off". Although I did just get some issues when i was navigating the kodi main menu and settings while watching a movie. log: http://pastebin.com/9u98BjFV RE: New Era: VAAPI with EGL interoperation - Ales - 2015-08-04 @FernetMenta & fritsch: thank you for your help. So https://github.com/FernetMenta/xbmc/tree/EGL no longer exist and the code is included in master branch, right? From where could I build required mesa for this branch? RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-08-04 You can use mesa git. All patches have been integrated and will be in mesa 10.7 RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-08-04 So (to be sure) your and fernermenta tweaks will be in kodi 16 / next oe major upgrade ? How could someone donate to you a couple of beers ? Thanks for all |