Linux ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222) +--- Forum: Hardware (https://forum.kodi.tv/forumdisplay.php?fid=112) +--- Thread: Linux ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] (/showthread.php?tid=194362) 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
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
|
RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - fritsch - 2014-12-21 High CPU usage is not true. We need just < 4ms to copy the surface on average. It's 10% more load for 1080p24 material. So for 24fps your CPU will still idle 90% the time of a second. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Matt Devo - 2014-12-21 (2014-12-21, 10:15)Sunflux Wrote: Yeah... seems I can either get smooth graduations but high CPU usage, or good CPU usage and banding. When OE RC3 comes out I'll trying VAAPI rendering again, see if I can live with the banding for the CPU usage improvement (I can't quite run 4k videos smoothly with the "Use SW Filter" option enabled right now - I get like 27fps/30fps). then you've got something else going on, as I can playback 60Mbps 2160p30 h.264 content with <20% CPU and no dropped/skipped frames - with or without the 'Use SW filter' option set RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - fritsch - 2014-12-21 For > 1920x1088 we disable the SWFilter. So it's not used for 4K. See here: https://github.com/xbmc/xbmc/blob/master/xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI.cpp#L2957 RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Sunflux - 2014-12-21 Playing back a video with these properties: Code: General I get low CPU usage all around - like 10-15% - but the SKIP count keeps updating at a rate of about 3 per second, and the framerate shown is around ~27fps. If I change the rescaling algorithm from Auto to one of the HQ ones, the framerate drops to like 14fps (but still with the low CPU usage). Which seems odd to me - why is it running it through the scaler in the first place? I've tried setting the "use HQ scalers above" setting from 0% to 20% without change... changed view mode from Normal to Original without change... RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - fritsch - 2014-12-21 It needs to downscale! from 4K to 1080p display. This costs too much when doing "Lanczos3 Optimized" which the Auto does in that case, as the target dimension are only 1/4 the original. I think 24p with that very hight bitrate (you have 28Mbit/s there) is most likely the limit of the celeron HSW GT1. If you share that sample I can test it on my hardware. What I tested succesfully was: http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_2160p_30fps_normal.mp4 (bilinear scaling of course). What all of those cannot do is: http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_2160p_60fps_normal.mp4 RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Sunflux - 2014-12-21 No no, this is happening when I'm running at [email protected] to a 4k TV. Also, I'm pretty sure "Auto" is selecting one of the LQ scalers, because when I manually select Lanczos3 Optimized (or the Spline one) is when the framerate plummets RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - fritsch - 2014-12-21 Makes no sense until I see a Debug Log :-) Keep the value set to 20% while doing so. and provide: /usr/lib/kodi/kodi-xrandr | pastebinit If you don't run kodi you have the very lame old acceleration pipeline. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Sunflux - 2014-12-21 No, I'm not on Kodi yet. Still on the latest "stable" OpenElec - was waiting for RC3 to upgrade. Think that's the problem here? Also, could it in any way relate to the PAR bug/issue I discovered? http://forum.kodi.tv/showthread.php?tid=210815 I had assumed allowing the 1% error would prevent it from scaling entirely, but perhaps because of this it's still scaling from 100% to 100%? At 3840x2160, the calculation error grows to 2 pixels in width. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - nolight - 2014-12-21 Hi, I recently installed dual boot Chrome OS/OpenELEC on Asus Chromebox with OpenELEC as default OS. On my Sharp LCD TV LC-32M400M-BK (native resolution 1366x768) it is able to display the OpenELEC on boot up. Connection is direct HDMI. On my Panasonic plasma TV TH42PV70H (native resolution 1024x768) it is showing up as if no signal. Tried both direct HDMI connection and HDMI connection through chromebox -> AVR -> TV. Pls help on how I can fix the no display on Panasonic TV. Thanks. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - fritsch - 2014-12-21 (2014-12-21, 11:45)Sunflux Wrote: No, I'm not on Kodi yet. Still on the latest "stable" OpenElec - was waiting for RC3 to upgrade. Think that's the problem here? This is what happens in code: Code: float scaleX = fabs(((float)m_sourceWidth - m_destRect.Width())/m_sourceWidth)*100; so: 720p to 1080p abs(720 - 1080) / 720 = 0.5 * 100 = 50 abs(1280 - 1920) / 1280 = 0.5 * 100 = 50 So with a setting of 20% the hq scaler would be chosen 2160p to 1080p abs(2160-1080) / 2160 = 0.5 * 100 = 50 abs(3840-1920) / 3840 = 50 So Lanczos3 Optimized would also be chosen! when you have set it to 20%. If you would set it to 60% bilinear would be chosen, but this is not wanted for the 720p case. I could weight the downscaling code with a specific factor? In your case with 3840 to 3840 and 2160 to 2160 - a simple setting 10% should be enought to not use lanczos 3 RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Sunflux - 2014-12-21 Okay, I upgraded to RC2 and now the troublesome video plays back just fine in 4k - wasn't aware there would be such a performance difference! Trying to select any of the HQ scalers still results in a horrible framerate, but setting the threshold to 10% as you suggested leaves Auto working fine. Downscaling the same 4k video to 1080p loses about 1 frame every 2 seconds with any of the HQ scalers, and with or without VAAPI (well, maybe a tiny bit better with VAAPI), but is rock solid on Auto/Bilinear. Incidentally, any idea why in RC2 I now have the text "There are no settings available for this visualization" behind my Video Settings screen (which is otherwise normal?) Also, how the left-side labels for the "Open Elec" settings menu are all pushed all the way left, with only like a half character visible... RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - fritsch - 2014-12-21 Cool. Remember to install a build that has the GPU hang fixed. I think Matt has documented that in the first post. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Sunflux - 2014-12-21 Sorry, UI error was the result of me having customized Confluence (and thus requiring me to update the copy and re-apply my changes). Don't see any reference to a fixed build in the first post or Wiki, but I can probably wait until RC3. The issue is still only when "prefer VAAPI" is enabled, correct? However, the PAR error I referenced is really messing up video. With the 10% HQ scaler setting, my default preference of Lanczos3 now changes to Nearest Neighbor for 1080p played at 1080p. But due to the PAR issue, it's still rescaling the video at all times (it thinks 1920 wide should be played at 1919, then the 1% aspect error allowance gets it back to 1920). But even still, and SPECIFICALLY on videos that are not the full 1920x1080, but rather cropped vertically (for example, 1920x800), Nearest Neighbor is causing a noticeable doubling of vertical lines about every 100 pixels or so, despite the fact that it's ultimately playing the file back at its native resolution. Switching to Bilinear results in noticeable softening of the video compared to Nearest Neighbor. Removing the 10% HQ scaler setting lets me use Lanczos3 which looks better, but clearly it's still messing around with the video and isn't giving me 1:1 reproduction. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - fritsch - 2014-12-21 The solution to this problem is: "Allow errors in ratio to minimise black bars", Choose: 1 or 2% there (Video -> Playback). I already fixed that in xbmc's master, it's a rounding issue after all: https://github.com/xbmc/xbmc/pull/5922 RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Sunflux - 2014-12-21 I have done that... but for some reason on any file that's less than 1080 pixels high, I'm getting visible resampling artifacts that I can watch come and go as I change resampling algorithms. Note that I do not see the same effect on any video that is the full 1920x1080 frame, just those that are letterboxed. |