Release Full bluray and 4k uhd bluray menu support for Android
#1
Kodi Matrix 19 (aarch64) build that supports Bluray and 4K UHD Bluray menu playback
Final Kodi Matrix release with support for Dolby Vision matroska and Bluray/4K UHD Bluray support.

This requires the use of Java to display BDJ menus, so you will need to install the Java Runtime Enviroment for Android addon and leave it on. 

This requires changes in Kodi main build. 
https://github.com/fandangos/Kodi-HDR-Ed...id-support

This requires changes in libbluray, source here:
https://github.com/Fandangos/libbluray/
 

This version has the Dolby Vision supported added here:
https://github.com/fandangos/Kodi-HDR-Ed...pdated-dv2
and discussed in this thread here:
https://forum.kodi.tv/showthread.php?tid=360018

This also has my changes to fix chapter skipping and timebar seeking.
Source here:
https://github.com/xbmc/xbmc/pull/19102
discussed and tested here (windows):
https://forum.kodi.tv/showthread.php?tid=359995

Java runtime enviroment source code is here:
aarch32:
https://github.com/fandangos/openjdk-aarch32-jdk8u
aarch64:
https://github.com/fandangos/openjdk-multiarch-jdk8u
Q&A
Q: The shield has only a few buttons how do you control the menu and the kodi OSD?
A: If you press the main button on the remote and nothing happens, it means you are controlling the disk. 
If you want to skip, hold the play/pause button for a few seconds and the main information page will show up. 
Press the main button and you will be able to skip chapters, seek the timebar, open the popup menu. 

Q: How do I open the popup menu?
A: Press play/pause and hold, see the information OSD, press the main button, press the little house icon. 

Q: This way of controlling is terrible, I don't like it.
A: You can try changing the inputs assigned or you can try using a bluetooth remote control, or a usb one with a receiver. 

Q: Will this be merged into main Kodi?
A: I have absolute no idea. 

Q: my disk X doesn't work
A: yes, this isn't perfect.

Q: Does Dolby Vision works when playing full discs?
A: No dolby vision is only supported in matroska (mkv) and mp4 containers. If FFMpeg addes support for m2ts it might work.
Know problems
1. The menu, on 4k discs with HDR/Dolby Vision (when HDR is enabled in the display), is rendered in SDR and the colors will look dessaturated. 
I tried to solve this but I have no idea how to. 
If you want to see colors as they should, disable mediacodec surface and media codec hardware acceleration but on 4k discs the menu will run really slow.
We need hardware acceleration for the menus in 4k.

2. The playback keeps reseting and the screen flashes when using match frame rate settings.
Yes, the video is playing the background, when the video ends, it will start again and the display will flash. 
Is this or a sluggish slow menu.

3. I have heard the kodi has some problems with seamless branching and subtitles(?)
Download links:
64 bits (AARCH64) build:
https://github.com/fandangos/Kodi-HDR-Ed...arch64.apk
or
https://mega.nz/file/WdlQ0Z7Y#EKxhKO-Je3...g5VGhwlhjw

32 bits (ARM) build:
https://github.com/fandangos/Kodi-HDR-Ed...arch32.apk
or
https://mega.nz/file/Dc1gQZhA#NMwYiC8Pxf...F_LxBxQj-o

You will need this addon:

64 bits (AARCH64) addon:
https://github.com/fandangos/JRE-Kodi-An...ce.jre.zip

32 bits (ARM) addon:
https://github.com/fandangos/JRE-Kodi-An...ce.jre.zip


Thanks a lot to Petri Hintukainen (the creator of libbluray), he helped from the start to make this a reality, compiled the java image you are seeing here, helped solve most of the problems.
Thanks to Shaya Potter that helped during the development.
Thanks to the devs over at PojavLauncherTeam (https://github.com/PojavLauncherTeam).


Hope this works for you.
Reply
#2
A first try with a few UHDs worked very well, thank you very much!

I had to enable the app access to external storage in the developer settings of the shield to make your jre installation addon work. After doing this, everything works like a charm. The java menus on my shield pro are almost as fast as on my former Ryzen HTPC.
Reply
#3
The JRE addon doesn't work for me. The following error is shown in kodi.log:
Code:
2021-02-01 19:33:43.626 T:9773    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'FileNotFoundError'>
                                                   Error Contents: [Errno 2] No such file or directory: '/mnt/expand/d0a15c2d-0009-4bca-a4b9-cafbaae79a1f/user/0/org.xbmc.kodi19DV/cache/apk/assets/j2re-image.zip'
                                                   Traceback (most recent call last):
                                                     File "/storage/emulated/0/Android/data/org.xbmc.kodi19DV/files/.kodi/addons/script.service.jre/main.py", line 18, in <module>
                                                       zip = ZipFile(loc)
                                                     File "/mnt/expand/d0a15c2d-0009-4bca-a4b9-cafbaae79a1f/user/0/org.xbmc.kodi19DV/cache/apk/assets/python3.8/lib/python3.8/zipfile.py", line 1251, in __init__
                                                       self.fp = io.open(file, filemode)
                                                   FileNotFoundError: [Errno 2] No such file or directory: '/mnt/expand/d0a15c2d-0009-4bca-a4b9-cafbaae79a1f/user/0/org.xbmc.kodi19DV/cache/apk/assets/j2re-image.zip'
                                                   -->End of Python script error report<--

@udobroemme Do you mean the option "Force allow apps on external" in Developer options? Because that did not work for me.
Reply
#4
(2021-02-01, 20:39)MrMagic Wrote: The JRE addon doesn't work for me. The following error is shown in kodi.log:
Code:
2021-02-01 19:33:43.626 T:9773    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'FileNotFoundError'>
                                                   Error Contents: [Errno 2] No such file or directory: '/mnt/expand/d0a15c2d-0009-4bca-a4b9-cafbaae79a1f/user/0/org.xbmc.kodi19DV/cache/apk/assets/j2re-image.zip'
                                                   Traceback (most recent call last):
                                                     File "/storage/emulated/0/Android/data/org.xbmc.kodi19DV/files/.kodi/addons/script.service.jre/main.py", line 18, in <module>
                                                       zip = ZipFile(loc)
                                                     File "/mnt/expand/d0a15c2d-0009-4bca-a4b9-cafbaae79a1f/user/0/org.xbmc.kodi19DV/cache/apk/assets/python3.8/lib/python3.8/zipfile.py", line 1251, in __init__
                                                       self.fp = io.open(file, filemode)
                                                   FileNotFoundError: [Errno 2] No such file or directory: '/mnt/expand/d0a15c2d-0009-4bca-a4b9-cafbaae79a1f/user/0/org.xbmc.kodi19DV/cache/apk/assets/j2re-image.zip'
                                                   -->End of Python script error report<--

@udobroemme Do you mean the option "Force allow apps on external" in Developer options? Because that did not work for me.

Just fixed. 

I had no idea when Kodi is installing a addon from a zip file, and this addon has a zip file inside, that it would try to extract the file. 

Please, redownload the addon zip and try it. 
Before trying again, uninstall the addon, if it shows up on your addon folder, close kodi and open again and try to install. 

Also check the main.py matches the one in github to be sure you got the updated version. 
The j2re-image file must be inside resources/lib/
Reply
#5
Oops, sorry for the misleading comment. I thought,  the developer setting was responsible. I also checked out the addon repo and and copied the files manually when I tried to fix the issue and came to the wrong conclusion.
Reply
#6
(2021-02-01, 21:04)udobroemme Wrote: Oops, sorry for the misleading comment. I thought,  the developer setting was responsible. I also checked out the addon repo and and copied the files manually when I tried to fix the issue and came to the wrong conclusion.

No problem. 

Yes, the shield has a smb share of it's files that is very helpful.
Reply
#7
I'm really impressed by all the work you put into getting this done, especially as someone whose background isn't in CS.  Sadly, I don't have a 64 bit android device so can't use it right now Smile
Reply
#8
@fandangos Thanks, the updated JRE addon works as it should.

Still trying to get to grips with the button navigation though Smile

Thanks for all your hard work!
Reply
#9
me or a 32-bit system (sony bravia android) i have installed ire java support but i can't find any difference. can i use anything for my sony?
Reply
#10
This only works with 64 bits android system like the Nvidia Shield.
Reply
#11
(2021-02-12, 02:05)fandangos Wrote: This only works with 64 bits android system like the Nvidia Shield.

are there many (any?) other 64 bit android tv oriented systems besides the shield (and not even all shields, the tube is 32 bit).
Reply
#12
(2021-02-16, 15:27)spotter Wrote:
(2021-02-12, 02:05)fandangos Wrote: This only works with 64 bits android system like the Nvidia Shield.

are there many (any?) other 64 bit android tv oriented systems besides the shield (and not even all shields, the tube is 32 bit).

Not sure to be honest.
I guess the new amlogic boxes are 64bits.

The shield pro is what I used to work on this that's why there's only a 64bit version.
I don't have much time to work on a 32bits version right now.

Said that, all the code is available.
All that is needed is someone to compile the JRE as 32bits, download the modified libbluray and compile Kodi with those.

And replace the j2re-image.zip from the addon when installing.
Reply
#13
Ist this fix implemented in the Final Kodi Matrix 19? Thnx
Reply
#14
(2021-02-22, 11:08)dyamant Wrote: Ist this fix implemented in the Final Kodi Matrix 19? Thnx
Not in the official release of Kodi 19 Matrix, but @fandangos has created new builds based on Kodi 19 Final with Dolby Vision for MKVs + full blu-ray menu support here:

https://forum.kodi.tv/showthread.php?tid...pid3015403
Reply
#15
(2021-02-22, 16:02)MrMagic Wrote:
(2021-02-22, 11:08)dyamant Wrote: Ist this fix implemented in the Final Kodi Matrix 19? Thnx
Not in the official release of Kodi 19 Matrix, but @fandangos has created new builds based on Kodi 19 Final with Dolby Vision for MKVs + full blu-ray menu support here:

https://forum.kodi.tv/showthread.php?tid...pid3015403

Thnx a lot...
Reply



Logout Mark Read Team Forum Stats Members Help
Full bluray and 4k uhd bluray menu support for Android0
This forum uses Lukasz Tkacz MyBB addons.