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-09-29 I've done more A/B screenshots of color movies... there is literally no perceptible difference between dithering ON or OFF. After doing a difference comparison of screenshots of the identical frame there is, however, an imperceptible difference: a scattering of pixels throughout the image that are all slightly changed in color. And by slight, I mean something like an invisible change from RGB 69-91-130 to 69-90-129. There's no rhyme or reason to the changes, however. Here's a difference map of the Disney logo: RE: New Era: VAAPI with EGL interoperation - Hufvudet - 2015-09-29 Interesting. So something is happening. Again, thanks for digging into this. RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-09-29 (2015-09-28, 12:31)Roby77 Wrote: Panasonic Plasma 50 and 60 series can do full and limited rgb and i confirm that auto mode doesn't work very well On my Sony, I had to set brightness to 51 (normally 50) in order to see the darkest shade of grey before black with Kodi. Incidentally, on a properly calibrated system you should never see any shades of grey below black 16, however it is perfectly normal for white 235 to be a very light shade of grey, and for you to be able to see "super white" content above that. RE: New Era: VAAPI with EGL interoperation - cyrano - 2015-09-29 (2015-09-29, 12:34)Sunflux Wrote: I've done more A/B screenshots of color movies... there is literally no perceptible difference between dithering ON or OFF. After doing a difference comparison of screenshots of the identical frame there is, however, an imperceptible difference: a scattering of pixels throughout the image that are all slightly changed in color. And by slight, I mean something like an invisible change from RGB 69-91-130 to 69-90-129. There's no rhyme or reason to the changes, however. Single-step changes at seemingly random places is exactly what dithering should look like AFAIK. RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-09-29 (2015-09-29, 16:33)cyrano Wrote: Single-step changes at seemingly random places is exactly what dithering should look like AFAIK. This isn't dithering. There's far too little of it, and it's mostly around object edges / sharp areas of contrast, but not in any meaningful way. To the naked eye there is no improvement or worsening of the image, it's more like a rounding error. RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-09-29 (2015-09-28, 23:31)Roby77 Wrote: Better, too many option= more confusion ....(like more money more problems )Thanks for your help. It's really appreciated. Sadly: 1. I've ST50 series (your manual is for ST60 - 1 year newer model) 2. This is manual for US version of this TV - I've European version (many differences in functionality in Panasonic TV products) So for me correct manual is here: https://dlc.panasonic-europe-service.com/EUDocs/GetDoc.aspx?did=205055&fmt=PDF&lang=en&src=3&model=TXP55ST50E As you can see on page 60 in European models in advanced picture settings there is no HDMI range setting :-( RE: New Era: VAAPI with EGL interoperation - Oshan Ruiz - 2015-09-29 (2015-09-29, 14:48)Sunflux Wrote:(2015-09-28, 12:31)Roby77 Wrote: Panasonic Plasma 50 and 60 series can do full and limited rgb and i confirm that auto mode doesn't work very well I'm never able to get above white 233/234 with Kodi but it could be my adjustments to contrast to avoid color clipping. Not a big concern to me. RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-09-29 No we were talking about greyscale not white clipping For white clipping i'ts ok 230-234, if you get more it's not bad btw (for what i understood) RE: New Era: VAAPI with EGL interoperation - lmyllari - 2015-09-29 (2015-09-29, 16:33)cyrano Wrote:Correct. It is not meant to fix any issues in the input but to avoid issues from limited precision output.(2015-09-29, 12:34)Sunflux Wrote: I've done more A/B screenshots of color movies... there is literally no perceptible difference between dithering ON or OFF. After doing a difference comparison of screenshots of the identical frame there is, however, an imperceptible difference: a scattering of pixels throughout the image that are all slightly changed in color. And by slight, I mean something like an invisible change from RGB 69-91-130 to 69-90-129. There's no rhyme or reason to the changes, however. Short version: set the GPU (with xrandr) to full range so it doesn't mess with the output and enable dithering with 8bit depth. This will add a small amount of noise when needed (for limited range setting in Kodi it may not be needed). If you need to use limited range GPU setting, try dithering with 7 or even 6 bit depth. Longer version: Consider the following input values (say in a greyscale ramp) Code: Y Cb Cr Convert to limited range RGB and we get this Code: R G B Convert to full range RGB Code: R G B 8bit output is integers between 0-255. If we take the full range RGB values and simply round them, we get a sequence of 0, 1, 2, 3, 5 - this is how the banding is created. Dithering solves this by adding noise (output = input + x, 0 <= x < 1) and rounding down the output. This leaves the limited range values above untouched, since the noise added is always less than 1 and the ouput is rounded down. The full range values are sometimes shifted up by 1. Sunflux posted a picture that demonstrates this nicely. Here are the possible steps the video frame goes through:
This is the worst case (Kodi is set to full range, advanced scaling is used and GPU is set to limited range output). At step 3, RGB values are rounded to 8bit. I changed the colorspace conversion to always output limited range to avoid banding at this step. Step 7 does rounding to 8bit again, and at this point dithering is required to avoid banding from step 5. With dithering applied, the input values are already 8bit integers (with even fewer values if dither depth < 8). Step 8 is a problem. The GPU just takes the values 0-255 and scales them to 16-235. Code: full limited range rounded Dithering to lower output depth may help with this since there are fewer output values from dithering. I'm not sure how exactly the GPU scaling does rounding so I can not provide detailed guidance. I don't recommend the limited range GPU setting since it will always lead to loss of quality. RE: New Era: VAAPI with EGL interoperation - john.cord - 2015-09-29 (2015-09-29, 17:42)BigL-New Wrote:(2015-09-28, 23:31)Roby77 Wrote: Better, too many option= more confusion ....(like more money more problems )Thanks for your help. It's really appreciated. Sadly: 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. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-29 (2015-09-29, 19:37)lmyllari Wrote:(2015-09-29, 16:33)cyrano Wrote:Correct. It is not meant to fix any issues in the input but to avoid issues from limited precision output.(2015-09-29, 12:34)Sunflux Wrote: I've done more A/B screenshots of color movies... there is literally no perceptible difference between dithering ON or OFF. After doing a difference comparison of screenshots of the identical frame there is, however, an imperceptible difference: a scattering of pixels throughout the image that are all slightly changed in color. And by slight, I mean something like an invisible change from RGB 69-91-130 to 69-90-129. There's no rhyme or reason to the changes, however. Thank you very much for your time and for explaining this in such great detail! RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-09-29 (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: Code: Broadcast RGB: Full So you can clearly see that both are accepted (at least at input level). Right now HDMI negotiation of Full is forced by autostart (see post #1). But Kodi itself sends Full or Limited - it depends on settings. At least on my TV i can clearly see difference - with Limited colors are washed out. But with Full movies are very dark. Yo can check which settings are best on post nr 1360. But (IMHO only) best settings are with Kodi set to Full, no dithering, but on TV level setting forced to Limited (usung xrandr). So on my setup autostart looks like this: Code: OUTPUT=`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'` RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-09-29 (2015-09-29, 06:44)Sunflux Wrote: VALID FOR THE NEW KODI EGL VERSION IN THIS THREAD:Nice summary Sunflux. Could you explain what means Driver level? Kodi and Dithering are clear since they are settings in Kodi. But what do you mean by Driver and what by TV? Which one is xrandr setting from autostart? RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-29 Driver Level: xrandr RE: New Era: VAAPI with EGL interoperation - john.cord - 2015-09-29 (2015-09-29, 20:46)BigL-New Wrote: But (IMHO only) best settings are with Kodi set to Full, no dithering, but on TV level setting forced to Limited (usung xrandr). So on my setup autostart looks like this: Ok but this whole thread is about to set the system via xrandr to full and Kodi to Limited via the "use limited colorspace" Setting because the colorspace conversion thing... Btw, my Setup is: Chromebox (RGB Full, Kodi Set to limited) --> AVR --> HDMI Splitter --> TV/Beamer I checked the settings of my TV via a PS3 set to Limited RGB. Both Systems produce the Same Picture of the AVSHD Black Level test Pattern so in my case i assume that the Plasma is reading the Signal as Limited Colorspace and the beamer has a trigger for Colorspace and is set to Limited RGB. |