https://bugs.winehq.org/show_bug.cgi?id=35780
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov@gmail.com
--- Comment #4 from Damjan Jovanovic damjan.jov@gmail.com --- There are problems in Python's VideoCapture module (http://videocapture.sourceforge.net/).
It attempts to use the camera as the initial filter and a sample grabber as the intermediate filter, and expects the sample grabber to connect to the default renderer:
hr = self->ob_pBuilder->RenderStream( &PIN_CATEGORY_CAPTURE, // changed from ..._PREVIEW to ..._CAPTURE &MEDIATYPE_Video, self->ob_pSrc, // src pF, // via NULL // dest ; or pNullRenderer ); if (FAILED(hr)) { PyErr_SetString(VidcapError, "Capture Graph could not be created."); cleanup(self); return FALSE; }
(self->ob_pSrc = camera, pF = sample grabber)
This fails on Wine, in all 3 of the examples that come with VideoCapture-0.9.5. That error is printed out:
Traceback (most recent call last): File "exa1_snapshot.py", line 3, in <module> cam = Device() File "C:\Python27\lib\VideoCapture.py", line 49, in __init__ self.dev = vidcap.new_Dev(devnum, showVideoWindow) vidcap.Error: Capture Graph could not be created.