There are at least two good reasons to measure the HDR grade of a hevc/mkv video file.
-
Some remuxes miss the HDR metadata maxCLL/maxFALL. As you are supposed to provide this metadata when encoding, you sometimes need to measure them. The function
measure_hdr10_content_light_levelin awsmfunc does that.HDRplotcomes on top ofmeasure_hdr10_content_light_leveland therefore provides that functionality. -
When you want to inject the DoVi/HDR10+ metadata of a web-dl into a HDR remux, you have to check previously that the HDR grades match. One way to do that is to check that the brightness match on screenshots taken from both sources. The other way is to plot the HDR grades of the 2 sources. This is what HDRplot does, based on
measure_hdr10_content_light_level. For this functionality, an essential feature is the possibility to tonemap a DoVi P5 video file to HDR before drawing the plot. Such a functionality is already implemented in DoVi_Scripts, but DoVi_Scripts is not available for Linux/macOS.HDRplotaims at providing a cross-platform alternative withinVapourSynth.
This script needs a working installation of VapourSynth with the ffms2 indexer. It also requires to have compiled the vs-placebo plugin with option dovi. Finally, ffmpeg, dovi_tool and mediainfo must be on path.
- Can measure the HDR grades of any HDR10/HDR10+/DoVi hevc/mkv video file.
- In case of a DoVi P5 file, a preliminary tonamap to PQ/HDR10 will be performed.
- Plot the CLL/FALL values of each frame. Compute maxCLL and maxFALL.
- Extract the Master Display Luminance Parameters and the main DoVi parameters and print them on the plot.

