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 - Roby77 - 2015-09-28 here is an example In auto black is grey and white is not white If i set normal=limited black 16 is black BUT white is a variation of grey RE: New Era: VAAPI with EGL interoperation - Hufvudet - 2015-09-28 (2015-09-28, 13:00)Roby77 Wrote:(2015-09-28, 12:53)Hufvudet 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 Beyond my knowledge but it sounds very strange that they should produce noticably different results. If anything, it should be the other way around since range is untouched in limited. But again, this is a question for the avs forum guys who know your tv inside out. RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-09-28 Yes i Know, on italian avs they replied me that's a problem of player now i don't have any pc with intel graphic chip, but i will give a try asap RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-28 Concerning DCAdec - in fernet's ppa it is working automatically - there is no setting to disable it. If DTS-HD / DTS passthrough is not enabled - dcadec is automatically used. You can see that from the logfile. You also see that DTS-HD soundtracks are listed as 7.1 - while it would be 5.1 without dcadec support in ffmpeg. RE: New Era: VAAPI with EGL interoperation - Hufvudet - 2015-09-28 (2015-09-28, 13:18)Roby77 Wrote: Yes i Know, on italian avs they replied me that's a problem of player Last post from me on this @Roby77 since OT, but what you are describing sounds impossible. You're saying that 235 in limited range is grey, but white in full range at 255. That implies that Kodi's 16-235 setting is fucked up which doesn't sound likely. Something in your test is faulty. RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-09-28 (2015-09-28, 13:05)john.cord Wrote: The thing with RGB Limited and Full is that some TVs might recognize Full RGB because the System is set to Full and Limited Output is only done via Kodi or am i wrong Technically, any TV in "auto" mode SHOULD detect this Kodi version as Full RGB, because that's what the driver says it's outputting. There's a flag that can be set which informs the display that the signal should be treated as limited, and this is normally done when xrandr is set to limited mode, but since xrandr is specifically being set to full mode to support this new VAAPI rendering, that's what's being sent. (2015-09-28, 13:06)Roby77 Wrote: here is an example DO NOT select "Use Limited Color Range". Auto should work fine. -or- Select "Use Limited Color Range". Normal should work fine. Auto will not work. (2015-09-28, 13:19)fritsch Wrote: Concerning DCAdec - in fernet's ppa it is working automatically - there is no setting to disable it. If DTS-HD / DTS passthrough is not enabled - dcadec is automatically used. You can see that from the logfile. You also see that DTS-HD soundtracks are listed as 7.1 - while it would be 5.1 without dcadec support in ffmpeg. Perhaps it's my media files... but I find the 5.1 / 7.1 flags on DTS-HD soundtracks to be inaccurate. Sometimes it says it's 7.1 when it's really 5.1. Sometimes it says it's 5.1 when it's really 7.1. And often the file list info differs from the pop-up info when you're playing. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-28 Mhh - now we have some confusion :-) "Use limited Color Range" only changes the way kodi processes Color information. E.g. it cares that decoded NV12 surfaces are not upscaled to full rgb, but transformed to limited range rgb. Furtheremore it scales the GUI shader and Picture Viewer when presenting the GUI and the Pictures. It has absolutely _no_ influence on the GPU setting, which is solely done by xrandr. It is also obviously clear - that scaling in kodi makes only sense when the display driver does not _scale_ by itself after that. That's why we force the GPU always to full range. So with that being set there are only two use cases that make sense: A) GPU Full Range (xrandr), Kodi "Use Limited" _not_ ticked, Dithering (8bit enabled), TV set to full range B) GPU Full Range (xrandr), Kodi "Use Limited" _ticked_, Dithering (8bit is okay for banding in source material), TV set to Limited Range Every other setting makes no sense for color scaling in our own hands. If you really out of ever reason cannot avoid it to output GPU Limited range (xrandr), cause your TV acts stupid whatever or scales again when it gets full range (also possible). Then it is very important that you only let the scaling downwards happen once. Here I suggest GPU Limited range (xrandr), Kodi "Use Limited Range" _not_(!!!) ticked, Dithering 8 bit enabled. Then kodi will upscale and dither everything to 0..255 and the display driver will scale the range again to 16 .. 235. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-28 Quote:Perhaps it's my media files... but I find the 5.1 / 7.1 flags on DTS-HD soundtracks to be inaccurate. Sometimes it says it's 7.1 when it's really 5.1. Sometimes it says it's 5.1 when it's really 7.1. And often the file list info differs from the pop-up info when you're playing. I for my part find that you speculate too much during the day - here is a good book for reading: http://www.amazon.de/Effective-Modern-Specific-Ways-Improve/dp/1491903996 Without mediainfo + Debug Log for such files ... it is not possible at all to tell or guide you in any way. RE: New Era: VAAPI with EGL interoperation - Hufvudet - 2015-09-28 (2015-09-28, 14:13)fritsch Wrote: Mhh - now we have some confusion :-) Amen to that summary. RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-09-28 (2015-09-28, 14:13)fritsch Wrote: A) GPU Full Range (xrandr), Kodi "Use Limited" _not_ ticked, Dithering (8bit enabled), TV set to full range Agreed! This should be in the first post. Also, most TVs in auto mode should be set to (A), and any TV where blacks are crushed and there's no setting should be set to (B). Quote:If you really out of ever reason cannot avoid it to output GPU Limited range (xrandr), cause your TV acts stupid whatever or scales again when it gets full range (also possible). Then it is very important that you only let the scaling downwards happen once. Here I suggest GPU Limited range (xrandr), Kodi "Use Limited Range" _not_(!!!) ticked, Dithering 8 bit enabled. Then kodi will upscale and dither everything to 0..255 and the display driver will scale the range again to 16 .. 235. The golden ticket will either be the ability to manually force the driver to correctly set the "limited" quantitation flag, or the ability to have xrandr in limited mode and have it pass 0-255 that is not expanded. And alas, I need to do more than merely improve my C++ skills. I need some in the first place. I'm not concerned about the bad 7.1/5.1 tagging on DTS-HD - it all plays fine. Just a minor visual glitch. RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-09-28 don't kill me.. Yes it's all my fault...confusion mixed to bad english understanding... i sweare this my last post here and these are my conclusion Sorry for alla disturb caused... Formatted and reverted back to oe 5.95.5 1) Chromebox auto range (no full range) >kodi with 16-235 NOT thicked= Auto and normal same result Chromebox auto range (no full range) >kodi with 16-235 THICKED= Auto and normal same result Difference with option 2 washed image 2) Set Autostart.sh (with code provided in chromebox wiki) verified with xrandr--props Chromebox FULL kodi with 16-235 NOT thicked= Auto and FULL same result Chromebox FULL >kodi with 16-235 THICKED= Auto and FULL same resul Black and white are ok (no problem of 235 light grey) 3)Updated to Fritsch's Isengard build and deleted my autostart.sh with range full Launched Kodi and verified Kodi range is full so Chromebox Full>Kodi with dither and 16-235 UNTICKED = Auto and Full same result no problem with white 235 Chromebox Full > Kodi with 16-235 TICKED = 235 little grey with Auto, full and limited my confusion starts when someone told that with video best solution was Kodi full ,kodi and tv limited also if tv was full capable so i was forcing limited also in kodi last error was switching from limited to nothing without restart pattern test sorry again and bye RE: New Era: VAAPI with EGL interoperation - Hufvudet - 2015-09-28 @Roby77, please start a new thread and I can try to help you out there. or wait, are you saying there's a difference in OE official betas and EGL builds in regards to 16-235 implementation? Is that even remotely possible @fritsch? RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-28 Of course there is a difference . That's what this whole thread is about ... No matter what you do in normal builds, no matter what you set with "Use Limited Range" or not - the decoder with "Prefer VAAPI Render Method" will always output Full Range ... this is for video decoding. For Images the implementation uses the same code. RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-09-28 (2015-09-28, 13:06)Roby77 Wrote: here is an exampleHow to get to these settings? I cannot find them on my TV :-( RE: New Era: VAAPI with EGL interoperation - Hufvudet - 2015-09-28 I was too fast there I meant if there even could be a difference between sw renderering and new vaapi when it comes to 16-235 (apart from all advantages). Old vaapi is very different, I know. |