openFrameworks
openFrameworks copied to clipboard
ofVideoGrabber example uses ofQTKitGrabber on 10.10
I posted this to the of forum, but since this is a problem with one of the built-in examples, perhaps this is a more appropriate place to ask.
Short version: I'm trying to run one of the examples (meshFromCamera) and I get a runtime error with QTKit:
[ error ] ofQTKitGrabber: selected video device id 0 out of range for number of devices: 0
I'm running OSX 10.10.5 (Yosemite) and Xcode 7.2.1.
Is there any way to run these examples without QTKit? I'm new to OF: can I swap out QTKit for AVF?
Thanks!
Currently ofVideoGrabber chooses the grabber implementation based on your OS.
See this section of code:
https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworks/utils/ofConstants.h#L308-L317
I think this issue can be closed now. It seems to be using AVFoundation by default. I can change the example to the resolution of 640 x 480 instead of 320 x 240, it complains about that in my system