Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"FFMPEG Binary Not Found" Python

I installed moviepy package using pip. Whenever I import moviepy, the following error appears:

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-1-3137d113b348> in <module>()
      6 import os
      7 import math
----> 8 from moviepy.editor import VideoFileClip
      9 from IPython.display import HTML
     10 get_ipython().magic('matplotlib inline')

C:\Users\manch_000\Anaconda3\lib\site-packages\moviepy\editor.py in <module>()
     20 # Clips
     21 
---> 22 from .video.io.VideoFileClip import VideoFileClip
     23 from .video.io.ImageSequenceClip import ImageSequenceClip
     24 from .video.VideoClip import VideoClip, ImageClip, ColorClip, TextClip

C:\Users\manch_000\Anaconda3\lib\site-packages\moviepy\video\io\VideoFileClip.py in <module>()
      1 import os
      2 
----> 3 from moviepy.video.VideoClip import VideoClip
      4 from moviepy.audio.io.AudioFileClip import AudioFileClip
      5 from moviepy.Clip import Clip

C:\Users\manch_000\Anaconda3\lib\site-packages\moviepy\video\VideoClip.py in <module>()
     19 
     20 import moviepy.audio.io as aio
---> 21 from .io.ffmpeg_writer import ffmpeg_write_image, ffmpeg_write_video
     22 from .io.ffmpeg_reader import ffmpeg_read_image
     23 from .io.ffmpeg_tools import ffmpeg_merge_video_audio

C:\Users\manch_000\Anaconda3\lib\site-packages\moviepy\video\io\ffmpeg_writer.py in <module>()
     17 from tqdm import tqdm
     18 
---> 19 from moviepy.conf import FFMPEG_BINARY
     20 from moviepy.tools import verbose_print
     21 

C:\Users\manch_000\Anaconda3\lib\site-packages\moviepy\conf.py in <module>()
     59         FFMPEG_BINARY = 'ffmpeg.exe'
     60     else:
---> 61         raise IOError("FFMPEG binary not found. Try installing MoviePy"
     62                       " manually and specify the path to the binary in"
     63                       " the file conf.py")

OSError: FFMPEG binary not found. Try installing MoviePy manually and specify the path to the binary in the file conf.py

I downloaded the FFMPEG file but I don't know to specify the path in conf.py. Any help ?

like image 222
Sami Avatar asked Sep 05 '25 03:09

Sami


1 Answers

I had this same problem, but in ubuntu. It got solved by simply installing ffmpeg using apt-get:

sudo apt-get install ffmpeg
like image 186
rkmalaiya Avatar answered Sep 07 '25 21:09

rkmalaiya