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 v18 nightly based on Ubuntu 18.04 server - Rumpelstiltskin - 2018-06-29 (2018-06-28, 20:55)fritsch Wrote:To be honest, I have to tell you that I tried, but I'm 41 now, and when I get out of work in the evening I m so cooked that I don't understand anything, but never say never(2018-06-28, 20:48)Rumpelstiltskin Wrote: I have very few programming skills, I know just the basics of c and something php but I'm really a rookie I'm sorry you have to use your holidays if I can help in any other way I'm availableNo chance you will improve your C++ skills? Or not planned in this life? :-) RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-06-29 (2018-06-29, 18:12)Rumpelstiltskin Wrote:(2018-06-28, 20:55)fritsch Wrote:To be honest, I have to tell you that I tried, but I'm 41 now, and when I get out of work in the evening I m so cooked that I don't understand anything, but never say never(2018-06-28, 20:48)Rumpelstiltskin Wrote: I have very few programming skills, I know just the basics of c and something php but I'm really a rookie I'm sorry you have to use your holidays if I can help in any other way I'm availableNo chance you will improve your C++ skills? Or not planned in this life? :-) Don't let me tell you about overhours in real life :-) I bet you will loose ... RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - MicTie - 2018-07-05 @fritsch : I after having some issues with my Kodi installation on Ubuntu 16.4, I followed the installation guide at the 1st page, and only realized afterwards that it's no longer a guide for Ubuntu 16.4 but 18.4. So it seems I screwed up some files ... Do you still have the guidelines for Ubuntu 16.4 at some backup? I don't want to start from scratch with many other services and programs running one the same server .... Thanks! RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-05 Nope, sadly not. Perhaps the internet archive has it in its cache. RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - FernetMenta - 2018-07-05 old version for 16.04 All EGL code was merged into Krypton - you can savely use kodi v17 based builds! Reporting issues: It is mandatory to always provide a full Debug Log that shows the issue. You can restart kodi before hand, reproduce and then post the logfile, by using pastebinit (sudo apt-get install pastebinit) - the following commands need to be run as the user running kodi (kodi if you followed the howto): Code: dpkg -l |grep mesa | pastebinit Issue reports without those logfiles are ignored or the posts deleted as they waste everybody's time. Introduction This is a new era for VAAPI. We worked together with the intel mesa people in order to get rid of the vaPutSurface method, that was the only way, besides some cpu intensive copying, to get the decoded surfaces via a texture from pixmap method to display. This always needed twice the amount of surfaces, as all the decoded surfaces needed to be copied and transfered to a texture again. Besides the additional gpu memory, this copy used too much performance and therefore high quality content like 3840x2160 with 60 frames (60p) were not really watchable even on highly performant hardware. Besides the performance issue, this putSurface method always scaled the limited color range of the original files to FULL RGB. Introducing Banding or even worse it was scaled twice, e.g. back to limited, by the driver itself. All this won't happen anymore, cause the new zero copy approach allows us to directly render the decoded NV12 surface with our own shader. So all color conversions are in our hands now. You can savely use "Prefer VAAPI Render Method" set to on again and don't need to waste CPU cycles with bypassing this Method. All colors will be fine. If you have a Limited Range TV - you need to set "Use Limited Range" to On additionally. Also make sure that your GPU itself is running at full range, which this howto and also all OpenELEC images will do by default. Furthermore we got implemented a feature called dithering, which will add random noise to the color scaled image when it is output on a FULL RGB monitor / lcd. So even perfect full range without any banding is now possible for VAAPI decoded material. This thread is for guiding and testing this new approach, mainly implemented by - whom else - fernetmenta. The dithering algorithm realization in the shader was done by laurim. Wsnipex has done the packaging for the Ubuntu ppa for ease of use. While we are trying to get this code tested and merged into kodi v17 - the daily builds and updates might get rough from time to time, whenever big changes appear in kodi. This code won't go into kodi v15 as development started right now. Also v16 does not have this code. To use hevc-vaapi a Braswell or newer architecture is needed. Haswell and Broadwell and older arches will use the CPU for decoding. So in short: Whatever is possible on linux nowadays on Intel hardware we have here in this build. This thread is a follow up of: http://forum.kodi.tv/showthread.php?tid=165707 Playing 3840x2160 60p with lanczos3 (down)scaling on a 1080p display at 60hz. Installation -1.) Hardware Requirements / Software Requirements SNB, IVB, HSW, BSW, BDW Intel Hardware This installation is based upon the server iso for Ubuntu 16.04 64 bit: http://cdimage.ubuntu.com/ubuntu-server/daily/current/xenial-server-amd64.iso (Until 16.04 is released, this links to the daily server iso images). 0.) Basic Installation and script tuning First install the server iso as you would normally do, don't select any additional packages besides perhaps ssh. Also make sure to not use "encrypted home directory" cause this render the simple systemd service unusable. After installation continue with the following steps: Code: sudo apt-get update Allow "everyone" to start the Xserver Code: sudo dpkg-reconfigure xserver-xorg-legacy Now edit /etc/X11/Xwrapper.config and add the following into a new line at the end of the file: Code: needs_root_rights=yes Create the kodi user and it add it the relevant groups. If you have created the kodi user during installation only do the usermod part. Code: sudo adduser kodi Now we give the permission to shutdown, suspend the computer, therefore create the file /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla with the following content (don't introduce line breaks, especially the Action= line must be exactly one line (especially no linebreaks or auto ".." in freedesktop.login1.*), verify this): Code: [Actions for kodi user] We need a simple systemd service file (this one actively waits on network connection, see: network-online.target remove that if you don't need to wait) Create the following file and put the listing into it: /etc/systemd/system/kodi.service Code: [Unit] edit /etc/security/limits.conf and add before the end. remember kodi is the username, not the application. This will allow your user to get the audio thread a bit more priority. Code: kodi - nice -1 RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - MicTie - 2018-07-05 Great! Thank you so much! RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - adolchristin - 2018-07-12 Thanks for the great guide; I've used it to much success on past Ubuntu 16.04 setups. I'm preparing for a clean installation on Ubuntu 18.04 and want to confirm that udisks2 is supported from Krypton 17.4 and up. The following link seems to indicate that this is the case: https://trac.kodi.tv/ticket/17560 I'd install the Leia nightlies but my wife is the primary user of the HTPC and I'd rather keep it on a stable release if I could. Although, sadly, this means I'll have to wait a bit for vaapi-hevc... RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-12 udisks2 is supported in v18 only For v17 you can use udevil RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - adolchristin - 2018-07-12 Thank you for the guide and the confirmation fritsch. I'd have been able to answer my own question by just looking at the pull request; sorry to trouble you! Edit: Got everything up and running on 18.04 but I have one question; what happened to the kodi-screensavers-* packages? I was looking to install greynetic but it seems like these packages aren't present in the release ppa anymore? RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-13 @wsnipex can you help out with that question? RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - wsnipex - 2018-07-13 they are all missing packaging files or otherwise fail to build RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - Rechi - 2018-07-13 @spiff can you add packaging files to your screensavers? RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - Rumpelstiltskin - 2018-07-13 Would it be possible to ask the visualization? @fritsch Do you know if there's any problem with the DTS-HD MA? I watched a movie today, but I have some "click"; had to put in Ac3 right away; I'm ashamed, but can I ask if you're going to get the dd+? RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-13 I don't work on that -> I am on holidays. I wait until you learn C++. Edit: Concerning DTS-HD HR I wrote some code to fall back to DTS for it. But: Older AVRs (besides the shitty new denons, yamaha, etc. that share the same broken DTS parser) can play DTS-HD HR just find and would run into a regression, therefore I did not consider this any further. RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - adolchristin - 2018-07-13 (2018-07-13, 18:05)Rumpelstiltskin Wrote: Would it be possible to ask the visualization?The visualizations are present for the release ppa, at least according to "apt-cache search kodi-visualization". |