This repo contains the scripts that generate user shader for prescaling in
mpv, currently only nnedi3 and superxbr are supported.
For the generated user shaders, check the master branch.
Usage
Python 3 is required. Running gen.py will generate all user shaders in
current directory.
Alternatively, you could generate shaders with customized options:
./nnedi3.py --target yuv --nns 32 --win 8x4 --max-downscaling-ratio 1.8 > ~/.config/mpv/shaders/nnedi3.hook
Or play video directly with scripts
mpv --vo opengl-hq:user-shaders=<(path/to/superxbr.py --target=native) video.mkv
License
Both shaders were ported from MPDN
project, and were originally
licensed under terms of LGPLv3.
superxbr shader in addition was licensed under terms of a more permissive
license (MIT).
The ported shaders (in mpv) also include contributions licensed under terms of
LGPLv2 or later (particularly, major part of superxbr was rewritten by
@haasn).
As a whole, the shaders in this repo are licensed with LGPLv3.