Ask Your Question

Revision history [back]

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

Hi, when I run this Python code:

cap = cv2.VideoCapture("http://username:password@")

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:

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?