Questions tagged [avcapture]

iOS video capture API for both Swift and Objective-C

Some common high-level objects used with this API:

  • AVCaptureDevice
  • AVCaptureSession
  • AVCaptureVideoPreviewLayer

related tags:

223 questions
1
vote
1 answer

AVCaptureSession preview screen orientation in iOS5

I asked this question a while back. I accepted the answer because it worked... until I tried it out on iOS5. My app is landscape only. Opening the camera preview and holding the device with the home button on the right, the image in the preview…
soleil
  • 12,133
  • 33
  • 112
  • 183
1
vote
1 answer

Change iPhone Camera Shutter Sound in App

How can I change the sound that plays when an image is captured with an iPhone? I am using AVCapture and I want to capture still images (rather than grabbing frames from video) for image quality sake. Thanks in advance!
SeilerH
  • 87
  • 2
  • 9
1
vote
3 answers

Positioning content in a CALayer

How do I position content in a CALayer so that it scales to fit the width (preserving aspect ratio) and is positioned at the top of the layer? More specifically, I'm trying to achieve this positioning with an AVCaptureVideoPreviewLayer. If I set…
scttnlsn
  • 2,976
  • 1
  • 33
  • 39
1
vote
1 answer

AVCaptureSession, multiple AVCaptureAudioDataOutputs

Enviroment iphone arm7/sdk6.0 xcode 4.5 Use-case Based on the AVCam sample Capture A/V into a file using AVCaptureMovieFileOutput Add an additional AVCaptureAudioDataOutput to intercept the audio being written to the file while…
NadavRub
  • 2,520
  • 27
  • 63
1
vote
1 answer

How to resolve "_vImagePermuteChannels_ARGB8888", referenced from: ERROR?

When I am converting RGBA to ARGB, I used this code: vImage_Buffer src; src.height = height; src.width = width; src.rowBytes = srcBytesPerRow; src.data = srcRows; vImage_Buffer dest; dest.height = height; dest.width = width; dest.rowBytes =…
sreenivas
  • 399
  • 2
  • 5
  • 20
1
vote
0 answers

AVCapture pause screen after take photo

I have used demo example of avcapture ,i wanna display image in imagview in viewcontroller after take photo i have use code { ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; [library enumerateGroupsWithTypes:ALAssetsGroupSavedPhotos…
Macl
  • 143
  • 7
1
vote
1 answer

what is difference between AVCapture and camera default of iPhone

my app use AVCapture for capture image, this is my supervisor's ideal. But i research in internet and a can't get any information about the difference between AVCapture and default camera of iPhone or iPop (tab focus or camera quality...). please…
Makio
  • 465
  • 6
  • 15
1
vote
1 answer

Can't Capture AVCaptureVideoPreviewLayer

In my app I am opening a video preview layer with this code: AVCaptureDeviceInput *captureInput = [AVCaptureDeviceInput deviceInputWithDevice:[AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo] …
orthehelper
  • 4,009
  • 10
  • 40
  • 67
1
vote
0 answers

Unsual value returned using AVCaptureSession

I am using AVCapture Session to detect some images in realtime and match the image data through XML data in my app and SURF algorithm ( SURF code available open source). Now my XML consists of Img Data ( floating point numbers representing image…
madLokesh
  • 1,860
  • 23
  • 49
1
vote
1 answer

CGAffineRotation Skews Image Photos

My iOS has registered for device orientation change notifications via NSNotificationCenter, and has a method that responds to the different orientation changes. The following code is called to change the orientation and location of a view when…
The Kraken
  • 3,158
  • 5
  • 30
  • 67
0
votes
1 answer

iPhone front camera - tap to focus?

I'm trying to figure out if tap-to-focus is possible via the front facing camera device. I've seen on the iPhone4 wikipedia that it supports focus, but not much more detail. When I call isFocusPointOfInterestSupported on the front facing camera it…
tyler
  • 2,865
  • 1
  • 23
  • 28
0
votes
1 answer

While playing a sound does not stop recording Avcapture

I have a view where a video record, then I have a section AVAudioPlayer, the problem is that when the sound, you stop registazione Video. testAudioPlayer = [[AVAudioPlayer alloc] initWithData:sampleData error:&audioError]; [sampleData…
0
votes
1 answer

Using xcode to access rear camera, iphone iOS5

I'm sorry if this is already answered... All I need is how to fire up the rear facing camera and display it in an image view...no taking pictures, no accessing the photo library, just turning on the camera...simple. I believe AVCapture is the…
Stu Bisch
  • 11
  • 1
0
votes
1 answer

Create 100 X 100 frame around camera screen

I am working on a camera based app. It is related to histogram. When I open up the app it should start the camera and it should make frame of 100 x 100 in the center of the screen. The camera starts showing the images on screen but I don't know how…
ilaunchpad
  • 1,283
  • 3
  • 16
  • 32
0
votes
0 answers

iPhone camera angle difference between iOS15 and iOS16

Hi i'm working on develop iOS custom camera app. Recently I discovered that my camera app works differently on iOS 15 and iOS 16. On iOS 15, the video was recorded without any cropped images, and on iOS 16, it was recorded with some cropped images…