Kodi Community Forum
Release Kodi Android build with support for Dolby Vision MKV - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Android (https://forum.kodi.tv/forumdisplay.php?fid=164)
+---- Thread: Release Kodi Android build with support for Dolby Vision MKV (/showthread.php?tid=360018)



RE: Kodi Android build with support for Dolby Vision MKV - Epedemic - 2021-05-29

(2021-05-29, 00:29)fandangos Wrote:
(2021-05-28, 21:07)hoppel118 Wrote:
(2021-05-28, 11:58)MrMagic Wrote: @hoppel118 Do you know if Maven's builds also contain the blu-ray menu with Java capabilities (after installing the Java addon) or only the DV capability?

My German is not so good and I couldn't find anything about it on the KodiNerds forum, so I thought I would ask you Smile

By the way… @catshome is also a German Kodinerds user. Wink

I don’t have any files with a menu, main movie only. So I do not require this feature. But if you tell us where to find the needed source code, we can ask Maven to include it.

Regards Hoppel

For BD and UHD BD to work you need the addon I provided.
No need to change anything on it.

And this lines of code here:
https://github.com/fandangos/Kodi-HDR-Edition/blob/80eb4a6942c4cc438916e6ab87cd99272eb3e259/xbmc/platform/android/PlatformAndroid.cpp

Just compare with the original one.
Add that, insta the addon and you have it.

Please, build a Kodi 19.1 using the DV code and the BD paths.
I honestly don't have the strength at the moment to do this.

No worries mate. Your other stuff is definitely more important. Best wishes!


RE: Kodi Android build with support for Dolby Vision MKV - MrMagic - 2021-05-29

(2021-05-29, 01:09)catshome Wrote: thank you for your reply. I will ask @Maven if he can integrate this into his builds.

Thanks, that would be really cool!


RE: Kodi Android build with support for Dolby Vision MKV - catshome - 2021-05-29

(2021-05-29, 10:39)MrMagic Wrote:
(2021-05-29, 01:09)catshome Wrote: thank you for your reply. I will ask @Maven if he can integrate this into his builds.

Thanks, that would be really cool!
@Maven asks for the use of this adaptation. maybe you still want to answer him?


RE: Kodi Android build with support for Dolby Vision MKV - MrMagic - 2021-05-29

(2021-05-29, 11:08)catshome Wrote: @Maven asks for the use of this adaptation. maybe you still want to answer him?

@Maven This will allow Kodi to play blu-ray rips with full menu's including Java (as long as you also install the JRE addon provided here: https://forum.kodi.tv/showthread.php?tid=360250)


RE: Kodi Android build with support for Dolby Vision MKV - MrMagic - 2021-06-01

@catshome Do you think Maven would be willing to update his build with the blu-ray Java menu capability?


RE: Kodi Android build with support for Dolby Vision MKV - catshome - 2021-06-01

(2021-06-01, 20:55)MrMagic Wrote: @catshome Do you think Maven would be willing to update his build with the blu-ray Java menu capability?

@Maven asked about the use here, you should answer there too. he will understand that in english too


RE: Kodi Android build with support for Dolby Vision MKV - MrMagic - 2021-06-04

(2021-05-29, 00:29)fandangos Wrote: Please, build a Kodi 19.1 using the DV code and the BD paths.
I honestly don't have the strength at the moment to do this.

@Maven has been so kind to build a Matrix 19.1 version with the BD paths included:

https://www.dropbox.com/sh/0n37s3j3iybww9q/AABN74pzb3CMJBiI76r4jZ48a?dl=0&lst=

However, after installing the JRE addon, blu-ray menus still don't work.

The addon seems to do it's thing according to the log:
Quote:2021-06-03 19:03:49.247 T:20155 INFO <general>: CPythonInvoker(2, /storage/emulated/0/Android/data/net.kodinerds.maven.kodi/files/.kodi/addons/script.service.jre/main.py): script successfully run

But I don't think it actually extracts the j2re-image.zip file and puts the files in the right place. Because with your build it first copies the zip file to the Kodi temp directory and I don't see that happening here.

Any clue on how to debug this?

Edit: Maven's changes are listed here: https://github.com/Maven85/kodi/commit/ea5f14e5f810618bfab680d0617d90fee3d8ea74


RE: Kodi Android build with support for Dolby Vision MKV - fandangos - 2021-06-04

(2021-06-04, 12:07)MrMagic Wrote:
(2021-05-29, 00:29)fandangos Wrote: Please, build a Kodi 19.1 using the DV code and the BD paths.
I honestly don't have the strength at the moment to do this.

@Maven has been so kind to build a Matrix 19.1 version with the BD paths included:

https://www.dropbox.com/sh/0n37s3j3iybww9q/AABN74pzb3CMJBiI76r4jZ48a?dl=0&lst=

However, after installing the JRE addon, blu-ray menus still don't work.

The addon seems to do it's thing according to the log:
Quote:2021-06-03 19:03:49.247 T:20155 INFO <general>: CPythonInvoker(2, /storage/emulated/0/Android/data/net.kodinerds.maven.kodi/files/.kodi/addons/script.service.jre/main.py): script successfully run

But I don't think it actually extracts the j2re-image.zip file and puts the files in the right place. Because with your build it first copies the zip file to the Kodi temp directory and I don't see that happening here.

Any clue on how to debug this?


I don't remember the specifics or every single line I've added (that's what github is for) but the source linked in the bluray thread points to this line too:

https://github.com/fandangos/Kodi-HDR-Edition/commit/c2320a06c727eac77a0d8f7ecc498537d1c5bf0a
Quote:// this check has to go to enable bluray menus to run properly
// if (!CServiceBroker::GetDecoderFilterManager()->isValid(m_codecname))
// continue;

on DVDVideoCodecAndroidMediaCodec.cpp

I don't know if what is breaking the operation on his build is this but it's worth a try.

The addon uses relative paths so it should copy the files to the right place no matter what kodi install you use,
see the source in python here:
 
Quote:src = os.path.join(xbmcaddon.Addon().getAddonInfo('path'), 'resources/lib/j2re-image.zip')
loc = xbmcvfs.translatePath("special://xbmcbin/j2re-image.zip")
loc2 = xbmcvfs.translatePath("special://xbmcbin/j2re-image/")
loc3 = xbmcvfs.translatePath("special://xbmcbin/")

See? no hard paths, only relative.

It might be worth a shot commenting the lines I pasted.


RE: Kodi Android build with support for Dolby Vision MKV - MrMagic - 2021-06-04

(2021-06-04, 16:15)fandangos Wrote: It might be worth a shot commenting the lines I pasted.

Thanks for your answer, but I think Maven already included those changes as can be seen from his Github link:

https://github.com/Maven85/kodi/commit/ea5f14e5f810618bfab680d0617d90fee3d8ea74

I did find an error in kodi.log (no debugging enabled though):
Quote:2021-06-04 17:27:02.239 T:17365    INFO <general>: VideoPlayer::OpenFile: bluray://%2fstorage%2fSYNNAS%2fmedia%2fMovies%203%2fMarvel%20Cinematic%20Universe%2fThe%20Incredible%20Hulk%20(2008)%2f/menu
2021-06-04 17:27:02.241 T:17448    INFO <general>: Creating InputStream
2021-06-04 17:27:02.281 T:17448   ERROR <general>: CDVDInputStreamBluray::Open - Can't play disc in HDMV navigation mode - First Play title not supported
2021-06-04 17:27:02.670 T:17448    INFO <general>: VideoPlayer: playing a file with menu's

Looks like it tries, but when it fails it just starts to play the main movie.


RE: Kodi Android build with support for Dolby Vision MKV - fandangos - 2021-06-04

To be honest, I have no idea what's going on.

Thinking that he did everything right I can only think of user error.

Have you enabled bluray menu in kodi settings?

Are you using the 32bits addon with 32 bits install.
Or 64 with 64?

Besides that I'm clueless.


RE: Kodi Android build with support for Dolby Vision MKV - catshome - 2021-06-04

(2021-06-04, 17:43)MrMagic Wrote: Thanks for your answer, but I think Maven already included those changes

no, I don't think so, because the current build of @Maven is from 05/30/21, and he only integrated the adaptation later, and therefore it will only be available in the upcoming build of maven. you have to be patient until the next build of maven.


RE: Kodi Android build with support for Dolby Vision MKV - MrMagic - 2021-06-05

@fandangos I'm using the same addon zip file that I used for your build, so the 64-bit one.

I did check the menu setting under Player settings and indeed it was set to simplified. When I tried to change that to blu-ray menu I got an error stating that Java could not be found / loaded. Your build does not give that error.

@catshome Maybe you are right, but I asked Maven on the KodiNerds forum if I was using the correct build and he said yes. Because even though the filename has 20210530 in it, the creation date according to Dropbox was June 3.

But maybe something went wrong in the build process and the required changes did not actually get applied. Let's see what Maven replies to your question on the other forum.


RE: Kodi Android build with support for Dolby Vision MKV - fandangos - 2021-06-05

(2021-06-05, 01:44)MrMagic Wrote: @fandangos I'm using the same addon zip file that I used for your build, so the 64-bit one.

I did check the menu setting under Player settings and indeed it was set to simplified. When I tried to change that to blu-ray menu I got an error stating that Java could not be found / loaded. Your build does not give that error.

Yes, this is the indication that java path is not found. 

I honestly don't know.


RE: Kodi Android build with support for Dolby Vision MKV - MrMagic - 2021-06-05

Been doing some further debugging on this:

1. I added "special://xbmcbin" to Kodi's file manager, so I could see if the Java addon was doing it's job. Looks the same on both the @fandangos and @Maven builds. j2re-image directory is present and seems to have the correct content.

2. I created a copy of the Kodi "Hello World"  addon that prints the values of those four environment variables that are added. Both builds show the same values for all four variables. Although I don't understand why LIBBLURAY_CACHE_ROOT shows the same value as the other three variables. If I look at the source code I expect a different value for the last one.

The modded "Hello World" addon can be found here: https://www111.zippyshare.com/v/qgaQnF1Y/file.html

Maybe someone else can try the @Maven build with a blu-ray menu and check the result? Build can be found here: https://www.dropbox.com/sh/0n37s3j3iybww9q/AABN74pzb3CMJBiI76r4jZ48a?dl=0&lst=


RE: Kodi Android build with support for Dolby Vision MKV - masta91 - 2021-06-06

(2021-05-18, 00:51)Ahmadss Wrote: dolby vision - constantly caching/buffering kodi v19

I can stream 60gb with ease no buffering.
But any dobly vision format (DOVI). Iam facing
constant caching/buffering. Most of videos less than 20gb.

Any thoughts?
I have the same buffering issues with smaller DV files streaming via Google Addons on Shield 2019 Pro, even the ones which are 5GB. Surprisingly 100GB+ LOTR streams fine with minor stuttering.

First time uploading debug log so hope this is fine ?

https://paste.kodi.tv/okecimezic.kodi