Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Artoriuz/glsl-pixel-clipper
Simple pixel clipper for mpv
https://github.com/Artoriuz/glsl-pixel-clipper
Last synced: 3 months ago
JSON representation
Simple pixel clipper for mpv
- Host: GitHub
- URL: https://github.com/Artoriuz/glsl-pixel-clipper
- Owner: Artoriuz
- License: mit
- Created: 2023-06-05T00:19:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-24T16:57:25.000Z (10 months ago)
- Last Synced: 2024-06-30T14:50:13.875Z (5 months ago)
- Language: GLSL
- Size: 467 KB
- Stars: 9
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mpv - Pixel Clipper - Simple anti-ringing filter based on pixel clipping/clamping. (Other)
README
# GLSL Pixel Clipper
## Overview
This is a simple pixel clipper for mpv. You can use it alongside resampling filters to limit the amount of ringing after resampling.~~The main difference between this and the built-in anti-ringing functionality is that this shader works with polar filters.~~
[Looks like polar AR is now supported in libplacebo](https://code.videolan.org/videolan/libplacebo/-/merge_requests/505), so this shader shouldn't really be needed anymore unless you don't like the native solution.Set `TWELVE_TAP_AR 1` if you don't want a "cut-off" impulse response with larger filters. The standard 4-tap shader is marginally better at eliminating ringing though.
You can also just remove the passes you don't need.
## Instructions
Add something like this to your mpv config:
```c
glsl-shader="path/to/shader/PixelClipper.glsl"
```## Inputs
You can set the following parameters:
- `strength`: Controls the strength of the clipping. Accepts floats between `[0.0, 1.0]`, defaults to `0.8` for the upsampling passes and `1.0` for the downsampling pass.## Example
![Pixel Clipper Example](./example.png "Pixel Clipper Example")