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-11 Just tried with sd content no vaapi deinterlace option. anyone can confirm ? will post log and mediainfo later Edit:Now i have it for 1080p film and not for sd RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-09-11 here an example https://www.dropbox.com/sh/ctkzpqiwpuup5zc/AAA4-SJnXzbqqYMRbLu1P6x6a?dl=0 could not post log cause log uploader get in error Edit:Restart chrome box, play a video> try to launch kodi log uploader =error tried 3 times after a restart if i don't play any files kodi log upl works correctly edit2: tried also a soft reset RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-11 What should I see on this picture? All fine, as it should. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-11 Another build for today: http://fritsch.fruehberger.net/openelec Changelog: - Reverted the Adjustrefreshrate Change (we need to go back to the scratchboard for this and the other usecases) - Fernet has rebased on current kodi git - No changes concerning the 2 4k files (Tears of Steel, Sintel) have fun. RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-09-12 (2015-09-11, 22:39)fritsch Wrote: What should I see on this picture? All fine, as it should. leave it...i'm only getting too old for technology RE: New Era: VAAPI with EGL interoperation - cscoppa - 2015-09-12 Fritsch, latest build running GREAT on an ECS Liva. The UI feels a lot snappier than my previous 14.04 stock ubuntu setup (with direct booting straight into Kodi instead of the desktop via kodi.desktop) Also should mention I'm running kodi-pvr-mythtv plugin which is also working great. Noticed one small bug where deleting a recording via the UI actually deleted the file on the backend, but didn't update in the Kodi UI. (file was still there, but couldn't be played since it was really gone on the backend.) RE: New Era: VAAPI with EGL interoperation - furii - 2015-09-12 (2015-09-11, 07:33)fritsch Wrote: - Fixup Adjust Refreshrate to match video. We now also can change resolutions, use case: Gui @ 1080p60 -> switch to 4k@24 when a matching movie, e.g. refreshrate is 24 is to be played. This is especially a use case for Intel Boxes that can only output 4k@30 max and therefore LiveTV content (1080i50) should be played at 1080p50. Note: if you have such a setup, we recommend to run the GUI in 1080 mode as kodi's GUI scaler is just low quality. It will automatically switch up when content is played which fps <= max refreshrate at 4k. apologies for responding to an old post, i've been away for a bit and just now caught up on the work done in the last week or so. regarding the kodi gui scaler shouldn't things be better now that this pr has been added? list of scaling options here. cheers on all the progress being made. RE: New Era: VAAPI with EGL interoperation - wsnipex - 2015-09-12 no, this is only for pictures RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-12 After reading the code: It is only for caching textures, e.g. the thumbnails and posters for the internal db. And the default is from my code reading still FAST_BILINEAR. Edit: The default was changed later on to BICUBIC by Martijn https://github.com/xbmc/xbmc/commit/dd92043faca07d6ba695712491316ecc0e14cfb9 RE: New Era: VAAPI with EGL interoperation - psysfaction - 2015-09-12 (2015-09-11, 19:42)fritsch Wrote: If you have good idea on howto build a concept so that users easily understand it, now would be the time! How would such a setting look like? I think it is very cool if we can switch the video resolution automatically since it will make all devices with HDMI 1.4 actually usable for 4K content and I am very thankful for the people implementing this since I can not code. For the settings maybe in the video system settings you set the resolution and then you have a a separate section where people can switch between a option like:
Similar as how the Audio settings are at Output Configuration Any thoughts? RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-12 Thanks for your input, (2015-09-12, 11:13)psysfaction Wrote: For the settings maybe in the video system settings you set the resolution and then you have a a separate section where people can switch between a option like:We still think, that our Lanczos3 Optimized scaler is better than what the TV can accomplish. So we could scale >= 1080 to 4k ourselves. Quote:[*]Force resolution (every thing including gui is set to 4k)That would basically be like it is now, when user selects the 4k mode byself and just wants us to switch the refreshrate Quote:[*]Use native resolution (resolution is changed according to every video played)Currently the method we use only has fps as parameter, so that needs changing. That would also mean we switch to 1280 or even 800x600. Another suggestion is a more simple one, what about: Allow to switch to 4k resolution That would mean: If we run the gui in 1080p50 / p60 and wanted to play video that is 3840x2160@24p that we then switch to this resolution. That should be rather easy to implement and only the following things need to be done: - Incorporate the dimensions of the movie into the method (already there afaik) - Try to distinguish between 4096 and 3840 modes and find the best matching mode (euclidian distance or minkowski distance between video_width - screenwidth) - (workaround the 3840x2160@25p mode), cause we prefer higher refreshrates by default. That simple setting would resolve the concerns raised by fab67, though it would not switch 1080p24 to 3840p24. What do you think, is that a good start? RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-12 Okay, I implemented the above: https://github.com/fritsch/xbmc/commit/445caa88d588fe437641c04aed59c126f9ee7e80 Only thing, that we need to think about: Do we trust the 4k TV to do the 1080p to 3840 upscaling better than us? Cause in current code 1080 is handled by the TV, we only switch up if source material is larger. Advantages: - Low gpu load (TV is upscaling) Disadvantage: - if TV upscaling quality sucks, the 1080p movie sucks, workaround: Buy a new TV - cause with 1080i50 LiveTV being standard, a bad TV scaler would really sucks for all usecases. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-12 @noggin, psysfaction, fab67 here is a testbuild with just that change. Please test your 4k content, starting from a 1080p GUI. If the gui is at 3840 already, it should yield the old behaviour (besides you have 4096 mode and the sample is > 3840). http://fritsch.fruehberger.net/openelec/OpenELEC-Generic.x86_64-6.0-devel-20150912130948-r21278-gbe69d8e.tar Also I would be thankful for debuglogs. You find 3840 and 4096 samples within this thread. RE: New Era: VAAPI with EGL interoperation - fab67 - 2015-09-12 fritsch, now all is ok for videos up to1080p. they are displayed at 1080p. But 3840*2160@24p are displayed at 4096x2160 and not at 3840*2160. And with sintel 4096x1744 I have the known problem but one other thing I see : sintel 4096x1744 is displayed at 4096x2160 so original size ( no need of rescaling ) but it seems that the video scaling is enabled. Should it be enabled in this case ? because with lanczos method -> lots of skips and drops. Here the log when I try that : http://www.xbmclogs.com/poawuz43k RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-09-12 Do you use component logging? I cannot see my strings :-( |