Demystifying Odroid N2 hardware acceleration

mad_ady
Posts: 8331
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 574 times
Been thanked: 438 times
Contact:

Re: Demystifying Odroid N2 hardware acceleration

Post by mad_ady »

On the plus side N2 has enough cpu power to decode h264/h265 in software (not sure about 4k though), so it can work, but with more cpu/power usage.

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

Re: Demystifying Odroid N2 hardware acceleration

Post by rooted »

@odroidn2user The mpeg2 patent expired in 2018 so no issues with that fortunately.

https://www.techrepublic.com/article/mp ... -free-use/

Sav
Posts: 211
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 48 times
Been thanked: 18 times
Contact:

Re: Demystifying Odroid N2 hardware acceleration

Post by Sav »

These users thanked the author Sav for the post:
odroidn2user (Fri Jun 12, 2020 9:18 pm)

odroidn2user
Posts: 303
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 80 times
Been thanked: 78 times
Contact:

Re: Demystifying Odroid N2 hardware acceleration

Post by odroidn2user »

mad_ady wrote:
Sun Jun 07, 2020 3:29 am
On the plus side N2 has enough cpu power to decode h264/h265 in software (not sure about 4k though), so it can work, but with more cpu/power usage.
Indeed, the N2 is pretty powerful.

But: h265 is a pain to software decode on lower end hardware. (Anything up from 720p)
Plus you also need CPU resources to do the graphics rendering, so without gpu hardware acceleration you run into issues (low frame rates) quickly.

odroidn2user
Posts: 303
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 80 times
Been thanked: 78 times
Contact:

Re: Demystifying Odroid N2 hardware acceleration

Post by odroidn2user »

Sav wrote:
Sun Jun 07, 2020 5:35 pm
Checkout this good news
https://www.collabora.com/news-and-blo ... ics-blobs/
Nice! This is some very good news indeed. Gnome 3 supported with Panfrost for Bifrost! :D
And MPV and Kodi support is mentioned, nice! That'll help a lot, I imagine.

Also the G31 mentioned... Odroid has the C4 which runs on a G31, might be worth checking that all out.
And Alyssa develops for the ODROID GO Advance, which is awesome for Hardkernel!
No mention of the G52 in the article though.

Alyssa is doing a thorough job of it, great to see. Wonderful results.

jgmdev
Posts: 103
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 30 times
Been thanked: 67 times
Contact:

Re: Demystifying Odroid N2 hardware acceleration

Post by jgmdev »

odroidn2user wrote:
Fri Jun 12, 2020 9:23 pm
No mention of the G52 in the article though.
Read the news on phoronix some couple of days ago and was happy, but just that point made me sad :( All we can do is wish for the possibility that all these advancement will open the doors for easier G52 at some point...

odroidn2user
Posts: 303
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 80 times
Been thanked: 78 times
Contact:

Re: Demystifying Odroid N2 hardware acceleration

Post by odroidn2user »

jgmdev wrote:
Sat Jun 13, 2020 7:18 am
Read the news on phoronix some couple of days ago and was happy, but just that point made me sad :( All we can do is wish for the possibility that all these advancement will open the doors for easier G52 at some point...
Well, I can't imagine it won't! So it will. :) The G31 and G52 are closely related, both being the Bifrost line, so... patience... yet... more... patience...
Seriously though, excellent progress: awesome, awesome, awesome.

I wonder if anyone is fixing the audio chipset support...

jgmdev
Posts: 103
Joined: Tue Jan 28, 2020 2:28 pm
languages_spoken: english, spanish
ODROIDs: U2, N2, N2+, C4
Has thanked: 30 times
Been thanked: 67 times
Contact:

Re: Demystifying Odroid N2 hardware acceleration

Post by jgmdev »

odroidn2user wrote:
Sat Jun 13, 2020 5:02 pm
I wonder if anyone is fixing the audio chipset support...
Good reminder! That is another mainline blocker that I forgot existed since I'm using a usb audio adapter. But it would be nice to be able to use some headphones with the audio jack integrated on the N2.

odroidn2user
Posts: 303
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 80 times
Been thanked: 78 times
Contact:

Re: Demystifying Odroid N2 hardware acceleration

Post by odroidn2user »

jgmdev wrote:
Sun Jun 14, 2020 9:11 am
Good reminder! That is another mainline blocker that I forgot existed since I'm using a usb audio adapter. But it would be nice to be able to use some headphones with the audio jack integrated on the N2.
I've got a usb audio adapter as well, but it all is just a bother. Way easier to indeed just be able to use the audio jack. It is there, it worked excellently well previously, please just patch it already! :D
These users thanked the author odroidn2user for the post:
jgmdev (Mon Jun 15, 2020 4:44 am)

odroidn2user
Posts: 303
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 80 times
Been thanked: 78 times
Contact:

Re: Demystifying Odroid N2 hardware acceleration

Post by odroidn2user »

Some good news from chewitt
viewtopic.php?f=176&p=296331&sid=03b835 ... 3e#p296331

Screenshot from LibreElec showing Kodi (19.0 alpha) running on Panfrost on the G52!
See: https://twitter.com/LibreELEC/status/12 ... 5900915712
However....
It does however say there still are glitches to be solved. But it seems to work right on the G31, which is major progress for us N2 users!

And there are some reports about it running on the N2 here:
viewtopic.php?f=202&p=296813#p296779

And the lead developer (Rosenzweig) mentions that the G52 and Odroid N2 are development targets, so Panfrost is most certainly coming to the N2 as well.

Also audio support improvements are coming with kernel 5.8!
Chewitt reports: viewtopic.php?f=176&p=296331&sid=03b835 ... 3e#p296194
And tobetter already has updated packages for the ubuntu 20.04 netboot installer image:
viewtopic.php?f=182&p=296559#p296536
This makes the audio jack (3.5mm) available, as well as audio over HDMI and using the GPIO-pins SPDIF.

Awesome!
These users thanked the author odroidn2user for the post:
neighbour (Thu Jun 18, 2020 6:25 pm)

odroidn2user
Posts: 303
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 80 times
Been thanked: 78 times
Contact:

Re: Demystifying Odroid N2 hardware acceleration

Post by odroidn2user »

Some good news today about the hardware video decoding driver support.
With the announcement of the new Odroid N2 Plus also comes a video showing the hardware video decoding (V4L/vdec) on MPV.
This is not in the official mainline release of MPV/linux/libraries yet, but it looks a whole lot like brad and tobetter found a way to deliver it to his Ubuntu 20.04 installer image.
And given that the N2+ has the same chipset, it'll be available for all N2s I imagine. And it being pushed upstream (or technically probably: taken early from upstream), I imagine it'll be available on other distributions for the N2(+) in due time as well.

Vdec on the linux desktop on the N2! Yet another step to full hardware support is about to be made.
(I'm hearing the 'small step for man' quote echoing in my head for some reason, so do that with me.)
And with the audio/sound issue having recently been fixed, linux hardware support for the N2 is doing pretty good indeed!

Good news is news as well, and vdec support arriving needs to be shared! <- So there :)

Update: added brad's contribution.
Last edited by odroidn2user on Wed Jul 15, 2020 4:31 pm, edited 2 times in total.
These users thanked the author odroidn2user for the post:
istanbulls (Thu Jul 16, 2020 12:07 am)

User avatar
odroid
Site Admin
Posts: 34906
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 954 times
Been thanked: 772 times
Contact:

Re: Demystifying Odroid N2 hardware acceleration

Post by odroid »

In fact, the MPV activation was ported/tested by @brad first. ;)
These users thanked the author odroid for the post (total 3):
odroidn2user (Wed Jul 15, 2020 4:27 pm) • istanbulls (Thu Jul 16, 2020 12:07 am) • dkking (Tue Jul 21, 2020 9:04 am)

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 2 guests