Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making it work on Android #99

Open
TianZerL opened this issue Aug 11, 2020 · 8 comments
Open

Making it work on Android #99

TianZerL opened this issue Aug 11, 2020 · 8 comments

Comments

@TianZerL
Copy link
Contributor

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
Copy link

@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
Copy link
Contributor Author

TianZerL commented Oct 29, 2020

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

@Cyberspiri
Copy link

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

@GizmoTheGreen
Copy link

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
Copy link
Owner

bloc97 commented Aug 12, 2021

@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
Copy link
Owner

bloc97 commented Aug 12, 2021

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
Copy link

FalaaY commented Dec 27, 2021

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
Copy link

arianaa30 commented Nov 13, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants