Is it possible to use an RTSP camera with OpenCV included with OpenVINO R3? In Python I'm using this:
cam = cv2.VideoCapture("rtsp://user:firstname.lastname@example.org/rtsph264480p")
... which will fail to open. On the other hand:
cam = cv2.VideoCapture(0)
...will succeed, using my laptop's built in webcam.
This failure to connect also occurs when using an example such as crossroad_camera_sample and specifying the RTSP device using the '-i' option. The output looks as follows:
InferenceEngine: API version ............ 1.2 Build .................. 13911 [ INFO ] Parsing input parameters [ INFO ] Reading input [ INFO:0] VIDEOIO: Enabled backends(6, sorted by priority): FFMPEG(1000); MSMF(990); DSHOW(980); VFW(970); CV_IMAGES(960); CV_MJPEG(950) [ ERROR ] Cannot open input file or camera: rtsp://user:email@example.com/rtsph264480p
I have also confirmed that when NOT using OpenCV included with OpenVINO, that accessing the RTSP camera with my default OpenCV (3.3) is just fine.
Any advice is appreciated. Thanks.
OpenVINO is working with RTSP stream, could you try only with rtsp://user:firstname.lastname@example.org/ ? The rest of the address indicate some video format, I think it might be the cause of the issue.
Running the PowerShell script to get the FFmpeg wrapper is the solution! I've confirmed by uninstalling/installing OpenVINO and breaking it again, and to confirm that the script solves the issue.