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

Doesn't work on MacOS even though ffmpeg installed via HomeBrew and in PATH #59

Open
hsitz opened this issue Sep 23, 2024 · 2 comments
Open

Comments

@hsitz
Copy link

hsitz commented Sep 23, 2024

I'm having same issues as previous (closed) issue #52. ffmpeg is installed via homebrew, runs in any terminal, is specifically added to path. Still just get dialog saying ffmpeg must be added to path.

@pears-one
Copy link

I found that the addon searches for ffmpeg only at this path. https://github.com/kamui-fin/yt-to-anki/blob/master/ytanki/utils.py#L37. However, the path for ffmpeg installed through homebrew can differ.

It's worth noting that the PATH environment variable for Anki will be different to the PATH variable that you see in a shell seeing as they are different processes. You can check the environment variables for Anki using ps -E <pid for anki>.

@cevahir
Copy link

cevahir commented Dec 27, 2024

It's not the cleanest solution but for now you can add a symlink as follows:

ln -s /path/to/your/ffmpeg /usr/local/bin/ffmpeg

In my case:
ln -s /opt/homebrew/bin/ffmpeg /usr/local/bin/ffmpeg

and the addon can access ffmpeg

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

3 participants