Quantcast
Channel: MediaSPIP
Viewing all articles
Browse latest Browse all 118114

OpenCV-Python installation (missing ffmpeg) - Windows

$
0
0

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')
cap.read() #(False, None)

When using still images or my laptop webcam it works (notice that the VideCapture returns None). Obviously, something is wrong with ffmpeg.

I have tried a couple of things:

  1. Install ffmpeg binaries in my environment/PATH (works fine separately but apparently OpenCV cannot call it since it looks for specific dlls).
  2. Move to the bin folder (which is in my path as well) the dlls from the compiled version in sourceforge:

    opencv_ffmpeg310_64.dll

    opencv_ffmpeg310.dll

Neither of the two options worked. Any ideas?


Viewing all articles
Browse latest Browse all 118114

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>