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-29 Sunflux summarizes everything that makes sense one page back. Lauri explains the technical details. Everything was said - the rest is confusion and BigL did not get it yet :-) RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-09-29 (2015-09-29, 20:59)fritsch Wrote: Sunflux summarizes everything that makes sense one page back. Lauri explains the technical details. Everything was said - the rest is confusion and BigL did not get it yet :-)I was so busy writing my own posts and had no time for everybody's explanations ;-) My only confusion right now is how to distinguish driver level (xrandr) and TV level in cases like mine - TV has no UI for RGB range so i can only set it on driver level and check on the same level (first one and also last one in chain explained by Sunflux). Specially how can i get in this situation best settings according to Sunflux: Driver 0-255 -> Kodi Limited -> Dithering Off -> TV Limited I cannot set TV to Limited on UI level, only on driver (xrandr) level. So i can have: Driver 0-255 -> Kodi Full/Limited -> Dithering On/Off -> TV Full or Driver 16-235 -> Kodi Full/Limited -> Dithering On/Off -> TV Limited RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-29 So - your TV just sets what the GPU with xrandr sets, so it reads the INFO Frame and sets the TV accordingly? Did you verify this? With some Test patterns? If that's really the case, use: Driver 0-255 -> Kodi Full -> Dithering On -> TV Full RE: New Era: VAAPI with EGL interoperation - Hufvudet - 2015-09-29 (2015-09-29, 20:59)fritsch Wrote: Sunflux summarizes everything that makes sense one page back. Lauri explains the technical details. Everything was said - the rest is confusion and BigL did not get it yet :-) Ok, big thanks to Lauri! Still....at least for me, the question remains: why would we even consider dithering when limited range is kept untouched through the chain? I don't understand which calculations might benefit from dithering in limited range. It's very obvious in full range. Limited range of course means = kodi limited - gpu full - tv limited. Is it only me? RE: New Era: VAAPI with EGL interoperation - lexi81 - 2015-09-29 (2015-09-29, 21:41)BigL-New Wrote:(2015-09-29, 20:59)fritsch Wrote: Sunflux summarizes everything that makes sense one page back. Lauri explains the technical details. Everything was said - the rest is confusion and BigL did not get it yet :-)I was so busy writing my own posts that had no time for everybody's explanations ;-) Try the different kodi settings in the bold part when you playback the AVS rec709 calibration files. You can check the black and white settings so you can see which is best. I'm on: Driver full (0-255) Kodi full + 8bit dither TV full RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-09-29 why someone choose full and other limited ? It's true as someone wrote Limited best for video Full best for picture and good for video ? RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-29 Guys, the next unreflected post here and I will just close it down. This is not some bikeshedding thread and everybody that currently has no idea what this talk is about - just calm down and reread the last three pages. Thanks you very much. RE: New Era: VAAPI with EGL interoperation - lmyllari - 2015-09-29 (2015-09-29, 21:55)Hufvudet Wrote: Still....at least for me, the question remains: why would we even consider dithering when limited range is kept untouched through the chain? I don't understand which calculations might benefit from dithering in limited range. It's very obvious in full range. I can think of three things:
If rounding to 8bit precision would leave the picture untouched, dithering won't change it. Quote:Is it only me?I think it's a good question. edit: /me hides from fritsch after stirring up more trouble, sorry RE: New Era: VAAPI with EGL interoperation - Hufvudet - 2015-09-29 (2015-09-29, 22:27)lmyllari Wrote:(2015-09-29, 21:55)Hufvudet Wrote: Still....at least for me, the question remains: why would we even consider dithering when limited range is kept untouched through the chain? I don't understand which calculations might benefit from dithering in limited range. It's very obvious in full range. Thank you for clarifying! RE: New Era: VAAPI with EGL interoperation - john.cord - 2015-09-29 (2015-09-29, 21:41)BigL-New Wrote: My only confusion right now is how to distinguish driver level (xrandr) and TV level in cases like mine - TV has no UI for RGB range so i can only set it on driver level... Did you check this with Test Patterns and cross testing with another device like a ps3 on RGB Limited? Like i said, in my case my GT30 Plasma is fine with System set to Full - Kodi to Limited. The Black Level Pattern is exactly the same on both PS3 and Kodi. Maybe it is best to put this conversion to a seperate thread... RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-09-29 (2015-09-29, 21:54)fritsch Wrote: So - your TV just sets what the GPU with xrandr sets, so it reads the INFO Frame and sets the TV accordingly?It seems so - at least that's how it shows xrandr. (2015-09-29, 21:54)fritsch Wrote: Did you verify this? With some Test patterns? I've checked with test patterns and IMHO best settings are: Driver 16-235 -> Kodi Full -> Dithering On/Off -> TV Limited Driver 0-255 -> Kodi Limited -> Dithering On/Off -> TV Full With your proposition (Driver 0-255 -> Kodi Full -> Dithering On -> TV Full) i've total mess with black levels. Whole calibration pattern for black is totally black, i cannot see flashing even levels over 16. Best one is: Driver 16-235 -> Kodi Full -> Dithering On/Off -> TV Limited - everything in test patterns is 100% correct. I only cannot see much difference with dithering On/Off (looks the same IMHO). In such configuration xrandr reports: Broadcast RGB: Limited 16:235 supported: Automatic, Full, Limited 16:235 and autostart has: xrandr -display :0 --output $OUTPUT --set "Broadcast RGB" "Limited 16:235" RE: New Era: VAAPI with EGL interoperation - AndyFurniss - 2015-09-29 (2015-09-29, 20:46)BigL-New Wrote:(2015-09-29, 19:52)john.cord Wrote: Today i tried to find the HDMI Black Level Setting in my TX-P50GT30 (European) and i did not find it too... good to know that it does not exist. In my oppinion the European Model is fixed to Limited Colorspace.At least not on my TV - you can youse xrandr to check what's available for yours. On mine it reports: Just to add to the confusion, my 2010 UK Panasonic plasma also has no settings for HDMI = it expects limited. It also doesn't advertise the right hdmi info frames for range, but both Intel and AMD drivers will still offer the settings as shown in your xrandr output. What limited is though. is not strictly 16-235 anyway, the HDMI specs allow for over and under, so when the driver is set to limited and squashes to 16 - 235 then it's really doing more than needed. IIRC the HDMI specs say no to 0 and 255, but my TV at least doesn't seem to care. There are also CEA specs to consider, I don't know if they overrule HDMI, but IIRC they still allow for over 235. RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-09-30 (2015-09-29, 23:15)BigL-New Wrote: I've checked with test patterns and IMHO best settings are: For quality, none of the xrandr Limited modes are best. In order of best quality working downwards: #1: Driver 0-255 + Kodi Limited + Dithering On/Off + TV Limited #2: Driver 0-255 + Kodi Full + Dithering On + TV Auto/Full #3: Driver 16-235 + Kodi Full + Dithering On + TV Auto/Limited And those three are the only real viable options. #1 is essentially untouched - the holy grail of video purists everywhere. #2 looks very good, but it's doing a LOT of processing to the image, which means it's what I'd use only if I'm unable to force my TV to accept Limited input on a full-range signal, as is required for #1 to work correctly. #3 is likely to be the default option in Kodi, but it's just as processed as #2 and yet still has minor visible banding, which makes it a very distant third in my book. Now, will the average person sitting at an average distance from their TV watching typical real-world programming notice any difference between #1, #2 or #3? Probably not. But if we were average, we would not be here in this thread talking about this! RE: New Era: VAAPI with EGL interoperation - lexi81 - 2015-09-30 (2015-09-30, 02:12)Sunflux Wrote: For quality, none of the xrandr Limited modes are best. #1 #2 gave me both the correct black pattern. But #1 gave me light grey in the white pattern up to 250. #2 gave me white above 234. So I chose #2, can anybody shine a light on that? Why does kodi limited give gray in the white pattern. RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-09-30 (2015-09-30, 08:03)lexi81 Wrote:(2015-09-30, 02:12)Sunflux Wrote: For quality, none of the xrandr Limited modes are best. As I mentioned in an earlier post, this is likely the correct behavior and is a result of your TV's processing. With option #1, Kodi is outputting all greyshades from 0 to 255. It's your television that's selecting to display only 16-235, and your television that is expanding 16 down to 0. Kodi has nothing to do with this. Now, most televisions will not normally expand 235 all the way up to 255, because 235 by specification is supposed to remain a light shade of grey on modern screens. What remains above that is commonly called "super white". Now, the main question: between option #1 and #2, 235 itself is about the same color, light grey, right? It's only that you're seeing even whiter above 235 on #2? Then that's because your TV is either choosing not to, or is unable to, display "super whites" when put into limited mode. The important thing to remember, is that videos do not normally contain meaningful content above 235. Sometimes they can, which is why it's typically recommended to enable "super white" if you can, but it's not a huge issue if you can't. If whites not being their brightest bothers you, you can adjust the brightness or contrast on your set. You might also want to play around with gamma settings if there are any, which may make the difference between 235 and 255 quite minimal. |