First time here? Check out the FAQ!
answered 2020-10-09 02:40:56 -0600
if you play a video file, it will come eventually to an end, and cv2.Videoapture will deliver empty frames.
you're already checking the ret value, but you need something like:
ret
if(ret == False): break; # end of movie