Questions tagged [avcapturephotooutput]
25 questions
5
votes
1 answer
Cropping CGRect from AVCapturePhotoOutput (resizeAspectFill)
I have found the following problem and unfortunatly other posts have not helped me to a working solution.
I have a simple app that shows the camera preview (AVCaptureVideoPreviewLayer) where the video gravity has been set to resizeAspectFill…

Robin
- 704
- 8
- 24
3
votes
1 answer
SwiftUI AVCapturePhotoOutput Does Not Work
I have a simple SwiftUI app with SwiftUI life cycle and I am trying to use
AVFoundation to automatically take a photo. I will do this based on conditions or
based on a timer - but for this example, I'd just like to take a photo on startup
and…

JohnSF
- 3,736
- 3
- 36
- 72
2
votes
1 answer
Crash in AVCapturePhotoOutput
My app was rejected because of a crash. I was unable to reproduce the crash locally, but thanks to the crash log provided by Apple, I was able to narrow down the offending code to this:
func capturePhoto() {
let photoOutputSettings =…

Jake
- 13,097
- 9
- 44
- 73
1
vote
0 answers
AVCapturePhotoOutput.capturePhoto produces "unknown error(-11800)" when attempting to capture ipad screen
I'm trying to take a screenshot from a connected iPad using AVCapturePhotoOutput, but when capturePhoto calls my delegate's didFinishingProcessingPhoto method, it gives an unknown error. I think I followed the instructions from the AVFoundation doc…

Ben Jones
- 919
- 1
- 8
- 22
1
vote
0 answers
Capturing ipad screenshot on macos with AVCapturePhotoOutput
I'm trying to write a mac app that can capture screenshots/video from an connected ipad like quicktime or zoom can. I'm trying to use the AVCapturePhotoOutput class, but the func capturePhoto(with: AVCapturePhotoSettings, delegate:…

Ben Jones
- 919
- 1
- 8
- 22
1
vote
1 answer
Error Capturing DepthData using AVCapturePhotoOutput
I'm trying to take a photo with depth data using the .builtInDualCamera. I've been following the Apple example, AVCamFilter (which works for me). From what I understood from a WWDC presentation, all you need to do is set up an AVCapturePhotoOutput…

P. Ent
- 1,654
- 1
- 12
- 22
1
vote
0 answers
availableRawPhotoPixelFormatTypes empty when taking RAW image
I'm working on a library to capture RAW images on iPhones camera. Official documentation and various Apple developer videos provides no fully working example but only chunk of codes.
When I run this code:
let capturePhotoOutput =…

Francesco Piraneo G.
- 882
- 3
- 11
- 25
1
vote
1 answer
"No active and enabled video connection" when trying to use AVCapturePhotoOutput
I need a way to take photos programmatically from a macOS app and I am using AVCapturePhotoOutput to achieve this.
First I initialize the camera with
class ViewController: NSViewController, AVCapturePhotoCaptureDelegate {
fileprivate var…

dclipca
- 1,739
- 1
- 16
- 51
1
vote
1 answer
Xamarin.iOS capture photo in 72 dpi
photoOutput = new AVCapturePhotoOutput();
if (CaptureSession.CanAddOutput(photoOutput))
{
CaptureSession.AddOutput(photoOutput);
photoOutput.IsHighResolutionCaptureEnabled = true;
}
TakePhoto button:
void TakePhoto()
{
…

ShittyCoder
- 11
- 1
1
vote
0 answers
iOS AVCapturePhotoOutput crashed due to shutter sounds
My app had a crash sometimes when taking a photo:
[output capturePhotoWithSettings:avsettings delegate:self];
and the crash info:
Fatal Exception: NSInvalidArgumentException
*** -[AVCapturePhotoOutput capturePhotoWithSettings:delegate:] You are not…

ZyusAn
- 369
- 1
- 4
- 13
1
vote
0 answers
Why is dual photo delivery unreliable?
Dual photo delivery is supposed to simultaneously capture a photo with the wide and tele cameras, but the tele photo looks like a digitally zoomed version of the wide, not optically zoomed:
By contrast, here's a 2x photo shot with the iPhone camera…

Kartick Vaddadi
- 4,818
- 6
- 39
- 55
1
vote
0 answers
Capture photo using photooutput, the size of the picture changes at random
Testing with iPhone XS, sessionPreset is set to photo.
The picture resolution is usually 4032x3024, but sometimes it is taken at 3088x1938. What's the reason?
Below is my code.
let photoSettings = AVCapturePhotoSettings(format:…

유병호
- 11
- 1
- 4
1
vote
2 answers
AVCapturePhotoSettings error in ios 10?
My application have use camera then compress image JPEG, with ios version < 10 , I have use AVCaptureStillImageOutput but ios version >= 10 I use AVCapturePhotoOutput error.I have setting code:`
self.photoOutput = [[AVCapturePhotoOutput alloc]…

Geo
- 61
- 1
- 6
0
votes
0 answers
(iOS Cam App)How to set flashMode to align the flash behavior with System Apple Camera App?
I am developing a custom camera app on iOS 15 and have encountered difficulties when working on the flash mechanism to make it work like the native Camera app. I noticed that when I call
[_photoOutput capturePhotoWithSettings:photoSettings…

kobunketsu
- 157
- 2
- 10
0
votes
0 answers
Camera preview is distorted when using builtInUltraWideCamera and LivePhotoCapture is enabled
When I enable LivePhotoCapture on my AVCapturePhotoOutput and switch to builtInUltraWideCamera on my iPhone 12, I get a distorted image on the preview layer. The issue goes away if LivePhotoCapture is disabled.
This issue isn't reproducible on…

Alex
- 1
- 2