Ch. 14 · HDR Workflow in Practice

한국어日本語
6 min

The HDR Pipeline at a Glance: PQ and HLG Revisited

We map out where things change between the creation of an HDR file and the moment it appears on screen, and take another look at the transfer functions from Chapter 1 with a practitioner's eye.

In Chapter 1 you learned that a codec doesn't "compress" HDR. A codec only compresses numbers, and it's the tags (metadata) that tell you whether those numbers are PQ or HLG. This chapter covers how to attach those tags to a real file correctly, how not to lose them, and how to convert down to SDR when you need to.

Capture /mastering Edit /export Encode(10-bit) Platform Display Color gamut, transfer function, and brightness info must travel together at every step For SDR viewers, tone mapping (Lesson 5) happens somewhere along the way
The path an HDR video travels: there are many points where the tags can get dropped

Transfer function recap: only what you need in practice

PQHLG
What the code values meanAbsolute brightness (nits)Values relative to the display's peak brightness
Transfer function number (CICP)16 (ffmpeg name: smpte2084)18 (ffmpeg name: arib-std-b67)
Color gamut / matrixUsually BT.2020 (primaries 9, matrix 9)Usually BT.2020 (primaries 9, matrix 9)
Brightness metadataNeeded (mastering info, MaxCLL, etc.)In principle, not needed
Where it's mainly usedThe HDR10 family, Dolby VisionBroadcast and live production, some camera footage

The numbers are the same CICP trio from Chapter 1. Rather than memorizing the values, get in the habit of reading them with ffprobe.

The rule for this chapter

Almost every HDR accident is a case where the pixels are fine but the interpretation is off. So make it a habit to check color_primaries / color_transfer / color_space with ffprobe at the end of every step. You can also view a file's current tags with the File Info Inspector tool.

HDR pipelineHDR pipeline

The flow from mastering → export → encoding → distribution → playback. The color tags have to survive every step.

smpte2084 / arib-std-b67ffmpeg names for PQ / HLG

In ffmpeg options and ffprobe output, PQ is written smpte2084 and HLG is written arib-std-b67.

Check yourself

Where in an HDR file is the PQ/HLG distinction recorded?