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 · 26 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.

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

7 participants