I want to fetch the no of frame in python-opencv ,but it doesnot work perfectly. what can i do actually for this? I use this function to print the no of frames but it shows -1. what actually it is?
cam = cv2.VideoCapture(-1)
print(cam.get(cv2.CAP_PROP_POS_FRAMES))