MJPG error - (ERROR)icvOpenAVI_XINE(): Unable to initialize video driver

asked 2015-11-19 18:57:09 -0500

Hi, when I run this Python code:

cap = cv2.VideoCapture("http://username:[email protected]:81/videostream.cgi?resolution=4&rate=60&dummy=param.mjpg")

obviously with the username and password set correctly, I get the following error:

(ERROR)icvOpenAVI_XINE(): Unable to initialize video driver.

This is not the case when accessing the stream here, in which it works: http://c-cam.uchicago.edu/mjpg/video....

I have tested this by trying to access my stream in VLC. It works, so the problem is probably with OpenCV. I compiled with ffmpeg support. I'm on OpenCV 3.0 on ubuntu 15.04.

Any ideas as to where I can prod about to see what's wrong?

edit retag flag offensive close merge delete