Anime4K icon indicating copy to clipboard operation
Anime4K copied to clipboard

Making it work on Android

Open TianZerL opened this issue 3 years ago • 8 comments

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 be max(a, vec4(0)) or max(a, vec4(0.0f)). It works for me.

Although the shader works, it doesn't feel as good as PC. Any ideas?

TianZerL avatar Aug 11 '20 17:08 TianZerL

@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 avatar Oct 29 '20 12:10 yushengnan1

@yushengnan1 Just unzip it to any location, and edit the mpv.conf, it is same as using it on a PC.

TianZerL avatar Oct 29 '20 12:10 TianZerL

@yushengnan1 Hi! so did you managed to get it work?

Cyberspiri avatar Jul 11 '21 11:07 Cyberspiri

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 avatar Aug 12 '21 17:08 GizmoTheGreen

@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

bloc97 avatar Aug 12 '21 18:08 bloc97

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"

bloc97 avatar Aug 12 '21 18:08 bloc97

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.

FalaaY avatar Dec 27 '21 20:12 FalaaY

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?

arianaa30 avatar Nov 13 '23 00:11 arianaa30