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 - qp9013625 - 2016-06-05 (2016-06-05, 13:36)fritsch Wrote: which also explains why 0% is the most non smart thing you can do. Then why is 0% the default in a fresh Kodi installation ? (2016-05-18, 08:17)fritsch Wrote: it makes absolutely no sense to allow HQ scaling when _no scaling_ (0 %) is applied -> therefore 20% should be considered. Sorry, but there are several issues with this sentence: 1. 0% is the default setting in a fresh Kodi installation. 2. The setting is called "Enable HQ Scalers for scalings above: 0%". To me that means: It begins to use HQ scaling for things that require more than 0% (i.e. 0.000000000000001%). Yet you seem to suggest that it kicks in HQ scaling even when 0% scaling is required? Clearly there is some confusion here. Could you please explain? (2015-07-12, 20:06)fritsch Wrote: 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. If I understand it correctly, doing it like this on a limited range TV would give you proper colors in Kodi but will give you crushed blacks on the desktop, since it will also output the dektop in full range, even though the TV expects limited range. Is there any way to let the GPU output at full range in Kodi (with "Use Limited Range" option enabled in Kodi to counteract the crushed blacks) but at the same time ensure that the desktop is displayed in limited range? Regards RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-06-05 For the colors: No you don't understand correctly. Please use the forum search I explained this with great details and examples at least 10 times. For the "above" as "really larger as". The scaling uses the max from two dimensions. As most 1920x1080 movies are ripped with the black bars removed they are 1920x800 or something - so this 0% would always trigger the scaling and technically: Code: float scaleX = fabs(((float)m_sourceWidth - m_destRect.Width())/m_sourceWidth)*100; not lower means: larger or equal ... so even 1920x1080 will tick it. The default is bad. PR is pending: https://github.com/xbmc/xbmc/pull/9915 RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - qp9013625 - 2016-06-05 (2016-06-05, 14:54)fritsch Wrote: For the colors: No you don't understand correctly. Please use the forum search I explained this with great details and examples at least 10 times. I only found the following thread: http://forum.kodi.tv/showthread.php?tid=255197 And I don't see how this threads explains how I am wrong... When you set the GPU to output at full range and your TV can only do limited range, then of course blacks will be crushed. I understand that you can circumvent crushed blacks inside Kodi by enabling "Use Limited Range" in "Settings -> System -> Video Output". But XFCE4 / MATE / GNOME / Unity / Cinnamon and so on do not have a "Use Limited Range" setting, so they will be displayed with crushed blacks when you set the GPU to output at full range and your TV can only do limited range. So, what I am asking for is: How can I apply your settings (setting GPU output to full range and setting Kodi to limited range), but at the same time keep the desktop at limited range (if at all possible)? Besides, if you have explained it in great detail already, maybe make that thread (which I apparently did not find) a sticky thread (please)? (2016-06-05, 14:54)fritsch Wrote: The default is bad. PR is pending: https://github.com/xbmc/xbmc/pull/9915 Okay, thank you. If I understand correctly, 20% is the proper setting for 1080p TVs/monitors? Could you please also suggest a percentage value for 720p TVs/monitors? Or would 20% also be fine for 720p? Also, I see that you have changed the description to say "A value below 5% makes limited sense as video is processed with high GPU load whithout any visible picture quality improvements.". But at the same time you have left the minimum value at 0%. Why not raise the minimum value to 5% then? Also, why are the steps set to "10"? Why not change the steps to "1"? Regards RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-06-05 :-( Read the PR my dear friend: https://github.com/xbmc/xbmc/pull/9915/commits/a9bb82ae82cfce000fcfc17bd2f90efccde2cd42#diff-92b91a5c902936f6e9a03f26b054d7d6R103 - new default 20 % For your other question: Yes, this is kodi only. No chance for your desktop environment. For best desktop practice nowadays: #if TV is Limited Range 1) When starting kodi, set xrandr to FULL (or set xrandr to VideoRange 16:235, which is _NOT_ in any mainline kernel, but in openelec / libreelec) - as this is a kodi appliance. Use it in combination with "Use Limited Range in kodi". 2) When exiting kodi, set xrandr to Limited 16:235 - that way all desktop applications which compute in Full Range anyways are "properly" scaled to your Limited Range TV #else 1) When starting your computer (!) the whole computer. Set xrandr range to full to match your TV / monitor. Don't use kodi's Use Limited Range setting, but enable 8 bit dithering. #endif RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - qp9013625 - 2016-06-05 (2016-06-05, 17:35)fritsch Wrote: :-( Read the PR my dear friend: https://github.com/xbmc/xbmc/pull/9915/commits/a9bb82ae82cfce000fcfc17bd2f90efccde2cd42#diff-92b91a5c902936f6e9a03f26b054d7d6R103 - new default 20 % Yes, but you're always talking about 1080p output there. What if the output is 720p? Is 20% good for 720p output as well? (2016-06-05, 17:35)fritsch Wrote: #if TV is Limited Range Ah, thanks, this sounds like a good idea. But how would you do this? Could you please give an example on how one could set xrandr to full range upon starting Kodi and setting xrandr to limited range upon exiting Kodi? Regards RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-06-05 For a) as you currently spam my PR, here another math for you: Which value would you need to set so that 720 x 576 content would be upscaled to 1280 x 720 with HQ scalers but everything > 1024 x 768 should not be upscaled / downscaled with this value. Use the formula given here: http://forum.kodi.tv/showthread.php?tid=231955&pid=2352252#pid2352252 For b) no idea what distribution you use - startup scripts are distribution dependend. It is shown for this howto here - as this is what the thread is all about. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - qp9013625 - 2016-06-05 (2016-06-05, 19:15)fritsch Wrote: For b) no idea what distribution you use - startup scripts are distribution dependend. It is shown for this howto here - as this is what the thread is all about. This thread is about Ubuntu 16.04 and I am using Ubuntu 16.04 (Xubuntu 16.04 to be precise). And in this thread here (specifically the first post) I do not see an example on how one could set xrandr to full range upon starting Kodi and setting xrandr to limited range upon exiting Kodi... RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-06-05 This thread is about a minimal howto while providing a systemd script for automatically starting kodi. It's not about any full blown desktop. You already showed the code, that does it via openbox's autostart script. As you run lubuntu with openbox yourself -> you already have your answer. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - qp9013625 - 2016-06-05 (2016-06-05, 19:36)fritsch Wrote: As you run lubuntu with openbox yourself -> you already have your answer. This shows how well you read my posts. I said I am running Xubuntu, not Lubuntu. (2016-06-05, 19:36)fritsch Wrote: You already showed the code This code only sets xrandr to full range upon startup. What would the code look like for setting xrandr back to limited range upon exit? RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-06-05 Open your own thread. You are offtopic here (just to show you how well you read the threads you are posting in). RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Wagg - 2016-06-06 Installed the latest Ubuntu version but can't seem to get any of the PVR add-ons to show up. Any ideas? RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-06-06 If you followed the howto - the pvr addons are there ... if you did not follow the howto open your own thread. Quote:fritsch@t440s:~$ apt-cache search kodi-pvr RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Wagg - 2016-06-07 Nevermind, I figured it out. For some reason the packages weren't loading properly. Anyways, one thing I did notice was that the HDHomerun PVR addon is stuck in PCM even when I am getting bitstreaming with file playback (this is with sync framerate to display OFF). DD, DTS-HD and everything else plays back properly, but live TV does not. This must be a problem with the addon because the standalone HDHomerun addon plays back DD just fine. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - fritsch - 2016-06-07 Passthrough is disabled for LiveTV out of technical reasons. If you want AC3 output from LiveTV enable AC3 Transcode and set your number of speakers to 2.0 - PCM output is far superior to passthrough, especially with live media. RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - Wagg - 2016-06-08 Interesting. So you're saying don't even bother with passthru/transcoding and stick to PCM for live TV? What about everything else, like DTS-HD encoded movies? Also, I noticed that for all my file playback (like 1080p video) I will get considerable jitter with VAAPI - Motion Compensated. Vaapi Motion Adaptive or BOB doesn't seem to exhibit this. |