mpv-player / mpv-player/mpv

screenshot-tag-colorspace = no, not working as expected

Open
#15,987 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

mpv Information
mpv v0.39.0-781-gf94b44c8e Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
 built on Feb 16 2025 00:06:00
libplacebo version: v7.350.0 (v7.349.0-30-g056b852-dirty)
FFmpeg version: N-118471-ga50d36b5f
FFmpeg library versions:
   libavcodec      61.33.102
   libavdevice     61.4.100
   libavfilter     10.9.100
   libavformat     61.9.107
   libavutil       59.56.100
   libswresample   5.4.100
   libswscale      8.13.100
Important Information
- Platform version: Windows 10
- GPU model, driver and version: Nvidia RTX 4080, DCH, 566.36
- Source of mpv: sourceforge
- Latest known working version: no idea
- Issue started after the following happened: no idea
Reproduction Steps

Set conf to yes or no and save a screenshot using sample files.

Expected Behavior

Expected behavior is the screenshot-tag-colorspace = no & screenshot-tag-colorspace = yes but with metadata stripped using optipng -strip all should look the same but they do not.

I just want to set screenshot-tag-colorspace = no so I don't have to strip metadata every time I take a screenshot to get proper viewing.

Actual Behavior

Colors are wrong, here is a comparison: https://slow.pics/c/eFYXWAY2

Images in order:

  1. Raw window capture using snipping tool (color is correct)
  2. screenshot-tag-colorspace = no (color is wrong)
  3. screenshot-tag-colorspace = yes (color is wrong)
  4. screenshot-tag-colorspace = yes but meta stripped using optipng (color is correct)

Slow.pics comparison not using optimize feature as it fixes the problem on the screenshot-tag-colorspace = yes image.

Changing any other settings:

screenshot-format = png
screenshot-sw = no
screenshot-high-bit-depth = no
screenshot-tag-colorspace = yes
screenshot-png-compression = 4

Results in still incorrect colors no matter what.

Log File

output.txt

Screenshot Metadata:

screenshot-tag-colorspace = yes : https://pastebin.com/raw/Ga8n3a2P

screenshot-tag-colorspace = no : https://pastebin.com/raw/B1Kqa3w5

screenshot-tag-colorspace = yes but metadata has been stripped using optipng -strip all : https://pastebin.com/raw/YDeUvzqW

Sample Files

Using this mpv conf: mpv.txt
Using this sample video: https://files.catbox.moe/gnytqy.mkv

I carefully read all instruction and confirm that I did the following:
  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • 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.

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 color difference with the supplied mpv configuration, sample video, and output.txt on Windows 10. Compare the screenshot metadata for both screenshot-tag-colorspace settings and the optipng-stripped result; done means identifying why the colors differ and making the no setting produce the expected colors without manual metadata stripping.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.