ubuntu-rockchip icon indicating copy to clipboard operation
ubuntu-rockchip copied to clipboard

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

Open dengqz opened this issue 1 year ago • 95 comments

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 avatar May 19 '24 15:05 dengqz

截屏2024-05-19 23 12 06

dengqz avatar May 19 '24 15:05 dengqz

截屏2024-05-19 23 16 05

dengqz avatar May 19 '24 15:05 dengqz

截屏2024-05-19 23 17 28

dengqz avatar May 19 '24 15:05 dengqz

截屏2024-05-19 23 17 52

dengqz avatar May 19 '24 15:05 dengqz

截屏2024-05-19 23 18 24

dengqz avatar May 19 '24 15:05 dengqz

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

dengqz avatar May 19 '24 15:05 dengqz

@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

nguyenhunga5 avatar May 21 '24 02:05 nguyenhunga5

very good!can you please give more details?

kkein avatar May 21 '24 15:05 kkein

very good!can you please give more details?

Yes, there is my steps:

  1. Get the source code
  • Make sure git is installed: sudo apt install git

  • Change to your home directory: cd $HOME

  • Clone Kodi's current master branch: git clone https://github.com/xbmc/xbmc kodi

  • Download patchs:

    • Goto home dir: 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
    • Apply patchs
      • cd $HOME/kodi
      • git apply ~/0001-windowing-gbm-Dynamic-plane-selection.patch
      • git apply ~/0002-VideoLayerBridgeDRMPRIME-Use-crop-fields-to-render-t.patch
  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

nguyenhunga5 avatar May 22 '24 02:05 nguyenhunga5

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

Joshua-Riek avatar May 22 '24 20:05 Joshua-Riek

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

nguyenhunga5 avatar May 22 '24 23:05 nguyenhunga5

very good!can you please give more details?

Yes, there is my steps:

  1. Get the source code
  • Make sure git is installed: sudo apt install git

  • Change to your home directory: cd $HOME

  • Clone Kodi's current master branch: git clone https://github.com/xbmc/xbmc kodi

  • Download patchs:

    • Goto home dir: 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

    • Apply patchs

      • cd $HOME/kodi
      • git apply ~/0001-windowing-gbm-Dynamic-plane-selection.patch
      • git apply ~/0002-VideoLayerBridgeDRMPRIME-Use-crop-fields-to-render-t.patch
  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 avatar May 23 '24 01:05 dengqz

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

dengqz avatar May 23 '24 01:05 dengqz

very good!can you please give more details?

Yes, there is my steps:

  1. Get the source code
  • Make sure git is installed: sudo apt install git

  • Change to your home directory: cd $HOME

  • Clone Kodi's current master branch: git clone https://github.com/xbmc/xbmc kodi

  • Download patchs:

    • Goto home dir: 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

    • Apply patchs

      • cd $HOME/kodi
      • git apply ~/0001-windowing-gbm-Dynamic-plane-selection.patch
      • git apply ~/0002-VideoLayerBridgeDRMPRIME-Use-crop-fields-to-render-t.patch
  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 avatar May 23 '24 01:05 nguyenhunga5

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

nguyenhunga5 avatar May 23 '24 02:05 nguyenhunga5

  • 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

dengqz avatar May 25 '24 16:05 dengqz

my steps: GOOD !!!

wmport avatar May 25 '24 23:05 wmport

  • 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)

nguyenhunga5 avatar May 25 '24 23:05 nguyenhunga5

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.

Bluesmanuk avatar May 26 '24 21:05 Bluesmanuk

  • 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 avatar May 28 '24 01:05 dengqz

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

dengqz avatar May 28 '24 01:05 dengqz

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.

Joshua-Riek avatar May 28 '24 01:05 Joshua-Riek

@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 avatar May 28 '24 14:05 kkein

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 )

kkein avatar May 28 '24 14:05 kkein

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.

Bluesmanuk avatar Jun 01 '24 04:06 Bluesmanuk

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.

Uglymotha avatar Jun 01 '24 07:06 Uglymotha

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.

Bluesmanuk avatar Jun 15 '24 04:06 Bluesmanuk

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.

lukaszsobala avatar Jul 16 '24 22:07 lukaszsobala

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.

Bluesmanuk avatar Jul 19 '24 04:07 Bluesmanuk

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

lukaszsobala avatar Jul 19 '24 05:07 lukaszsobala