OpenCV conda installation (missing ffmpeg) - Windows

asked 2017-02-08 06:22:24 -0500

Franz gravatar image

updated 2017-02-08 12:49:46 -0500

So I managed to install OpenCV 3.1 using conda and Python 3.5 and everything seems to work fine.

However when trying to import a video file via ffmpeg I get this:

import numpy as np
import cv2

cap = cv2.VideoCapture('data\vtest.avi')

#(False, None)

So obviously something is wrong with ffmpeg (when using still images or my laptop webcam works).

I have tried a couple of things:

  1. Install ffmpeg binaries in my environment (works fine separately but OpenCV cannot call it?).
  2. I have moved to the bin folder (which is in my path) the dlls from the compiled version in sourceforge:



But neither of the two options worked. Any ideas?

edit retag flag offensive close merge delete