I tried this with Kodi installed directly on Sony XH95/X950H and while it triggers one of the TV's Dolby Vision picture modes every time (tested with various mkv files which are dv profile 7 and 8), I don't think it works correctly.
I can see from Kodi log that
OMX.dolby.vision.dvhe.stn.decoder is selected for every file while the kodi playback info shows
amc-dvh1(s) (not sure how that's related to the OMX codec identifier).
This is the log output when opening a video file:
Code:
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.google.aac.decoder
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.AUDIO.DECODER.DSPAC3
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.AUDIO.DECODER.DSPADPCMIMA
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.google.amrnb.decoder
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.google.amrwb.decoder
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.AUDIO.DECODER.APE
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.AUDIO.DECODER.DSPDTS
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.AUDIO.DECODER.DSPDTSEXPRESS
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.AUDIO.DECODER.DSPDTSHD
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.AUDIO.DECODER.DSPEAC3
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.google.flac.decoder
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.google.g711.alaw.decoder
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.AUDIO.DECODER.DSPLPCMALAW
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.google.g711.mlaw.decoder
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.AUDIO.DECODER.DSPLPCMMLAW
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.AUDIO.DECODER.DSPMP1
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.AUDIO.DECODER.DSPMP2
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.google.mp3.decoder
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.google.opus.decoder
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.google.raw.decoder
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.google.vorbis.decoder
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.AUDIO.DECODER.DSPWMA
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.AUDIO.DECODER.DSPWMAPRO
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.VIDEO.DECODER.HEIC
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.MTK.VIDEO.DECODER.AVC
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.google.h264.decoder
INFO <general>: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.dolby.vision.dvhe.stn.decoder
INFO <general>: CDVDVideoCodecAndroidMediaCodec:: Open Android MediaCodec OMX.dolby.vision.dvhe.stn.decoder
According to
Dolby Vision profiles and levels pdf (Annex III),
dvhe.stn is
profile 5.
I'm wondering how the codec selection works, because
Codec Info app as well as kodi log list several decoders available:
Code:
Mediacodec decoder: OMX.dolby.vision.dvhe.stn.decoder
Mediacodec decoder: OMX.dolby.vision.dvhe.dtr.decoder
Mediacodec decoder: OMX.dolby.vision.dvhe.st.decoder
Mediacodec decoder: OMX.dolby.vision.dvav.se.decoder
That means the TV should be able to decode profiles 4, 5, 8 and 9 and I would expect the correct decoder to be selected for any of those profiles.
As for profile 7, playback should probably fall back to HDR10 without triggering DV picture mode.
Can anybody shed some light on the current behavior? Thanks.