I had the same problem, and after browsing the internet, I found a solution that worked. At a command prompt with administrator access:
conda install conda-build conda install cmake conda config
Edit the following file:
C: \ Program Files \ Anaconda2 \ pkgs \ cmake-3.6.3-vc9_0 \ info \ recipe \ buil.sh
add the following flag:
-DWITH_FFMPEG = 1
For example, in my case:
#!/bin/bash LDFLAGS=$LDFLAGS" -Wl,-rpath,$PREFIX/lib" \ ./bootstrap \ --verbose \ --prefix="${PREFIX}" \ --system-libs \ --no-qt-gui \ --no-system-libarchive \ --no-system-jsoncpp \ -- \ -DWITH_FFMPEG = 1 \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_FIND_ROOT_PATH="${PREFIX}" make make install
Finally:
conda build /conda
It worked with me.
On the other hand, I previously copied the opencv_ffmpegxyz.dll file from \ opencv \ build \ bin to \ Program Files \ Anaconda2 ; in my case opencv_ffmpe320_64.dll (64-bit), and I added a new environment variable called ffmpeg, indicating the path where the opencv_ffmpeg.dll files are located.
Sincerely.
source share