[Bug 35780] unhandled exception; qcap; while running cura.py

WineHQ Bugzilla wine-bugs at winehq.org
Sun Dec 8 09:06:02 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=35780

Damjan Jovanovic <damjan.jov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |damjan.jov at gmail.com

--- Comment #4 from Damjan Jovanovic <damjan.jov at 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.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list