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.12 - 2015/02/09] - Soli - 2015-02-18 (2015-02-18, 10:20)Matt Devo Wrote:(2015-02-18, 08:12)meeotch Wrote: Just got my Asus Chromebox, and installed Ubuntu/Kodi dual-boot. Relatively painless, except... I can confirm. My HP (I think they're using the same wifi card, no?) connects at a stable 300mbs *link* speed, which is the maximum (only 2x2 mimo) I think only the Dell has AC wifi, which would top out at 866mbs or so. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - hockeycoach - 2015-02-18 (2015-02-17, 22:20)Matt Devo Wrote:(2015-02-17, 21:20)hockeycoach Wrote: Thanks for the reply! Hi Matt So I did the search for kodi as you suggested and found it! Thanks ! Added it to the menu, all is good. The other issue I was fighting, where it would not automount a 32G sd card seems to have cleared itself up after rebooting. Now I'm playing with the colour levels between the asus chomebox and my sharp aquos , (xrandr) but not too worried I'll get it the way I want it... eventually The only thing left to sell this setup to my wife is to have Kodi start automatically after power up and Ubuntu boot. I'm going to look into the RC scripts and add it there... unless there is another way you might suggest. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - Matt Devo - 2015-02-18 (2015-02-18, 17:40)hockeycoach Wrote: Hi Matt that's outside of my area of expertise, as I'm an OpenELEC user myself. Try the Linux/Live support forum as well as the Kodi wiki. I only provide the Ubuntu option for historical reasons (and user request) RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - Soli - 2015-02-18 Hockeycoach, If you apt-get Kodi then the standalone option xsession gets added automatically. You basically only need to set autologin. Would be easier to just install Kodibuntu, though, if you don't need to run full blown Ubuntu/Unity. I did post my steps a few pages back. Works really good. I'm using a PS3 remote and the waf factor is superhigh, including playback of Netflix through netflixbmc. In fact it works so good that I'm going to give away a box to my sister, and that is saying a lot! RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - AttacktheCow - 2015-02-18 i am sorry to bother you, but i think i need help. I just tried to update my standalone build of xbmc 4.something. I updated the core like this: Quote:-------------------------------------------------------------When i try to run it again, it says, that it is already up to date, yet the date of the latest firmware is the 29th of jan. There has been updates since - how can i get those? Quote:You already have the latest firmware (20150129) But since this seems to have worked somehow, i tried to update openELEC. I pulled newest openelec .tar http://releases.openelec.tv/OpenELEC-Generic.x86_64-5.0.2.tar and put it in the /updates folder. I rebooted and it seems as it was installed quite fine. But i am afraid it was only a "dirty install", since it did not loose any settings or network folders etc. All stayed the same. Since we are supposed to do a fresh setup, i was wondering what i did wrong, and how i can do a clean setup? Sorry for my english And thanks in advance. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - Matt Devo - 2015-02-18 @AttacktheCow, - there's no need to update the firmware unless you are having issues that a new version fixes - if you look at the change log, 2015-01-29 is the latest/current firmware version. The firmware isn't always updated every time the script is - the firmware and OpenELEC are not coupled in any way, so you can (should) just update OpenELEC in the future - a dirty install is ok for the 4.x -> 5.0 update as long as you don't run into issues; if you do, then a clean install is recommended. Or just use the 'Hard Reset' function under the OpenELEC General settings. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - meeotch - 2015-02-18 Thanks for the replies, fritsch & matt. (2015-02-18, 09:03)fritsch Wrote: Which kind of ramp do you display? I'm using the grayscale ramp video linked in the wiki (playing it in kodi): file link. When I set the GPU to "Full" and view the image you linked, I can see down to maybe about the 2nd or 3rd black box on the top row, but that whole row is very dark. In "Limited 16:235", the top row has what looks like a smooth gradation. Two points worth noting: 1) system appears to come up in "Limited" mode. 2) my display is actually a computer monitor (Dell U2410) connected through HDMI, as I don't own a t.v. I suspect this makes a difference, but it should still be possible to both eliminate banding & have correct levels - or am I misunderstanding? (2015-02-18, 10:20)Matt Devo Wrote: unless Asus changed components, the included Atheros wifi/BT module is dual-band (2.4/5GHz) abgn, not ac. Also, the reported link speed and actual transfer speed are loosely correlated at best. Thanks for the correction - I missed that in the iwconfig output. I should probably mention that the link speeds fluctuate wildly, despite my router being about 30ft away. Anyway, I believe what you say, but will nonetheless test against the duplicate stock chromebox that amazon is mistakenly delivering today. I'll test the actual throughput & link speed, provided that I can find a suitable way of doing both on ChromeOS. (Suggestions welcome.) RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - fritsch - 2015-02-18 How would a 16 to 235 ramp look on a 0 to 255 display? A test image with full rgb should look correct. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - meeotch - 2015-02-19 @fritsch - o.k., so I think I've got it... The key being this sentence: "By default XBMC takes the original 16-235 levels and expands them to 0-255." So xbmc assumes that input video files have preserved the 16-235 range from the original source material, and by default scales this to 1-255, which is then either re/de-scaled to 16-235 (Limited) for output to a t.v. or left alone (Full) for output to a monitor. So when viewing on a monitor, you're stuck with either banding (if you expand) or incorrect levels (if you don't). Two things that still confuse me: 1) if I play that full-range grayscale ramp video with all scaling turned off ("Limited" kodi / "Full" xrandr), the ramp is smooth, but the range is clearly smaller than the same file played in the stock ubuntu Videos application, which displays a deeper black / brighter white. Does this indicate that all/most video players are assuming a 16-235 range for .mp4 content, and scaling accordingly? 2) is this a valid assumption to begin with? I would think that it would make more sense for the ripping/encoding application to apply the scaling (along with dithering to clean up the banding) itself, given that 16-235 is really a broadcast thing... or at least that there would be info embedded in the files indicating the correct range, and that kodi / other video apps would read this, rather than assuming anything. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - Stereodude - 2015-02-19 (2015-02-19, 00:16)meeotch Wrote: So xbmc assumes that input video files have preserved the 16-235 range from the original source material, and by default scales this to 1-255, which is then either re/de-scaled to 16-235 (Limited) for output to a t.v. or left alone (Full) for output to a monitor. So when viewing on a monitor, you're stuck with either banding (if you expand) or incorrect levels (if you don't).That's not exactly how it works. Modern videos codecs use a YUV color space (MPEG-1, 2, 4, H.264, VC1, HEVC, etc). It's supposed to be 16-235 per the various specs. PCs don't work in YUV color space. They work in RGB. So they have to convert YUV to RGB. When this is done it's possible to pick a target output range. Generally RGB 0-255 or RGB 16-235. You don't want to be stretching or compressing the RGB output levels after the YUV -> RGB conversion. You also don't want to convert it back to YUV. I don't know where the various options for manipulating the output range are taking place. Ideally they would change the mathematical factors in the YUV -> RGB conversion, but I suspect that's not the case for the option in Kodi menu. The xrandr --output HDMI1 --set "Broadcast RGB" "Full" option seems to change the YUV -> RGB factors, but I could be wrong. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - Soli - 2015-02-19 Meetoch. Stop trying to reinvent the wheel. If your display supports rgb full then you set xrandr to full, and XBMC to full. That is the best way and the only way. Then you adjust your display to get it right. This gives the best quality in XBMC, and it looks right when you are logged on to a normal desktop environment. The xrandr command can be set as a global init. If your display does not support rgb full, then you'd still have to sett xrandr to full and set XBMC to limited. That is if you want the best image quality in Kodi. (Unless Kodi use a 2-pass rgb to rgb conversion, which would be a strange thing to do) But the desktop environment would look wrong with xrandr set to full. If you're using kodi-standalone then I would suggest having a xrandr set rgb to full when starting kodi-standalone, and rgb to limited when starting the desktop environment. ( If you're using chrome launcher, then you'd need to use a custom script to set the correct level when starting/stopping Google Chrome from within xbmc) And Stereodude is right, and the post that you are referring to is wrong. (and the rest of that post is not entirely correct either) RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - meeotch - 2015-02-19 Not trying to reinvent the wheel - just trying to understand the wheel. Clearly, if the wiki is linking to partially correct info, then the topic is more involved than it seems. The various posts here have helped - including yours, so thanks for that. In my particular case, I've got multiple sources coming into this monitor, and intend on using the chromebox for more than just kodi (hence the dual-boot non-standalone install), and in fact, I've got a plasma t.v. on the way, so I'll be revisiting this all again soon... So understanding why is as important as understanding what. "Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life." Anyway, if I've finally got it right, it seems to boil down to: 16-235 range is inherent to the codec & would be "right" assuming the rest of the chain is video equipment. I.e. scaling is only necessary to make the image fit in with the rest of what's going on in a PC (gui, etc.). Only in the case of a display that natively eats 16-235 is there a special configuration, which is specifically to pass the data through unscaled, rather than scaling in the decode then de-scaling at the GPU. This is a bump up in image quality for the video, at the expense of everything else being improperly out-of-range for the display. (Except maybe kodi is smart enough to adjust its gui values to 16-235 as well?) ----------- EDIT: regarding the wifi issue, my admittedly unscientific results: stock chromebox did indeed show similar wifi performance, based on copying a ~700MB file over the network, since that's all I could think of to do from ChromeOS. However, I did manage to get pretty good speed in general by forcing it to connect to the 5GHz side of my router. Something like ~25MB/s. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - Soli - 2015-02-19 You're spinning away with your wrongful theories again. As I said, the correct thing , considering your display accepts rgb full, is to set xrandr rgb full and Kodi to full. The 16-236 range in a codec is in YUV format, there is no such thing as an unscaled YUV 16-235 to RGB (or RGB 16-235/limited for that matter). This color space conversion is slightly lossy at best, meaning YUV 16-235 to RGB full is more accurate. And that is only half of the story: your display is internally using RGB full, so if you send RGB limited into the display it will convert that into rgb full , which in itself is lossy as well. So using rgb full all the way is basically a double win. Yes the GUI will adjusted accordingly if set Kodi to limited, not that it matters in your case. RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - aptalca - 2015-02-19 Matt Devo, you rock!!! My htpc died last week. I was pretty sad as I had built it myself --> http://forum.kodi.tv/showthread.php?tid=134694 I ordered an Asus chromebox for $142 on Amazon With your script, I got it up and running with openelec in 20 min. It is as fast and snappy as my former htpc, which was an AMD A6, but much smaller, quieter and more power efficient To top it all off, I ended up getting 1TB on Google Drive for 2 years lol. The promotional materials for the chromebox said 100GB, but Google gave me 1TB. That sure was a nice surprise. Thanks, man!! RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.12 - 2015/02/09] - meeotch - 2015-02-19 (2015-02-19, 03:34)Soli Wrote: there is no such thing as an unscaled YUV 16-235 to RGB (or RGB 16-235/limited for that matter) Not sure what you mean by this - surely you can convert YUV 16-235 to any encoding you want, RGB 16-235, RGB 1-255, 16-bit, floating point, cineon... But anyway, yes, I get it - with my current full range monitor, it makes sense to let the scaling happen during the decode in kodi, and the rest of the chain is full range. I'm happier knowing why this is than just that it is, so thanks to everyone who took the time to explain. |