mpv-player / mpv-player/mpv

add a srgb range/threshold to various effects

Open
#14,255 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Expected behavior of the wanted feature

Hi, I would like to propose a handy feature to make various effects more tweakable by the user. Effects like glsl shader, lavfi filters, build in effects like saturation/brightness/contrast/gamma etc. I'm often face with this problem that I want to use a effect/filter but not on the entire image but on a specific range, like lows/highs/mids (0-255srgb).
There would need to be a smooth transition (smoothstep) between affected area and non affected, to no get a harsh line.
This would enhance our image quality and would open a door for more creative usage of effects. Add a new dimension of flexibility.

an example of what I'm actually talking about
lavfi denoise:
you don't need to apply the filter to the whole image. 90% of the noise is present in the lows 0-40srgb. Here I simulated this effect in photoshop. A better experience. You get rid of the noise in the lows but keep details in the mids, like the face etc.

normal image
noise
denoised with atadenoise
denoise
atadenoise applied only to srgb 0-40
denoise fusion

Thank you :)

Alternative behavior of the wanted feature

No response

Log File

No response

Sample Files

No response

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

The issue names GLSL shaders, lavfi filters, and built-in effects but no files, tests, or entry points. Start by identifying the affected effect interfaces and existing range-processing paths, then define the scope and verification criteria for applying a smooth sRGB threshold.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.