Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ofVideoGrabber example uses ofQTKitGrabber on 10.10 #5429

Open
skijit opened this issue Jan 26, 2017 · 2 comments
Open

ofVideoGrabber example uses ofQTKitGrabber on 10.10 #5429

skijit opened this issue Jan 26, 2017 · 2 comments

Comments

@skijit
Copy link

skijit commented Jan 26, 2017

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!

@bakercp bakercp changed the title OF example apps using ofQTKitGrabber ofVideoGrabber example still using ofQTKitGrabber May 22, 2017
@bakercp
Copy link
Member

bakercp commented May 22, 2017

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 bakercp changed the title ofVideoGrabber example still using ofQTKitGrabber ofVideoGrabber example uses ofQTKitGrabber on 10.10 May 22, 2017
@dimitre
Copy link
Member

dimitre commented Jan 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants