# Example: Read and show the first frame ret, frame = cap.read() if ret: cv2.imshow('Frame', frame) cv2.waitKey(0) cv2.destroyAllWindows()