please choosego to mobile | Continue to access the PC version
View: 577175|Reply: 1833

Openelec Build for OPI PC and 2 now with HW decoding

  [Copy link]
Published in 2015-11-4 21:15:11 | Show all floors |Read mode
Edited by jernej at 2016-5-5 17:14

I had forked Openelec but was having issues jernej was futher along so we swaped to his fork.

This is unofficial and should be usable, however expect bugsFeel free to contribute!
Current Status
  • video is HW decoded
  • direct rendering
  • HW deinterlacing
  • WMV1, WMV2, VP6 and VP9 codecs, although supported by CedarX, are SW decoded (nothing can be done to improve this)
  • taking screenshots doesn't work
  • VSync is commented out, because of big frame drop (needs some code reorganization)
  • used boot time resolution (can be changed via script.bin or kernel parameters)

Images >>> http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=1075 <<<  (heatsink strongly recomended)  

older images https://mega.nz/#F!tt1U0BBI!0ZGsqzJxpS_UWZy0moqNDQ

How to get IR working (NEC protocol):
http://www.orangepi.org/orangepi ... 7602&fromuid=180012
        
Code:
https://github.com/jernejsk/OpenELEC-OPi2

If you would like to help the basic instructions are:
MOD EDIT: Build instructions were not updated and thus misleading. Please check FAQ thread for latest one.

2

threads

87

posts

890

credits

Senior member

Rank: 4

credits
890
Published in 2017-2-2 05:33:40 | Show all floors

Fourth step : So after the manual editing the patches into the newer librelelec , just play a little more and you gonna scratch your head why he included a original in the sw patch after you pass that your kodi should build so librelec builds hapily futher and makes a images .

https://www.dropbox.com/s/czhovc ... -opione.img.gz?dl=0

So now a little happier that it works

Next step : take the kodi-005-H3-support.patch and begin scratch a little more (psst libstagefright is foetsie )

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2017-2-14 00:40:53 | Show all floors
Well, there will be no next version from me, but anyone is free to modify current source as much as he/she likes.

0

threads

15

posts

141

credits

Registered member

Rank: 2

credits
141
Published in 2016-12-6 17:33:37 | Show all floors
jernej Hi, can you compile new images with corrected? as well as to build the image of the addon pvr.iptvsimple with support for multiple playlists https://github.com/AndreyPavlenko/pvr.iptvsimple

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2016-7-9 16:01:52 | Show all floors
andreq replied at 2016-7-9 03:03
I just got a clean version (git clone) of your repo and I'm not able to make an image out of it.

It ...

Fixed. The problem is that U-Boot package is using git repo which gets rebased for every rc. I wanted to go back to rc tarballs but for some reason folder name inside tarball is not correctly formed, so for now I just updated git version which will work till new rc release.

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2016-6-24 00:08:06 | Show all floors
Xer0 replied at 2016-6-23 14:07
anyone tested, if auto frame rate switching works, escpecially 24fps?

Framerate switching should work, if you have HDMI cable connected during Kodi startup (supported resolutions and framerates are checked at that time). Of course, you must enable this in settings first.

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2016-5-31 04:58:21 | Show all floors
ParadoxX27 replied at 2016-5-30 02:49
jernej, is it possible to make the system turned on after pressing the power button , not when you c ...

It is. Definetly by changing source code but I think also with script (GPIO command). However, you will have to do it by yourself. I have too much other work currently

Published in 2016-7-21 16:49:54 | Show all floors
@jernej: OpenELEC project seems to be dead (they don't push any commits, since May 8, 2016)
Could you try to create fork from LibreELEC (the push commits every day, probably they release  ver 8.0 just after Kodi v17 release)
LibreELEC was forked from OpenELEC after you forked co maybe it will be not so hard ?
Orange PI PC
Published in 2016-9-6 11:15:04 | Show all floors
jernej replied at 2016-9-6 02:51
For that you have SSH or serial console. Granted, I don't know any in-Kodi plugin which would allo ...

The new Local Code Enforcement girl, has my neighborhood cleaning up, to shame the one family of anarchist renters, that won't clean up their act. It's had me outside more than I really care to be, for simple mold & mildew removal & maybe a little painting, all of which wasn't really needed at this time. Had no time to play, except late evening, when I'm already too tired, to make much sense of things.  
Published in 2016-4-24 07:27:04 | Show all floors
Edited by zhao_steven at 2016-4-24 07:30

@jernej  Thanks for your selfless contribution to Orange Pi Community.  We want to donate to you soon. You can send your account to me. Thanks again.

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2016-3-25 00:21:19 | Show all floors
cbm80 replied at 2016-3-24 13:14
I always use my OPiPC with USB remote keyboard/trackball so all my tests include USB device connec ...

Point is in connecting input device like mouse or keyboard AFTER boot, at Kodi's home screen. Before that patch, there was noticable lag for about a second or two. Also playing with power button is possible again, but I won't do it.

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2015-11-12 08:00:33 | Show all floors
Edited by jernej at 2015-11-12 08:36

Hi swordfish6975!

You can check my repository at https://github.com/jernejsk/OpenELEC-OPi2 It's primary target is OrangePi2 but actually it should work on any H3 based Orange board.

It is still work in progress - splash screen is shown on monitor, console works on serial port, except kodi doesn't run. It seems that there is some problem with mali driver:
  1. OpenELEC:~ # /usr/lib/kodi/kodi.bin --standalone -fs
  2. ERROR: Unable to create GUI. Exiting
  3. Illegal instruction
Copy code

I'm that close to make a working image, so maybe you could help me?

Build command is classic:
  1. PROJECT=OPi2 ARCH=arm make image
Copy code
After that you have image in target folder. No need for any fixing, just put it on SD card and run,

Regards,
Jernej

 Author| Published in 2015-11-16 08:18:49 | Show all floors
Edited by swordfish6975 at 2015-11-16 08:20

Hey Jernej,

I was able to build the image using your git repo.

It boots on my Orange PI PC !

In the limited time i had to test it on the weekend, it seemed ok though:   
Ethernet: not working
USB port: 1/3  work.
(this also happens with desktop images unless the correct script.bin is used)

I didn't get a chance to try to play any video, need to find a USB hub and put video file on USB stick.

Will try tonight.

Strangely enough if you go in to the KODI system settings it lags very hard.
 Author| Published in 2015-11-16 20:14:38 | Show all floors
hey Jernej,

How would I check the video is actually using video decoding?  (I get ~7200 BogoMips in kodi settings and can play a 720p x265 file)

http://archlinuxarm.org/forum/viewtopic.php?f=33&t=5979   
seems to say all these modules are required
  1. # load modules for current session
  2. modprobe ump
  3. modprobe mali
  4. modprobe drm
  5. modprobe mali_drm
Copy code

  1. OpenELECOrange:/ # lsmod
  2. Module                  Size  Used by
  3. 8189es                883644  0
  4. cfg80211              182729  1 8189es
  5. mali                  226279  5
  6. ump                    46906  1 mali
Copy code


also attached some logs

oh and

Ethernet: working
USB port: 1/3  work.

Spent a lot of time trying to get the sound working with no success.

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2015-11-17 01:09:52 | Show all floors
Glad to hear that it's working for you too!

Please don't mix GPU and VPU (Video Processing Unit). Read this article: http://www.cnx-software.com/2013 ... ation-the-vpu-does/

CedarX is H3's VPU library, which is not yet supported in my OpenELEC distribution. As a matter of fact, there is no official CedarX support in kodi. Once when I will commit support for it, you will know

Can you tell me more about this USB issue? Maybe I can prepare unified script.bin for both boards. If that won't work, I can post few instruction how to override my script.bin without rebuilding the whole image.

Regards,
Jernej
 Author| Published in 2015-11-17 07:32:57 | Show all floors
Can you tell me more about this USB issue?

the bottom left port is the only one that works:  (tried using keyboard and mouse in a HUB)

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2015-11-17 08:07:05 | Show all floors
Sorry, I meant what it's needed to be done to solve this in script.bin.

I worked hard trying to solve sound issue without any success. Did someone managed to get sound on Raspberian or Debian?
Published in 2015-11-17 08:13:33 | Show all floors
@jernej sound is working in Debian and raspbian.
Published in 2015-11-17 08:15:43 | Show all floors
@swordfish6975 your script.bin is for other board. You can changed it.

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2015-11-17 08:58:19 | Show all floors
Edited by jernej at 2015-11-17 09:00

Steven, can you help me with the right alsa configuration? I tried  this tutorial http://www.orangepi.org/wiki/2015-01-19/98.html but it don't work. When I will be able to play some simple wav file with aplay, then I would be able to add sound support to openelec.

I always get "Slave PCM not usable" error.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list