Ask Your Question

BobsYerUncle's profile - activity

2015-11-20 01:36:13 -0600 asked a question MJPG error - (ERROR)icvOpenAVI_XINE(): Unable to initialize video driver

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?