Open TianZerL opened 4 years ago
@TianZerL Hi, I just installed mpv-android,but I have some problem in the installation of Anime4k glsl. What is the installation path of glsl file in mpv-android? Or install it to any location in the memory and call the path directly?Could you please help me ?I can pay for this. Thank you!
@yushengnan1
Just unzip it to any location, and edit the mpv.conf
, it is same as using it on a PC.
@yushengnan1 Hi! so did you managed to get it work?
I can't figure out where to add the glsl files on android. or how to set up the mpv.conf to find them. any example would be helpful.
@GizmoTheGreen
You can add the glsl files anywhere if I am not mistaken. You would need to write absolute paths, eg. /home/user/shaders/Anime4K_Upscale_CNN_x2_S.glsl
instead of the relative paths ~~/
.
mpv.conf can be edited with a file manager or by going in mpv settings -> advanced -> edit mpv.conf or edit input.conf
To find the absolute path of a folder you can go to the files app.
If I were to put all the shaders under a folder named shaders
in Documents
, I would write in mpv.conf:
glsl-shaders="/storage/emulated/0/Documents/shaders/Anime4K_Upscale_CNN_x2_S.glsl"
Hi. Trying to use this on My nvidia shield Pro 2019.
Could someone who has successfully done it on android just sent over the configuration file they used then I can edit, driving me insane trying to get it working.
Can someone help me with my Android setup as well? I edited the mpv.conf
with paths, but how to modify input.conf
and enable the shader? In Windows setup, it uses ctrl + 1 and such which we don't have in Android. What exactly should I enter there?
Hi, I just found that the Anime4K glsl shaders can't run in mpv-android, it will be a blue screen.
After some testing, I found that it should be because of the max and min opengl built-in functions.
In the mpv-android, code like
max(a, 0) //a is a vec4
is unable to compile successfully, it should bemax(a, vec4(0))
ormax(a, vec4(0.0f))
. It works for me.Although the shader works, it doesn't feel as good as PC. Any ideas?