Joshua-Riek / ubuntu-rockchip

Ubuntu for Rockchip RK35XX Devices
https://joshua-riek.github.io/ubuntu-rockchip-download/
GNU General Public License v3.0
2.26k stars 244 forks source link

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 4 months ago

dengqz commented 4 months ago

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 commented 4 months ago
截屏2024-05-19 23 12 06
dengqz commented 4 months ago
截屏2024-05-19 23 16 05
dengqz commented 4 months ago
截屏2024-05-19 23 17 28
dengqz commented 4 months ago
截屏2024-05-19 23 17 52
dengqz commented 4 months ago
截屏2024-05-19 23 18 24
dengqz commented 4 months ago

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

nguyenhunga5 commented 4 months ago

@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 commented 4 months ago

very good!can you please give more details?

nguyenhunga5 commented 4 months ago

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
  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
  2. After that you need logout and login with Kodi session.

  3. This is my setting: IMG_4528

  4. Result IMG_4529 IMG_4530

Joshua-Riek commented 4 months ago

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

nguyenhunga5 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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:

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 commented 4 months ago
dengqz commented 4 months ago
  • 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 commented 4 months ago

my steps: GOOD !!!

nguyenhunga5 commented 4 months ago
  • 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 commented 4 months ago

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 commented 4 months ago
  • 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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

@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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 3 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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

Bluesmanuk commented 2 months ago

Thanks.

Therein lay my initial issues, attempting to interpret the errors into practical commands to execute.

So, with your 2 very useful example, I got those, pipewire and Exiv2 installed.

But I still get the errors

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)

And other errors that are listed above these in white lettering

-- Could NOT find ClangFormat (missing: CLANG_FORMAT_EXECUTABLE) -- Building internal TexturePacker -- Shipping internal TexturePacker -- Internal TexturePacker will be executed during build -- Could NOT find libcec (missing: libcec_DIR) -- 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")

I did find that there was a newer Exiv2-0.28.2 but installing this seemed impossible, including the need to use something actually called ninja

It is beginning to look as if this really is rocket science.

lukaszsobala commented 2 months ago

@Bluesmanuk what distro are you using? It's really easy, just install whatever it tells you. If it's debian/Ubuntu, just write sudo apt install libexiv2-dev libpipewire*-dev libcec*-dev

You need anything it lists, ending with "dev".

MDNS is irrelevant, it's only needed for Android.

Bluesmanuk commented 2 months ago

I'm using the 24.04

Interpreting the errors to define the naming conventions for installation of the dependencies just doesn't see, to have consistent logic that I can fathom.

However, the examples that you provided enabled compilation to complete, so thank you for the guidance.

I'm now back at an older problem that is random and sometimes works and sometimes not after a build, that of logging in successfully.

After selecting kodi on gm, when entering my password I am informed that my username is not listed and will not go any further.

This is despite adding myself to the video group using the sudo usermod -a -G input,video command and verifying that I am a member of that group.

lukaszsobala commented 2 months ago

The logic is consistent. You read the output, find out what libraries are missing and install the dev versions of them. Just use the tab key and Google.

Regarding your problem, I don't really understand what it is as I never even knew what gbm was. I use X11 or wayland.

Bluesmanuk commented 2 months ago

We will have to agree to disagree on the interpretation as googling sent me in all kinds of directions when searching based on ay one element of the error.

The kodi on gbm is the option that is picked from the white dot on the lower right hand side of the screen that loads Kodi with the correct parameters for hardware acceleration, in particular the option to select direct to plane.

There is a screenshot of the login option provided above in a post by nguyenhunga5 on May 23.

I will keep persevering and much appreciate the useful help that you have provided.

wmport commented 2 months ago

sudo usermod -a -G input,video

sudo usermod -a -G video < user >

Tiemichael commented 2 months ago

Thank you @nguyenhunga5 for your Kodi-build recipe! It's extremely helpful and works well on my NanoPC-T6 running Ubuntu24.04.

The only problems I am facing are with sound which is extremely soft. My NanoPcCT6 is connected to a SONY-soundsystem, and in my previous installations on eg Raspberry I use Passthrough. 1) cannot see any Passthrough option 2) System -> Audio -> Audio output device shows me 'HDMI1 Stereo, HDMI Stereo (PIPEWIRE)' and nothing like 'SONY on HDMI1', 3) my previous installation uses 'Pulseaudio' - how can I test / change to Pulseaudio ?

Thanks for your help!

nguyenhunga5 commented 2 months ago

@Tiemichael this is my current setting. In my case "HDMIO Stereo, Analog Output (PULSFAUDIO)" is available after installation, no need to install any package. 291788CE-8004-40DC-B8FA-E4A62F23E2B3_1_102_a

wmport commented 2 months ago

Built the package for myself about a month ago, will install all dependencies kodi-22.0-ALPHA1_arm64.deb for 24.04

https://drive.google.com/file/d/1XwciSZUCF4MtT4-soalwuysga2pDakLN/view?usp=sharing

Tiemichael commented 2 months ago

@nguyenhunga5 : Thanks! Depending if I start 'kodi --audio-backend=pulseaudio' or 'kodi --audio-backend=pipewire', I see Pulseaudio or Pipewire in Kodi. In both cases I only have 2-channel output, although HDMI connects to a 5.1-channel AVR.

I still have not figured out how to install / setup multichannel audio output. But this seems more a Ubuntu (ALSA, WIREPLUMBER) than a Kodi issue

@Tiemichael this is my current setting. In my case "HDMIO Stereo, Analog Output (PULSFAUDIO)" is available after installation, no need to install any package. 291788CE-8004-40DC-B8FA-E4A62F23E2B3_1_102_a

lukaszsobala commented 2 months ago

Built the package for myself about a month ago, will install all dependencies kodi-22.0-ALPHA1_arm64.deb for 24.04

https://drive.google.com/file/d/1XwciSZUCF4MtT4-soalwuysga2pDakLN/view?usp=sharing

@wmport I have tried this version, as well as the ona packaged by @Joshua-Riek and both have no option for enabling DRM PRIME decoding (the only one visible is "Auto Detect"). How can I fix this?

wmport commented 2 months ago

Prime render only. Switch direct plane and EGL

lukaszsobala commented 2 months ago

@wmport i don't have these options visible anywhere... The Expert panel is activated and the only option I see is "Auto Detect". I can make HDR videos play by forcing mpv as an external player in kodi, but this is a clunky workaround.

wmport commented 2 months ago

https://github.com/Joshua-Riek/ubuntu-rockchip/issues/815#issuecomment-2123764529

photo 5 . ....

lukaszsobala commented 2 months ago

@wmport thank you! I have no such option as "Allow using DRM PRIME decoder" - is there an apt package I could be missing?

wmport commented 2 months ago

I suspect that you are not logged into a GBM session. Screenshot from 2024-07-30 17-06-19

lukaszsobala commented 2 months ago

Whenever I try to log in to "Kodi on GBM", the display just stops responding (even the mouse stops moving). The board does not hang because I can still access it via ssh perfectly.

nguyenhunga5 commented 2 months ago

Whenever I try to log in to "Kodi on GBM", the display just stops responding (even the mouse stops moving). The board does not hang because I can still access it via ssh perfectly.

sudo usermod -a -G video < user >

Do you try this?

lukaszsobala commented 2 months ago

Doesn't the rockchip-multimedia-config package set this up? I am pretty sure it was added and then I added it again anyway, will try though.

Bluesmanuk commented 2 months ago

I finally got things working, even though I don't quite know how.

Kodi updated to the latest version via the updater and I was able to see how things are.

Both EGL and Direct To Plane have advantages and disadvantages and there is no full function but at least I can see the current overall position in readiness for newer updates and versions that can be tracked.