N2(+), Kodi, hardware decoding, without CoreElec?

Post Reply
CaptainRule
Posts: 10
Joined: Tue Sep 28, 2021 10:56 pm
languages_spoken: english, dutch
ODROIDs: N2+
Has thanked: 1 time
Been thanked: 0
Contact:

N2(+), Kodi, hardware decoding, without CoreElec?

Post by CaptainRule »

Hi Everybody,

I have just started with my new N2+. A main goal is to use it with Kodi 19, but since it is so powerful it would be a waste to use it for that only... I would like to run other things also like home assistant, pihole, wireguard server etc, so CoreElec is not really an option.

But I have come to know that vpu hardware decoding is currently only possible with CoreElec.. And without hardware decoding Kodi is not really watchable, even though GPU acceleration is working.

So it would come down to some compiling, but after days of searching, flashing images and trying, I am lost in the woods.

Questions:

- what os/image would work best to start with?
- how to successfully compile/install Kodi, with vpu decoding, on that?

Thanks..

User avatar
odroid
Site Admin
Posts: 41864
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3433 times
Been thanked: 1920 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by odroid »

There is no single OS image can do what you want.
Consider using a multi-OS booting option with Petitboot.

User avatar
rooted
Posts: 10485
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 816 times
Been thanked: 695 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by rooted »

Actually CoreELEC should be fine, just use docker as it's included.

My N2+ runs CoreELEC with these containers...pihole, WireGuard, bubble upnp, duckdns, and portainer with plenty of RAM and CPU cycles left to do other things.
These users thanked the author rooted for the post:
CaptainRule (Thu Oct 21, 2021 6:23 pm)

CaptainRule
Posts: 10
Joined: Tue Sep 28, 2021 10:56 pm
languages_spoken: english, dutch
ODROIDs: N2+
Has thanked: 1 time
Been thanked: 0
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by CaptainRule »

Wow I did not know that was even possible, great idea, thanks!

User avatar
mad_ady
Posts: 11755
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 656 times
Been thanked: 1197 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by mad_ady »

Sadly, you'll need to run the Docker HA version, which doesn't have the "app store" bundled in HASSIO. And you may need to update it yourself. Otherwise, it will work just fine.

User avatar
rooted
Posts: 10485
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 816 times
Been thanked: 695 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by rooted »

CaptainRule wrote:Wow I did not know that was even possible, great idea, thanks!
It also has opkg manager with a bunch of packages.

Full list:

http://ix.io/3CqB

CaptainRule
Posts: 10
Joined: Tue Sep 28, 2021 10:56 pm
languages_spoken: english, dutch
ODROIDs: N2+
Has thanked: 1 time
Been thanked: 0
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by CaptainRule »

Thank you all, docker works perfectly! I also installed entware/opkg and netdata, very happy with my N2+ now :-)

https://discource.coreelec.org/t/coreel ... or/1817/31

User avatar
rooted
Posts: 10485
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 816 times
Been thanked: 695 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by rooted »

CaptainRule wrote:Thank you all, docker works perfectly! I also installed entware/opkg and netdata, very happy with my N2+ now :-)

https://discource.coreelec.org/t/coreel ... or/1817/31
You're welcome, docker and entware bring a lot to the table.

Truly
Posts: 41
Joined: Sun Nov 03, 2019 8:53 am
languages_spoken: english
ODROIDs: N2
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by Truly »

@rooted, @CaptainRule,

I'm running odroid n2 with Ubuntu and bunch of apps/services.

If I understand correctly, it's possible to run CoreELEC using docker making n2 a home media center in addition to all the apps/services I'm running on it atm.

I would be grateful if you can provide more details on how to set this up or point me to a tutorial.

User avatar
rooted
Posts: 10485
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 816 times
Been thanked: 695 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by rooted »

It's possible to run docker on CoreELEC as it's included.

I don't know what apps and services you are running.

Truly
Posts: 41
Joined: Sun Nov 03, 2019 8:53 am
languages_spoken: english
ODROIDs: N2
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by Truly »

Ah, I see now.
You are talking about running CoreELEC as the main OS and using docker to run other apps/services.
I was hoping the other way around is possible - running Ubuntu as the main OS and getting CoreELEC through docker. Is this possible?

User avatar
rooted
Posts: 10485
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 816 times
Been thanked: 695 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by rooted »

No it's not possible as CoreELEC is a full OS, it may be possible to run Kodi in a docker container but I've never tried.

User avatar
mad_ady
Posts: 11755
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 656 times
Been thanked: 1197 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by mad_ady »

There is a thread around whose name escapes me at the moment where the OP had ported Coreelec's kernel + kodi and made it run in a chroot on top of Ubuntu 22. He had a script too... Perhaps others remember which thread that was...

User avatar
tobetter
Posts: 12610
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 938 times
Been thanked: 2162 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by tobetter »

mad_ady wrote:
Wed Jun 14, 2023 3:36 am
There is a thread around whose name escapes me at the moment where the OP had ported Coreelec's kernel + kodi and made it run in a chroot on top of Ubuntu 22. He had a script too... Perhaps others remember which thread that was...
This one?
viewtopic.php?f=177&t=43593

User avatar
rooted
Posts: 10485
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 816 times
Been thanked: 695 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by rooted »


mad_ady wrote:Perhaps others remember which thread that was...
I did remember but tobetter found and linked it, I never got around to trying it but it's quite interesting.
tobetter wrote: This one?
viewtopic.php?f=177&t=43593
That is indeed the one :)
These users thanked the author rooted for the post:
tobetter (Wed Jun 14, 2023 4:02 pm)

Truly
Posts: 41
Joined: Sun Nov 03, 2019 8:53 am
languages_spoken: english
ODROIDs: N2
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by Truly »

rooted wrote:
Wed Jun 14, 2023 2:34 am
No it's not possible as CoreELEC is a full OS, it may be possible to run Kodi in a docker container but I've never tried.
I'm not able to try this atm, but it looks like what I need https://hub.docker.com/r/coreelec/coreelec-builder
It probably comes from this https://github.com/CoreELEC/coreelec-builder

User avatar
rooted
Posts: 10485
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 816 times
Been thanked: 695 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by rooted »

Truly wrote:
rooted wrote:
Wed Jun 14, 2023 2:34 am
No it's not possible as CoreELEC is a full OS, it may be possible to run Kodi in a docker container but I've never tried.
I'm not able to try this atm, but it looks like what I need https://hub.docker.com/r/coreelec/coreelec-builder
It probably comes from this https://github.com/CoreELEC/coreelec-builder
This is a container which contains all the build tools to build a CoreELEC image, it's not CoreELEC running in a docker container.

Truly
Posts: 41
Joined: Sun Nov 03, 2019 8:53 am
languages_spoken: english
ODROIDs: N2
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by Truly »

How about x11docker?
It is supposed to allow you to run graphical desktop applications (and entire desktops) in Linux containers.
Supposedly, one of the single application uses is Kodi with hardware acceleration:
Image

User avatar
rooted
Posts: 10485
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 816 times
Been thanked: 695 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by rooted »

Give it a shot and let us know how it goes :)

Truly
Posts: 41
Joined: Sun Nov 03, 2019 8:53 am
languages_spoken: english
ODROIDs: N2
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by Truly »

I will, although my knowledge of Linux and specifically Docker is limited to say the least.

I'll count on your support! :D

User avatar
rooted
Posts: 10485
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 816 times
Been thanked: 695 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by rooted »

I would try it on the N2+ running CoreELEC but after these storms my Internet is down and has been since Sunday :(

Truly
Posts: 41
Joined: Sun Nov 03, 2019 8:53 am
languages_spoken: english
ODROIDs: N2
Has thanked: 22 times
Been thanked: 2 times
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by Truly »

That's unfortunate, hope it gets fixed soon.
I'm in the process of moving, so my comp is not set up yet to try this.

Ofboir
Posts: 1
Joined: Thu Oct 12, 2023 12:26 am
languages_spoken: english, french
ODROIDs: N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: N2(+), Kodi, hardware decoding, without CoreElec?

Post by Ofboir »

Hi

I am replying to this topic because I basically have the exact same question :)
CaptainRule, could you give some feedback? I am interested. Are you happy with your CoreElec install ?

I have a couple more questions:
- Docker on CoreElec seems to be (or perhaps was) outdated and 32 bits only.
Lots of forums / tutorials / etc. online point to this to install 64 bits Docker on CoreElec:
https://github.com/tamusiunas/docker-coreelec
But the inactivity on github doesn't make me very confident. Is it still a good way ? Or is Docker available through Kodi a perfectly viable option ?
- Does it make sense to install a Linux image with Docker ? (Like Alpine Linux, Arch or Debian) ?
The idea would be to have a real linux environment for software not available on Docker, for python development, etc.

Thank you for your insight

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 2 guests