Compiling Kodi to make it have hardware decoding

blisstik
Posts: 17
Joined: Tue Jun 11, 2019 4:28 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by blisstik » Tue Jun 11, 2019 7:59 am

I compiled it per zupet's instructions and image is corrupt. Suggestions?

https://ibb.co/vsxchdY

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by odroid » Tue Jun 11, 2019 9:18 am

@blisstik,
The auto-resolution changing feature seems to cause the issue.
We will try to find a way to make it work properly.

joy
Posts: 863
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 9 times
Been thanked: 39 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by joy » Thu Jun 13, 2019 10:03 am

blisstik wrote:
Tue Jun 11, 2019 7:59 am
I compiled it per zupet's instructions and image is corrupt. Suggestions?

https://ibb.co/vsxchdY
Hi blisstik,

Before starting KODI, please try the following instruction.

Code: Select all

$ echo 1080p60hz > /sys/class/display/mode 
$ fbset -fb /dev/fb0 -g 1920 1080 1920 2160 32

$ kodi
Or, change boot.ini to set display mode as manual display mode 1080p60hz.
It's a same action as the aforementioned one.
1. set display_autodetect to manual
https://github.com/mdrjr/n2_bootini/blo ... oot.ini#L7

Code: Select all

# Auto Detection of Monitor settings based on your Screen information
setenv display_autodetect "false"
2. make sure 1080p60hz is activated
https://github.com/mdrjr/n2_bootini/blo ... ot.ini#L49

Code: Select all

setenv hdmimode "1080p60hz"
3. system reboot

Code: Select all

$ sudo reboot
As I've figured out this issue so far, fb set-up logic becomes broken during KODI auto-resolution flow.
It's not a KODI issue, but osd driver should be adjusted in case of display auto detection a.k.a "cusomtbuilt" mode. :(

And another known issue is that osd scaling logic doesn't work normally except 4K/1080p display case.
- 2160p60hz / 2160p30hz / 1080p series : You will get normal KODI UI with these modes.
- the other modes : crashed display even with manual display

So please use this workaround until it's fixed.
I will try to fix them asap.
These users thanked the author joy for the post:
blisstik (Sat Jun 15, 2019 4:28 pm)

blisstik
Posts: 17
Joined: Tue Jun 11, 2019 4:28 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by blisstik » Sun Jun 16, 2019 10:35 am

@joy - is the fix going to be on the kernel side or libMali.so or both?

joy
Posts: 863
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 9 times
Been thanked: 39 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by joy » Mon Jun 17, 2019 10:18 am

blisstik wrote:
Sun Jun 16, 2019 10:35 am
@joy - is the fix going to be on the kernel side or libMali.so or both?
@blisstik, It will be on kernel side.
I think it's related to osd and display drivers of kernel because I can reproduce the problem on situations excluded from Mali.

blisstik
Posts: 17
Joined: Tue Jun 11, 2019 4:28 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by blisstik » Mon Jun 17, 2019 11:29 am

OK thanks. I hope you include the fix on the "upstream" branch as well.

DanDroid
Posts: 10
Joined: Sun Mar 31, 2019 3:58 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 14 times
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by DanDroid » Mon Jun 24, 2019 9:26 pm

@odroid Would it be possible to include a hardware enabled version of KODI in the next Ubuntu build? Guess that KODI is more popular on the N2 than Gimp or Thunderbird if you want to reduce image space...

elatllat
Posts: 1437
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2
Has thanked: 10 times
Been thanked: 28 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by elatllat » Tue Jun 25, 2019 1:56 am

DanDroid wrote:
Mon Jun 24, 2019 9:26 pm
@odroid Would it be possible to include a hardware enabled version of KODI in the next Ubuntu build? Guess that KODI is more popular on the N2 than Gimp or Thunderbird if you want to reduce image space...
None of those things would take up any image space; improved versions would just be added to a repository.
These users thanked the author elatllat for the post:
DanDroid (Tue Jun 25, 2019 3:03 pm)

blisstik
Posts: 17
Joined: Tue Jun 11, 2019 4:28 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by blisstik » Thu Jun 27, 2019 3:01 pm

@joy - I've updated to the latest 4.9.182+ upstream kernel, just as an FYI, kodi still has issues launching at 720p.

dabeeeenster
Posts: 5
Joined: Sat Apr 13, 2019 6:49 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by dabeeeenster » Thu Jul 18, 2019 12:05 am

Is there any progress on making Kodi binaries available?

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by odroid » Thu Jul 18, 2019 11:01 am

We are still trying to fix the arbitrary HDMI PHY and framebuffer size changing issues.
Please give us a couple of more weeks.

juanjo1024
Posts: 12
Joined: Sat Sep 02, 2017 10:07 pm
languages_spoken: english, spanish
ODROIDs: C2 N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by juanjo1024 » Mon Jul 29, 2019 12:23 am

Hi people, i tried this yesterday and found out about AML-specific code removal from KODI a couple days ago, ergo kodi did not build... any tips or orientation on what to do from now on ?
thanks in advance
Juanjo

User avatar
OverSun
Posts: 1486
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 16 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by OverSun » Mon Jul 29, 2019 2:39 am

AML specific code was removed from master branch, which is going to become next Kodi IN A YEAR.
Current Kodi release contains AML code quite ok.

blisstik
Posts: 17
Joined: Tue Jun 11, 2019 4:28 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by blisstik » Sat Aug 03, 2019 5:37 am

Latest kernel non-upstream resolves Kodi at 720p. I have a binary backup and that is what's working. A recompile fails.

BTW: Is the upstream and non-upstream the same now?

nurikodd
Posts: 14
Joined: Mon Apr 01, 2019 1:11 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by nurikodd » Sun Aug 04, 2019 1:37 am

odroid wrote:
Thu Jul 18, 2019 11:01 am
We are still trying to fix the arbitrary HDMI PHY and framebuffer size changing issues.
Please give us a couple of more weeks.
Any updates on this?

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by odroid » Mon Aug 05, 2019 9:48 am

We will release a new minimal Ubuntu image with Kodi and some other features within few days.

Meanwhile, update the Kernel and other system files with "apt update && apt upgrade && apt install kodi aml-libs && reboot".
And you can see a properly working Kodi screen on the framebuffer.
These users thanked the author odroid for the post (total 2):
DanDroid (Mon Aug 05, 2019 10:56 pm) • sensei73 (Wed Aug 07, 2019 8:25 am)

sensei73
Posts: 7
Joined: Mon Aug 05, 2019 1:26 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by sensei73 » Wed Aug 07, 2019 8:25 am

odroid wrote:
Mon Aug 05, 2019 9:48 am
We will release a new minimal Ubuntu image with Kodi and some other features within few days.

Meanwhile, update the Kernel and other system files with "apt update && apt upgrade && apt install kodi aml-libs && reboot".
And you can see a properly working Kodi screen on the framebuffer.
Thanks, just missing sound support and CEC for remote. Could you help?

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by odroid » Wed Aug 07, 2019 9:19 am

Did you install the new 0806 minimal image? HDMI sound works well with Kodi.
https://wiki.odroid.com/odroid-n2/os_im ... u/20190806

But there is no CEC feature yet.
We will try to implement it a few weeks later.

fcmts
Posts: 14
Joined: Mon May 13, 2019 8:25 pm
languages_spoken: english, portuguese
ODROIDs: N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by fcmts » Wed Aug 07, 2019 9:49 am

odroid wrote:
Wed Aug 07, 2019 9:19 am
Did you install the new 0806 minimal image? HDMI sound works well with Kodi.
https://wiki.odroid.com/odroid-n2/os_im ... u/20190806

But there is no CEC feature yet.
We will try to implement it a few weeks later.
That image won't boot on my 2GB N2.

Edit: The image is good, but I had to use imageUSB instead of Rufus to create the SD.

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by odroid » Wed Aug 07, 2019 10:56 am

fcmts wrote:
Wed Aug 07, 2019 9:49 am
Edit: The image is good, but I had to use imageUSB instead of Rufus to create the SD.
Consider using the Etcher. The validating function is always useful.
https://wiki.odroid.com/troubleshooting ... ing_etcher

User avatar
meveric
Posts: 10397
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 120 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by meveric » Wed Aug 07, 2019 1:38 pm

odroid wrote:
Wed Aug 07, 2019 9:19 am
Did you install the new 0806 minimal image? HDMI sound works well with Kodi.
https://wiki.odroid.com/odroid-n2/os_im ... u/20190806

But there is no CEC feature yet.
We will try to implement it a few weeks later.
Since the new Kernel update H264 works perfect in Kodi, but now H265 is no longer working at all for me.
Have you changed anything specific on Kodi or else to get H265 working?
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by odroid » Wed Aug 07, 2019 1:46 pm

I tested a few different H.265/HEVC 4K/60fps and 4K/25fps sample videos on the latest minimal Ubuntu 18.04.3 image and Kodi could handle it well.

I don't think we can modify the Kodi source code. ;)

Did you check the contents in our aml-lib package?
https://wiki.odroid.com/odroid-n2/os_im ... 90806#kodi
Could you play some H.265 files with c2play?

User avatar
OverSun
Posts: 1486
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 16 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by OverSun » Wed Aug 07, 2019 7:41 pm

I didn't test the latest odroidn2-4.9.y branch, but as I understand from description is it somewhat -upstream branch merged into that?
The one where CEC was not working and HDR was completely lost?

User avatar
meveric
Posts: 10397
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 120 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by meveric » Wed Aug 07, 2019 8:28 pm

OverSun wrote:
Wed Aug 07, 2019 7:41 pm
I didn't test the latest odroidn2-4.9.y branch, but as I understand from description is it somewhat -upstream branch merged into that?
The one where CEC was not working and HDR was completely lost?
That would explain why CEC stopped working as well, although I never use it and didn't miss it.
odroid wrote:
Wed Aug 07, 2019 1:46 pm
Did you check the contents in our aml-lib package?
I build my own from the amlogic buildroot.
It was working fine before the update ("fine" as it has micro studders)
Since the update it does no longer play h265 but still works with h264.
odroid wrote:
Wed Aug 07, 2019 1:46 pm
https://wiki.odroid.com/odroid-n2/os_im ... 90806#kodi
Could you play some H.265 files with c2play?
I don't use c2play in fact when ever I tried it often messed up the console and I had to reboot so I skipped on it totally.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

sensei73
Posts: 7
Joined: Mon Aug 05, 2019 1:26 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by sensei73 » Wed Aug 07, 2019 8:55 pm

odroid wrote:
Wed Aug 07, 2019 9:19 am
But there is no CEC feature yet.
We will try to implement it a few weeks later.
It will be great!!! I can't use coreelec because it's too limited, Ubuntu is my only solution. Will you keep up to date Kodi builds?

User avatar
OverSun
Posts: 1486
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 16 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by OverSun » Thu Aug 08, 2019 1:57 am

OverSun wrote:
Wed Aug 07, 2019 7:41 pm
I didn't test the latest odroidn2-4.9.y branch, but as I understand from description is it somewhat -upstream branch merged into that?
The one where CEC was not working and HDR was completely lost?
yep, that’s the one. no CEC, no HDR, no way I’m going to use that.

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by odroid » Thu Aug 08, 2019 11:09 am

When I connected my N2 to a HDR capable TV, I could see "HDR" things on the TV OSD.
But HDR test video showed something washed out color like HDR-to-SDR tone mapping.
As far as I remember, CoreELEC also used the 4.9-upstream branch and there was no issue with HDR videos.
We will check it later once the CEC is working again.

BTW, were the CEC and HDR working properly before we merging the upstream branch?

User avatar
meveric
Posts: 10397
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 120 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by meveric » Thu Aug 08, 2019 2:18 pm

odroid wrote:
Thu Aug 08, 2019 11:09 am
BTW, were the CEC and HDR working properly before we merging the upstream branch?
Can't say anything about HDR but CEC works fine with older Kernels.
I just reverted back to 4.9.185 and CEC works fine. (as does H265)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
OverSun
Posts: 1486
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 16 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by OverSun » Thu Aug 08, 2019 3:14 pm

Yes, absolutely, the 4.9.185 has HDR all the way together with CEC.
HDR kicks in right at boot and stays on all the time, in Kodi, and in every video. On my TV that makes all the videos waaaaaay better presented than when it's off. The difference is stunning.
The only problem on 4.9.185 is stuttering that looks like fractional rate problem, every few seconds, despite it's present on any fps video.
But the quality HDR picture produces made me be ok with stuttering for several months already, this is how good picture is on my LG SJ800V tv.
I can even leave without CEC for some time, using iPad as remote, but honestly, I used latest kernel yesterday for few hours, and then booted back to HDR one, because this is the only thing that make N2 a body ahead of any other board. Otherwise I would use good old rk3399 N1, which is rock solid as Kodi station.

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by odroid » Thu Aug 08, 2019 3:19 pm

I see.
Let's check which changes broke the HDR function.

IgaBiva
Posts: 16
Joined: Tue May 07, 2019 4:00 pm
languages_spoken: english, deutsch, srpski
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by IgaBiva » Thu Aug 08, 2019 5:18 pm

Please fix this.

Imho, HDR improves picture quality much more than resolution increase from 1080p to 4K. In one moment, I wanted to buy Pi4 but when I saw that it does not support HDR (and bitstream of HD audio), decision on which board to buy was easy.

CEC and HDR are must have functionalities for N2 as media center.

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by odroid » Thu Aug 08, 2019 5:30 pm

We can't predict how long time we need to fix it. We just keep trying it.

Meanwhile, please use the CoreELEC for the HDR and CEC features as a temporary workaround.

User avatar
OverSun
Posts: 1486
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 16 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by OverSun » Thu Aug 08, 2019 5:57 pm

odroid wrote:
Thu Aug 08, 2019 3:19 pm
I see.
Let's check which changes broke the HDR function.
It must be something in the output driver. HDR was kicking in right after kernel start booting, at the first display init during black screen even before any output. No application like kodi or video playback know anything about HDR, it was just always on.

User avatar
tobetter
Posts: 3786
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 29 times
Been thanked: 130 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by tobetter » Fri Aug 09, 2019 6:57 am

OverSun wrote:
Thu Aug 08, 2019 5:57 pm
odroid wrote:
Thu Aug 08, 2019 3:19 pm
I see.
Let's check which changes broke the HDR function.
It must be something in the output driver. HDR was kicking in right after kernel start booting, at the first display init during black screen even before any output. No application like kodi or video playback know anything about HDR, it was just always on.
This patch would make to enable HDR by default.

Code: Select all

diff --git a/drivers/amlogic/media/enhancement/amvecm/amvecm.c b/drivers/amlogic/media/enhancement/amvecm/amvecm.c
index 89cfda3959f0..4f4306fead0f 100644
--- a/drivers/amlogic/media/enhancement/amvecm/amvecm.c
+++ b/drivers/amlogic/media/enhancement/amvecm/amvecm.c
@@ -6227,7 +6227,11 @@ static ssize_t amvecm_lc_store(struct class *cls,
 
 static void def_hdr_sdr_mode(void)
 {
+#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
+       sdr_mode = 2;
+#else
        sdr_mode = 0;
+#endif
 }
 
 /* #if (MESON_CPU_TYPE == MESON_CPU_TYPE_MESONG9TV) */

blisstik
Posts: 17
Joined: Tue Jun 11, 2019 4:28 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by blisstik » Fri Aug 09, 2019 10:39 am

Can someone help? After launching Kodi at 720p, it works fine then I exit then I run fbi to display an image. The image is rendered with scanlines. How would reset the framebuffer or fix the issue?

https://ibb.co/vsxchdY

blisstik
Posts: 17
Joined: Tue Jun 11, 2019 4:28 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by blisstik » Fri Aug 09, 2019 1:29 pm

OK it's not just fbi but also dialog. Maybe it's the kodi exit script.

User avatar
OverSun
Posts: 1486
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 16 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by OverSun » Sat Aug 10, 2019 2:15 am

tobetter wrote:
Fri Aug 09, 2019 6:57 am
This patch would make to enable HDR by default.
Yes, that worked! Thank you, now there is HDR and stutter is gone on new kernel. The only thing that's left is CEC and then it's ideal.

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

Re: Compiling Kodi to make it have hardware decoding

Unread post by rooted » Sun Aug 11, 2019 3:30 am

OverSun wrote:
tobetter wrote:
Fri Aug 09, 2019 6:57 am
This patch would make to enable HDR by default.
Yes, that worked! Thank you, now there is HDR and stutter is gone on new kernel. The only thing that's left is CEC and then it's ideal.
You watch SDR videos in HDR?

User avatar
OverSun
Posts: 1486
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 16 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by OverSun » Sun Aug 11, 2019 3:51 am

I watch what my TV shows me, and yes, it does that.
I can tell you there is a difference, since I tried few times the kernel that was lacking the HDR. Also I can see notable difference between N1 and N2 playback.
Yes, I do understand that HDR is an information layer that doesn't exists in SDR videos and there is no sense in doing so, but it is either my TV enhancement that it does to the signal when it is HDR, or N2 enhancement that it does when streaming HDR signal.
The difference is undoubtful between HDR and SDR output mode on the same board, even with the same content, and it is so big it made me be ok with stutter for few months until the latest kernel. It is so big it makes me be ok with no CEC yet. It's the biggest step I've seen so far between U2->XU->XU4->C1->C2->N1->N2 I used as media center.

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

Re: Compiling Kodi to make it have hardware decoding

Unread post by rooted » Sun Aug 11, 2019 9:39 am

Interesting, playing SDR on my HDR TV (with HDR on) the colors are way oversaturated.

Your TV must have some kind of onboard processing to convert SDR to HDR.

sensei73
Posts: 7
Joined: Mon Aug 05, 2019 1:26 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by sensei73 » Wed Aug 14, 2019 5:42 pm

@odroid any news about HDMI CEC support on ubuntu image?

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by odroid » Wed Aug 14, 2019 5:46 pm

Give us a couple of weeks to enable the CEC feature since we have some other urgent issues.
Sorry about that.

sensei73
Posts: 7
Joined: Mon Aug 05, 2019 1:26 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by sensei73 » Mon Aug 19, 2019 1:55 am

Hi I've compiled Kodi 18.3 Leia and get it working, but I can't seems to make HW decoding working

I'm getting this error in Kodi.log

ERROR: AML: no proper permission, please contact the device vendor. Skipping codec...

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

Re: Compiling Kodi to make it have hardware decoding

Unread post by rooted » Mon Aug 19, 2019 12:14 pm

sensei73 wrote:Hi I've compiled Kodi 18.3 Leia and get it working, but I can't seems to make HW decoding working

I'm getting this error in Kodi.log

ERROR: AML: no proper permission, please contact the device vendor. Skipping codec...
Looks like a permission issue in /dev

phaseshifter
Posts: 3459
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 37 times
Been thanked: 42 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by phaseshifter » Mon Aug 19, 2019 6:44 pm

can i install kodi with the mate latest image or do i need to use the min image...i have tried so much today is there a reference page that i can follow..dumb ass coder here..

ok all i want to do is play my dvd`s on my usb dvd player...is there something easier package to install..??
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by odroid » Mon Aug 19, 2019 6:55 pm

@phaseshifter,
You have to use the minimal image.

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by odroid » Mon Aug 19, 2019 7:03 pm

No.. I was wrong.
You can run the Kodi on the latest Mate image.

Press "ctrl-alt-F3" to open a virtual terminal and type the following commands to install kodi.
You have to login as a "root" on the VT.

Code: Select all

apt install mali-fbdev kodi aml-libs
type and run "kodi" on the VT.

Once you exit from kodi, you can return to the Mate desktop by pressing "ctrl-alt-F7".

phaseshifter
Posts: 3459
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 37 times
Been thanked: 42 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by phaseshifter » Mon Aug 19, 2019 7:21 pm

i got vlc to run thanks ...i will give that a try though...thanks
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

everlasting
Posts: 46
Joined: Thu Mar 28, 2019 7:10 am
languages_spoken: english
ODROIDs: N2
Has thanked: 7 times
Been thanked: 0
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by everlasting » Thu Aug 22, 2019 9:53 am

so kodi works on mate desktop now, i have a question: is it normal to not get any audio out from the 3.5 analog in kodi? the audio only works using hdmi...

User avatar
odroid
Site Admin
Posts: 31835
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 252 times
Contact:

Re: Compiling Kodi to make it have hardware decoding

Unread post by odroid » Thu Aug 22, 2019 10:08 am

Try this guide to change the default audio output path.
https://wiki.odroid.com/odroid-n2/appli ... note/sound

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 0 guests