Re: Display USB Video Camera output : AVFoundation?

2015-09-13 Thread Gordon Apple
It¹s a bug. I filed it a couple of days ago. 22666722 AVCaptureSession commitConfiguration calls deprecated code. On 9/13/15 2:00 PM, "cocoa-dev-requ...@lists.apple.com" wrote: > Well, AVCaptureView is not very malleable. I needed to use an > AVCaptureVideoPreviewLayer, which needed quite a fe

Re: Display USB Video Camera output : AVFoundation?

2015-09-12 Thread Jerry Krinock
Well, AVCaptureView is not very malleable. I needed to use an AVCaptureVideoPreviewLayer, which needed quite a few more lines of code than the zero I reported yesterday :( For the record, I have pasted in the working code below. The only problem is that this silly warning prints to the consol

Re: Display USB Video Camera output : AVFoundation?

2015-09-10 Thread Jerry Krinock
> On 2015 Sep 10, at 07:50, Gordon Apple wrote: > > Second, you can use AVCaptureView or AVCaptureVideoPreviewLayer. Holy cow. I just instantiated an AVCaptureView in InterfaceBuilder, added AVKit.framework to the project, build, run and what to my wondering eyes did appear but my ugly face,

Display USB Video Camera output : AVFoundation?

2015-09-10 Thread Gordon Apple
First, yes, AVFoundation is the way to go. Second, you can use AVCaptureView or AVCaptureVideoPreviewLayer. II recommend that you don¹t subclass AVCaptureVideoPreviewLayer, but rather embed it in your own custom CALayer. That gives you more freedom of control, and if you want to do things like cli

Re: Display USB Video Camera output : AVFoundation?

2015-09-09 Thread Britt Durbrow
One of my projects (still on the back burner at the moment, but slowly progressing nonetheless) is a DIY pick-and-place machine for doing small-run electronics. It uses standard VGA-quality USB webcams (such as the type that you can get off of eBay for under $10 each… often under $4) to do the

Re: Display USB Video Camera output : AVFoundation?

2015-09-09 Thread Quincey Morris
On Sep 9, 2015, at 21:22 , Jerry Krinock wrote: > > I’ve read that QTKit is deprecated but, oddly, I cannot find any mention of > deprecation here in the QTKit Programming Guide: The lack of a mention of deprecation isn’t so odd if you scroll to the bottom of the page and note that the last up

Re: Display USB Video Camera output : AVFoundation?

2015-09-09 Thread Shane Stanley
On 10 Sep 2015, at 2:22 pm, Jerry Krinock wrote: > > In a Mac app, I need to display real-time video (as in “movies”) from a USB > camera on the screen. Have a look at the sample code AVRecorder. -- Shane Stanley ___ Cocoa-dev mailing list (Coc

Re: Display USB Video Camera output : AVFoundation?

2015-09-09 Thread Jens Alfke
> On Sep 9, 2015, at 9:22 PM, Jerry Krinock wrote: > > In a Mac app, I need to display real-time video (as in “movies”) from a USB > camera on the screen. Can someone please confirm that AVFoundation the way > to go? I can confirm that it’s easy to use AVFoundation to display live video from

Display USB Video Camera output : AVFoundation?

2015-09-09 Thread Jerry Krinock
In a Mac app, I need to display real-time video (as in “movies”) from a USB camera on the screen. Can someone please confirm that AVFoundation the way to go? I’ve read that QTKit is deprecated but, oddly, I cannot find any mention of deprecation here in the QTKit Programming Guide: https://de