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 - dysprosium - 2021-07-06

I have something interesting to report.

I'm using the 32-bit apk on the Ugoos AM6 Plus (Amlogic S922X-J), and playing UHD mkv remuxes.

Previously, my experience was that files would most likely take multiple tries (around 3 on average) to begin playback (any file, not just DV), but once started, DV MEL files played completely correctly (along with HDR10 and SDR files). However, DV FEL files would have a high chance (at least 90% of the time) to have at least one resync/freeze and/or stuttering. As mentioned in this thread, this is curious because the playback is handled by the same OMX.amlogic.dolby-vision.decoder.awesome decoder that is used by Exoplayer-based players (e.g. Just Player, Vimu) in which DV FEL files play without stuttering/freezing/resyncs (as long as only AC3 audio passthrough was chosen - but this is a separate issue regarding lossless audio passthrough with this box's Android firmware that affects all files, not just DV, which Kodi's IEC packer fixes).

However, today I turned on Settings>System Settings>Logging>Enable Debug Logging while debugging an unrelated issue, and stumbled upon the fact that while Debug Logging is on, for DV FEL files:
  • The chance that a file would start playing on the first try was close to 100%
  • The file played perfectly. No stuttering/freezing/resyncs whatsoever, even when skipping chapters. When seeking, there is a <2s lag time where the video speeds up to catch up to the audio, but afterwards would resume playing perfectly. This is even better than on Exoplayer-based players (with AC3 audio) where seeking/skipping chapters would usually result in a freeze requiring a force quit.
Apart from the obvious logging info in the top left corner, DV FEL files were playing perfectly with lossless audio. I confirmed that this was not coincidence by testing the playback with Debug Logging on and off multiple times, and confirmed it with multiple files (Back to The Future and Saving Private Ryan). On=perfect, Off=high chance of stuttering/freezing/resyncs.

How could having Debug Logging on affect playback? If we could find the root cause, then perhaps we could finally resolve the imperfect playback of DV FEL files in this Kodi build compared to Exoplayer.


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

(2021-07-06, 11:45)fandangos Wrote:
(2021-07-06, 03:30)Wagg Wrote:
(2021-07-05, 12:02)fandangos Wrote: One day, after testing a ton of different players you will come to the conclusion of what was said months ago.

The problem is the Nvidia Shield firmware not the video players.

Maybe, then why does ExoPlayer based players and players like Nova have stutter-free playback?

On your setup.

Same question goes: why do I have stutter free playback with Kodi and some don't?

More than just mine. Stutter with Kodi on the Shield is a common and well known problem.


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

(2021-07-06, 14:58)dysprosium Wrote: I have something interesting to report.

I'm using the 32-bit apk on the Ugoos AM6 Plus (Amlogic S922X-J), and playing UHD mkv remuxes.

Previously, my experience was that files would most likely take multiple tries (around 3 on average) to begin playback (any file, not just DV), but once started, DV MEL files played completely correctly (along with HDR10 and SDR files). However, DV FEL files would have a high chance (at least 90% of the time) to have at least one resync/freeze and/or stuttering. As mentioned in this thread, this is curious because the playback is handled by the same OMX.amlogic.dolby-vision.decoder.awesome decoder that is used by Exoplayer-based players (e.g. Just Player, Vimu) in which DV FEL files play without stuttering/freezing/resyncs (as long as only AC3 audio passthrough was chosen - but this is a separate issue regarding lossless audio passthrough with this box's Android firmware that affects all files, not just DV, which Kodi's IEC packer fixes).

However, today I turned on Settings>System Settings>Logging>Enable Debug Logging while debugging an unrelated issue, and stumbled upon the fact that while Debug Logging is on, for DV FEL files:
  • The chance that a file would start playing on the first try was close to 100%
  • The file played perfectly. No stuttering/freezing/resyncs whatsoever, even when skipping chapters. When seeking, there is a <2s lag time where the video speeds up to catch up to the audio, but afterwards would resume playing perfectly. This is even better than on Exoplayer-based players (with AC3 audio) where seeking/skipping chapters would usually result in a freeze requiring a force quit.
Apart from the obvious logging info in the top left corner, DV FEL files were playing perfectly with lossless audio. I confirmed that this was not coincidence by testing the playback with Debug Logging on and off multiple times, and confirmed it with multiple files (Back to The Future and Saving Private Ryan). On=perfect, Off=high chance of stuttering/freezing/resyncs.

How could having Debug Logging on affect playback? If we could find the root cause, then perhaps we could finally resolve the imperfect playback of DV FEL files in this Kodi build compared to Exoplayer.

Excellent find, I think theres a way to put debugging on in quiet mode so no info on screen. I’ll test later.


RE: Kodi Android build with support for Dolby Vision MKV - dysprosium - 2021-07-08

(2021-07-06, 19:57)mattmarsden Wrote: Excellent find, I think theres a way to put debugging on in quiet mode so no info on screen. I’ll test later.
I found that with loglevel=1 (using advancedsettings.xml) to have debugging on without the on-screen display, the positive effect doesn't happen any more.

This must mean that the increased stability comes from the on-screen display being drawn on the screen.

After further testing with Saving Private Ryan (for which you can easily tell in the first 2 minutes if the EL is being processed or ignored), it seems like having the debug display on the screen causes the decoder to be much more likely to ignore the EL, processing only the BL+RPU. So essentially the extra stability from having Debug Logging on comes from the decoder being more likely to be operating as if it were only a MEL file, which was always much more stable than FEL.

Unfortunately not the solution we're looking for.

My next hypothesis about why full FEL decoding is less stable using this build compared to Exoplayer relates to video/audio sync. In Just Player/Plex, using the Android IEC packer for TrueHD output along with DV causes a large audio delay, about 2 seconds, but playback is smooth otherwise. In this Kodi build, sync is maintained even when using the Android IEC packer rather than the Kodi IEC packer, but full FEL decode has stutters/freezes. How would I go about testing if that is truly the case?


RE: Kodi Android build with support for Dolby Vision MKV - jkatchy2 - 2021-07-08

(2021-07-04, 21:13)Jivko12 Wrote: Resolved the black flickering. It was due to my AVR.
How did you resolved the black flickering, my B9 redisplays the DV badge and flickers black screen just like yours . Using Denon AVR .


RE: Kodi Android build with support for Dolby Vision MKV - ralfwechsler - 2021-07-08

Using a Sony X90J running Google TV, the 32 bit version runs and plays DV FEL mkv files just fine from what I can tell (with minor bugs related to pausing and fast forwarding video). The problem I have is that when a subtitle (SUP and SRT) shows up, the brightness of the whole screen is noticeably increased and goes back to normal when it disappears.


RE: Kodi Android build with support for Dolby Vision MKV - DoomSlayer69 - 2021-07-09

Hi, What's the status of dolby vision on firestick 4k? Does the interface stutter/crash when playing DV content? I would like to know.
Thanks!


RE: Kodi Android build with support for Dolby Vision MKV - DaMacFunkin - 2021-07-10

(2021-07-08, 05:22)jkatchy2 Wrote:
(2021-07-04, 21:13)Jivko12 Wrote: Resolved the black flickering. It was due to my AVR.
How did you resolved the black flickering, my B9 redisplays the DV badge and flickers black screen just like yours . Using Denon AVR .
its not actually down to the AVR, it is a bug with the LG when passing 24hz Dolby vision through the AVR, until LG fix it properly you can force 60hz output (yuk) or by pass the AVR either completely or with a cheap splitter.


RE: Kodi Android build with support for Dolby Vision MKV - jamesb23 - 2021-07-20

(2021-07-10, 08:06)DaMacFunkin Wrote:
(2021-07-08, 05:22)jkatchy2 Wrote:
(2021-07-04, 21:13)Jivko12 Wrote: Resolved the black flickering. It was due to my AVR.
How did you resolved the black flickering, my B9 redisplays the DV badge and flickers black screen just like yours . Using Denon AVR .
its not actually down to the AVR, it is a bug with the LG when passing 24hz Dolby vision through the AVR, until LG fix it properly you can force 60hz output (yuk) or by pass the AVR either completely or with a cheap splitter.

Hello, I was using a beta version of Kodi on my Fire stick and since upgrading to version 19.1, I can't seem to get DV to work at all on my 2016 LG C6. I had it working on the beta and it works on native Netflix but then I can't get Atmos sound. I know Kodi had a DV issue but I thought that was addressed? And why did it work before on the beta version, perhaps I'm missing a setting? Thanks in advance.

EDIT: I've got it working now. I forgot to go into the Netflix addon setting to adjust it before.


RE: Kodi Android build with support for Dolby Vision MKV - grayson99 - 2021-07-21

I'm a bit of  Newb to this. Which version do I download for a 2019 shield tv? Do I uninstall the kodi version I downloaded from play store and install apk or install over the top? Thanks


RE: Kodi Android build with support for Dolby Vision MKV - acefr - 2021-07-21

(2021-06-22, 23:33)CK1one Wrote:
(2021-06-22, 00:45)bladed98 Wrote: Does anyone know if Kodi 19.1 is able to play multi-HDR *.mkv file backups with Dolby Vision?
I've enabled Dolby vision in shield and if the mkv is just Dolby Vision it plays fine as Dolby Vision and tv recognizes Dolby Vision layer and plays it as such.
If the backup contains HDR10 and Dolby Vision then only HDR 10 version plays...tv is a90j. Colors are fine, but Dolby Vision is not triggered.

Any ideas?

Thanks!

try this build from kodinerds.
it triggers dv and works perfectly fine, at least on my a80j Wink
I have stuttering on DV playback on Shield. Did you sideload Kodi to your A80J and run Kodi on the TV directly? Maybe I can give this a try if it does not stutter.


RE: Kodi Android build with support for Dolby Vision MKV - acefr - 2021-07-21

(2021-07-21, 17:00)grayson99 Wrote: I'm a bit of  Newb to this. Which version do I download for a 2019 shield tv? Do I uninstall the kodi version I downloaded from play store and install apk or install over the top? Thanks

If you use Maven's build, choose master non-Fire TV. It can install in parallel with the official one from Play store. However, even though it triggers DV, it still stutters on Shield, so it is not working for me yet.


RE: Kodi Android build with support for Dolby Vision MKV - acefr - 2021-07-21

(2021-07-21, 21:47)acefr Wrote:
(2021-07-21, 17:00)grayson99 Wrote: I'm a bit of  Newb to this. Which version do I download for a 2019 shield tv? Do I uninstall the kodi version I downloaded from play store and install apk or install over the top? Thanks

If you use Maven's build, choose master non-Fire TV. It can install in parallel with the official one from Play store. However, even though it triggers DV, it still stutters on Shield, so it is not working for me yet.
For Tube Shield TV, use 32 bit. For Shield TV Pro, use 64 bit.


RE: Kodi Android build with support for Dolby Vision MKV - grayson99 - 2021-07-22

(2021-07-21, 21:47)acefr Wrote:
(2021-07-21, 17:00)grayson99 Wrote: I'm a bit of  Newb to this. Which version do I download for a 2019 shield tv? Do I uninstall the kodi version I downloaded from play store and install apk or install over the top? Thanks

If you use Maven's build, choose master non-Fire TV. It can install in parallel with the official one from Play store. However, even though it triggers DV, it still stutters on Shield, so it is not working for me yet.
Thanks for that. Do I install v7 or v8? Thanks I have a Shield Pro.


RE: Kodi Android build with support for Dolby Vision MKV - grayson99 - 2021-07-22

(2021-07-21, 21:53)acefr Wrote:
(2021-07-21, 21:47)acefr Wrote:
(2021-07-21, 17:00)grayson99 Wrote: I'm a bit of  Newb to this. Which version do I download for a 2019 shield tv? Do I uninstall the kodi version I downloaded from play store and install apk or install over the top? Thanks

If you use Maven's build, choose master non-Fire TV. It can install in parallel with the official one from Play store. However, even though it triggers DV, it still stutters on Shield, so it is not working for me yet.
For Tube Shield TV, use 32 bit. For Shield TV Pro, use 64 bit.
Which one is 64 bit? I can only see v7 and v8. Thanks for your help.