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

ffmpeg not included in wheel for MacOS M1 #71

Open
fayyazul-centaurlabs opened this issue Jun 9, 2022 · 13 comments · Fixed by #83 · May be fixed by #114
Open

ffmpeg not included in wheel for MacOS M1 #71

fayyazul-centaurlabs opened this issue Jun 9, 2022 · 13 comments · Fixed by #83 · May be fixed by #114
Labels
enhancement New feature or request

Comments

@fayyazul-centaurlabs
Copy link

The readme on the main page states that ffmpeg is included with the install from pypi. However after installation I get the error:

RuntimeError: No ffmpeg exe could be found. Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.

Not sure if it may be affecting it, but I am installing the package to a virtual environment.

@almarklein
Copy link
Member

What OS are you on? It could be that we don't have wheels for yours, which causes pip to install the source version without ffmpeg included.

@almarklein almarklein added the question Further information is requested label Jun 13, 2022
@fayyazul-centaurlabs
Copy link
Author

I'm using an m1 mac so that's probably it. I saw that osx 10.9+ was supported but forgot to account for the m1 processor. I can download ffmpeg individually and the package works fine however.

@almarklein almarklein changed the title ffmpeg not included with install from pypi when using a python virtual environment? ffmpeg not included in wheel for MacOS M1 Jun 14, 2022
@almarklein almarklein added enhancement New feature or request and removed question Further information is requested labels Jun 14, 2022
@almarklein
Copy link
Member

I updated the title to reflect the issue.

@hmaarrfk
Copy link
Contributor

For what its worth, I think that imageio is quite flexible in how you can install ffmpeg. You can choose to install it from homebrew or conda (conda-forge) and imageio will attempt to find it.

If it can't find, and you are sure that you installed it correctly, there is also an environment variable that you can set to help imageio find the executable.

@rbebb
Copy link

rbebb commented Aug 29, 2022

The package works when I install ffmpeg through brew, but it would be great to have a wheel for Apple Silicon that includes the executable by default

@anjos
Copy link

anjos commented Nov 23, 2022

A key question on this one would be how to find M1 runners that would allow the wheels for macOS+arm to be created before deployment. Of course, the repository imageio-binaries need to be equipped with the binaries for this platform.

Any ideas?

@rbebb
Copy link

rbebb commented Jan 27, 2023

@almarklein #83 does not solve the problem for this ticket. #83 only applies for Linux systems running on ARM (which is the Linux Docker container in that case). This ticket is about getting a native macOS ARM wheel

@almarklein almarklein reopened this Jan 27, 2023
@almarklein
Copy link
Member

@rbebb you're right, re-opened!

@rbebb
Copy link

rbebb commented Jan 27, 2023

@almarklein Thank you!

@west-rynes
Copy link

I did find static Apple Silicon FFMPEG binaries available here http://www.osxexperts.net

I was able to successfully download and test the static binary and it does work. Although it is not notarized, so I had to run xattr -c ffmpeg to bless it. Perhaps this binary could be included in the osx arm wheel so that it would work for users who need an easy way to get ffmpeg installed without using brew?

@bigcat88
Copy link

Thank you very much for this project.
Could you add binary wheels for macOS on m1? (Github already supports native macOS runners)

@almarklein
Copy link
Member

I don't have a lot of free cycles, so if anyone is up for fixing this, this'd be the steps:

GenevieveBuckley added a commit to GenevieveBuckley/napari-animation that referenced this issue May 24, 2024
jni pushed a commit to napari/napari-animation that referenced this issue Jun 4, 2024
In this PR:
1. `brew install ffmpeg` for Apple Silicon Mac arm64 runners on github
actions, since imageio-ffmpeg does not provide ffmpeg binaries for Apple
Silicon imageio/imageio-ffmpeg#71
2. Restrict PySide tests to Mac Intel (not Apple Silicon), and for all
operating systems python>=3.10. PySide is not available for these
configurations.
3. Drop python 3.8, and add python 3.12 to the CI test matrix
@rachelcenter
Copy link

The readme on the main page states that ffmpeg is included with the install from pypi. However after installation I get the error:

RuntimeError: No ffmpeg exe could be found. Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.

Not sure if it may be affecting it, but I am installing the package to a virtual environment.

exe is for windows. you're on a mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
8 participants