MPV does not behave well in HDR with KWin SDR brightness < MAX
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- c, linux
- Ambito
- audio-video-rtc, backend
Direzione di ricerca
Start with the attached debug log and identify which video output and color management path mpv uses with KWin when SDR brightness is below the display maximum. Compare the reported primaries and transfer values in the good and washed out states, then trace the relevant handling in the video output code. Done means SDR content remains correctly rendered at lower KWin SDR brightness; the issue does not name a file or test, so locating the responsible code will take investigation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
mpv Information
mpv v0.41.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
built on Aug 28 2026 19:44:41
libplacebo version: v7.360.1
FFmpeg version: n9.0.1 (runtime n9.0.2)
FFmpeg library versions:
libavcodec 63.1.101 (runtime 63.1.102)
libavdevice 63.1.101 (runtime 63.1.102)
libavfilter 12.1.101 (runtime 12.1.102)
libavformat 63.1.101 (runtime 63.1.102)
libavutil 61.1.101 (runtime 61.1.102)
libswresample 7.1.101 (runtime 7.1.102)
libswscale 10.1.101 (runtime 10.1.102)
Other Information
- Linux version: Arch Linux
- Kernel Version: 7.2.7-zen1-1-zen
- GPU Model: NVIDIA Corporation TU106 [GeForce RTX 2070]
- Mesa/GPU Driver Version: 4.6.0 NVIDIA 615.71.09
- Window Manager and Version: KWin 6.7.91 (6.8 Beta 2 ~= 6.8.0)
- Source of mpv: Arch Linux repositories
- Latest known working version: n/a
- Issue started after the following happened: n/a
Reproduction Steps
When using MPV in KWin with a HDR display, and HDR enabled, and SDR content, I experience the following:
- When KWin's SDR brightness is set to the display's peak brightness (in my case, 418 nits), content looks correct, and is appropriately vibrant. MPV is using
Primaries: bt.709 Transfer: bt.1886. - When KWin's SDR brightness is set below the display's peak brightness (<418 nits), content is washed out, dull, slightly desaturated, etc. MPV is using
Primaries: [0.705 0.296, 0.192 0.755, 0.144 0.040, 0.313 0.329] in bt.2020 Transfer: pq. - In the above state, during KWin's night light transition, MPV switches for several random frames to displaying primaries and transfer as in the initial good state, and content appears briefly normal.
Screenshots in MPV look normal in any case.
The following screenshots show each state, with the caveat that the bad screenshot looks worse in-person:
| Good | Bad |
|---|---|
In Plasma 6.8, KWin's SDR brightness can be read with kscreenctl list-outputs (as SDR brightness: 418 nits) and modified with kscreenctl <output> set-sdr-brightness <brightness>.
Expected Behavior
Content looks correct regardless of KWin's SDR brightness.
Actual Behavior
SDR content viewed in HDR looks incorrect where KWin's SDR brightness is less than the maximum, with interesting switches with several frames looking correct during night-light transition.
Log File
Sample Files
This can be observed in normal YouTube content via yt-dlp.
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.
- Lingua principale
- C
- Stelle
- 38.2k
- Fork
- 3.7k
- Merge medio
- 1g 13h
- PR unite (30g)
- 76
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mpv-player/mpv
-
meta:feature-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
mpv-player/mpv#18855 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
meta:feature-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
mpv-player/mpv#18683 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Subtitle delay value displays "-0ms"Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertaos:linux
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
mpv-player/mpv#18649 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
meta:feature-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
mpv-player/mpv#18464 ·
I maintainer di solito rispondono entro 1 giorno
-
Keyboard shortcut next and previous secondary subtitle fileForse già presa @ravarnax l’ha presa 225 giorni fa. Apertameta:feature-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
mpv-player/mpv#17693 · 5 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di mpv-player/mpv
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ChupathingyCE/chupathingyce#1550 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
redis/redis#16302 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
slice
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
Life-Framework/Life-Framework#3878 ·
I maintainer di solito rispondono entro 1 giorno
-
`sha256()` returns a wrong hash when libsql-ffi is built with gcc 11 or laterForse già presa @colinhacks l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
tursodatabase/libsql#2333 ·
I maintainer di solito rispondono entro 11 giorni