Kodi on Manjaro
#1
Hi

I am trying to run Kodi on Manjaro Linux. After compiling, Kodi runs, but video playback is very slow (1-2 FPS). The same video plays just fine with mpv player or smplayer. I used the PKGBUILD from the x64 Kodi, Kodi-git didn't like custom compile flags. 

I tried compiling with the options provided in the default PKGBUILD. I also edited it to include 
Code:
-DX11_RENDERING_SYSTEM=GLES

that didn't help. I also added flags for
Code:
-DENABLE_GL=OFF
-DENABLE_GLES=ON
-DENABLE_VAAPI=OFF
-DENABLE_VDPAU=OFF
didn't make a difference.

Given the fact that ffmpeg seems to handle the video just fine (mpv is a frontend for ffmpeg, right?), I also tried compiling with 
Code:
-DWITH_FFMPEG=SHARED

to use the ffmpeg from the system, but no luck.
I tried using it on Manjaro, my last tests were with the Panfrost driver active. I also tried once with GL4ES. In order to speed up the build, I only compiled kodi-x11, not kodi-gbm or kodi-wayland.
Worth to mention: on Debian Kodi works fine (although it's a much older version).
#2
Are there any Kodi packages for Manjaro on pbpro which use VPU? I would like to send Video/Audio over Kodi to my TV by using USB-C to HDMI (alternate mode Display Port devices).
#3
(01-03-2020, 12:14 PM)brent.thierens Wrote: Hi

I am trying to run Kodi on Manjaro Linux. After compiling, Kodi runs, but video playback is very slow (1-2 FPS). The same video plays just fine with mpv player or smplayer. I used the PKGBUILD from the x64 Kodi, Kodi-git didn't like custom compile flags. 

I tried compiling with the options provided in the default PKGBUILD. I also edited it to include 
Code:
-DX11_RENDERING_SYSTEM=GLES

that didn't help. I also added flags for
Code:
-DENABLE_GL=OFF
-DENABLE_GLES=ON
-DENABLE_VAAPI=OFF
-DENABLE_VDPAU=OFF
didn't make a difference.

Given the fact that ffmpeg seems to handle the video just fine (mpv is a frontend for ffmpeg, right?), I also tried compiling with 
Code:
-DWITH_FFMPEG=SHARED

to use the ffmpeg from the system, but no luck.
I tried using it on Manjaro, my last tests were with the Panfrost driver active. I also tried once with GL4ES. In order to speed up the build, I only compiled kodi-x11, not kodi-gbm or kodi-wayland.
Worth to mention: on Debian Kodi works fine (although it's a much older version).

Getting it to work in the first place is a good achievement. I would like to work on kodi package with you But I can just compile and test if while you can do the research for what needs to be the compile arguments. running Kodi in gbm would be the smoothest option I can think of.

If you have a kodi pkg for manjaro then please share it I can look into it and see how we can optimize it. also please point me to the PKGBUILD you used so we can work on it together.
Manjaro ARM Team.
Devices: Pinebook Pro & PinePhone.
#4
Well, this is interesting. Since I did not have the PKGBUILD anymore, I edited it again, and now Kodi is working just fine. I've tuned the makepkg.conf to include the native architecture, but that's about it.

This is adapted from the x86 Kodi, so all the necessary files can be found over there.
My makepkg.conf looks like this (only the lines I edited):

Quote:CFLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt"
CXXFLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt"
MAKEFLAGS="-j6"

The PKGBUILD is attached (because of forum rules, I had to add the txt). This is in addition to the files which are present in the x86_64 repo (https://www.archlinux.org/packages/commu...6_64/kodi/). Can we include the package in the official repositories?


Attached Files
.txt   PKGBUILD.txt (Size: 10.07 KB / Downloads: 207)
#5
(03-08-2020, 09:25 AM)brent.thierens Wrote: Well, this is interesting. Since I did not have the PKGBUILD anymore, I edited it again, and now Kodi is working just fine. I've tuned the makepkg.conf to include the native architecture, but that's about it.

This is adapted from the x86 Kodi, so all the necessary files can be found over there.
My makepkg.conf looks like this (only the lines I edited):

Quote:CFLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt"
CXXFLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt"
MAKEFLAGS="-j6"

The PKGBUILD is attached (because of forum rules, I had to add the txt). This is in addition to the files which are present in the x86_64 repo (https://www.archlinux.org/packages/commu...6_64/kodi/). Can we include the package in the official repositories?
Great work. I am going to build it tonight and test it on my PBP, If it works smooth then I will add it to the unstable branch.

Did you build it on the PBP itself?
Manjaro ARM Team.
Devices: Pinebook Pro & PinePhone.
#6
I was able to build it using your pkgbuild and it runs slow. Though it places with software decoding but it's very smooth i ended up watching the whole movie instead of just testing it.

Great work Brent. I will upload the package in unstable and create a package repo.
Manjaro ARM Team.
Devices: Pinebook Pro & PinePhone.
#7
I did build it on the PBP itself. I'm on KDE with Xorg, Compositing enabled. For me, everything was running smooth actually...
I'll try the package from the repo and see if there are any differences, if so, we can investigate what the differences where Smile
#8
(03-10-2020, 07:42 AM)brent.thierens Wrote: I did build it on the PBP itself. I'm on KDE with Xorg, Compositing enabled. For me, everything was running smooth actually...
I'll try the package from the repo and see if there are any differences, if so, we can investigate what the differences where Smile
I build it on my Vim3 with kde and gles.

Kodi package 
It is uploaded to the Manjaro Repo. This kodi build needs GLES support, it only plays video with software decoding. There was no screen tearing or lag. Kodi UI works smooth as it is hw acc.

How to install
For users on Stable branch
Step 1: 

Code:
sudo pacman-mirrors -b unstable
[size=undefined]

Step 2: [/size]

Code:
sudo pacman -Syy kodi

Users on unstable branch can skip Step 1.

Nice work brent. Thanks.
Manjaro ARM Team.
Devices: Pinebook Pro & PinePhone.
#9
How can I check if this uses sw or hw rendering?
Could it be that we need to do this to get HW acceleration working: https://forum.manjaro.org/t/manjaro-arm-.../112647/24
#10
We will need VPU support for that
Code:
kernel 5.7 - [GIT,PULL,v2,FOR,v5.7] rockchip: Add the rkvdec driver - https://patchwork.kernel.org/patch/11403025/
https://git.linuxtv.org/hverkuil/media_tree.git/log/?h=rkvdec
I am not sure what else in Kodi will be needed and if Kodi supports v4l2


Possibly Related Threads…
Thread Author Replies Views Last Post
  Manjaro - Internet connection sharing requires dnsmasq (but the dep isn't declared) Dendrocalamus64 0 75 09-11-2021, 05:25 PM
Last Post: Dendrocalamus64
  Pinebook pro nearly unusable after using manjaro-arm-installer TheCounselor 3 666 09-07-2021, 08:34 PM
Last Post: TRS-80
  Sound stuttering on Manjaro gnome after latest kernel upgrade? pjsf 1 284 08-27-2021, 06:09 AM
Last Post: bikerlatt1
  Working suspend on Manjaro brzegorz 2 504 07-30-2021, 06:21 AM
Last Post: vssz
  Manjaro and Arch repository with privacy oriented software as400 78 48,080 07-28-2021, 05:24 AM
Last Post: llsf
  Manjaro [ARM Stable Update] 2021-07-23 issues Bocanila 0 268 07-24-2021, 09:09 AM
Last Post: Bocanila
  Kernel crash on Manjaro ARM mfashby 0 252 07-06-2021, 03:17 PM
Last Post: mfashby
  Manjaro wont recognize eMMC after booting with it disabled peasant 1 375 06-27-2021, 02:39 AM
Last Post: Arwen
  Pinebook Pro Manjaro Power Savinng Tips HelpMyBatteryIsDraining 1 598 06-15-2021, 08:42 AM
Last Post: moonwalkers
  [LibreOffice & Gimp] ARM support: no hardware acceleration on [Manjaro] Pinebook Pro regivanx 0 417 06-15-2021, 04:04 AM
Last Post: regivanx

Forum Jump:


Users browsing this thread: 1 Guest(s)