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 - fritsch - 2015-09-30 I think we need a section about "How to setup your TV". As this has - as you also pointed out - nothing to do with EGL / VAAPI anymore. It has been proven that this new method of colors processing and surface transfering is able to properly transfer colors. Anyone with TV issues feel free to open a Thread in the Hardware Forum. I will link to it in the first post. RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-09-30 Yeah, I'm not seeing anything that's messing up colors in any way. Although, I still think the video drivers need to be hacked to allow a "Limited 16:235" mode that does NOT actually compress RGB, and instead outputs what its fed as-is. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-30 Yeah - the problem here is: what should happen if you quit Kodi and open A desktop application? Should the driver "clamp"? should it say < 16 and > 235 is SuperWhite? Edit: Here is a kernel starting point: https://bugzilla.kernel.org/show_bug.cgi?id=55121 RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-09-30 I guess that depends on how the range conversion process works now. Currently, I know xrandr resets the signal when going from full to limited, but I don't know if that's something necessitude by the process of enabling/disabling range conversion, or whether that's just a result of toggling the limited flag on/off which causes the TV to adjust itself. If the latter, and range conversion could be enabled/disabled on the fly for at least "range aware" full-screen applications, then I would say that switching from Kodi back to the desktop should definitely return to compressing 0-255 as 16-235 as default. So, for example, have a desktop where 0-255 is automatically compressed as 16-235, and a "range aware" application where 0-255 remains as such. Seems like similar capabilities exist for hardware-accelerated video playback, where the video playback overlay can have entirely different color properties from everything else. If that's impossible, and the only option would be to continue to crush blacks on the desktop, then I still say this feature would be useful for standalone media boxes like OpenElec, where there is no desktop to worry about, and the priority is providing a top-notch media experience. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-30 Here: have a look: https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/i915/intel_hdmi.c#L449 RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-30 As a hack: https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/i915/intel_display.c#L8576 Just remove this and also further down. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-30 I started talking with the Intel folks: Quote:09:57 < fritsch> vsyrjala: ping - you got another minute? So let's see. Yeah - they exactly see the issue :-) Quote:10:03 < daniels> fritsch: right, the problem is that intel narrows again, right? as there's no way to tell RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-09-30 Wait a minute, is that the ENTIRE thing? Comment out that calculation and limited mode gets outputted as full mode? I'd love if that could be turned into a toggleable setting that could be enabled/disabled inside OpenElec, as my primary viewing TV can't be forced into limited mode. RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-09-30 "hope the TV does not read the info frame and force it to Full Range" -> exactly what needs to be worked around. We want the correct info frame so that televisions can operate properly, while sending 0-255 untouched. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-30 Yeah - that's exactly the problem. Short term workaround, add a "passthrough" mode - that just skips the conversion, but still sends info frame limited :-) What daniels wants: DRM buffers that have a color attribute and then intel handles it internally accordingly, which is - i have to admit the "king way" of doing things. But DRM / MESA is not there yet and kernel is also not. So - let's come up with a passthrough kernel patch. Who is up for the task? 1.) add passthrough 2.) add passsthrough_mode bool 3.) check for passthrough_mode -> don't clamp. 4.) add this attribute to the list where you find Full and "Limited 16:235" 5.) Passthrough should force "Limited 16:235" but not to scale :-) @Sunflux: Sounds like a job for you, isn't it? RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-09-30 LOL, you keep trying that, but I still don't know C++! Nor, frankly, much about 'nix-style O/Ss or anything close to the complexity of kernel code. My experience is limited to good ol' Perl programming for web applications, which is basically not useful for anything. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-30 Yeah - I will take a look tonight :-) RE: New Era: VAAPI with EGL interoperation - Hufvudet - 2015-09-30 (2015-09-30, 10:25)fritsch Wrote: Yeah - I will take a look tonight :-) I'll fix it over lunch! My knowledge of computers is limited to turning on and off iPads and annoying fritsch in forums. RE: New Era: VAAPI with EGL interoperation - lmyllari - 2015-09-30 I have an old patch here: https://github.com/laurimyllari/OpenELEC.tv/commit/57c2a927ac3de067d73190cf870d6be8b603144aa RE: New Era: VAAPI with EGL interoperation - sat4all - 2015-09-30 talking of annoying fritsch As you know, since my upgrade to jarvis egl builds i've been struggling with a/v sync issues. so today i've decide to do a hard reset, unfortunately nothing changed. it's even worst using 28/9 build especially with some files ( most of them with ac3 track ) Starting playback results heavy skipped and dropped frames ( drop:13, skip:21 ) = a/v out of sync by arround 3s ( av: -2.xxx ) a rewind immediatly fix sync ( a/v: 0.0xx ) playing the same files with isengard build = no problems debug log |