• 1(current)
  • 2
  • 3
  • 4
  • 5
  • 63
  •   
Release Kodi Android build with support for Dolby Vision MKV
#1
With so much discussion on the other thread it's a good idea to organize all the information into a single thread and update this main post as needed.
 
Dolby Vision on Android Status
1. Nvidia is working in fixing Dolby Vision bugs with the Plex team.
Souce here: https://www.nvidia.com/en-us/geforce/for...y/2980521/

2. Kodi uses FFMpeg and Dolby Vision inside matroska files uses an extended block that needs to be seen by FFmpeg and passed to Kodi to send to the decoder. 
Dolby Vision MKV is not yet implemented in FFMpeg. While FFMpeg doesn't add support, there's nothing Kodi can do. 

3. Plex uses FFMpeg serverside so @quietvoid made a diff so we cherry picked the changes and added to the custom builds you see in this thread.

4. Support for the Nvidia Shield was accomplished but other Android devices were not working.
@quietvoid added support for FireStick and maybe some other Android TVs.

5. Playback isn't flawless so a safe measure that prevents Kodi from crashing and hanging was added. 
This has a set back that you might need to try to start the movie a few times before it actually works.
 
If you are facing wrong colors, stuttering...
This is beta running on a yet-to-be-patched firmware from Nvidia. So if you are experiencing any playback problems you can:
Restart the Nvidia Shield or any other player. 
Or disable and enable again Dolby Vision.
Download links
Matrix 19 FINAL
Included previews code and @quietvoid fix

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

Source code for this build:
https://github.com/fandangos/Kodi-HDR-Ed...pdated-dv2

Leia 18.9
Right now I have my main PC for Matrix aarch64 64 bits builds and my notebook for Matrix arm 32 bits.
So, for now, I won't be doing a Leia build.
Reply
#2
(2021-01-22, 21:12)fandangos Wrote: With so much discussion on the other thread it's a good idea to organize all the information into a single thread and update this main post as needed.
 
Dolby Vision on Android Status
1. Nvidia is working in fixing Dolby Vision bugs with the Plex team.
Souce here: https://www.nvidia.com/en-us/geforce/for...y/2980521/

2. Kodi uses FFMpeg and Dolby Vision inside matroska files uses an extended block that needs to be seen by FFmpeg and passed to Kodi to send to the decoder. 
Dolby Vision MKV is not yet implemented in FFMpeg. While FFMpeg doesn't add support, there's nothing Kodi can do. 

3. Plex uses FFMpeg serverside so @quietvoid made a diff so we cherry picked the changes and added to the custom builds you see in this thread.

4. Support for the Nvidia Shield was accomplished but other Android devices were not working.
@quietvoid added support for FireStick and maybe some other Android TVs.

5. Playback isn't flawless so a safe measure that prevents Kodi from crashing and hanging was added. 
This has a set back that you might need to try to start the movie a few times before it actually works.
 
If you are facing wrong colors, stuttering...
This is beta running on a yet-to-be-patched firmware from Nvidia. So if you are experiencing any playback problems you can:
Restart the Nvidia Shield or any other player. 
Or disable and enable again Dolby Vision.
Download links
Matrix 19 RC1 updated up to 22/01/2020 (DD/MM/YYYY)
Included previews code and @quietvoid fix

64 bits (AARCH64) build:
https://mega.nz/file/GZc1UKzZ#Ih1Fox0__-...ht3X8KHXw0

32 bits (ARM) build:
....comming soon.

Source code for this build:
https://github.com/fandangos/Kodi-HDR-Ed...pdated-dv2

Leia 18.9
Soon...

Outstanding!!!!!! @fandangos I'm awaiting a Leia 18.9 64bit build. Thank you, @sk83 , and anyone else who has contributed to making Kodi DV playback a reality.
Display: LG OLED77C9 | A/V Receiver: Denon AVR-X4500H | 2019 Nvidia Shield Tv Pro | Apple TV 4K | 2017 Roku Ultra | HTPC | Game PC | PS5 
Reply
#3
I've made a pull request for another fix: https://github.com/fandangos/Kodi-HDR-Edition/pull/16
Working on builds on my side to see if it all still works, then probably going to do Leia if I figure out how.
Reply
#4
(2021-01-22, 21:41)quietvoid Wrote: I've made a pull request for another fix: https://github.com/fandangos/Kodi-HDR-Edition/pull/16
Working on builds on my side to see if it all still works, then probably going to do Leia if I figure out how.

Updated the 64 bits build with this commit.


32 bits build added.
Reply
#5
And to folks from KodiNerds, while I haven't experienced stuttering with DV content here, probably because I haven't watched an entire movie yet. 
This is probably caused by the longer WaitForFrame(250) that is needed for google drive content. 

The timeout might also be the reason for that. Longer timeout, stuttering. 

I'll look into this during the weekend and maybe find a better value that doesn't cause stuttering and works with gdrive.
Reply
#6
I can't build Leia, at least with NDK r21d, it errors.
Probably going to need someone else to do it.

I've tested the 32 bit build and it works fine for me.
Reply
#7
(2021-01-22, 23:32)quietvoid Wrote: I can't build Leia, at least with NDK r21d, it errors.
Probably going to need someone else to do it.

I've tested the 32 bit build and it works fine for me.

When reading the readme to compile, you need to switch to Leia branch.
The ndk is much older.
Reply
#8
Fantastic!!! Wink

(2021-01-22, 22:56)fandangos Wrote: And to folks from KodiNerds, while I haven't experienced stuttering with DV content here, probably because I haven't watched an entire movie yet. 
This is probably caused by the longer WaitForFrame(250) that is needed for google drive content. 

The timeout might also be the reason for that. Longer timeout, stuttering. 

I'll look into this during the weekend and maybe find a better value that doesn't cause stuttering and works with gdrive.

Perfect! Maybe this relates to Koloss’ issue:

(2021-01-21, 23:45)Koloss Wrote: @fandango : Your latest builds have micro stutter on 1080p 23,967 content. In Kodi 18.9 the same content is smooth.

I am going to check, if I also have that issue.

Do you maybe own the dv movie „Gemini Man“?

It is P7MEL with 59.9x fps. That‘s the only dv movie I am aware of with this frame rate. So it’s not that critical at the moment.

This gives me and another Kodinerds user a lot of micro stutters in dv with your builds. It’s definitely not the case while in HDR Mode with a regular Kodi build. I tried to play it via smb and nfs. It’s the same result.

If you need log files, please let me know.

All other dv files (P7FEL and P7MEL with 23.9x fps) work as expected.

(2021-01-22, 21:41)quietvoid Wrote: I've made a pull request for another fix: https://github.com/fandangos/Kodi-HDR-Edition/pull/16
Working on builds on my side to see if it all still works, then probably going to do Leia if I figure out how.

Will this also fix the shield’s black screen?


Regards Hoppel
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#9
(2021-01-23, 00:15)hoppel118 Wrote: Will this also fix the shield’s black screen?

No, this will be fixed by nvidia.
Reply
#10
(2021-01-22, 21:12)fandangos Wrote:  
Dolby Vision on Android Status
1. Nvidia is working in fixing Dolby Vision bugs with the Plex team.
Souce here: https://www.nvidia.com/en-us/geforce/for...y/2980521/
For what its worth, I have been supplying logs to nvidia on the dv issue concerning plex and indeed they are looking into it. I have noted frequent failure with 6 DV 4K UHD atmos files to the order of 11.5 failures out of 24 tries with plex and 1 failure with emby out of 24 and 3 failures with your Kodi DV patched files. All I can say is “your blade...it will cut.” Good job!
Reply
#11
Thank you for this thread, it did get confused. For now I'm using Kodi v19 RC because it made the default skin so much faster. But I am missing out on a skin I liked because it's not present in Kodi V19, I imagine because it was not built in Python 3 or something.

So I have Kodi v19 RC for the fasteness (and missing Plex for the same reason I stated above...) plus this specific fork for Dolby Vision playback. So far only works on MKV DV, but that was the point, I suppose.
Reply
#12
(2021-01-22, 22:56)fandangos Wrote: And to folks from KodiNerds, while I haven't experienced stuttering with DV content here, probably because I haven't watched an entire movie yet. 
This is probably caused by the longer WaitForFrame(250) that is needed for google drive content. 

The timeout might also be the reason for that. Longer timeout, stuttering. 

I'll look into this during the weekend and maybe find a better value that doesn't cause stuttering and works with gdrive.
I tried various 1080p 23.976 fps movies (MKV format) with your latest build and I cannot see the microstutter people are talking about.

@hoppel118 How does this microstutter manifest itself exactly?

Maybe it has something to do with the fact that I am using a cache buffer in advancedsettings.xml?

I am still using the whitelist (with just the 3840x2160p resolutions selected for all refresh rates). But I did not enable the Allow 3:2 Pulldown or Allow Double Refresh Rate options.
Reply
#13
(2021-01-23, 14:24)MrMagic Wrote: I tried various 1080p 23.976 fps movies (MKV format) with your latest build and I cannot see the microstutter people are talking about.

@hoppel118 How does this microstutter manifest itself exactly?

It‘s only one person, who reported micro stutters with 1080p 23.976 content. For me it wasn’t possible to reproduce that issue. 1080p content (without dv) works as expected for me. He wants to check it again with the latest custom build.

But there is a micro stutter problem with the movie „Gemini Man“. It’s the only 4K movie with 59.9x fps available. I already described that here in the thread.

Do you own that movie? Maybe you can check it. This issue is also seen by another German user with this movie. The issue only exists with the custom builds in DV mode. It works fine in HDR mode with my productive Kodi 18.9 from Play Store.

(2021-01-23, 14:24)MrMagic Wrote: Maybe it has something to do with the fact that I am using a cache buffer in advancedsettings.xml?

I also have that cache enabled. I will give him the tip to try, if it works with a cache activated through the advancedsettings.xml. Maybe this is the solution for him.

(2021-01-23, 14:24)MrMagic Wrote: I am still using the whitelist (with just the 3840x2160p resolutions selected for all refresh rates). But I did not enable the Allow 3:2 Pulldown or Allow Double Refresh Rate options.

I tried all Kodi settings in different combinations. At the moment I use the following settings:

Player - Videos:
• Adjust display refresh rate: On start / stop
• Sync playback to display: disabled
• Enable HQ scalers for scaling above: 20%
• Allow hardware acceleration - MediaCodec (Surface): enabled
• Allow hardware acceleration - MediaCodec: enabled
• Use display HDR capabilities: enabled

System - Display:
• Resolution: 3840x2160p
• Refresh rate 50.00 (no difference with 59.9x)
• Delay after change of refresh rate: 1.0 seconds (no difference with higher delays)
• Whitelist: not configured (no difference with whitelist configured)
• Allow 3:2 pulldown refresh rate: disabled
• Allow double refresh rate: disabled
• Number of buffers used by graphics driver: 3 (no difference with a buffer of 2)

System - Audio:
• Number of channels: 5.1
• Allow passthrough: enabled (no difference if it’s disabled)

Regards Hoppel
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#14
I am also getting micro stutter for 1080p 23.976 content. It’s noticeable on panning shots. I’m using the Matrix build before RC1, haven’t tried the latest but I think the code is the same. I haven’t tried to increase cache yet, but I will. The content plays fine in 18.9 with default cache settings. Interestingly, 4K content appears fine, it’s just 1080p 23.976.
Reply
#15
(2021-01-23, 15:06)hoppel118 Wrote: But there is a micro stutter problem with the movie „Gemini Man“. It’s the only 4K movie with 59.9x fps available. I already described that here in the thread.

Do you own that movie? Maybe you can check it. This issue is also seen by another German user with this movie. The issue only exists with the custom builds in DV mode. It works fine in HDR mode with my productive Kodi 18.9 from Play Store.
I have it and I tried to play it today. I don't see any micro stutters.

I checked that my TV (Philips 48OLED935) was showing a DV signal at 60 Hz. Kodi showed the movie as 59.94 Hz.

I also tried three different motion settings on my TV (Off, True Cinema and Movie) and none of them showed micro stutter. However because the movie is 60 Hz, those options probably don't do anything anyway.
Reply
  • 1(current)
  • 2
  • 3
  • 4
  • 5
  • 63
  •   



Logout Mark Read Team Forum Stats Members Help
Kodi Android build with support for Dolby Vision MKV0
This forum uses Lukasz Tkacz MyBB addons.