Once I run the following code I receive: warning: Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:545)
import cv2
import numpy as np
cap = cv2.VideoCapture('camera10.h264') #Captures h264 file from folder
while(cap.isOpened()):
ret, frame = cap.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.imshow('frame', gray)
if cv2.waitKey(20) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
The code was working about a week ago. It appears to be a ffmpeg issue. I have looked at the other ffmpeg issue on stackoverflow AND that did not help! Thank you.