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 - fritsch - 2015-11-01 If you get a heavy log for us - also welcome - Basically I am interested in the "size" of the error. RE: New Era: VAAPI with EGL interoperation - trsqr - 2015-11-01 Am I more off-topic than average, if I'll ask here regarding the situation with VP9 decoding in Linux with Intel hardware? https://github.com/01org/intel-hybrid-driver has a libva-intel-hybrid-driver that supposedly includes some VP9 decoding aids, but it's unclear to me how this relates to libva-intel-driver. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-01 It's not unclear. Intel's libva-intel-driver can load this hybrid driver. Problem is: Only Broadwell and Braswell are supported and it needs an ffmpeg hwaccel, which is not yet done. RE: New Era: VAAPI with EGL interoperation - trsqr - 2015-11-01 (2015-11-01, 13:49)fritsch Wrote: It's not unclear. Obviously not for you, hence me asking here. (2015-11-01, 13:49)fritsch Wrote: Intel's libva-intel-driver can load this hybrid driver. Ok, thanks! I've got IVB, HSW, BDW and BSW hanging around here, so that's not a problem. In short, ffmpeg is the missing link at this point - and then probably Kodi needs a minor update as well? Are you aware of any application that would support it (not talking about Kodi usage here)? RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-01 Nope - libyami most ikely and also gstreamer. This hybrid stuff sucks heavily as it's too slow for 4k UHD content ... if you google "chrome vp9 intel" you will see what I mean - even on windows. I decided not to care for this hybrid stuff anymore as we will get full hw support with next gen in ~ 6 months. E.g. see: http://www.howtogeek.com/227940/why-youtube-in-chrome-and-firefox-is-draining-your-laptop%E2%80%99s-battery-and-how-to-fix-it/ and https://code.google.com/p/chromium/issues/detail?id=399960#c33 - totally worthless on current hw generations. RE: New Era: VAAPI with EGL interoperation - trsqr - 2015-11-01 (2015-11-01, 13:59)fritsch Wrote: E.g. see: http://www.howtogeek.com/227940/why-youtube-in-chrome-and-firefox-is-draining-your-laptop%E2%80%99s-battery-and-how-to-fix-it/ and https://code.google.com/p/chromium/issues/detail?id=399960#c33 - totally worthless on current hw generations. Is the issue that the VP9 hybrid decoding is not implemented on Macs (not in Apple's interests as that would only move users from Safari to Chrome) or that it is implemented but still sucks? Also that Mac bug report for Chrome has been opened before any BDW Macs were released, so there cannot be any HW-assisted decoding there. Anyhow, I'm interested how much impact the hybrid decoding has - ie. if pure CPU decoding consumes 100% of the BDW/BSW CPU, how much would less would the CPU usage be with the GPU-assisted mode. Not saying that it should be implemented in Kodi/ffmpeg, but just out of academic interest. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-01 "Academice interest" - then you should get your hands dirty right now and contact btbn in #ffmpeg channel and ask what is missing. If you follow the above links you see that also performance for hybrid units especially for the famous 4k content is not enough. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-01 Kernel 4.4+ is required or audio EDID information won't be copied As I needed edid overwriting myself today here is a short howto on how to boot completely without TV / AVR but having correct EDID information. This will work for intel and radeon: # Find out the connected port Code: fritsch@bsw:~$ cat /sys/class/drm/card0-HDMI-A-1/status In my case it's HDMI-A-1 continue to change /etc/default/grub to look like: Code: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=HDMI-A-1:1920x1080@50D drm_kms_helper.edid_firmware=HDMI-A-1:edid/edid.bin" This will do two things a) it sets my default resolution to 1920x1080@50 and activate the digital output with D - which is not a typo, but written correctly directly behind the @50 which is my target refreshrate as I use LiveTV most of the time. Second is for loading a firmware to overwrite the edid that we will capture now Before doing this make sure that you booted the whole system with AVR / TV on correctly and everything is working as you want it as we need to copy the edid in a working environment Code: sudo mkdir -p /lib/firmware/edid Now we need to make a little hack and also convince ubuntu to load this edid.bin in initramfs. Create /etc/initramfs-tools/hooks/include-edid-data file and write into it: Code: #!/bin/sh Now make it executable: Code: sudo chmod +x /etc/initramfs-tools/hooks/include-edid-data We are nearly done, finish with Code: sudo update-initramfs -u Now enjoy. For OpenELEC you need to follow: http://wiki.openelec.tv/index.php/Configuring_a_Custom_xorg.conf#tab=Intel instead RE: New Era: VAAPI with EGL interoperation - Roby77 - 2015-11-01 Interesting i will give a try to see if it resolve my recent black screen problem RE: New Era: VAAPI with EGL interoperation - BigL-New - 2015-11-01 Thank you guys for great work! I've upgraded my beebox to wily and installed 4.3-rc7 kernel along with newest intel driver. Suprisingly colors have gone nuts - i had to swith off limited colors to return to good looking image. Now i see that it can be because passththrough mode is not supported on this kernel. xrandr shows: Broadcast RGB: Automatic supported: Automatic, Full, Limited 16:235 Is it correct? RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-01 No. As now said 150 times ... this passsthrough patch is not in 4.3-rc7 and it will never be anywhere upstream. Cause they intel folks don't like the passthrough approach. If you cannot build your own kernel, use Full and set kodi to limited. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-01 Here is what I currently run: http://fritsch.fruehberger.net/kernel/?C=M;O=D - no support at all. RE: New Era: VAAPI with EGL interoperation - -zero- - 2015-11-01 I had problems with ubuntu 15.10 and kodi. I had to create a symlink for libcurl.so.4 otherwise kodi was not aware of it. sudo ln -s /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4 /usr/lib/x86_64-linux-gnu/libcurl.so.4 This was not necessary with ubuntu 15.04. RE: New Era: VAAPI with EGL interoperation - -zero- - 2015-11-01 @fritsch There is a mistake in your description about the edid for ubuntu. Instead of: sudo cp /sys/class/drm/card0-HDMI-A-1/edid /lib/firmware/edid.bin it should be: sudo cp /sys/class/drm/card0-HDMI-A-1/edid /lib/firmware/edid/edid.bin And for the GRUB_CMDLINE_LINUX_DEFAULT line there is a missing " at the end. RE: New Era: VAAPI with EGL interoperation - fritsch - 2015-11-01 @-zero-: Thanks very much - you are correct - Fixed. |