wyup
12th July 2025, 15:31
I did try ffmpeg's libplacebo colorspace conversion to convert HDR10 to HLG with this command:
ffmpeg -init_hw_device vulkan -i .\PQmovie.mp4 -vf libplacebo=colorspace=bt2020c:color_primaries=bt2020:color_trc=arib-std-b67:range=tv -c:v libx265 -tune grain -b:v 15M HLG.mp4
.. but I get different colors and exposure to the original,both when viewed on a HDR tv and tonemapped to SDR on my PC. Movie is 99.45% under 1,000 nits. Real MaxCLL is 1,077 nits measured with madvr. Mediainfo says MaxCLL 690.
I thought of filing a bug on libplacebo, but I'm realising I should need to adjust a exposure compensation or a reference diffuse white with your pq2hlg script to get it right. I don't have the SDR counterpart to compare, so how can I find a reference white value to get the same exposure as the HDR10 master?
ffmpeg -init_hw_device vulkan -i .\PQmovie.mp4 -vf libplacebo=colorspace=bt2020c:color_primaries=bt2020:color_trc=arib-std-b67:range=tv -c:v libx265 -tune grain -b:v 15M HLG.mp4
.. but I get different colors and exposure to the original,both when viewed on a HDR tv and tonemapped to SDR on my PC. Movie is 99.45% under 1,000 nits. Real MaxCLL is 1,077 nits measured with madvr. Mediainfo says MaxCLL 690.
I thought of filing a bug on libplacebo, but I'm realising I should need to adjust a exposure compensation or a reference diffuse white with your pq2hlg script to get it right. I don't have the SDR counterpart to compare, so how can I find a reference white value to get the same exposure as the HDR10 master?