nekanali
Posts: 4
Joined: Fri Jul 17, 2020 11:58 am

Manually compile kodi 19 on the PI4 B - what branche(s) to use?

Fri Jul 17, 2020 12:21 pm

Hello,

My first post :-)

After I was able to compile popcornmix "leia_p4" branch on my PI4 and got very happy about the results.
So I decided to try kodi19.
I tried the gbm and newclock_4.3 branch which, in the end, all compile well. Started kodi as root.
Running 5.4.50-v7l+

However when I try to play a video with "Prime HW accel" enabled I just get:

Code: Select all

ERROR <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Operation not permitted (-1)
or

Code: Select all

CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)
I tried with:

Code: Select all

gpu_mem=76
dtoverlay=vc4-kms-v3d,cma-size=402653184
dtoverlay=rpivid-v4l2
and

Code: Select all

dtparam=audio=on
dtoverlay=vc4-fkms-v3d
dtoverlay=rpivid-v4l2
Both same results

I understand that mmal won't work on kodi19, alternatives would be v4l2_m2m and v4l_request and altough ffmpeg tells me these are supported hwaccel's it won't work with kodi.

I downloaded latest test version LE, there it seems to work with most of my video files.

Any hints?

Carel

User avatar
zeros
Posts: 35
Joined: Thu Mar 05, 2020 7:52 am
Location: Estonia

Re: Manually compile kodi 19 on the PI4 B - what branche(s) to use?

Fri Jul 17, 2020 4:09 pm

I'm not answering to your question, but I use my raspberrypi4 with 2020-05-27-raspios-buster-full-armhf.img + kodi and AUTO-STARTING KODI AT BOOT. It works pretty good! I can use TV's remote that works via HDMI-CEC. I tried to connect two monitors today but finally worked only one. Everything else is very good!
https://youtu.be/mjAr31mXjpg
P.S. Quick Google will give it to you:
https://discourse.osmc.tv/t/kodi-19-mat ... y-pi/79407
Branch newclock5, if I am correct?
https://github.com/popcornmix/xbmc/tree/newclock5

nekanali
Posts: 4
Joined: Fri Jul 17, 2020 11:58 am

Re: Manually compile kodi 19 on the PI4 B - what branche(s) to use?

Fri Jul 17, 2020 6:01 pm

Hi

Yep, also thought about newclock5.
But for now it’s a shot in the dark.

Anyway, it’s the last branch I didn’t try
Let’s see what it will bring

User avatar
zeros
Posts: 35
Joined: Thu Mar 05, 2020 7:52 am
Location: Estonia

Re: Manually compile kodi 19 on the PI4 B - what branche(s) to use?

Fri Jul 17, 2020 6:30 pm

The other people say it's on a very beginning. Why not V18.7 Leia, it's really good in my opinion with raspberrypi4.
And let your results know later and I wish you luck! I know the testing is a big job .. On what do you use that by the way? On raspios-buster or something else?

nekanali
Posts: 4
Joined: Fri Jul 17, 2020 11:58 am

Re: Manually compile kodi 19 on the PI4 B - what branche(s) to use?

Fri Jul 17, 2020 6:39 pm

Running Rasbian testing.

I’m especially after the new features from pvr.iptvsimple.
That’s all done based on Matrix.

You may be right, maybe I just need to wait a bit ;)

User avatar
zeros
Posts: 35
Joined: Thu Mar 05, 2020 7:52 am
Location: Estonia

Re: Manually compile kodi 19 on the PI4 B - what branche(s) to use?

Fri Jul 17, 2020 7:21 pm

Okay, I got it. I think it's worth to try it out and please report from the results. But don't expect to hope everything works. It would be interesting to know what the situation is. I will try myself next time Multi-boot. I just hasn't been able to try it yet. One piece would be a AUTO-STARTING KODI AT BOOT. But I would like to change the situation sometimes.
Last edited by zeros on Sat Jul 18, 2020 5:23 am, edited 1 time in total.

Rascas
Posts: 697
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: Manually compile kodi 19 on the PI4 B - what branche(s) to use?

Fri Jul 17, 2020 7:31 pm

To compile Kodi 19 for the RPi 4 you should use the "gbm" branch.
I have built it successfully some time ago when the v4l2 support was first introduced and got it working. The problem for me was that h264 hardware decoding wasn't working, or better, it was but seeking freezed Kodi. That behaviour was expected at that time, don't know if it is fixed already. And if there is now any other problem.

I did this on Raspbian Buster, don't now about Raspbian Testing/Bullseye but some dependencies may be different.

nekanali
Posts: 4
Joined: Fri Jul 17, 2020 11:58 am

Re: Manually compile kodi 19 on the PI4 B - what branche(s) to use?

Tue Jul 21, 2020 11:41 am

Thanks for the info.

I had a look at the release notes of the most recent LE test build and there’s a lot of tweaking to be done!
Popcornmix fixed the failed dependency to DRM_FORMAT_P030, that’s a good start already :-)

Return to “Graphics, sound and multimedia”