Skip to content

Why does changing an HDR file's color tags fail to make a correct SDR upload copy?

A metadata change tells later software how to interpret samples; it is not necessarily a transformation of those samples. Before calling a phone clip an SDR conversion, establish which operation changed pixels, which changed tags, and how the result looks through the intended display path. Do not treat a more saturated preview or a bt709 label as proof that HDR highlights and skin tones were mapped correctly.

MEDIA DIAGNOSTICS: FILES, STREAMS AND CLOCKSAISwapLab team · Editorial methodPublished 3 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file
Editorial worksheet excerpt: Metadata marking; Color/tone transform; Player preview. See the complete table and sources below.
Editorial worksheet excerpt: Metadata marking; Color/tone transform; Player preview. See the complete table and sources below.

Color operation evidence card

This guide supplies a controlled tag-only experiment rather than an unsupported universal HDR-to-SDR command. A correct real conversion depends on the source transfer function, primaries, range, display target and chosen tone-mapping pipeline. Giving every phone recording the same filter chain would conceal those requirements. The useful artifact is an operation evidence card that separates interpretation metadata, decoded sample values and the observed image. AISwapLab's generation route should not be described as a color-management repair service.

Build the evidence

  1. 01

    Inventory without deciding from the filename

    Save a stream report including pixel format, range, color space, transfer and primaries. Record missing or contradictory fields rather than forcing them to match a presumed phone setting. Use an editor's source interpretation and original recording context where available. The probe fields provide evidence but cannot by themselves prove that the original file was tagged correctly.

  2. 02

    Demonstrate a tag-only operation on a test copy

    The two FFmpeg commands produce decoded-frame checksums before and after setparams marks the frames as limited-range bt709. They do not encode a delivery MP4 or perform HDR tone mapping. Compare the per-frame checksum records, not incidental version headers or logging text. Equal checksums demonstrate unchanged sample content in this controlled operation; they do not establish identical appearance in every color-managed player.

  3. 03

    Specify a real conversion separately

    For production, name the source interpretation, intended SDR target and documented transform or tone-mapping method in the chosen editor. Render a short separate test and examine highlights, shadows and skin on the same trusted display path. Preserve an unmodified original. If the pipeline changes both samples and tags, document both and inspect the actual encoded result, since an intermediate preview does not certify the saved file.

A bounded example

Local executed evidence: 180 decoded frames from a six-second synthetic H.264 source were hashed under FFmpeg 7.1, then hashed after the stated setparams filter. All 180 per-frame checksum records matched. This demonstrates that this marking operation left those decoded samples unchanged. The fixture was not HDR, and no HDR tone-map or AISwapLab generation was tested; it cannot serve as an HDR color-fidelity benchmark. Keep tag-only diagnostic artifacts outside the delivery folder, with filenames identifying their purpose, so nobody later mistakes an intentionally relabeled test for the approved color master.

Local diagnostic commands

The tag-only frame-checksum comparison was executed on local synthetic SDR media with FFmpeg 7.1: all 180 frame records matched. The ffprobe inventory is a documentation example. No HDR conversion or paid generation was tested.

shell
ffprobe -v error -select_streams V:0 -show_entries stream=pix_fmt,color_range,color_space,color_transfer,color_primaries -of json source.mp4 > color-fields.json
ffmpeg -i source.mp4 -map 0:V:0 -an -f framemd5 before.framemd5
ffmpeg -i source.mp4 -map 0:V:0 -vf "setparams=range=limited:color_primaries=bt709:color_trc=bt709:colorspace=bt709" -an -f framemd5 tag-only.framemd5
# Compare frame records, excluding comment/header lines. This is NOT HDR tone mapping.

Color operation evidence card

OperationSamplesInterpretation
Metadata markingMay remain unchangedChanges how later stages treat frames
Color/tone transformDeliberately recalculatedMust match stated source and target
Player previewNot itself a conversion artifactDepends on display and software path

Acceptance evidence

  • The source's actual color fields and any unknown interpretation remain recorded.
  • A tag-only experiment is not labeled an SDR conversion.
  • A real conversion has a stated input interpretation and output target.
  • The encoded delivery is reviewed through the intended display path.

Stop condition

Stop when the source interpretation or intended display target cannot be established for a color-critical brief. Ask a color-aware editor for a documented conversion or choose a suitable SDR original. Repeatedly changing tags until one player looks pleasant can make another player wrong while hiding the cause.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example