moviepy: RuntimeError: No ffmpeg exe could be found. Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.
Expected Behavior
not getting an error
Actual Behavior
getting the error in the title
Steps to Reproduce the Problem
be me and try to run from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
ffmpeg is installed with apt and i can confirm its location in /usr/bin/
. additionally ive also executed pip install imageio-ffmpeg
in the python virtual environment and it is installed. ive logged platform.python_version()
to confirm i was in the 3.8.0 venv.
executing a plain interpreter terminal in the venv and trying to import it manually does not resault in an error. only during execution. the execution is in a flask application deployed with gunicorn and nginx.
Specifications
- Python Version: 3.8.0
- Moviepy Version: the newest
- Platform Name: Ubunto server
- Platform Version: 18.04
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 26
Ok, try this before importing moviepy:
For those on MAC, if you install ffmpeg with Homebrew, then the path is different, so the code become :
import os
os.environ["IMAGEIO_FFMPEG_EXE"] = "/opt/homebrew/Cellar/ffmpeg/5.1/bin/ffmpeg"
sudo apt install ffmpeg it will fix the issue
For Mac users, use this command:
brew install ffmpeg
it shows RuntimeError: No ffmpeg exe could be found. Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable. while using on android
please help!
step 1
python3 -m pip install moviepy
step 2
apt install ffmpeg
Hi, I am also getting the same error while working in pydroid for Android (similar to linux environment) But I am not able to solve this issue even after the
import os
. My error-Any help will be appreciated ๐
That made the trick for me. Thank you.
Unfortunately, this doesnโt work. Trying to run it on pydroid 3, Android version 12.