-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Failure to locate mpv binary on macOS/Homebrew MPV installation (with workaround) #29
Comments
How did you modify the PATH variable? |
I am setting my At any rate, unless you want this thumbnailer script to go looking in known locations like Homebrew's bin dir that aren't on the default Here are some possible solutions for anyone else facing this situation:
Unless there are other possibilities I'm not thinking of, you can probably close this issue. |
So none of the possibilities in [2.] work? |
The same problem. My workaround here: TheAMM#61 |
I haven't tried everything in that SO thread, but |
@marzzzello @SemperPeritus Please have a look at #39, which I think will resolve this. |
Description of the bug
Thumbnailer job will fail to invoke
mpv
on macOS which causes the entire job to fail. Relevant log output is:To Reproduce
Steps to reproduce the behavior:
bin
dir to$PATH
autogenerate=true
in your conf file.Expected behavior
Thumbnailing job completes normally
Environment
The Workaround
I noticed that the issue did not occur when I ran
mpv
on the CLI. Through some testing according to #16, I verified that the issue is that thempv_command
built by the script fails to invokempv
. I worked around this by modifying the relevant line in the server to use the absolute path tompv
and everything works as expected. Either the homebrew bin path (which is a symlink to the application bundle, below) or the path to the binary in the app bundle worked just fine.As shown above, the Homebrew path
/opt/homebrew/bin
is on my user's$PATH
. Adding the appropriate path to/etc/paths
before starting MPV had no effect.Recommendations
From a look through the code, it seems as though the server
ExecutableFinder
, which loads the user's environment to search forffmpeg
, could be used to findmpv
as well.The text was updated successfully, but these errors were encountered: