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 Leia v18 nightly based on Ubuntu 18.04 server - ruudjewee - 2019-03-24 Unfortunately I am still struggling with the video stuttering issue. (logs in my previous post) When I try do diagnose the issue with the Birds sample video. I clearly see that the video "hangs" for one (or mabye two) frames roughly every second. The interval between the occurrences seems to be constant. The issue is easy to notice when many things are moving in the video, in more quiet scenes I do not notice the issue at all. I tried disabling passthough and setting "Sync Playback to Display" to On, with "Adjust Refreshrate to match video" off, so that I can configured a fixed refresh rate. With these settings I see that higher refresh rates (50 or 60 hz) seem to make the videos a bit smoother. I suspect that the video hangs for one frame only, and the hang itself is shorter in this case. I also tried tuning with the xorg config file (e.g. enabling the TearFree setting), but that did not seem to make any difference. I have tried to downgrade kodi to 2.17.6, but that did not resolve my issue (so I upgraded again). I did found one recommendation on stackexchange which I did not try yet. Which is uninstalling the xserver-xorg-video-intel package. The package info (apt-cache show xserver-xorg-video-intel) states Quote: The use of this driver is discouraged if your hw is new enough (ca. 2007 and newer). You can try uninstalling this driver and let the server use it's builtin modesetting driver instead.Is there any reason to not use the builtin modesetting driver? Any other suggestions for things to try which can resolve my video stuttering issue? RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-03-24 Update to a nightly first. Some stuff was fixed in EGLSync RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - ruudjewee - 2019-03-24 Switched to the nightly kodi build but unfortonately this does not resolve my problem, below are the logs when I reproduce the issue using the nightly build. $ dpkg -l |grep mesa https://pastebin.com/tLTsBZ6T $ DISPLAY=:0 vainfo error: XDG_RUNTIME_DIR not set in the environment. libva info: VA-API version 1.1.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_1 libva info: va_openDriver() returns 0 https://pastebin.com/MSTveAe6 $ cat ~/.kodi/temp/kodi.log https://pastebin.com/RkdPVssF $ dmesg https://pastebin.com/tLL96dtr $ id https://pastebin.com/eUtsA5Lf $ amixer https://pastebin.com/k16J3FTc $ cat /var/log/Xorg.0.log https://pastebin.com/nFVQ0DTC RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-03-24 Okay, then no idea. You could try LibreELEC from an USB-Stick and see if you experience the same issue. Also for testing unplug the CEC adapter. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - yasij - 2019-03-25 I've noticed stuttering on 1080i interlaced content with the i965 VAAPI driver as well. In the "o" player process menu, "Deinterlace" alternates between vaapi-none and vaapi-madi. If I use the iHD intel-media-driver VAAPI driver instead, it's fine and I get no alternation between vaapi-none and vaapi-madi. If I use vaapi-bob as the deinterlacer with the i965 driver, I also don't see the stuttering. log file RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-03-25 I only see broken mythtv streams in your log, other than that nothing. We never supported the iHD intel-media-driver and never tested it. If you can provide a sample to reproduce, please file a bug on github - all my livetv content is 1080i50 and I cannot reproduce, therefore cannot help, I even run on a very slow Apollo Lake J4205. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - BigL-New - 2019-04-12 Hi fritsch, Thank you once again for your great support and just to inform you that instructions in post#1 about enabling permission to shutdown, suspend the computer miss part described in this thread - https://forum.kodi.tv/showthread.php?tid=311630 - in post by BytEvil. The part about changing grants in few places in /usr/share/polkit-1/actions/org.freedesktop.login1.policy I've done fresh install of Kodi on Ubuntu 18.04.2 server based in 100% on you guide. And power menu was missing entries to shutdown, suspend the computer. After fix described above everything is OK. RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - paaja - 2019-06-19 Hi, firtly, thank you for the how-to! Could you please add to install package mesa-va-drivers from Paulo's ppa (sudo apt install mesa-va-drivers) to the "AMD users" section? I bought a little beast ASRock DeskMini A300 with AMD Athlon 200GE, followed your how-to (Ubuntu Server 18.04.2 with HWE kernel 4.18) and in Kodi, only VDPAU showed for video acceleration. I was wondering where the problem is, simple "dpkg -l | grep mesa" showed me only mesa-vdpau-drivers were automatically installed. After installing mesa-va-drivers package, I was able to set VAAPI acceleration in Kodi. By the way, it works great :-). Thank you again RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - DaVu - 2019-06-19 (2019-06-19, 07:04)paaja Wrote: Hi, You haven't read everything from that how-to: https://forum.kodi.tv/showthread.php?tid=231955&pid=2051116#pid2051116 Quote:180527 - AMD users RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - paaja - 2019-06-19 Hi DaVu, You mean the exerpt "..you need to install mesa 18.0.1.."? To be clear, mesa was automatically installed using how-to (later updated) from Padoka PPA (version 19.1.0) but only the package "mesa-vdpau-drivers" but not the "mesa-va-drivers". I had to install "mesa-va-drivers" explicitly. Maybe I didn't get it right :-). Thank you for clarification (2019-06-19, 09:36)DaVu Wrote:(2019-06-19, 07:04)paaja Wrote: Hi, RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - wsnipex - 2019-06-19 yes, mesa-va-drivers are needed for vaapi on amdgpu: Quote:Description: Mesa VA-API video acceleration drivers@fritsch ping RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2019-06-20 Thanks. Added in AMD-green in text and changelog RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - paaja - 2019-06-20 Thank you! RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - manjur - 2019-06-24 Hi all, I did fresh ubuntu server 18.04 install on Asrock J3455-ITX using manual in first post Kodi Leia 18.3 last stable from ppa When I do 'systemctl start kodi', kodi starts and then closes after 2-3 seconds. If I downgrade to Kodi 17.6 - it not drops and working for hours Please give me advice how to start it to work mesa http://paste.ubuntu.com/p/DWsnpbKgvW/ vainfo http://paste.ubuntu.com/p/W65QryWwKd/ kodi.log http://paste.ubuntu.com/p/YpZFXSHKQn/ dmesg http://paste.ubuntu.com/p/Q5nfCq9tBN/ id http://paste.ubuntu.com/p/xHS7VQdYMQ/ amixer | pastebinit http://paste.ubuntu.com/p/h2BDRQK5xf/ Xorg.0.log http://paste.ubuntu.com/p/cjtbf9R6FK/ RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - manjur - 2019-06-24 (2019-06-24, 20:02)manjur Wrote: Hi all, Fix it, problem was not in kodi but in my systemd unit file. Working ok. |