bloc97 / Anime4K

A High-Quality Real Time Upscaler for Anime Video
https://bloc97.github.io/Anime4K/
MIT License
18.45k stars 1.35k forks source link

Making it work on Android #99

Open TianZerL opened 4 years ago

TianZerL commented 4 years ago

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?

yushengnan1 commented 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!

TianZerL commented 4 years ago

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

Cyberspiri commented 3 years ago

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

GizmoTheGreen commented 3 years ago

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.

bloc97 commented 3 years ago

@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 commented 3 years ago

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"

FalaaY commented 2 years ago

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.

arianaa30 commented 11 months ago

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?