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-12-01 (2015-12-01, 01:09)m_gl Wrote:(2015-11-28, 17:05)fritsch Wrote: Here we go: Thanks for the report - does creating /storage/.config/xorg.conf with the following content restore the 20151127 behaviour?: Code: Section "Device" RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-12-01 (2015-12-01, 10:18)fritsch Wrote:I don't know exactly. But I've checked (reboot to kernel with my modified patch) an definitely there is big difference between Full Range and Limited Range. With Limited Range colours are much brighter than with Full Range. But it's rather that with Limited Range colours are OK and with Full Range colours are too dark. It can bee seen on calibration patterns:(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): Full Range - all blacks are 100% black (even these above 16) but whites are 100% white starting from 232 Limited Range - blacks below 16 are 100% black and but whites are 100% white starting from 250 So as you can see your new patch is much better, with Full Range i've perfect colours :-) RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-01 If your TV is dump and Limited Range there won't be a difference between xrandr: Full + kodi limited and xrandr: Video 16:235 and kodi limited. xrandr: Limited Range 16:235 we have discussed now a lot does scaling by itself. This in combination with kodi's limited will produce gray for black and light gray for white. Video Limited 16:235 xrandr setting will set Limited Infoframe _but_ won't scale colors and just let them passthrough. As you see in my patch the (limited && !video_range) -> don't scale RE: New Era: VAAPI with EGL interoperation - m_gl - 2015-12-01 (2015-12-01, 10:19)fritsch Wrote:(2015-12-01, 01:09)m_gl Wrote:(2015-11-28, 17:05)fritsch Wrote: Here we go: Created the xorg.conf, it is working, playback is fine. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-01 Nice -> https://github.com/fritsch/OpenELEC.tv/commit/058cd657bd81958bec743774c371a33cafa6d1c9 will remove that with next build ... it "fixed" gui limited to 25 fps issue when having a 50i video in the background - though I exactly feared things like that. RE: New Era: VAAPI with EGL interoperation - FernetMenta - 2015-12-01 I would rather disable triple buffers than making it worse with tearfree. Throwing away frames at a different stage just to see the silly fps counter lying is no solution at all. EDIT: also note that the introduced latency of frametime DOES harm. You notice on a/v sync and on GUI responsiveness. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-01 In my tests: Code: Section "Device" did not make any difference, sadly. RE: New Era: VAAPI with EGL interoperation - FernetMenta - 2015-12-01 It cures a/v sync because Kodi assumes double buffers NOT triple. Your work around sacrifices a/v sync for the sake of a more or less unimportant use case. There ore only a few dialogs where fps drops down and only when playing SD on lower end systems. Do you really think this is more important than a/v sync? btw: I noticed improvement on my 1820T with double buffers. System Info does not drop to 25 fps. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-01 Intel driver does default TRIPLE buffering NOT Double. You had TripleBuffers on, on your system enabled - until I told you about the defaults two days ago. And your "Do you really think" - comment is fully out of context. The "Tearfree" was a blind test - as the developer told me: it does not influence full screen swaps at all - the blind test told us now otherwise ... and it will be off again. Also: Users need solutions for running a browser next to kodi - for watching amazon prime / netflix / whatever ... choose between TearFree and compositing :-). TripleBuffering is default on windows (Aero) and will be default on everything wayland - we can make a double buffer dance when this happens - but we need to cope with that in the future. Edit: Yeah, just tested all combinations. If a browser is relevant to you - you won't get the tearing fixed at all, when TearFree is off. TearFree On instead will harm kodi (as seen above). So there is no nice solution available to get both, e.g. perfect kodi playback and DRM content via external providers through browser. RE: New Era: VAAPI with EGL interoperation - FernetMenta - 2015-12-01 You words and your actions are two different stories. Nobody needs triple buffering on OpenElec: https://github.com/fritsch/OpenELEC.tv/c...3cafa6d1c9 I am not saying that double buffers is the one and only way. I am just against pretending that an issue is "fixed" that is not the case at all. Much better solution is to detect if a system runs triple or double buffers and adjust to it. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-01 OpenELEC ships a browser ... chromium ... Edit: Action: https://github.com/fritsch/OpenELEC.tv/commit/e603796781812cfad11b6fad994909283b4004d7 <- revert (done > 60 minutes ago - after getting the test results) RE: New Era: VAAPI with EGL interoperation - lusephur - 2015-12-01 THe version of Chromium in the openelec repository is broken. This one is working Quote:http://openelec.tv/forum/128-addons/76645-addon-chromium-browser-latest-stable RE: New Era: VAAPI with EGL interoperation - the-dreamer - 2015-12-02 yes, if the chromium is used under openelec "tearfree on" is necessary. sadly i have also to switch to limited colors when browser is started because otherwise the browser is outputting in full range color. btw: with OE r21585 audio are on many tv channels with dolby 2.0 not synced with picture. also is audio dolby 2.0/5.1 not in sync if there are errors in streams. on satellite this sometimes happend. is that already known or are logs necessary? RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-02 (2015-12-02, 01:12)the-dreamer Wrote: yes, if the chromium is used under openelec "tearfree on" is necessary. sadly i have also to switch to limited colors when browser is started because otherwise the browser is outputting in full range color. For the first part: Does that mean your past 25 fps issues were all caused cause you already had TearFree enabled? RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-12-02 Currently uploading new builds: Changelog: - Disable Tearfree as it failed and was proven to introduce sync errors - Disable TripleBuffer as kodi uses a double buffer by default For the future, everyone with sync problems also provide Xorg.0.log please - if TearFree is used - we already know it's the driver that is causing it. |