If you wish to use another media player, look at their documentation on how to install GLSL shaders and modify the shader accordingly if needed.
- Install mpv (Make sure it is v0.31, there is a GLSL bug in v0.32, see #66)
- Download the .glsl shader files here
- Copy the .glsl files to
%AppData%\mpv\shaders
for Windows or~/.config/mpv/shaders
for Linux. - If
mpv.conf
does not exist in%AppData%\mpv\
or~/.config/mpv
, create an empty file and follow these instructions to optimize your configuration. - Add this line to
mpv.conf
to enable the shaders:glsl-shaders="~~/shaders/Anime4K_Hybrid_v2.0RC2.glsl"
The file name might vary depending on the version, rename it accordingly. - To verify the installation was correctly done, use the MPV profiler to check if there are a few shaders with the name Anime4K running. To access the profiler, press Shift+I and then 2 on the keyboard's top row.
This is what you should see (for v2.0RC2):
Unlike HLSL, the GLSL shader can auto-detect the scaling factor and adjust its strength accordingly.