python 3.x - opencv VideoCapture doesn't read from avi -
i upgraded ubuntu 16.04
, installed anaconda3
, installed opencv3
conda install -c https://conda.anaconda.org/menpo opencv3
. tried reading avi
file, cap = cv2.videocapture('/path/to/avi')
cap.read()
returns (false,none)
. capturing webcam works fine. have idea causing problem? read might have ffmpeg
, have it:
$ ffmpeg -version ffmpeg version n-79139-gde1a0d4 copyright (c) 2000-2016 ffmpeg developers built gcc 4.8 (ubuntu 4.8.4-2ubuntu1~14.04.1) configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab libavutil 55. 19.100 / 55. 19.100 libavcodec 57. 30.100 / 57. 30.100 libavformat 57. 29.101 / 57. 29.101 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 40.102 / 6. 40.102 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100
Comments
Post a Comment