mpv-player / mpv-player/mpv

--target-colorspace-hint and --idle=yes won't work correctly together

Open
#10,196 19 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os:win
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Important Information

Provide following Information:

  • mpv version: mpv 0.34.0-292-g3458651010
  • Windows Version: Windows 10 21H2
  • Source of the mpv binary: Windows builds by shinchiro
  • GPU: RTX3050
Reproduction steps

Run mpv.com HDR.mkv --vo=gpu-next --target-colorspace-hint=yes --gpu-api=vulkan --idle=yes. Your TV will correctly switch to HDR but after the file ends it will stay in HDR, whereas the same line with --idle=no will set the TV back to SDR after the file is finished. When opening an SDR file after that (with --idle=yes) the TV goes back to SDR and stays there after the SDR file is over.

Expected behavior

Switch back to SDR, when the HDR file ends with --idle=yes

Actual behavior

TV stays in HDR after the HDR file ends with --idle=yes

Log file

I´m sorry. I´ve not pulled the logs from testing. No idea if they are really needed as the issue is easily reproducible with the mentioned command line.

Sample files

Any HDR file will trigger this. (I tried it with the "The World in HDR" mkv file from the Kodi samples)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the supplied mpv.com command using an HDR file and --idle=yes, then compare the behavior with --idle=no and with an SDR file. Trace the gpu-next HDR/colorspace transition when playback ends; done means the display returns to SDR after the HDR file finishes while idle mode remains enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.