Hello,
I hope you can help. I am very new to OpenFrameworks (and coding in general), so apologies if this post is incorrect / in the wrong place, or if this stuff has been covered already elsewhere (I did a forum search but couldn’t find a similar issue).
I am working through the OpenFrameworks Essentials book, and noticing that some things don’t seem to work anymore, through being deprecated, etc… I’ve managed to find and update most of these parts through the documentation, but am completely stuck on the section about grabbing a feed from a webcam.
The code I was using, was meant to let me switch on the webcam by pressing the ‘C’ key, but this did not work and would crash Xcode. I then scrapped that code, and tried the Camera Grabber example that comes with OF, but still not working.
The code compiles fine, but then the viewing window crashes and Xcode highlights the code in the screenshot I have attached here. Have no idea how to properly debug yet, but I keep seeing this error message:
[notice ] Device: 0: FaceTime HD Camera (Built-in)
[notice ] 0: FaceTime HD Camera (Built-in)
2018-06-21 10:43:17.032978+0100 videoGrabberExampleDebug[40901:1890400] OSXVideoGrabber Init Error: Error Domain=AVFoundationErrorDomain Code=-11815 “Cannot Use FaceTime HD Camera (Built-in)” UserInfo={NSLocalizedRecoverySuggestion=Stop any other actions using the FaceTime HD Camera (Built-in) and try again., AVErrorDeviceKey=<AVCaptureDALDevice: 0x10131f860 [FaceTime HD Camera (Built-in)][0x1a11000005ac8509]>, NSLocalizedDescription=Cannot Use FaceTime HD Camera (Built-in)}
2018-06-21 10:43:17.035752+0100 videoGrabberExampleDebug[40901:1890400] [General] An uncaught exception was raised
2018-06-21 10:43:17.035799+0100 videoGrabberExampleDebug[40901:1890400] [General] *** Can’t add a nil AVCaptureInput
2018-06-21 10:43:17.035933+0100 videoGrabberExampleDebug[40901:1890400]
If someone could point me in the right direction, I’d be hugely grateful. Many thanks!
Matt