Questions tagged [avcaptureoutput]
51 questions
2
votes
1 answer
AVCapturePhotoOutput not providing preview buffer
Have a customised camera set up using AVCapturePhotoOutput.
Configuring the AVCapturePhotoOutput to provide a preview buffer (thumbnail) in addition to the main JPEG buffer.
Problem is that I'm receiving the preview buffer only once (first…

Shai Ben-Tovim
- 892
- 8
- 20
2
votes
1 answer
iOS AVFoundation's AVCapturePhotoOutput
I am trying to move away from AVCaptureStillImageOutput and to adopt AVCapturePhotoOutput, which was introduced in iOS 10.
However, my deployment os is iOS 9.0. Would AVCapturePhotoOutput still run on iOS 9?

Gizmodo
- 3,151
- 7
- 45
- 92
2
votes
0 answers
Deep Copy of CMImageBuffer or CVImageBuffer
Hi I am currently working on an app which needs to capture a Video and at the same time should be able to take frames to blend them.
The problem I am having is that my frames coming from:
func captureOutput(
captureOutput: AVCaptureOutput!,
…

ferdyyy
- 515
- 4
- 16
2
votes
1 answer
IOS Capture 12 MP Video (IPhone 6s) yields 1000x750
According to https://forums.developer.apple.com/thread/21694
Both iPhone 6s and 6s Plus can capture 12 megapixel photos (4032x3024)
on the rear-facing camera via the AVCaptureStillImageOutput, and can
deliver up to 30 fps 12 MP frames to your…

Heribert
- 613
- 1
- 9
- 27
2
votes
0 answers
AVCaptureStillImageOutput area selection
Here is a challenge I am facing, when saving an image taken from the camera, in an iOS app written in Swift.
I am not saving exactly what I want, I am saving more than necessary and it is not good.
These are the two relevant chunks of code for this…

Michel
- 10,303
- 17
- 82
- 179
1
vote
0 answers
VNImageRequestHandler and AVCaptureVideoDataOutput videoSettings with kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
With VNImageRequestHandler we ned to pass CVImageBuffer.
Which is basically the output of AVCaptureVideoDataOutput with a specific videoSetting.
override func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from…

NNikN
- 3,720
- 6
- 44
- 86
1
vote
1 answer
AVCaptureMetadataObjectDelegate not receiving callback
I am making QR scanner. My code is working when all of it written in one place inside ViewController but when I modularised it then I am not getting callback inside AVCaptureMetadataOutputObjectsDelegate.
import Foundation
import UIKit
import…

Thullo
- 97
- 15
1
vote
1 answer
Capture only camerapreview in AVCapture Swift
here is my code
import UIKit
import AVFoundation
class ViewController: UIViewController {
@IBOutlet weak var cameraView: UIView!
var image: UIImage!
var captureSession = AVCaptureSession()
var backCamera: AVCaptureDevice?
var…

Polaris Nation
- 1,085
- 2
- 18
- 49
1
vote
0 answers
AVCaptureOutput and Object Recognition
I'm new to Swift and have been finding Stackoverflow tremendously helpful in my troubleshooting so far. In my current project I'm trying to create a confidence label similar to the attached screen shot in addition to a already existing capture…

maaaaaaad
- 11
- 4
1
vote
1 answer
iPhone 7+, ios 11.2: Depth data delivery is not supported in the current configuration
This bug is driving me mad. I'm trying to produce the absolute minimal code to get AVDepthData from an iPhone 7+ using its DualCam.
I have this code:
//
// RecorderViewController.swift
// ios-recorder-app
import UIKit
import…

James
- 3,957
- 4
- 37
- 82
1
vote
1 answer
Using AVCaptureVideoDataOutput and AVCaptureAudioDataOutput
I have an AVCaptureVideoDataOutput session running set up as below, which works great and records the buffer to a file.
I want to also record the audio but there doesn't seem to be any in the buffer even though I've added the microphone as an input…

Jonathan Plackett
- 2,346
- 2
- 20
- 33
1
vote
1 answer
Recording Video with AVFoundation in Swift for iOS
I am having trouble recording video using the code provided. I am using example code created for recording video.
Specifically I am unable to compile this line without this error: "Cannot convert value of type 'ViewController' to specified type…

aforward
- 133
- 1
- 11
1
vote
1 answer
Simultaneous pictures with iPhone 7 Plus cameras
Is there a way to take a picture with the Telephoto lens and the Wideangle lens of the iPhone 7 Plus ?
I explored the different methods, but the best I can come with is to change the camera by removing the input…

cujo30227
- 720
- 7
- 15
1
vote
1 answer
How To Keep Two AVCaptureMovieFileOutput In Sync
I have two camera feeds coming into an OSX app and I am trying to save them using AVCaptureMovieFileOutput. It doesn't take long before they videos are out of sync. After a min test they can be off by 1 to 5 seconds. After an hour test they are off…

Skyler Lauren
- 3,792
- 3
- 18
- 30
1
vote
1 answer
How to stop captureOutput in iOS app
I found tutorial for working with QR codes - here it is. Using this method i can get image from device camera and find QR code there.
The problem is that when I change ViewController and even stop the AVCaptureSession - it seems that my camera is…

moonvader
- 19,761
- 18
- 67
- 116