Skip to content

scRGB output clamped to sRGB color gamut when SDR ACM is enabled #17850

@Headcrabed

Description

@Headcrabed

mpv Information

mpv v0.41.0-566-g0a0c63d3e Copyright © 2000-2026 mpv/MPlayer/mplayer2 projects
 built on Apr 29 2026 10:10:17
libplacebo version: v7.363.0 (v7.360.0-33-g27aa71a-dirty)
FFmpeg version: N-124254-g397c7c752
FFmpeg library versions:
   libavcodec      62.30.100
   libavdevice     62.4.100
   libavfilter     11.17.100
   libavformat     62.13.102
   libavutil       60.30.100
   libswresample   6.4.100
   libswscale      9.7.100

Other Information

- Windows version: 11 25H2
- GPU model, driver and version: AMD Radeon RX 7800XT (Driver 26.3.1)
- Source of mpv: github.com/zhongfly/mpv-winbuild/
- Latest known working version: N/A
- Issue started after the following happened: N/A

Reproduction Steps

mpv config:

vo=gpu-next
gpu-api=auto
hwdec=auto
hwdec-codecs=all
#for enabling d3d11 scRGB
d3d11-output-format=rgba16f
target-peak=80

treat-srgb-as-power22=input
sdr-adjust-gamma=yes
target-contrast=inf

Download any sample files from https://webkit.org/blog-files/color-gamut/
Enable WIndows ACM and Use a Chromium-based browser, go chrome://flags , set Force color profile to scRGB linear and restart browser. Compare how the sample image looks on mpv and browser(Windows image viewer produces same result as browser).

Expected Behavior

All software produces the same behavior.

Actual Behavior

Image

The image looks different when image is sRGB, but that's due to treat-srgb-as-power22=input. Set treat-srgb-as-power22=no would make sRGB image looks the same.

Log File

log.log

Sample Files

https://webkit.org/blog-files/color-gamut/

I carefully read all instruction and confirm that I did the following:

  • I tested and confirmed that the issue exists with the latest release version or newer.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions