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

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -