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 - BigL-New - 2015-11-30 OK, here it is - i've applied your passthrough patch to 4.4-rc kernel. Previously i had Limited Range set in Kodi - with this setting and passthrough patch everything "was nearly ok" with 4.3 kernel and with 4.4 with my modified patch, as described if first sentence. After reboot (so in 4.4-rc3 with your new patch) colours in Kodi were washed-out (much too bright). Playing video made it no better. So i disabled Limited Range in Kodi and colours returned to normal good brightness. But even more - first time with calibration patterns i've everything 100% as it should be in theory with limited range - everything below 16 was black and whites over 235 are white (not over 254 as it was before). RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-30 Add some kernel printks please and see if the limited mode is set correctly. Basically I test as follows: -> Set kodi to limited range a) Set Limited 16:235 with xrandr -> everything too bright (as scaled twice) clear b) Set Video Limited 16:235 with xrandr -> everything great c) Set "Full" -> kodi still great d) Set Limited 16:235 with xrandr -> everything too bright e) b) => it's working as it should (for me). Edit: Does it work if you do it like this: Code: DISPLAY=:0 xrandr --output HDMI1 --set "Broadcast RGB" "Full" RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-11-30 I use PPA so i start Kodi with your recommended script: Code: #!/bin/sh Maybe my TV is special case? Anyway - now maybe it's little bit strange, but picture is perfect RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-30 Nice - works for me :-) Can you post your patch - that you said would work, please? RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-11-30 Sh...t, i've deleted it. But if you really need it i can regenerate it if it helps with something. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-30 (2015-11-30, 23:39)BigL-New Wrote: Sh...t, i've deleted it. Yes - as you said that one was working - I am curious - as the color_range is gone, which was the decision value before. RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-11-30 Luckly i've patched kernel tree for 4.4-rc2 :-) The only change i've made to original patch was in intel_hdmi.c - some variables were gone so i tried to adapt patch to this situation (with my not-high coding level ). Here is patch for intel_hdmi.c from 4.4-rc2 kernel. With this patch everything worked 100% as before: Code: --- intel_hdmi.c 2015-11-23 01:45:59.000000000 +0100 RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-01 This does not make sense at all and the driver would always scale - as it does not know at all - it should not scale ... Code: intel_hdmi->color_range_video is not used anywhere for a decision to scale or not to scale ... Edit: With your patch Limited and Video Range would produce exactly the same ... RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-12-01 Sorry for my very limited coding skills. I was trying to adopt your patch to situation. As you may see it was not so good, sorry Anyway maybe with my patch Limited and Video Range would produce exactly the same - to be honest i was satisfied with colours so i never changed to Full, always had Limited set. (but i can check it. ive 4.4-rc2 kernel compiled with my patch). Naturally when i say "never" and "always" i mean time with 4.4-rc kernel so last 2 weeks. But at least now you have info how your new patch works with my TV :-) For me this behaviour seems to be logical - patch sets limited range without conversion and sends it to TV using Kodi. On Kodi level when range is set to full ("limited" is disabled) Kodi doesn't touch anything and passes signal to TV. And on TV level it receives untouched limited range which is perfect for this TV (for sure it's only limited range). and everything works well. Am i ok with my conclusions? RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-12-01 UPDATE: Why you say that intel_hdmi->color_range_video is never used? It is used in default case (INTEL_BROADCAST_RGB_VIDEO): + case INTEL_BROADCAST_RGB_VIDEO: + intel_hdmi->color_range_auto = false; + intel_hdmi->limited_color_range = true; + intel_hdmi->color_range_video = true; break; default: In all other cases intel_hdmi->color_range_video is set to false. RE: New Era: VAAPI with EGL interoperation - m_gl - 2015-12-01 (2015-11-28, 17:05)fritsch Wrote: Here we go: I am a little late... I´ve got jerky playback with 25fps files. Btw actually i do not use passtrough ;-) and sync to display activated. Log: http://xbmclogs.com/p2t25ocjn Build: OpenELEC-Generic.x86_64-6.0-devel-20151127190458 is fine Build: OpenELEC-Generic.x86_64-6.0-devel-20151128154847 is jerky Hope that helps. RE: New Era: VAAPI with EGL interoperation - Ney - 2015-12-01 I got a lot of "buffering" and chrashes on seek when playing back from LAN on the newest build, never happened before, think this is either kodi-something or ffmpeg, will try to re-update later doublecheck settings and get a log if needed, i reverted back to an earlier build cos the girl wanted to watch her shows (and yes I really should get a new box I know ...) RE: New Era: VAAPI with EGL interoperation - b0mb - 2015-12-01 (2015-12-01, 09:26)Ney Wrote: I got a lot of "buffering" and chrashes on seek when playing back from LAN on the newest build, never happened before, think this is either kodi-something or ffmpeg, will try to re-update later doublecheck settings and get a log if needed, i reverted back to an earlier build cos the girl wanted to watch her shows (and yes I really should get a new box I know ...) same here and i also have the 25 FPS jerky problem on my braswell N3700 .... RE: New Era: VAAPI with EGL interoperation - sat4all - 2015-12-01 hey there, Frenquently when starting kodi i get a blackscreen, and sometimes starting or stopping playback lead to a blackscreen too but rarely. I think this problem was produced about a month ago and it still heppening with every latest build i've tested. debug log RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-01 (2015-12-01, 00:38)BigL-New Wrote: UPDATE: Why you say that intel_hdmi->color_range_video is never used? It is used in default case (INTEL_BROADCAST_RGB_VIDEO): Yeah - but which part of the driver actually cares? Which part asks: if color_range_video == true -> don't scale? |