Questions tagged [avcapturevideodataoutput]
12 questions
7
votes
5 answers
AVFoundation record 10 bit HDR video on iPhone 12
iPhone 12/12 pro supports recording Dolby vision HDR video in 10 bit format instead of 8 bits but it is not clear from iOS 14.1 SDK if AVCaptureVideoDataOutput supports delivery of 10 bit sample buffers that can be appended to video file using…

Deepak Sharma
- 5,577
- 7
- 55
- 131
4
votes
2 answers
AVCaptureSession - add multiple outputs in parallel
I'm trying to record captured frames as video while performing image processing tasks on the frames at the same time in parallel.
I have a single AVCaptureSession which I have added two separate outputs to…

devuser27
- 81
- 2
3
votes
1 answer
Correctly Record Video Using AVCaptureVideoDataOutput
Background:
I am using AVCaptureVideoDataOutput in alignment with AVCaptureSession and other various AV tools to create a video session such that I can create a camera session. I have a live feed of what the camera sees it is on the screen.
I use…

impression7vx
- 1,728
- 1
- 20
- 50
2
votes
1 answer
kCVPixelBufferHeightKey and width not working
Is there a way to set a custom AVCaptureVideoDataOutput for a desired output setting. What Im trying to achieve is below. However the buffer width and height never change .What Im trying to achieve is a custom height and a width for the video pixel…

danu
- 1,079
- 5
- 16
- 48
1
vote
1 answer
Text detection in live camera swift
I am detecting text in live camera using swift but frames are not identified correct words.
The application works fine when I try to detect text in image and frames draw at exactly around the world.
for live camera what i did is create a capture…

Maximus Tech
- 21
- 5
1
vote
1 answer
Use avfoundation to recrod video and save it to photo gallery ~ Swift5
My swift code below uses avfoundation to take a photo and place it on the imageview all in one class. I want to uses this code as a base and just when the uses calls func startVideo its recording and then when the user calls saveVideo func then it…
user12655184
1
vote
2 answers
Output of CIFilter has different effect for different sizes of same image
func getImageWithFilter(by filterType: MainViewModel.FilterType,
image: CIImage) -> CIImage {
guard filterType.filterEnabled,
let filter = CIFilter(name: filterType.rawValue)
else {
return image
}
…

Eugene Lezov
- 722
- 7
- 12
0
votes
0 answers
How to improve quality in terms of readability and resolution for images taken using AVCaptureVideoDataOutput()?
We are using AVCaptureVideoDataOutput() as photo output Instance, to capture images. But there was major reduction in the quality of the image as compared to UIImagePickerController which we were using previously. We cannot use AVCapturePhotoOutput…
0
votes
1 answer
captureOutput from AVCaptureVideoDataOutputSampleBufferDelegate is not being called
I am seeking to leverage the device camera as a light sensor as described in this post. Unfortunately, the captureObject function is never called by the AVCaptureVideoDataOutputSampleBufferDelegate. It may be relevant that I am attempting this…

John Harrington
- 1,314
- 12
- 36
0
votes
0 answers
CMSampleBufferGetDataBuffer() returns nil value - Cocoa Swift
I am trying to capture my system's screen and process the data. But I get nil value for CMSampleBufferGetDataBuffer for the sample buffer I get in captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection:…

prabhu
- 1,158
- 1
- 12
- 27
0
votes
1 answer
Detect camera condition in AVCaptureSession swift
I am working on a swift application and I want to take a picture during the video when the camera is not moving or when user focuses on something.
i used AVCaptureVideoDataOutputSampleBufferDelegate *captureOutput method which giving me image every…

Maximus Tech
- 21
- 5
0
votes
1 answer
AVCaptureVideoDataOutput and AVCaptureAudioDataOutput same queue
One of the recent sample codes from Apple uses same serial queue for receiving samples from AVCaptureVideoDataOutput and AVCaptureAudioDataOutput delegate. I need to know if this is acceptable practice from performance standpoint. Should one have…

Deepak Sharma
- 5,577
- 7
- 55
- 131