OK, so you want to convert P5 to P8 but Apple is using an odd "max_display_mastering_luminance".Robert89 wrote: ↑Sun Jan 30, 2022 8:00 amno is what happens when I try to convert an appletv + web-dl.
in sum to explain myself better ... the first step.Code: Select all
dovi_tool -m 3 convert --discard dolby.hevc
If you check the file with MediaInfo, or check the file properties in a player like MPC-BE or MPC-HC, can you see if it has "Mastering display luminance" values?
For example, here's a random HDR10 file. If I play it in MPC-BE, right-click > Properties > MediaInfo tab, it shows:
Code: Select all
Mastering display luminance : min: 0.0050 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 1000 cd/m2
Maximum Frame-Average Light Le : 293 cd/m2
Using the example file above, MaxCLL is 1000 and MaxFALL is 293. If you don't have those values I believe you can leave them as 0 in your json file and they won't be changed.
If you can't find Mastering display luminance values, using 1000 and 50 should be safe value.
Make the file and save it as L6.json:
Code: Select all
{
"cm_version": "V29",
"length": 0,
"level6": {
"max_display_mastering_luminance": 1000,
"min_display_mastering_luminance": 50,
"max_content_light_level": 1000,
"max_frame_average_light_level": 293
}
}
Make the file and save it as mode3.json:
Code: Select all
{
"mode": 3
}
Code: Select all
dovi_tool extract-rpu dolby.hevc
dovi_tool editor -i RPU.bin -j L6.json -o RPU_L6.bin
dovi_tool editor -i RPU_L6.bin -j mode3.json -o RPU_p8.bin
dovi_tool inject-rpu -i dolby.hevc --rpu-in RPU_p8.bin -o dolby_p8.hevc