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 - 2017-08-05 Here: https://patchwork.freedesktop.org/patch/170051/ <- please downgrade to mesa 17.1 or wait until that patch hits 17.2 stream RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - disaacso - 2017-08-09 (2017-07-13, 07:29)MicTie Wrote: Hi, If you're running kodi in its own session it's possible that you've minimized the window, which won't change the screen dimensions but will cause this type of behavior. If not then disregard RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - MicTie - 2017-08-10 Since adding the following lines to /etc/X11/xorg.conf: Quote: everything works fine (see https://forum.kodi.tv/showthread.php?tid=231955&pid=2616493#pid2616493, UPDATE 3 - SOLUTION) Thanks! RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - samuellarsson - 2017-08-10 (2017-08-05, 21:59)fritsch Wrote: Here: https://patchwork.freedesktop.org/patch/170051/ <- please downgrade to mesa 17.1 or wait until that patch hits 17.2 stream Thanks, but when I try to downgrade my mesa packages to 17.1 it wants to remove my Kodi packages. After fiddling around a bit I ended up with 17.3 instead... Any tips on how to downgrade? RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - ((( atom ))) - 2017-08-11 Hi there, I am finally fed up with my weird stuttering of 25Hz material, like TV-shows, so I'd like to investigate that with your help. My Projector does not have a native 25Hz mode. it offers 1080p50 as well as 1080i50. 24 fps movies play just fine, but all 25fps content on either of the 50 Hz modes stutters. The solution upto now is playing back 25fps content on 24Hz and live with some audio-effects audible from resampling constantly. On the long run rather annoying.. Hardware is Apollo Lake. Here is my xrandr-kodi-output: https://pastebin.com/1DdpYzB1 What else could help to pin down the issue? Settings-wise, I've been through every possible combination, the result is always the same. The system is arch linux and up to date. @Fritsch: You might remember having figured that we had identical versions for all the software in question, last time we wrote a couple of weeks back. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2017-08-11 You got a sample? That reproduces the issue? Where is your Debug Log? RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - ((( atom ))) - 2017-08-17 Sorry, I'm slow atm. Will come up with it on the weekend. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2017-08-17 No problem for me - I don't wait on input ... RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - ((( atom ))) - 2017-08-20 Aha. So I finally found some time to test and log the issue and what? - 25 fps runs smoothly for the first time under 50 Hz! Now this is weird! Just checked it recently and had it stuttering as usual... No update since then. I will start using it from here on und report back if there are any issues again. An off-topic question: Does anyone know if there have been changes made to the image-buffer used when delaying the video in order to run in synch with audio? I use a large delay (0.7 up to 3 sec) due to FIR convolution of my audio. A while ago the video started stuttering if the value exceeded 0.6 sec. That leads to problems. With my setup I would need 0.7, so that is on the edge of bearable but a friend of mine recently started getting into audio convolution (on a pi) and cannot use it, since on the pi the audio delay is > 2 sec with convolution. I could imagine it beinig a simple buffer-size issue with some luck.. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2017-08-20 Why? What does the filter? RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - ((( atom ))) - 2017-08-20 The convolution? It takes an audio impulse of 0.7 sec length and multiplies it with the running audio stream. The impulse is the inverse of a measurement derived from my Stereo-system and my room. The effect is, that the mistakes my audio-chain makes, are disappearing, since I feed the audio signal with the inverse of the mistakes measured at the listening position. Apply this to a proper setup and you will be totally blown away. The downside is the very high latency but luckily kodi can deal with it. Recently though, something has changed which makes it problematic. Btw, my stuttering 25fps video /might/ just have to do with it. The only thing I recently changed was the audio-delay. I made it a bit smaller (5.76 sec or so), since some movies came out slighty choppy. My girlfriend immidiately noticed, that now lip synchronisation was lost, though I made the change when she was not around, so she wasn't expecting anything to be different. Solving this buffer-issue might solve all my problems at once. [edit] ..just checked again and it seems that the delay-setting which is just still working for 24 fps movies played at 24 Hz is a tad bit too high for 25 fps movies played back at 50 Hz. OK, now that is finally understood. Still it does not help a lot, since I'd just need a tiny littlebit more delay and kodi cannot give it. [/edit] RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2017-08-20 I did phd studies on that field that's why I was interested :-). Interesting. You can increase AE's internal buffer size or even better: get in contact with AchimTuran - I was one of his mentors doing GSoC with exactly that goal - so you can help him incorporating that into ADSP. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - ((( atom ))) - 2017-08-20 I don't think the AE buffer size is the problem. The video has to be delayed, not the audio. The audio goes through external DSP-processing, which delays it for 0.7 sec, so the video comes 0.7 too early and has to be delayed by that amount. I cannot imagine a bigger audio-buffer to help here, but I might be wrong of course. Something else: I tried playing back HEVC 10 bit for the first time and it stutters. So I checked what the CPU is doing with top and it constantly hits 100% on all cores, though vaapi is enabled and otherwise working. I couldn't find anything final on that in the forums but the hint that kodi 17 introduces hevc 10 bit hw-decoding. What's the status here? RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2017-08-21 Depends - no idea what hw you are running. V17 does not support HEVC-10 bit V18 needs Apollo Lake / Kaby Lake or later ... in combination with Mesa >= 17.1 Post a full Debug Log with videoplayer component logging and audio component logging enabled. This will show if your sink reports it's "max cache" correctly. If it doesn't and then delay gets higher than that value it's wrong by design. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - ((( atom ))) - 2017-08-21 This is what I found in the changelog of Kodi 17: 1.11 Linux Specific Added new CMake based build system of Kodi and binary addons for Linux (as well as for BSD, OSX, and Windows)[112] Added multi-architecture/distribution support to Kodi's CMake build system for Linux[113] Added support for HEVC Main 10 profile (10-bit) hardware video decoding via VAAPI if hardware support it My Kodi runs on Apollo Lake, mesa should be >= 17.1 but I can check that again once I fire up the machine. So if I install kodi from git I should be lucky? Tried it last night via yaourt but failed with a dependency not being correctly updated. Have to dig into this sometimes. Can I enable video and audio logging separately? I only know to turn on debug logging in the system menu. |