avcapturesession

AVCaptureSession addInput issues with ios8

蓝咒 提交于 2020-01-14 10:37:09
问题 I have an application with AVCaptureSession which work correctly with previous iOS versions, but then I tried run it on device with ios8, application crashed sporadic. but the problem wasn't solved. Exception getting in "[session addInput:input];" . Please advice how to resolve. Please verify my below code and im getting error in [session addInput:input]; Printing description of error: Error Domain=AVFoundationErrorDomain Code=-11852 "Cannot use Back Camera" UserInfo=0x17c076e0

Using CATransform3D to create flip animation

爷,独闯天下 提交于 2020-01-13 13:11:14
问题 I'm trying to recreate UIViewAnimationTransitionFlipFromRight (and left). My reason for doing so, as shown below, is to make changes to AVCaptureVideoPreviewLayer in the middle of the animation, when the layer is obstructed. UIViewAnimationTransitionFlipFromRight won't let me stop the animation half way, make session changes, and continue, so here is my best shot at it. While this works, it's just not the same as UIViewAnimationTransitionFlipFromRight. The layer starts to rotate, but more of

Using CATransform3D to create flip animation

穿精又带淫゛_ 提交于 2020-01-13 13:11:14
问题 I'm trying to recreate UIViewAnimationTransitionFlipFromRight (and left). My reason for doing so, as shown below, is to make changes to AVCaptureVideoPreviewLayer in the middle of the animation, when the layer is obstructed. UIViewAnimationTransitionFlipFromRight won't let me stop the animation half way, make session changes, and continue, so here is my best shot at it. While this works, it's just not the same as UIViewAnimationTransitionFlipFromRight. The layer starts to rotate, but more of

Using CATransform3D to create flip animation

纵然是瞬间 提交于 2020-01-13 13:11:05
问题 I'm trying to recreate UIViewAnimationTransitionFlipFromRight (and left). My reason for doing so, as shown below, is to make changes to AVCaptureVideoPreviewLayer in the middle of the animation, when the layer is obstructed. UIViewAnimationTransitionFlipFromRight won't let me stop the animation half way, make session changes, and continue, so here is my best shot at it. While this works, it's just not the same as UIViewAnimationTransitionFlipFromRight. The layer starts to rotate, but more of

AVCaptureOutput didOutputSampleBuffer stops getting called

梦想与她 提交于 2020-01-13 03:12:49
问题 I have an issue with the delegate method didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection of AVCaptureOutput . It stops getting called within a second or two when I'm adding the sampleBuffer to a CFArray . If I remove the CFArray code, the delegate method continues to get called so I have no idea why the CFArray code is causing it to stop. I'd appreciate any help. @property CFMutableArrayRef sampleBufferArray; - (void)captureOutput:

Getting actual NSString of AvCaptureVideoDataOutput availableVideoCVPixelFormatTypes

依然范特西╮ 提交于 2020-01-12 14:31:11
问题 I am trying to find the accepted formats on an AVFoundation output: self.theOutput=[[AVCaptureVideoDataOutput alloc]init]; if ([self.theSession canAddOutput:self.theOutput]) [self.theSession addOutput:self.theOutput]; I am then inserting a breakpoint right after and: po [self.theOutput availableVideoCVPixelFormatTypes] and I get this: (NSArray *) $5 = 0x2087ad00 <__NSArrayM 0x2087ad00>( 875704438, 875704422, 1111970369 ) How do I get the string values of these format types? Thanks 回答1: On an

I want to throttle video capture frame rate in AVCapture framework

有些话、适合烂在心里 提交于 2020-01-12 08:47:29
问题 I am trying to throttle my video capture framerate for my application, as I have found that it is impacting VoiceOver performance. At the moment, it captures frames from the video camera, and then processes the frames using OpenGL routines as quickly as possible. I would like to set a specific framerate in the capture process. I was expecting to be able to do this by using videoMinFrameDuration or minFrameDuration, but this seems to make no difference to performance. Any ideas? NSArray

AVCaptureMovieFileOutput - no active/enabled connections

*爱你&永不变心* 提交于 2020-01-12 06:54:29
问题 I am trying to record video in my iPhone app using AVFoundation. But whenever I click the Record button app crashes with this message -[AVCaptureMovieFileOutput startRecordingToOutputFileURL:recordingDelegate:] - no active/enabled connections. I know same question asked in SO, but none of its answers helped me. My problem is the same code works with another application perfectly, and when I try using exactly same code in this app - crashes. But still photo capture is working fine. Adding my

How to use AVCaptureSession with Slide Over and Split View in iOS 9?

早过忘川 提交于 2020-01-11 15:49:06
问题 My team is developing a set of SDKs for barcode scanning, ID scanning and OCR. We use device's camera, specifically, AVCaptureSession , to obtain video frames on which we perform our processing. We're exploring new iOS 9 multitasking features Slide Over and Split View. Apple suggests opting out of these features for camera-centric apps, where using the entire screen for preview and capturing a moment quickly is a primary feature (reference). This is the approach the use in their sample app

How to use AVCaptureSession with Slide Over and Split View in iOS 9?

邮差的信 提交于 2020-01-11 15:48:21
问题 My team is developing a set of SDKs for barcode scanning, ID scanning and OCR. We use device's camera, specifically, AVCaptureSession , to obtain video frames on which we perform our processing. We're exploring new iOS 9 multitasking features Slide Over and Split View. Apple suggests opting out of these features for camera-centric apps, where using the entire screen for preview and capturing a moment quickly is a primary feature (reference). This is the approach the use in their sample app