ffmpeg is not being detected by Spyder

Massyanya picture Massyanya · Nov 9, 2016 · Viewed 8.2k times · Source

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?

Answer

Carlos Cordoba picture Carlos Cordoba · Nov 10, 2016

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