openFrameworks icon indicating copy to clipboard operation
openFrameworks copied to clipboard

ofVideoGrabber example uses ofQTKitGrabber on 10.10

Open skijit opened this issue 8 years ago • 2 comments

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!

skijit avatar Jan 26 '17 01:01 skijit

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

bakercp avatar May 22 '17 17:05 bakercp

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

dimitre avatar Jan 24 '22 17:01 dimitre