Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orange pi 5 plus use kodi ,When playing 4k, the screen goes black, but the sound and subtitles are displayed normally #815

Open
dengqz opened this issue May 19, 2024 · 80 comments

Comments

@dengqz
Copy link

dengqz commented May 19, 2024

orange pi 5 plus use kodi ,When playing 4k, the screen goes black, but the sound and subtitles are displayed normally
Uploading 截屏2024-05-19 23.12.06.png…

ubuntu24

@dengqz
Copy link
Author

dengqz commented May 19, 2024

截屏2024-05-19 23 12 06

@dengqz
Copy link
Author

dengqz commented May 19, 2024

截屏2024-05-19 23 16 05

@dengqz
Copy link
Author

dengqz commented May 19, 2024

截屏2024-05-19 23 17 28

@dengqz
Copy link
Author

dengqz commented May 19, 2024

截屏2024-05-19 23 17 52

@dengqz
Copy link
Author

dengqz commented May 19, 2024

截屏2024-05-19 23 18 24

@dengqz
Copy link
Author

dengqz commented May 19, 2024

My monitor has a 1080p resolution of 60hz
orange pi plus 32G
SD install
HDMI 2.0 Wire

@nguyenhunga5
Copy link

@dengqz I using the patch in this tutorial and now Kodi fully working with 4k, h265.
You can try to build Kodi with the apply patch from the link bellow.

https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/Rendering

@kkein
Copy link

kkein commented May 21, 2024

very good!can you please give more details?

@nguyenhunga5
Copy link

nguyenhunga5 commented May 22, 2024

very good!can you please give more details?

Yes, there is my steps:

  1. Get the source code
  1. Get build dependencies manually
  • sudo apt install ccache
  • sudo apt install distcc
  • sudo apt install debhelper autoconf automake autopoint gettext autotools-dev cmake curl default-jre doxygen gawk gcc gdc gperf libasound2-dev libass-dev libavahi-client-dev libavahi-common-dev libbluetooth-dev libbluray-dev libbz2-dev libcdio-dev libp8-platform-dev libcrossguid-dev libcurl4-openssl-dev libcwiid-dev libdbus-1-dev libdrm-dev libegl1-mesa-dev libenca-dev libflac-dev libfmt-dev libfontconfig-dev libfreetype6-dev libfribidi-dev libfstrcmp-dev libgcrypt-dev libgif-dev libgles2-mesa-dev libgl1-mesa-dev libglu1-mesa-dev libgnutls28-dev libgpg-error-dev libgtest-dev libiso9660-dev libjpeg-dev liblcms2-dev libltdl-dev liblzo2-dev libmicrohttpd-dev libmysqlclient-dev libnfs-dev libogg-dev libpcre3-dev libplist-dev libpng-dev libpulse-dev libshairplay-dev libsmbclient-dev libspdlog-dev libsqlite3-dev libssl-dev libtag1-dev libtiff5-dev libtinyxml-dev libtinyxml2-dev libtool libudev-dev libunistring-dev libva-dev libvdpau-dev libvorbis-dev libxmu-dev libxrandr-dev libxslt1-dev libxt-dev lsb-release meson nasm ninja-build python3-dev python3-pil python3-pip rapidjson-dev swig unzip uuid-dev zip zlib1g-dev
  • sudo apt install libcec-dev libfmt-dev liblirc-dev
  • sudo apt install libflatbuffers-dev
  • sudo apt install libglew-dev libwayland-dev libxkbcommon-dev waylandpp-dev wayland-protocols
  • sudo apt install libgbm-dev libinput-dev libxkbcommon-dev
  • sudo apt install doxygen libcap-dev libsndio-dev libmariadbd-dev
  • sudo apt install libcap-dev
  • sudo apt install libcec-dev
  • sudo apt install libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev libpostproc-dev
  • sudo apt install libdav1d-dev
  • sudo apt install mpv ffmpeg
  • sudo apt install libdisplay-info-dev
  1. Follow this link to config build and build https://github.com/xbmc/xbmc/blob/master/docs/README.Linux.md#4-build-kodi
  • My build config build:
    • mkdir $HOME/kodi-build
    • cd $HOME/kodi-build
    • cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME="x11 wayland gbm" -DAPP_RENDER_SYSTEM=gles -B.
    • cmake --build . -- VERBOSE=1 -j$(getconf _NPROCESSORS_ONLN)
    • sudo usermod -a -G input,video yourusername
    • sudo make install
  1. After that you need logout and login with Kodi session.
  2. This is my setting:
    IMG_4528
  3. Result
    IMG_4529
    IMG_4530

@Joshua-Riek
Copy link
Owner

kodi is allready patched, the user is likely trying to play HDR videos which do not work

@nguyenhunga5
Copy link

kodi is allready patched, the user is likely trying to play HDR videos which do not work

It's strange, Kodi working with hdr10 on my side.
https://youtu.be/ejPhwgw9R6g

@dengqz
Copy link
Author

dengqz commented May 23, 2024

very good!can you please give more details?

Yes, there is my steps:

  1. Get the source code
  1. Get build dependencies manually
  • sudo apt install ccache
  • sudo apt install distcc
  • sudo apt install debhelper autoconf automake autopoint gettext autotools-dev cmake curl default-jre doxygen gawk gcc gdc gperf libasound2-dev libass-dev libavahi-client-dev libavahi-common-dev libbluetooth-dev libbluray-dev libbz2-dev libcdio-dev libp8-platform-dev libcrossguid-dev libcurl4-openssl-dev libcwiid-dev libdbus-1-dev libdrm-dev libegl1-mesa-dev libenca-dev libflac-dev libfmt-dev libfontconfig-dev libfreetype6-dev libfribidi-dev libfstrcmp-dev libgcrypt-dev libgif-dev libgles2-mesa-dev libgl1-mesa-dev libglu1-mesa-dev libgnutls28-dev libgpg-error-dev libgtest-dev libiso9660-dev libjpeg-dev liblcms2-dev libltdl-dev liblzo2-dev libmicrohttpd-dev libmysqlclient-dev libnfs-dev libogg-dev libpcre3-dev libplist-dev libpng-dev libpulse-dev libshairplay-dev libsmbclient-dev libspdlog-dev libsqlite3-dev libssl-dev libtag1-dev libtiff5-dev libtinyxml-dev libtinyxml2-dev libtool libudev-dev libunistring-dev libva-dev libvdpau-dev libvorbis-dev libxmu-dev libxrandr-dev libxslt1-dev libxt-dev lsb-release meson nasm ninja-build python3-dev python3-pil python3-pip rapidjson-dev swig unzip uuid-dev zip zlib1g-dev
  • sudo apt install libcec-dev libfmt-dev liblirc-dev
  • sudo apt install libflatbuffers-dev
  • sudo apt install libglew-dev libwayland-dev libxkbcommon-dev waylandpp-dev wayland-protocols
  • sudo apt install libgbm-dev libinput-dev libxkbcommon-dev
  • sudo apt install doxygen libcap-dev libsndio-dev libmariadbd-dev
  • sudo apt install libtexturePacker-dev
  • sudo apt install libcap-dev
  • sudo apt install libcec-dev
  • sudo apt install libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev libpostproc-dev
  • sudo apt install libdav1d-dev
  • sudo apt install mpv ffmpeg
  1. Follow this link to config build and build https://github.com/xbmc/xbmc/blob/master/docs/README.Linux.md#4-build-kodi
  • My build config build:

    • mkdir $HOME/kodi-build
    • cd $HOME/kodi-build
    • cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME="x11 wayland gbm" -DAPP_RENDER_SYSTEM=gles -B.
    • cmake --build . -- VERBOSE=1 -j$(getconf _NPROCESSORS_ONLN)
    • sudo usermod -a -G input,video
    • sudo make install
  1. After that you need logout and login with Kodi session.
  2. This is my setting:
    IMG_4528
  3. Result
    IMG_4529
    IMG_4530

I tried following your steps, but it still hasn't been completely resolved.

sudo apt install libtexturePacker-dev
When executing this step, the dependency cannot be found;In the end, I didn't install this

cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME="x11 wayland gbm" -DAPP_RENDER_SYSTEM=gles -B
When executing this step, an error message appears indicating that libdisplayinfo cannot be found
then I searched and installed this

Finally, I followed all the steps and installed Kodi
logout and login with Kodi-gbm ,In the player settings, I can see the hardware acceleration switch;
The previous video can be played but there is no sound; and after playing for a few seconds, there was no picture again;Black screen again;I'm not sure if the reason is due to not installing libtexturePacker dev

Video files are processed using the NFS protocol
I installed the system and executed Kodi compilation without doing any other operations;

I plan to try compiling again;

Here are my hardware and environment:
orange pi 5 plus 32G
ubuntu-24.04-preinstalled-desktop-arm64-orangepi-5-plus.img.xz Ubuntu 24.04 LTS Desktop with Linux 6.1

@dengqz
Copy link
Author

dengqz commented May 23, 2024

kodi is allready patched, the user is likely trying to play HDR videos which do not work

Thank you very much for your reply.
I plan to try compiling again.
Following the steps of nguyenhunga5, it seems that it can be played and there is a screen display, but there are still some issues

@nguyenhunga5
Copy link

very good!can you please give more details?

Yes, there is my steps:

  1. Get the source code
  1. Get build dependencies manually
  • sudo apt install ccache
  • sudo apt install distcc
  • sudo apt install debhelper autoconf automake autopoint gettext autotools-dev cmake curl default-jre doxygen gawk gcc gdc gperf libasound2-dev libass-dev libavahi-client-dev libavahi-common-dev libbluetooth-dev libbluray-dev libbz2-dev libcdio-dev libp8-platform-dev libcrossguid-dev libcurl4-openssl-dev libcwiid-dev libdbus-1-dev libdrm-dev libegl1-mesa-dev libenca-dev libflac-dev libfmt-dev libfontconfig-dev libfreetype6-dev libfribidi-dev libfstrcmp-dev libgcrypt-dev libgif-dev libgles2-mesa-dev libgl1-mesa-dev libglu1-mesa-dev libgnutls28-dev libgpg-error-dev libgtest-dev libiso9660-dev libjpeg-dev liblcms2-dev libltdl-dev liblzo2-dev libmicrohttpd-dev libmysqlclient-dev libnfs-dev libogg-dev libpcre3-dev libplist-dev libpng-dev libpulse-dev libshairplay-dev libsmbclient-dev libspdlog-dev libsqlite3-dev libssl-dev libtag1-dev libtiff5-dev libtinyxml-dev libtinyxml2-dev libtool libudev-dev libunistring-dev libva-dev libvdpau-dev libvorbis-dev libxmu-dev libxrandr-dev libxslt1-dev libxt-dev lsb-release meson nasm ninja-build python3-dev python3-pil python3-pip rapidjson-dev swig unzip uuid-dev zip zlib1g-dev
  • sudo apt install libcec-dev libfmt-dev liblirc-dev
  • sudo apt install libflatbuffers-dev
  • sudo apt install libglew-dev libwayland-dev libxkbcommon-dev waylandpp-dev wayland-protocols
  • sudo apt install libgbm-dev libinput-dev libxkbcommon-dev
  • sudo apt install doxygen libcap-dev libsndio-dev libmariadbd-dev
  • sudo apt install libtexturePacker-dev
  • sudo apt install libcap-dev
  • sudo apt install libcec-dev
  • sudo apt install libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev libpostproc-dev
  • sudo apt install libdav1d-dev
  • sudo apt install mpv ffmpeg
  1. Follow this link to config build and build https://github.com/xbmc/xbmc/blob/master/docs/README.Linux.md#4-build-kodi
  • My build config build:

    • mkdir $HOME/kodi-build
    • cd $HOME/kodi-build
    • cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME="x11 wayland gbm" -DAPP_RENDER_SYSTEM=gles -B.
    • cmake --build . -- VERBOSE=1 -j$(getconf _NPROCESSORS_ONLN)
    • sudo usermod -a -G input,video
    • sudo make install
  1. After that you need logout and login with Kodi session.
  2. This is my setting:
    IMG_4528
  3. Result
    IMG_4529
    IMG_4530

I tried following your steps, but it still hasn't been completely resolved.

sudo apt install libtexturePacker-dev When executing this step, the dependency cannot be found;In the end, I didn't install this

cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME="x11 wayland gbm" -DAPP_RENDER_SYSTEM=gles -B When executing this step, an error message appears indicating that libdisplayinfo cannot be found then I searched and installed this

Finally, I followed all the steps and installed Kodi logout and login with Kodi-gbm ,In the player settings, I can see the hardware acceleration switch; The previous video can be played but there is no sound; and after playing for a few seconds, there was no picture again;Black screen again;I'm not sure if the reason is due to not installing libtexturePacker dev

Video files are processed using the NFS protocol I installed the system and executed Kodi compilation without doing any other operations;

I plan to try compiling again;

Here are my hardware and environment: orange pi 5 plus 32G ubuntu-24.04-preinstalled-desktop-arm64-orangepi-5-plus.img.xz Ubuntu 24.04 LTS Desktop with Linux 6.1

Sorry I forgot add this command:

  • sudo apt install libdisplay-info-dev

about sudo apt install libtexturePacker-dev this is my mistake :D, we no need to install it. It will build when we call build Kodi source.

@nguyenhunga5
Copy link

  • About sound, this is my setting
    IMG_4537
  • Login setting:
    IMG_4536

@dengqz
Copy link
Author

dengqz commented May 25, 2024

  • About sound, this is my setting
    IMG_4537
  • Login setting:
    IMG_4536

I compiled version 21 and now it can play normally, but I found that my Xbox 360 controller doesn't seem to recognize it
In GBM mode, I want to use Xbox360 to control it
屏幕截图 2024-05-26 002241
屏幕截图 2024-05-26 002540

@wmport
Copy link

wmport commented May 25, 2024

my steps:
GOOD !!!

@nguyenhunga5
Copy link

  • About sound, this is my setting

IMG_4537

  • Login setting:

IMG_4536

I compiled version 21 and now it can play normally, but I found that my Xbox 360 controller doesn't seem to recognize it

In GBM mode, I want to use Xbox360 to control it

屏幕截图 2024-05-26 002241

屏幕截图 2024-05-26 002540

Glad to hear that. I don't have Xbox 360 controller. So I cannot test this case. Maybe you need add user to group like add mouse and keyboard (I guess)

@Bluesmanuk
Copy link

It's great that there seems to be a mostly working Kodi.

I was wondering whether anybody has built a package that could be posted to make for an easy installation.

@dengqz
Copy link
Author

dengqz commented May 28, 2024

  • About sound, this is my setting

IMG_4537

  • Login setting:

IMG_4536

I compiled version 21 and now it can play normally, but I found that my Xbox 360 controller doesn't seem to recognize it
In GBM mode, I want to use Xbox360 to control it
屏幕截图 2024-05-26 002241
屏幕截图 2024-05-26 002540

Glad to hear that. I don't have Xbox 360 controller. So I cannot test this case. Maybe you need add user to group like add mouse and keyboard (I guess)

cd $HOME/kodi
sudo make -j$(getconf _NPROCESSORS_ONLN) -C tools/depends/target/binary-addons PREFIX=/usr/local ADDONS="peripheral.joystick"
need build add-ons
now I can use the Xbox 360 controller to control Kodi

@dengqz
Copy link
Author

dengqz commented May 28, 2024

It's great that there seems to be a mostly working Kodi.

I was wondering whether anybody has built a package that could be posted to make for an easy installation.

I am not very familiar with publishing private packages on Ubuntu, and it is possible that Ubuntu rockchip will release new packages in future updates @Joshua-Riek @nguyenhunga5

@Joshua-Riek
Copy link
Owner

Packaging is a little complex and I have the above patches already in the included Kodi version, so i have no idea why there is an issue in the first place. But building Kodi from GitHub sources is not the same as building Kodi as a package for Ubuntu. I simply don't have the time right now to debug Kodi or explain the Ubuntu packaging process, but I will eventually update the package.

@kkein
Copy link

kkein commented May 28, 2024

@Joshua-Riek Compile kodi like this way in 2404 LTS v2.1.0, kodi works just NOT as good as the default MPV tool of v2.1.0 release. For example : 8K HDR 240 FPS Dolby vision - Special OLED demo , MPV plays OK with low cpu ; but kodi has voice but no video.

Would you please check the diff with Kodi and MPV? Thanks a lot for your so good ubuntu-rockchip release!

@kkein
Copy link

kkein commented May 28, 2024

Just as a work around, this way works for me.
Use mpv as external players for kodi: https://kodi.wiki/view/External_players

Steps:

  1. Create config file: vi ~/.kodi/userdata/playercorefactory.xml
    ----------------------------------------------------------------2
<playercorefactory>
  <players>
    <player name="MPV" type="ExternalPlayer" audio="true" video="true">
      <filename>/usr/bin/mpv</filename>
      <args>--fs=yes "{1}"</args>
      <hidexbmc>false</hidexbmc>
    </player>
  </players>
  <rules action="prepend">
    <rule video="true" player="MPV"/>
    <rule audio="true" player="MPV"/>
  </rules>
</playercorefactory>

2 、run kodi with full-screen : kodi -fs
3、 select your movies , it will played by mpv default. ( full screen , ESC to quit )

@Bluesmanuk
Copy link

Thanks for the replies and I happily accept that packaging is likely quite complex and will take time.

So I followed the instructions to install manually, which seemed to go well apart from the very last part.

After logging off and back on, when I enter my password I am informed that my username is not listed and will not go any further.

@Uglymotha
Copy link

Hi,

Great stuff can you add: libcdio++-dev libiso9660++-dev to de dependencies, otherwise you may have some issues playing old fashioned cd's.

Also, while kodi is displaying HDR content fine it does not seem to detect HDR capable displays correctly. In system info -> video, Display Supported HDR Types is always none and the option to toggle HDR is not present in Player settings. I have tested with two HDR capable displays.

@Bluesmanuk
Copy link

Bluesmanuk commented Jun 15, 2024

I finally got Kodi running as well as it can under v2.2.1 24.04 (does not work with 22.04)

This is the specific procedure that I followed that pretty much matches what has already been written above but expanded it to encompass what I think is the whole process that I followed.

sudo apt update
sudo apt upgrade
sudo apt install git
cd $HOME
git clone https://github.com/xbmc/xbmc kodi
cd $HOME
wget https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/patches/kodi/0001-windowing-gbm-Dynamic-plane-selection.patch
wget https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/patches/kodi/0002-VideoLayerBridgeDRMPRIME-Use-crop-fields-to-render-t.patch
cd $HOME/kodi
git apply ~/0001-windowing-gbm-Dynamic-plane-selection.patch
git apply ~/0002-VideoLayerBridgeDRMPRIME-Use-crop-fields-to-render-t.patch
sudo apt install ccache
sudo apt install distcc

sudo apt install debhelper autoconf automake autopoint gettext autotools-dev cmake curl default-jre doxygen gawk gcc gdc gperf libasound2-dev libass-dev libavahi-client-dev libavahi-common-dev libbluetooth-dev libbluray-dev libbz2-dev libcdio-dev libp8-platform-dev libcrossguid-dev libcurl4-openssl-dev libcwiid-dev libdbus-1-dev libdrm-dev libegl1-mesa-dev libenca-dev libflac-dev libfmt-dev libfontconfig-dev libfreetype6-dev libfribidi-dev libfstrcmp-dev libgcrypt-dev libgif-dev libgles2-mesa-dev libgl1-mesa-dev libglu1-mesa-dev libgnutls28-dev libgpg-error-dev libgtest-dev libiso9660-dev libjpeg-dev liblcms2-dev libltdl-dev liblzo2-dev libmicrohttpd-dev libmysqlclient-dev libnfs-dev libogg-dev libpcre3-dev libplist-dev libpng-dev libpulse-dev libshairplay-dev libsmbclient-dev libspdlog-dev libsqlite3-dev libssl-dev libtag1-dev libtiff5-dev libtinyxml-dev libtinyxml2-dev libtool libudev-dev libunistring-dev libva-dev libvdpau-dev libvorbis-dev libxmu-dev libxrandr-dev libxslt1-dev libxt-dev lsb-release meson nasm ninja-build python3-dev python3-pil python3-pip rapidjson-dev swig unzip uuid-dev zip zlib1g-dev

sudo apt install libcec-dev libfmt-dev liblirc-dev
sudo apt install libflatbuffers-dev
sudo apt install libglew-dev libwayland-dev libxkbcommon-dev waylandpp-dev wayland-protocols
sudo apt install libgbm-dev libinput-dev libxkbcommon-dev
sudo apt install doxygen libcap-dev libsndio-dev libmariadbd-dev
sudo apt install libcap-dev
sudo apt install libcec-dev
sudo apt install libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev libpostproc-dev
sudo apt install libdav1d-dev
sudo apt install mpv ffmpeg
sudo apt install libdisplay-info-dev

mkdir $HOME/kodi-build
cd $HOME/kodi-build
cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=wayland -DAPP_RENDER_SYSTEM=gles -B.
cmake --build . -- VERBOSE=1 -j$(getconf _NPROCESSORS_ONLN)
sudo usermod -a -G input,video <your username, no < or > required>
sudo make install
sudo poweroff

Restart the machine
Logoff
Select your user profile, where you will see a little white button at the bottom right of the screen. Click on it.
Select kodi GBM and enter your password.
Kodi will load.
Change your settings as required (setting system settings level to 'expert') and additionally, under Player, turn on 'Allow hardware acceleration with DRM Prime and then select Prime Render Method to 'Direct To Plane'
Test video playback.

Note that the next time that you start the machine, it will boot directly into Kodi.

All videos should play with hardware acceleration (including AV1). I have not yet found anything that doesn't.

HDR 10 bit videos do play but whether there will be any triggering of the mode on a TV I do not know as I don't have an HDR TV.

8K videos do not play correctly, playing with a zoomed in look that cannot be corrected. However, as far as I am concerned, right now, 8K is a gimmick, so not much of a loss at this time.

If looking very closely, you may find that AV1 and some 4k will not be 100% smooth, although I find that it doesn't affect the viewing pleasure as it is not immediately obvious.

The Kodi version that will be installed is 22 dirty from what seems likely to be the latest nightly. Whether things may be better under a Kodi 21 stable or nightly build I do not know. If I am correct, using
git clone -b Omega https://github.com/xbmc/xbmc kodi
should do the trick.

All in all though this is as close as we can get to perfect Kodi playback on RK3588, so a definite step in the right direction.

Bluetooth audio is not automatically present as an option for me but I need to do more research to find out why.

@lukaszsobala
Copy link

lukaszsobala commented Jul 16, 2024

Kodi packaged with the current 24.04 release lacks the option to select DRM PRIME as the renderer, and without it, 4k HDR won't work for me. It exists in the Kodi that Armbian provided for 22.04, not sure about this (JR) Ubuntu 22.04.

To get 4k HDR working, I needed to run kodi using the the Mali blobs (malirun) - X11 version. I'm not sure what it needs now.

@Bluesmanuk
Copy link

Installing a new release to test, after applying all the most recent updates, which takes things 1020, I ran the same processes but when I get to:

cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=wayland -DAPP_RENDER_SYSTEM=gles -B.

I get errors:

-- Could NOT find Iso9660pp (missing: ISO9660PP_LIBRARY ISO9660PP_INCLUDE_DIR) (Required is at least version "2.1.0")
-- Could NOT find MDNS (missing: MDNS_LIBRARY MDNS_INCLUDE_DIR)
-- Could NOT find Pipewire (missing: PIPEWIRE_LIBRARY PIPEWIRE_INCLUDE_DIR SPA_INCLUDE_DIR) (Required is at least version "0.3.50")
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Exiv2 (missing: EXIV2_LIBRARY EXIV2_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindExiv2.cmake:120 (find_package_handle_standard_args)
cmake/scripts/common/Macros.cmake:378 (find_package)
cmake/scripts/common/Macros.cmake:390 (find_package_with_ver)
CMakeLists.txt:277 (core_require_dep)

I can't find anything that points me in a direction for a fix.

@lukaszsobala
Copy link

lukaszsobala commented Jul 19, 2024

@Bluesmanuk you just need to install the build dependencies (here, for example: libiso9660++-dev, libmdnsd-dev and a few others)

@AlexD81
Copy link

AlexD81 commented Sep 18, 2024

Could someone build new version of kodi pls? hopefully, latest stable, not alpha or beta. The one uploaded above doesn't works... When i login at login screen(kodi on gbm), kodi's interface if frosen (or non responsive)
Tried to build kodi myself using instructions above, but getting errors, this way is too complicated for regular users

@lukaszsobala
Copy link

@AlexD81 same problem here. I never found a way around this.

@Bluesmanuk
Copy link

Whenever there is a new build I run through the process, sometimes seeing new errors but with some research, managing to complete the compilation process.

However, Kodi performance is the same. Not bad by any means, just missing some common features already available on other hardware.

I always keep an eye on what Kodi, LibreELEC and Collabora (especially them) are doing with respect to all the kernel developments that are being sent upstream for mainline support.

I know that as soon as the right conditions are met then LibreELEC will quickly add support for the RK3588.

There is still some key work to be done and the latest H265 work by Collabora is WIP (work in progress).

This link will be particularly beneficial in following progress, where you can also see what has yet to be tackled.

https://gitlab.collabora.com/hardware-enablement/rockchip-3588/notes-for-rockchip-3588/-/blob/main/mainline-status.md?ref_type=heads

I believe that until more progress is made in certain areas, any active work to make Kodi fully functional cannot realistically happen.

Personally I don;t believe that we will see anything complete this year but that is just my speculation based upon the progress that we have seen.

Without Collabora, I think that this SOC would be dead in the water in terms of complete functionality and all the hard work and progress from great people like Joshua would likely never have gotten off the ground because there would not have been a solid enough base to begin with in order to make any progress at all.

So bottom line for me is that it is a waiting game to see if and when full functionality will come to the RK3588.

@AlexD81
Copy link

AlexD81 commented Sep 19, 2024

almost perfect solution would be using mpv as player for kodi, i even got dts/ac3 bitstream working for usb>spdif adapter, but in ubuntu 24, there are no working builds of kodi ,
kodi installed via apt is crashing on start, other builds have very sluggish ui, dont know why. The custom build uploaded above, starts ok, ui is ok, and also it works fine with mpv as player, but it's alpha, i would prefer last stable, and i would stick with it for a long time.
another problem is missing autoframerate, solved it by mapping commands to rc keys and using this tool for framerate switch https://github.com/jadahl/gnome-monitor-config.git

@Bluesmanuk
Copy link

Bluesmanuk commented Sep 19, 2024

I did experiment with using MPV as the player from within Kodi but I found no improvement in overall functionality.

@lukaszsobala
Copy link

@Bluesmanuk @AlexD81 no, mpv as a kodi player definitely works, and works very well, with hw acceleration.

The problem is that the resume time is not saved, which makes it a bit useless as a home media center thing. It is quite annoying, as I remember there was a time that Kodi itself worked with hardware acceleration... not sure what changed since then.

@Bluesmanuk
Copy link

@lukaszsobala

Sadly it doesn't perform any better for me but in terms of the resume issue I may have come across something that might help and I have confirmed works in MPV for Windows.

Add the line below to your mpv.conf. I had to create the file in the Windows version.

save-position-on-quit

I also tested uosc in the windows version to add some rudimentary GUI controls.

@wxzmz
Copy link

wxzmz commented Sep 21, 2024

almost perfect solution would be using mpv as player for kodi, i even got dts/ac3 bitstream working for usb>spdif adapter, but in ubuntu 24, there are no working builds of kodi , kodi installed via apt is crashing on start, other builds have very sluggish ui, dont know why. The custom build uploaded above, starts ok, ui is ok, and also it works fine with mpv as player, but it's alpha, i would prefer last stable, and i would stick with it for a long time. another problem is missing autoframerate, solved it by mapping commands to rc keys and using this tool for framerate switch https://github.com/jadahl/gnome-monitor-config.git

Kodi plug-in MPV has another problem, how to solve it perfectly with SMB

@AlexD81
Copy link

AlexD81 commented Sep 22, 2024

@nguyenhunga5 don't add shares via kodi's built-in smb. Use your ubuntu mapped share folder as source for kodi. Also, imo, you have to use remote control with mini-keyboard. like MX3 or better. Then you'll get full freedom with control mpv, for example, to quit mpv that running on top of kodi, press 'q' Everything works fine, i can share mpv conf file that allows perfectly smooth playback of 24p movies. I was waiting for libreelec, but now it's not really necessary, i like mpv over kodi approch more, much more possibilities. for example, mpv adds tonemapping that kodi is unable to do. Just need someone to compile latest stable build of kodi with patches , without them ui of kodi is sluggish for unknown reason

@wxzmz
Copy link

wxzmz commented Sep 22, 2024

@nguyenhunga5 don't add shares via kodi's built-in smb. Use your ubuntu mapped share folder as source for kodi. Also, imo, you have to use remote control with mini-keyboard. like MX3 or better. Then you'll get full freedom with control mpv, for example, to quit mpv that running on top of kodi, press 'q' Everything works fine, i can share mpv conf file that allows perfectly smooth playback of 24p movies. I was waiting for libreelec, but now it's not really necessary, i like mpv over kodi approch more, much more possibilities. for example, mpv adds tonemapping that kodi is unable to do. Just need someone to compile latest stable build of kodi with patches , without them ui of kodi is sluggish for unknown reason

Indeed, I have been using mpv recently, mpv as a kodi external player, or as a celluloid, the compatibility is much better than the current patched kodi native effect.

'Q' is not a problem. I set the home button of the infrared/bluetooth remote control as the exit button of mpv.

@AlexD81
Copy link

AlexD81 commented Sep 22, 2024

in my setup of mpv over kodi is still 1 problem left. Need advice how to toggle bitstream on/off via key press on rc.
the commands for bitstream are looking like this
audio-device='alsa/iec958:CARD=Audio,DEV=0'
audio-spdif=ac3,dts

probably it should be done via profiles in mpv conf ? but can't figure out how to do it and toggle profiles via key

@Bluesmanuk
Copy link

I decided to try using MPV as an external player and created the playercorefactory.xml as described above and confirmed with the Kodi wiki.

If I run kodi -fs I get an error

ERROR: Unable to create GUI. Exiting
'this->recurse > 0' failed at ../src/pipewire/thread-loop.c:63 do_unlock()

When I run Kodi from the GUI desktop icon it loads but when I attempt to play a file something flashes up at the top of the screen that is too short to read and then nothing happens.

@AlexD81
Copy link

AlexD81 commented Sep 23, 2024

@Bluesmanuk what ubuntu version do yo uuse? I remember I had problemns with 22, but with 24 with last updates everything is fine. Btw when I clean everything " sudo apt purge kodi* " and then install custom build above, then it automatically updates to latest stable (actually it downgrades) and suprisingly this last stable working fine with no issues.

@Bluesmanuk
Copy link

Bluesmanuk commented Sep 24, 2024

@AlexD81

I am using 24 and after scrubbing any existing Kodi references I was able to install the posted Kodi, which updated (I noted that the version that is updated appeared to be from March if I am reading the date format correctly).

Now it is working and I added uosc which added some very useful GUI controls for MPV.

Following the latest updates, which seemed to include a kernel, MPV performance is the same as Kodi, with the added benefit of playing H265 and HDR stuff and the added bonus if doing a great job with HDR to SDR tone mapping.

I don't need to use kodi -fs either as things just work from the off.

So far, so good although I sometimes find that when I exit Kodi, the GUI stays on screen before exiting for a minute or so but I can live with that.

There are still some things that don't seem to play with hardware acceleration but this is generally 8K related, which is only of interest in terms of what the SOC is capable of rather than having any current interest in the practical functionality.

@wxzmz
Copy link

wxzmz commented Sep 24, 2024

@AlexD81
I may have found the smb problem of mpv
Ubuntu 24.04 v2.3.2
We installed ffmpeg 7:6.1.1-3ubuntu5+git20240717.8164ff7d~noble version,

when compiling
debian/rules
ifeq (,$(filter hurd-i386,$(DEB_HOST_ARCH))) CONFIG_extra += --enable-libsmbclient endif
enable-libsmbclient in CONFIG_extra
extra is not installed in our system

Modify debian/rules,
Add --enable-libsmbclient to CONFIG :=
CONFIG := --prefix=/usr \ ***** --enable-rkrga \ --enable-libsmbclient \ --enable-version3

dpkg-buildpackage -uc -us -b

Remove all debs containing extra
For example, libavcodec-extra***.deb libavfilter-extra*.deb libavformat-extra*.deb

Then reinstall the remaining debs
apt install --reinstall ./*.deb

Kodi plug-in mpv can open smb

There are still some problems
The smb server needs to open guest permissions
If a password is added, it will prompt that I do not have permission

@AlexD81
Copy link

AlexD81 commented Sep 24, 2024

@Bluesmanuk if i remember right your nickname, you're one of first testers of mo's 123 android, that's actually my purpose, to use this board as tv box. I though i already got everything that i ever need from this board, at least in ubuntu, , but now my board doesnt boot without any reasons, seems m2 storage got corrupted.... actually it is happened 2nd time when it gets corrupted.... will try to work from microsd from now, and reinstall if from clean. Will updatethis post if i had issues. So sadly disappointing. m2 was also 'brand' cheenese, never buy such stuff from ali

@Bluesmanuk
Copy link

Bluesmanuk commented Sep 25, 2024

@AlexD81

Yes that was me and was the best solution in Android for using Kodi. I did later note that it was essentially a standard version that was able to take advantage of the hardware acceleration already present in Android, without being specifically optimised for the hardware.

It is a shame that we have yet to see any progress on Android for the PI5.

I was one of the first to buy the OPI5 with a view to multiple use under the TV from a media centre to some better gaming and tinkering to take things forward from the very slow progress of hardware development at the time from AMLogic and others. The sheer power of the RK3588 was a quantum leap for this kind of manufacturer but that 5.1 kernel and appalling support from Rockchip and Orange Pi was always a potential warning sign.

Luckily the open source communities took things as far as they could until Collabora came to aid real development.

In hindsight, I would have waiting a couple of months and gone for an Intel N100 mini PC with out of the box working.

I managed to grab a cheap 256Gb Samsung M.2 NVME at the time from CEX that has held up very well.

@AlexD81
Copy link

AlexD81 commented Sep 25, 2024

after clean ubuntu 24 install, i've installed custom build above, it auto updated, and started to crash on statup....

@lukaszsobala
Copy link

@AlexD81 how are you running Kodi? If as a standalone wayland session, it always crashes.

@AlexD81
Copy link

AlexD81 commented Sep 25, 2024

@lukaszsobala yes, wayland. I tried to freeze custom build version with synaptic before, it helps for couple of days, and then something happens, and custom build starts to crash as well. Don't know what to do.... last time, the custom build after auto-updating was working, but can't reproduce it anymore

@lukaszsobala
Copy link

@AlexD81 just start a desktop wayland session and run kodi from there

@AlexD81
Copy link

AlexD81 commented Sep 25, 2024

@lukaszsobala i already use wayland, not gbm

@lukaszsobala
Copy link

lukaszsobala commented Sep 25, 2024

@lukaszsobala i already use wayland, not gbm

There are 4 (well, 5) ways you can start Kodi.

  1. start as a standalone wayland session
  2. start as a standalone X11 session (this is the GBM one?) I could never really tell what this eclectic GBM is.
  3. start from within an X11 desktop session
  4. start from within a Wayland desktop session
  5. start from within a Wayland session using xwayland

I think you are starting it with method 1. I am referring to method 4. Only then I can even see the DRM PRIME render method option.

@Bluesmanuk
Copy link

Very interesting. I had been completely focussed on the GBM being the method required to be able to choose EGL or Direct To Plane that I had not really considered all of the other options.

So I tried one of the options that I had titled Kodi On Wayland and amazingly, I now have the options. The playercorefactory method to use MPV however wasn't working and is something that I will investigate further as a non important thing.

But now that I was able too see where we now are with native Kodi playback, I was able to run all my usual tests, which revealed all that I had seen before. EGL played the fewer formats and 10 bit HDR was a no no. Direct to plane was the one that played more formats and is perhaps acceptable for a day to day use within the restrictions that is does have. Note that if you need HDR to SDR tone mapping, it does not exist and you would never want to play HDR content on a non HDR monitor/TV.

Whilst there is no specific progress of note, it is good to know what is and what is not. It also bolsters my thoughts that until teams like LibreELEC dive in to RK3588, then fully functional Kodi use is out of the question, subject to somebody else jumping into the fray.

So watching the progress of Collabora development, specifically in the areas of H265, VP9 and HDMI audio will be the guide to when LibrELEC can produce something worthy of their time investment, which will also then filter through the Kodi team and onwards to official Linux support.

So right now, using MPV really is the one game in town that gives the best overall results and where HDR and tone mapping seems to work like a dream.

I feel that any other exploration of options is likely to produce more frustration rather than progress right now.

@AlexD81
Copy link

AlexD81 commented Sep 26, 2024

@lukaszsobala sorry, I'm not highly familiar with ubuntu. I just boot into desktop and open kodi icon, is this method 4 ? (and it's wayland as shown in system info)
and kodi is crahing each time on start

@Bluesmanuk
Copy link

After the initial boot into Ubuntu, log off and click your username icon on the centre of the screen.

At the bottom right of the screen you should see a small white button.

Click on it and it will bring up a number of options that may mirror the list mentioned earlier. The selection may also be smaller or larger dependent upon what you have neem tinkering with. Select one and login.

Try each one to see which one works best.

@AlexD81
Copy link

AlexD81 commented Sep 28, 2024

@Bluesmanuk kodi is crashing with all of them (

upd. after multiple invstall/reinstall different versions i finally got kodi working. Don't know how.
What i remember, last time ive installed it via apt-get, instead of apt(dont know if there's a dfference) . Got kodi version 20.4 .

however, ive noticed, ubuntu doesnt output chroma 444.
Also gray color has some blue tint, you may notice it on noble's desktop wallpaper, for example.
but i can live with it )

@Bluesmanuk
Copy link

@AlexD81

Good to see you got it working.

The last time I looked at chroma 444, it seemed to be a rarely used option, so tended to ignore it as it was also rare for me to come across it in general use.

I looked hard for the blue tint but could not see it on my TV.

Overall though, for general use, I'm happy enough for now and after the time we have to wait, with abysmal support from SOC and board manufacturers, it almost seems like a quantum leao from where we have been and seemed to have to expect.

All eyes on Collabora and LibreELEC for th next likely progress for Kodi.

@AlexD81
Copy link

AlexD81 commented Sep 30, 2024

@Bluesmanuk however most significant disadvantage of libeelec will be missing hdr tonemapping. I found some mentions that mpv can be external player in libreelec though. But what is interesting, is upcoming s905x5 chip, with its ai-sr (ai upscale) feature, also it seems also included in recent ugoos s928 firmwares, didnt see test yet, and how good it is, also there's some mentions about ai-mems. that's long expected in tv boxes feature, afr would be not necessary anymore

@Bluesmanuk
Copy link

@AlexD81

Indeed LibreELEC will likely not have tone mapping to the same degree. Personally I can still live without it.

But whilst the next iteration of SOC and board may well improve things, he very last thing that I will do is shell out more money to compensate.

Coming from AMLogic might mean it getting fuller functionality much sooner than Rockchip but going forward with ARM products I will waut until they are proven before spending my money.

Twice bitten and all that jazz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests