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

Help: glsl-shader option doesnt work #103

Open
m0rphtail opened this issue Feb 14, 2022 · 1 comment
Open

Help: glsl-shader option doesnt work #103

m0rphtail opened this issue Feb 14, 2022 · 1 comment

Comments

@m0rphtail
Copy link

I am trying to pass the following options, the --glsl-shader option doesnt work while the other options work.

let mpv_options = [
  "--vo=gpu",
  "--profile=gpu-hq",
  "--glsl-shader=pixels.glsl",
  "--scale=ewa_lanczos",
  "--fbo-format=rgba16hf",
];

the shader isnt visible here, looks like the shader did not load
image

But the shader works successfully when passed to mpv with mpv --glsl-shader=pixels.glsl video.mp4

So my question is has the glsl-shader been implemented in node-mpv?
and if so, how do i use it?

@j-holub
Copy link
Owner

j-holub commented Feb 15, 2022

Hey there,

Node-MPV itself doesn't implement anything but just passes the flags to MPV. Unfortunately I'm not familiar with the --glsl-shader flag at all, so I don't really have a guess what could cause the issue.

Node-MPV starts the MPV player in socket and idle mode and passes commands through a IPC (Inter Process Communication) socket.

If I see it correctly, pixels.glsl is a file, correct? Have you tried passing the absolute file path? I think that's what might be causing the issue, relative path issues.

Cheers

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

2 participants