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: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-06 As kodi finds the soundcards - you have some permission issue with the user running this aplay -l sudo aplay -l and see if you get more devices. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - morstef4 - 2016-05-06 I have made some progress but... not enought Thank you fritsch and bluesmanuk. New threat here for this : http://forum.kodi.tv/showthread.php?tid=272858 RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - tocinillo - 2016-05-07 Hi! Recently I installed the new Ubuntu 16.04 (server, LXDE+Openebox) but I tested some videos with same problem: after an hour of play, Kodi increases CPU usage 7-8% per core to more than 35-40% per core (with or without playing video), playing the same file. If I restart Kodi (kill and open again) the CPU usage returns to normality. It's very curious, because the problem is progressive and starts exactly at hour (+-15 min), the CPU goes from 7-8% per core to 15, then 20, then 25, then 30...finally I see the total CPU usage from 30% to 130 :S I tested it with FRESH install, no additional packages or programs, only Kodi 16.1 and openbox. 30-35 minutes playing: after 1 hour: * You can see in the first pic "House 1x01...35 minutes", in the second pic Kodi played the first epiisode (42 minutes) and 22 minutes of the second, 64 minutes in total. I checked temps and are Ok (50-55ยบ celsius) no underlock in cpu, etc.I know that in the screens I had eminence with some addons, but I tested also only pure kodi purged (16.1 and 17) and same problem again. I have 3-4 debug log, nothing interesting: http://pastebin.com/2gmtGKWi The same test in Openelec (Kodi 16.1 RC2) works nicely, over 2-3 hours playing 1080p with normal CPU usage and when I return to main menu, the CPU usage is normal...so I don't know what I can do. PS: I also tested with Kodi 17 alpha2 and same instructions that told fritsch in the first page with same result: after 1 hour the CPU usage increases A LOT. Full debug log with 17 alpha: http://pastebin.com/kTgbrxcq PS2: I'm playing with NUC5PPYH (I tested Asrock N3000 and FN2820FYKH with same results) over NFS (Synology). Thanks and regards. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-07 Please open a new thread for your 16.1 issue. For v17, please check with top (by pressing H) which thread is causing the issue. Also enable debug logging, perhaps we see something. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-08 You most likely miss the xorg legacy part ... RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - djnice - 2016-05-10 Hello, I tested the Kodi picture quality with a HDMI capture device. This is a raw capture, no compression. I used the Spears & Munsil test disc, there are the test pictures (same frame from the 1080p24 video): Kodi 17 nightly (i3-5005u): link Dune HD Connect (SMP8675): link Popcorn Hour VTEN (SMP8757): link Samsung BD-F5500 (MediaTek MT8555): link BFS 4KM (HiSilicon Hi3798): link It seems, the Sigma and the MediaTek SoC give the best quality, transparent output, the HiSilicon SoC overprocess the image a bit (due the Imprex engine), and Kodi is the less detailed. Why? RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-10 Cause you did not properly setup xrandr most likely. What were your xrandr settings? What were the kodi settings concerning Limited Range? Did you use VAAPI for decoding? And so on? RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - djnice - 2016-05-10 I used the first link for setup, with Ubuntu server 16.04, VAAPI enabled with full range. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-10 So the data that you capture is scaled from 16:235 to 0:255 - which is not untouched. Dithering was also added to the mix? Three things to verify: a) Make really sure the output is running at FULL (xrandr --verbose will tell) b) Check "Use Limited" to ON in kodi - that will output the original range 16:235 without any changes to the image data. c) Make sure your capture card actually realizes that you send "Limited Range" Data via a faked "Full range" xrandr If c) does not work - use a custom kernel that has the Limited non clamping output mode from e.g. http://fritsch.fruehberger.net/kernel RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - djnice - 2016-05-10 OK, I will try, but the color space conversion affects the details so much? RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-10 I just looked into your images in detail - all of them seem to be full range, which makes me wonder. Can you please post a kodi Debug Log when playing that content. I think a sw decoder is used here and not VAAPI or the .bmps are somehow postprocessed. Edit: Also if you can, reproduce with one of my "older" OpenELEC images from an usb stick. There were recent changes in the render concerning precision. Those image do the right stuff without any change needed: http://fritsch.fruehberger.net/openelec/v17_videoplayer_testing/OpenELEC-Generic.x86_64-7.0-devel-20160317171811-r22307-g8180b93.img.gz that one should be good enough for testing this file, but also don't forget the Debug Log RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - djnice - 2016-05-10 The .bmps are unprocessed 100%, and I think, the hardware decoder is working, this is the mediainfo Format : AVC Format/Info : Advanced Video Codec Format profile : [email protected] Format settings, CABAC : Yes Format settings, ReFrames : 4 frames RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-10 I want the Debug Log please and obviously compare against SW decoding. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - djnice - 2016-05-10 This is the log: link RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-05-11 No, that's a cutout part of the Debug Log ... missing completely the enumeration. Verify with OpenELEC as suggested above to minimize user error. |