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

Loading custom shaders in media player? #1061

Closed
tjasmin111 opened this issue Feb 2, 2024 · 1 comment
Closed

Loading custom shaders in media player? #1061

tjasmin111 opened this issue Feb 2, 2024 · 1 comment
Assignees
Labels

Comments

@tjasmin111
Copy link

I want to see if I can load some custom shaders and apply to media player in Android. Apparently we should use libplacebo to run them. But does Android media player support that through its APIs so we won't have to use libplacebo?

libplacebo page says:
A pluggable, extensible custom shader system. This can be used to arbitrarily extend the range of custom shaders to include popular user shaders like RAVU, FSRCNNX, or Anime4K. See the mpv wiki on user scripts for more information.

@droid-girl
Copy link
Contributor

droid-girl commented Feb 5, 2024

Hi @tjasmin111,
You can use ExoPlayer if you want to apply custom shaders. You can create a custom GlEffect and preview it in ExoPlayer, using ExoPlayer.setVideoEffects.

Keep in mind Media3 ExoPlayer and Android's MediaPlayer are different APIs.

@droid-girl droid-girl self-assigned this Feb 5, 2024
@androidx androidx locked and limited conversation to collaborators Apr 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants