osx - Cannot read xvid video with opencv in python on mac -
i have been trying hours read xvid .avi file on mac python 2.7 , opencv. have installed latest versions using brew , opencv working in python , can open images , other movie files when try read xvid avi file
cap.cv2.videocapture('video.avi') ret, frame = cap.read() it fails frame empty. have installed ffmpeg brew , x264 , ran brew doctor. totally lost now. happy provide more information if needed. hope can me, thanks.
i discovered solution myself couple weeks later. first had install perian , via brew reinstall opencv python , ffmpeg support:
brew uninstall opencv brew install opencv --with-ffmpeg -v i hope useful others.
Comments
Post a Comment