Dolby vision profile 5 (mp4) playback problem

An DV mp4 is giving me trouble, it’s not triggering dolby vision (or indeed any hdr) on my Appletv. The color space is probably wrong as well as the picture comes back green and purple. Here is the video metadata for the file from mediainfo:

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.2@Main
HDR format : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID : V_MPEGH/ISO/HEVC
Duration : 25 min 4 s
Bit rate : 22.4 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 0)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.112
Stream size : 3.92 GiB (99%)
Default : Yes
Forced : No
Color range : Full

For comparison, here is a similar file which works (the codec ID is different, unsure if that’s the cause):

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.2@Main
HDR format : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID : dvhe
Codec ID/Info : High Efficiency Video Coding with Dolby Vision
Duration : 21 min 29 s
Bit rate : 22.3 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 0)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.112
Stream size : 3.34 GiB (99%)
Default : Yes
Alternate group : 1
Tagged date : UTC 2021-06-11 10:05:40
Color range : Full
Codec configuration box : hvcC+dvcC

4 posts were merged into an existing topic: Dolby vision profile 5 in MKV