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-10-01 Yeah - I know why .... Damn on my hurry I bumped to 4.1.9 and did not move the patches folder :-( (Isengard only - Jarvis is fine, kernels for Ubuntu are fixed to (lauri3)) RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-10-01 First time after upgrade i need to untick/tick 16-235 option to have correct 16-235 a restart didn't solve and before restart auto acted as normal After restart of tv and kodi auto=full...limited ok speed test done before go to work RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-10-01 @Sunflux: Please try the latest .tar in the Isengard folder. RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-01 Okay, that's better: Broadcast RGB: Video 16:235 pass-through supported: Automatic, Full, Limited 16:235, Video 16:235 pass-through However, every time I reboot the UI comes up too bright. Unticking Kodi's Limited mode makes it correct, but ticking it again makes it too bright. It's not until I do something that refreshes the display - play a movie, change the refresh rate, etc, that it starts working correctly. So, that tells me that the TV isn't immediately locking onto Limited range on first boot, but is on subsequent screen changes. With that said, the greyscale test looks AMAZING. Best they've ever looked on this screen. The 0-255 Full/Full/Dithered output that looks great on my LCD, actually looks quite horrible on this Plasma... but now, it looks PERFECT. Except for the boot bug. :-) RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-01 Testing further: If I set Kodi to operate at a refresh rate other than 60hz (which I assume is what the system boots at), the GUI then loads in the correct color space. RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-01 Real-world examples of the difference that true Limited mode makes. The full-range dithering doesn't work at all well when displayed on the plasma, but does work well on my LCD. Ignore the color shift in the darker end of the spectrum; the camera seems to exaggerate that. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-10-01 (2015-10-01, 09:40)Sunflux Wrote: Testing further: Okay - that's what I assume. On bootup the coefficients are set until reset. Can you try to add something like this into your autostart.sh: #!/bin/sh xrandr --output YOURHDMIOUTPUT --auto or alternatively switching to another mode? For me this "go to Full and then to limited solved the issue". But we find another workaround for sure :-) So please play arround with what you need to do to get it right. I will look at the kernel code tonight. RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-01 Earlier, I tried adding xrandr --output HDMI1 --set "Broadcast RGB" "Full" xrandr --output HDMI1 --set "Broadcast RGB" "Video 16:235 pass-through" to autostart.sh, but it made no difference. EDIT Just tried your --auto line; no change when at the system refresh rate. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-10-01 Switch to 50 hz and back to 60 hz works? e.g. xrandr -r 50 ; sleep 1; xrandr -r 60 Combining --off and afterwards -- auto also works? RE: New Era: VAAPI with EGL interoperation - sat4all - 2015-10-01 (2015-10-01, 10:09)Sunflux Wrote: Real-world examples of the difference that true Limited mode makes. The full-range dithering doesn't work at all well when displayed on the plasma, but does work well on my LCD. Do you see any visible difference between 16-235, kodi limited, dithering and no dithering? RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-01 (2015-10-01, 10:32)fritsch Wrote: Switch to 50 hz and back to 60 hz works? e.g. xrandr -r 50 ; sleep 1; xrandr -r 60 No to the first one in autostart.sh (will work after Kodi is loaded). This worked: xrandr --output HDMI1 --off; sleep 1; xrandr --output HDMI1 --auto (2015-10-01, 10:35)sat4all Wrote: Do you see any visible difference between 16-235, kodi limited, dithering and no dithering? There is no visible difference with dithering on or off when in this new passthrough mode (proper 16-235), or in the prior version when outputting limited video as full. RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-01 Fritsch: a request. When in limited mode, would it be possible to set the background mask colors of videos to 16-16-16 instead of 0-0-0? I get weird visible horizontal lines on an otherwise solid black screen where the cropped video ends... and I suspect it's because the TV's trying to sharpen the transition from 16-16-16 to 0-0-0, and thus creating an artifact in what should be solid black. The original Blu-rays of course hard-encode 16-16-16 black bars, but I've always cropped those when I re-encode. This is a situation that wouldn't have happened previously when the driver forced everything up to 16-16-16, but whatever's creating the black background doesn't seem influenced by the Limited setting. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-10-01 Okay, can you try: http://fritsch.fruehberger.net/tests/OpenELEC-Generic.x86_64-6.0-devel-20151001104243-r21356-ge46f19a.tar - hacked arround in the kernel a bit :-) RE: New Era: VAAPI with EGL interoperation - Sunflux - 2015-10-01 Should I remove my xrandr lines from autostart? EDIT: removed the line. Still starts up in the wrong color space. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-10-01 Good - then no idea how to fix it ... (or better said: no time). |