python - Ffmpeg and OpenCv versions incompatibility -


i installed python 2.7.5 , opencv 2.4. i'm trying follow instructions of page http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_gui/py_video_display/py_video_display.html , suggest install proper version of ffmpeg. installed following instructions of page http://adaptivesamples.com/how-to-install-ffmpeg-on-windows/ tells user how add ffmpeg environment variables. however, sample code doesn't work. , don't know if because versions of opencv , ffmpeg incompatible 1 another. i'll leave sample code here. reading :d

import numpy np import cv2  cap = cv2.videocapture('vtest.avi')  while(cap.isopened()):     ret, frame = cap.read()      gray = cv2.cvtcolor(frame, cv2.color_bgr2gray)      cv2.imshow('frame',gray)     if cv2.waitkey(1) & 0xff == ord('q'):         break  cap.release() cv2.destroyallwindows() 


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -