[Pythonmac-SIG] Issue with QTKit + CoreVideo usage

Ronald Oussoren ronaldoussoren at mac.com
Fri Jul 29 08:12:55 CEST 2011


On 28 Jul, 2011, at 18:17, Damiano ALBANI wrote:

> Hello,
> 
> In the context of prototyping a GStreamer plugin, I'm trying to use the QTKit API in Python to capture from a video source.
> On the overall, it works, I can grab frames and save them as files for instance.
> Now, I'd like to access low-level frame data but I didn't managed to do it in Python.
> I've uploaded a simple test case on "http://pastebin.com/kyhggtWM".
> Here are the kind of messages that I get, each time the function "captureOutput_..." is called:
> 
>   ...
>   2011-07-28 18:01:51.101 Python[446:580b] PyObjCPointer created: at 0x1033103d0 of type {__CVBuffer=}@@
>   2011-07-28 18:01:51.102 Python[446:580b] *** Ignoring exception: Class OC_PythonObject: no such selector: _cfTypeID
>   ...
> 
> Any idea what I'm doing wrong here? I'm new to the world of PyObjC so I might be forgetting to import stuff or something trivial like that.
> BTW, I'm using Mac OS X 10.6.8.

The test case looks correct, which means this is likely a problem with PyObjC's metadata (which describes features of the Cocoa API that cannot be extracted from the ObjC runtime).

I'll look into this during the weekend.

Ronald
> 
> Thanks,
> 
> -- 
> Damiano ALBANI
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110729/e5dca9a2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110729/e5dca9a2/attachment.bin>


More information about the Pythonmac-SIG mailing list