Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffmpeg is not being detected by Spyder

Running almost every code from OpenAi gym in spyder by Anaconda (for instance this code: https://gym.openai.com/evaluations/eval_y5dnhk0ZSMqlqJKBz5vJQw ) I run into the following error message:

DependencyNotInstalled: Found neither the ffmpeg nor avconv executables. On OS X, you can install ffmpeg via 'brew install ffmpeg'. On most Ubuntu variants, 'sudo apt-get install ffmpeg' should do it. On Ubuntu 14.04, however, you'll need to install avconv with 'sudo apt-get install libav-tools'.

However when I type brew install ffmpeg in terminal, I get Warning: ffmpeg-3.2 already installed and nothing happens.

Any ideas on how to fix this error?

like image 337
Massyanya Avatar asked Nov 09 '16 14:11

Massyanya


People also ask

Why is FFmpeg not recognized?

If you try that right now, you'll get an error saying that the ffmpeg is not recognized as an internal or external command. That basically means windows has not idea what you're talking about. All we need to do is add C:\ffmpeg\bin to our system path, and it'll understand us.


2 Answers

You need to install a copy of ffmpeg that can be recognized by Anaconda. Please run this command in a terminal to do that

conda install -c conda-forge ffmpeg
like image 143
Carlos Cordoba Avatar answered Oct 24 '22 08:10

Carlos Cordoba


Simply download and install ffmpeg and then add to path. After restarting the Jupyter notebook server, it worked for me.

See full instructions here: http://blog.gregzaal.com/how-to-install-ffmpeg-on-windows/

like image 1
CGFoX Avatar answered Oct 24 '22 08:10

CGFoX