HDR and SDR Export Checks: Primaries, Transfer, Matrix, and Range
Reviewed 21 November 2026. A video can have correct-looking pixels on one display and still carry incomplete or incorrect color metadata. Color primaries, transfer characteristics, matrix coefficients, range, bit depth, and HDR side data describe different parts of the signal. A reliable export check records each field and compares it with the intended mastering and delivery specification.
Four fields that are easy to confuse
- Color primaries: describe the chromaticity coordinates used for the red, green, and blue primaries and the reference white.
- Transfer characteristics: describe how coded signal values relate to light. HDR workflows commonly use PQ or HLG transfer functions; ordinary SDR delivery commonly uses BT.709-related signaling.
- Matrix coefficients: describe conversion between RGB and luma/chroma representations.
- Color range: indicates whether coded values use a limited video range or a full range.
These fields work together. Replacing one tag does not transform the underlying pictures. Relabeling an SDR file as HDR can cause incorrect brightness and color. A real conversion requires a defined color-management and tone-mapping process.
Inspect the first video stream
Use ffprobe to print the fields most relevant to a first-pass review:
ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,profile,pix_fmt,bits_per_raw_sample,color_range,color_space,color_transfer,color_primaries,width,height -of default=noprint_wrappers=1 input.mp4
Common FFmpeg values include bt709, bt2020nc, smpte2084, and arib-std-b67. Interpret them as metadata reported by the file, not proof that the grade was mastered correctly.
Check bit depth and pixel format
HDR delivery commonly uses 10-bit video, but a filename or codec label does not establish bit depth. Inspect pix_fmt and bits_per_raw_sample when available. A pixel format such as yuv420p10le indicates 10-bit planar 4:2:0 samples in FFmpeg's naming. Missing bits_per_raw_sample does not necessarily contradict the pixel format.
YouTube's HDR upload guidance supports specific combinations and recommends 10-bit or 12-bit precision. It also states that HDR metadata should be present in the codec or container. Review the current destination guidance because accepted combinations can change.
Inspect HDR side data
HDR10 material can include mastering-display color volume and content-light-level metadata. Sample a frame with:
ffprobe -v error -select_streams v:0 -show_frames -read_intervals %+#1 -show_entries frame=color_range,color_space,color_primaries,color_transfer,side_data_list -of json input.mp4
Look for mastering display metadata and content light level metadata when the delivery specification expects them. Their presence does not prove the values are appropriate. Compare them with the mastering record rather than copying values from another project.
Check the container as well as the elementary stream
Apple's HDR metadata guidance explains that QuickTime movie files may carry color information in both sample descriptions and container-level metadata. Different players can make different choices when tags disagree or are missing. Test the actual delivery file, not only the encoder preset.
For a reproducible report, record the ffprobe version, command, file hash, observed tags, expected mastering space, and target destination. A later remux or transcode can change or drop metadata, so repeat the check on the final output.
Verify SDR files too
SDR is not the absence of color management. Confirm that an SDR export has the intended primaries, transfer, matrix, range, and pixel format. A full-range file interpreted as limited range can show crushed blacks and clipped highlights; the reverse can look washed out. Do not fix a range problem by changing tags until the encoded sample values and intended interpretation are known.
Use scopes and reference displays
Metadata inspection should be paired with picture inspection. Review representative highlights, skin tones, saturated colors, gradients, and dark detail on calibrated or otherwise controlled displays. Check scopes in a color-managed application. Consumer displays with dynamic modes can hide or exaggerate problems, so document the viewing path.
Approach tone mapping as a new master
Converting HDR to SDR or SDR to HDR is not a metadata repair. Tone mapping changes luminance and often changes gamut. The creative result depends on the algorithm and source. Build a separate output, preserve the original, and review the converted file for highlight roll-off, shadow detail, saturation, hue shifts, banding, and graphics.
FFmpeg provides color and tone-mapping filters, but there is no universal command that is correct for every master. A pipeline must declare the input characteristics, working space, target space, peak assumptions, and output tags. Validate the result with scopes and human review.
A delivery checklist
- Identify whether the intended master is SDR, HDR10, or HLG.
- Confirm codec, profile, bit depth, chroma sampling, and dimensions.
- Compare primaries, transfer, matrix, and range with the specification.
- Inspect expected HDR side data and container tags.
- Review scopes and representative scenes on a controlled display path.
- Test the final uploaded or packaged result because destinations may transcode it.
- Archive the report beside the exact delivered file.
Limitations
ffprobe can show declared metadata, not the artistic intent or the physical display output. Platform transcodes, operating-system color management, browsers, cables, and display modes can all affect the viewed result. Use metadata as one part of a documented quality-control process.
Primary sources
- YouTube HDR upload guidance for supported HDR metadata, bit depth, color space, and transfer characteristics.
- Apple Technical Note TN3145 for HDR video metadata in QuickTime movie files.
- Apple AVFoundation color-tagging guidance for video color information.
- ffprobe documentation for inspecting stream and frame metadata.