Ask Your Question

Revision history [back]

cap.get(cv2.CAP_PROP_FPS) gives 0.0 for Sricam IP camera. How to get framerate of any type of video?

cap.get(cv2.CAP_PROP_FPS) gives 0.0 for Sricam IP camera URL of the format rtsp://<ip_address>:<port>/onvif1. But it works fine and gives 25.0 for DVR RTSP URL. rtsp://<user>:<agreeya>/<ip_address>:<port>/channel=<id>