mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-23 11:29:54 +00:00
Forced-SDR extraction tone-maps HDR frames with zscale, but the frames kept the BT.709 transfer tag, so Chrome re-curved them (a tone-mapped 388d96 painted as 2d8790), and JPEG frames kept the BT.709 matrix every JPEG reader decodes as BT.601. Tone-mapped frames now get the same sRGB tag and BT.601 JPEG conversion as other SDR frames. macOS used VideoToolbox, which does not tone-map: its frames stay PQ and Chrome tone-maps them itself, darker than the hable curve Linux and Studio use. macOS now takes the zscale path whenever ffmpeg has zscale, found through the shared ffmpeg filter probe; without it the old path stays and the render warns once. Co-authored-by: Kenneth Shortrede <95665480+sontiac@users.noreply.github.com>