0

I just want to read AVI video on colab. And I have read MPEG video succeed with opencv on colab. Why I can't read AVI video on colab with opencv? My code just like this:

import cv2
path = '/content/video.avi'
cap = cv2.VideoCapture(path)
flag, frame = cap.read()

I am sure the file exists. Is this problem maybe releated with ffmpeg?

ZheZhang
  • 21
  • 2

0 Answers0