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
0 answers

ZXing iOS barcode scanning: ZXCapture custom camera size

I would like to use the ZXing iOS framework to bring barcode scanning to my iOS application. After downloading the Github project (https://github.com/TheLevelUp/ZXingObjC) I played around with the iOS demo project. In the demo project the phone…
Laurenz Glück
  • 1,762
  • 3
  • 17
  • 38
1
vote
2 answers

AVCaptureStillImageOutput.pngStillImageNSDataRepresentation?

I am working with AVCaptureStillImageOutput for the first time, I save a JPEG image at some point. Instead of a JPEG image I would like to save a PNG image. What do I need to do for that? I have those 3 lines of code along the app: let…
Michel
  • 10,303
  • 17
  • 82
  • 179
1
vote
1 answer

Stop camera capturing session in iOS camera

I capture images from iPhone camera using AVCaptureSession, AVCaptureDeviceInput, AVCaptureVideoDataOutput. Image capturing is implemented as dispatch_queue_t sessionQueue = dispatch_queue_create("session queue", DISPATCH_QUEUE_SERIAL); …
batuman
  • 7,066
  • 26
  • 107
  • 229
1
vote
1 answer

Force Rotate iOS Even When Device's Portrait Orientation Lock is ON

My app needs to somehow mimic the iOS original Camera App, that even the device's AUTOROTATE is locked, the ViewController or specifically the AVCaptureVideoPreviewLayer will rotate. So far, what I did to my project is this: Check the Landscape…
Glenn Posadas
  • 12,555
  • 6
  • 54
  • 95
1
vote
0 answers

How to record video in 320 x 120 frame size

I want to record video of size 320 X 120 frame size but it's not happening,i am able to record video but not getting output video file in the desired frame formate.
objectiveCoder
  • 579
  • 5
  • 17
1
vote
0 answers

Memory keep growing using AVCaptureSession

Here is my code. I use such code in a clean new Xcode project, memory usage is steady. But in the application of my company, memory consumption keeps growing every about 7 seconds and finally the app crashes. I simulate video buffer processing…
wqyfavor
  • 519
  • 1
  • 4
  • 14
1
vote
1 answer

Live Screen Sharing - Not sharing AVCaptureVideoPreviewLayer iOS

I am using Screen Sharing module of Open Tok. I want to get camera input using AVCaptureVideoPreviewLayer and share the screen by Open Tok, but the preview layer is not being shared. All other controls are shared though. How can I achieve this?
user1323325
1
vote
0 answers

Swift: Using AVFoundation to Capture Stills

I've been attempting to tackle this subject for a class, but it has been an absolute nightmare for me. My project is simple note-taking application. It has a table of notes and when you click the button to add a note, it modally presents a new view…
user3281385
  • 121
  • 1
  • 6
1
vote
1 answer

Any example of what is each constant means in AVFoundation MediaTypes

I am new in AVFoundation, from the Apple document, it is not very clean that what each AVFoundation MediaType means…
user454083
  • 1,337
  • 3
  • 16
  • 31
1
vote
2 answers

Getting only white screenshot

I can read the barcode but I can't get the snapshot of the screen. getScreenImage function gets a white screen. How can I get the screenshot including the screen which I see the camera view? Thank you. @interface igViewController ()…
1
vote
0 answers

ios:how to continiusly send images to server from camera feed?

I am implementing a feature in my app that needs to take images from camera live feed and send it to server for barcode detection. I already have an message class that I can pass an image to and it will take care the communication with the server.…
user2067051
  • 99
  • 2
  • 15
1
vote
1 answer

Make video from frames captured in captureOutput:didOutputSampleBuffer:fromConnection

How to make movie from frames captured in -captureOutput:didOutputSampleBuffer:fromConnection and save to photo library ? Thank You.
arturdev
  • 10,884
  • 2
  • 39
  • 67
1
vote
1 answer

AVCaptureVideoPreviewLayer capture angle is shortened?

I am having some issues trying to know why the AVCaptureVideoPreviewLayer is shortening the angle of the camera. By that I mean that the camera has more zoom that the default camera or the UIImagePickerController camera. I tested the…
Michael Ortiz
  • 757
  • 1
  • 8
  • 21
1
vote
1 answer

How to save image using AVCaptureDevice

I'm using Apple's GLCameraRipple example code in my project and I was wondering if there is a way to take a pic/video? Project can be found at https://developer.apple.com/library/ios/samplecode/GLCameraRipple/Introduction/Intro.html
1
vote
0 answers

Cannot get metadata dictionary from AVCaptureOutput

I'm using the following AVCaptureVideoDataOutputSampleBufferDelegate method to get the Brightness Value, Exposure, and other bits of metadata from a video output in realtime. However, the meta data dictionary returns NULL. I took the code snippet…
silverSuns
  • 218
  • 2
  • 16