-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Comments
My monitor has a 1080p resolution of 60hz |
@dengqz I using the patch in this tutorial and now Kodi fully working with 4k, h265. https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/Rendering |
very good!can you please give more details? |
Yes, there is my steps:
|
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. |
I tried following your steps, but it still hasn't been completely resolved.
Finally, I followed all the steps and installed Kodi Video files are processed using the NFS protocol I plan to try compiling again; Here are my hardware and environment: |
Thank you very much for your reply. |
Sorry I forgot add this command:
about |
|
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) |
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 |
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 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! |
Just as a work around, this way works for me. Steps:
2 、run kodi with full-screen : kodi -fs |
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. |
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. |
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 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 mkdir $HOME/kodi-build Restart the machine 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 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. |
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 ( |
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") I can't find anything that points me in a direction for a fix. |
@Bluesmanuk you just need to install the build dependencies (here, for example: libiso9660++-dev, libmdnsd-dev and a few others) |
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) |
@AlexD81 same problem here. I never found a way around this. |
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. 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. |
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 , |
I did experiment with using MPV as the player from within Kodi but I found no improvement in overall functionality. |
@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. |
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. |
Kodi plug-in MPV has another problem, how to solve it perfectly with SMB |
@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. |
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. probably it should be done via profiles in mpv conf ? but can't figure out how to do it and toggle profiles via key |
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 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. |
@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. |
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. |
@AlexD81 when compiling Modify debian/rules,
Remove all debs containing extra Then reinstall the remaining debs Kodi plug-in mpv can open smb There are still some problems |
@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 |
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. |
after clean ubuntu 24 install, i've installed custom build above, it auto updated, and started to crash on statup.... |
@AlexD81 how are you running Kodi? If as a standalone wayland session, it always crashes. |
@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 |
@AlexD81 just start a desktop wayland session and run kodi from there |
@lukaszsobala i already use wayland, not gbm |
There are 4 (well, 5) ways you can start Kodi.
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. |
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. |
@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) |
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. |
@Bluesmanuk kodi is crashing with all of them ( upd. after multiple invstall/reinstall different versions i finally got kodi working. Don't know how. however, ive noticed, ubuntu doesnt output chroma 444. |
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. |
@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 |
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. |
orange pi 5 plus use kodi ,When playing 4k, the screen goes black, but the sound and subtitles are displayed normally
ubuntu24
The text was updated successfully, but these errors were encountered: