Tool
When you grab a single frame from HDR video shot on a phone or camera, the colors sometimes come out hazy and dull. The video is stored with HDR values, but the captured image is displayed as SDR. Paste the ffprobe output and the tool tells PQ, HLG and Dolby Vision apart and builds a capture command with tone mapping.
① Run ffprobe on your video
ffprobe (reads only the first frame)
ffprobe -v error -select_streams v:0 -read_intervals "%+#1" -show_streams -show_frames -of json "input.mkv"
Pasted text is not sent to a server; it is processed only inside this browser. The example outputs are fake values that show the format.
HDR video is stored with a transfer function such as PQ (smpte2084) or HLG (arib-std-b67) and the BT.2020 color gamut. If you put those values into an SDR (BT.709) image as they are, the picture looks hazy and low in saturation. The fix is to run it through tone mapping, which folds the brightness range down to fit SDR. The principle is covered in HDR to SDR Tone Mapping: zscale and tonemap and Common Mistakes: Why Colors Look Washed Out.
zscale=t=linear:npl=100: reads the input’s transfer function (PQ or HLG) and converts it to linear brightness. If the input tags are empty, it states them directly with tin·pin·min (added when you set the input manually in ③).format=gbrpf32le,zscale=p=bt709: converts to floating-point RGB and moves the color gamut to BT.709.tonemap=tonemap=hable:desat=0: the step that folds the brightness range down to SDR. This is where you choose the curve (operator).zscale=t=bt709:m=bt709:r=tv,format=yuv420p: finishes in BT.709 SDR. This filter chain is the same as the video conversion command in lesson 14-5, followed by -frames:v 1 to save just one frame.The lesson describes hable, mobius and reinhard as differences of taste in how they compress highlights, and it suggests that if bright areas blow out to white, you try another curve such as mobius on a short segment. This site has not measured the output images or speed of each operator. So it does not say ‘this curve is better’; instead it also gives you a command that captures the same frame with all three curves. Open the three images side by side, compare the highlights and the overall brightness by eye, and pick the curve you like. To compare two images by overlaying them, you can use the A/B compare slider.
clip, linear and gamma are other operators offered by the same tonemap filter. They are included so you can pick them for comparison, but they are not recommended values.