mpv-player / mpv-player/mpv

colors are not correct when creating webp in encode mode

Open
#8,226 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

mpv 0.32.0-791-g73be20143e
FFmpeg version: N-99820-g2ddd6afd30
vo=x11

What's wrong?

  1. the colors between png and webp are totally different.
  2. size of webp is equal even if lower "screenshot-webp-compression=6". It's seems the var has no influence.
  3. webp looks very bad, the size say all. it's not lossless.

mpv log file taking png screenshot
https://0x0.st/ide1.log
mpv log file taking webp screenshot
https://0x0.st/idej.log

webp screenshot
https://0x0.st/ideA.webp
png screenshot
https://0x0.st/idem.png

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 reviewing the linked PNG and WebP mpv logs and comparing the reported screenshots. Trace the screenshot path used by encode mode and the screenshot-webp-compression option, then verify that WebP colors, quality, and compression respond correctly while PNG output remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
backend, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.