A platform decides whether something is HDR by looking at the tags on the file you upload. A pre-upload checklist, and a reminder to always recheck the specs in the official docs.
When you upload HDR video to a platform, the platform generally reads the file's color tags to decide whether it's HDR. So if the tags are missing or wrong, an HDR file gets treated as SDR and the colors go off. Platform-specific requirements change often, so what follows are principles; for concrete numbers, the official documentation is the authority.
According to YouTube's help page on uploading HDR videos, you should master in Rec. 2020 color gamut with PQ or HLG, and it warns that other configurations such as DCI-P3 give inaccurate results. The containers are MOV, MP4, and MKV, the recommended codecs are VP9 Profile 2, AV1, and HEVC, and the color metadata should be written as the BT.2020 non-constant luminance matrix with PQ or HLG. This was verified at the time of writing, so check the official page again before you upload.
color_primaries=bt2020, color_transfer=smpte2084 (or arib-std-b67), and color_space=bt2020nc show up in ffprobe?pix_fmt 10-bit (yuv420p10le)? Make sure it hasn't dropped to 8-bit.Most platforms re-encode what you upload to their own specs. So the file you upload is closer to "a high-quality source you hand to the platform" than to the final distribution file. If you upload at too low a quality to save space, the platform's re-encode cuts the quality down a second time. Use the Bitrate & File Size Calculator to estimate file size for your upload bitrate target, but follow the platform's recommended values for the target numbers themselves.
You can check whether viewers' devices support HDR and a given codec with the Codec Support Checker. If you handle the multi-codec, quality-ladder delivery from Chapter 10 yourself, you also need to think about keeping an HDR ladder and an SDR ladder separate.
Post-production work that adjusts a video's color and brightness to match the creative intent. HDR and SDR are sometimes graded separately.
The RGB↔YCbCr conversion method commonly used with BT.2020. Its ffmpeg name is bt2020nc.
What is the most common reason an HDR upload gets treated as SDR?