Search code examples
opencvffmpegvideo-captureopencv3.0

Video file not opening?(opencv 3.1.0 windows)


import cv2 
cap = cv2.VideoCapture("StopMoti2001.mpeg")
if cap.isOpened():
    print 'fine'
else:
    print 'not fine'

output is 'not fine' I have checked for various videos and I also moved the ffmpeg file moving to PATH and still the problem remains same. can you please suggest a solution


Solution

  • Solved my problem, Actually I was working in anaconda, so instead of moving ffmpeg to Python27, I should move it to Anaconda dll folder to make it work.