Questions tagged [avcam]

iOS Audio Video Foundation capture APIs for recording movies and taking still images.

AVCam sample program of Apple demonstrates how to use the AV Foundation capture APIs for recording movies and taking still images.

86 questions
18
votes
1 answer

How to record video in ProRes codec on iOS?

I would like to capture video from device’s back camera directly to ProRes codec, now that .proRes422 and .proRes4444 are available as AVVideoCodecType options in iOS 11. But I receive an error that recording is: unsupported given the current…
Tzar
  • 5,132
  • 4
  • 23
  • 57
18
votes
3 answers

Consecutive calls to startRecordingToOutputFileURL:

The Apple docs seem to indicate that while recording video to a file, the app can change the URL on the fly with no problem. But I'm seeing a problem. When I try this, the recording delegate gets called with an error... The operation couldn‚Äôt…
danh
  • 62,181
  • 10
  • 95
  • 136
12
votes
8 answers

AVCam Project Crashes On iPad

Apple's demo source code for the AVCam demo app found here: https://developer.apple.com/library/content/samplecode/AVCam/Introduction/Intro.html crashes when attempting to take a picture (regardless of whether you build the Objective-C or Swift…
Matt Long
  • 24,438
  • 4
  • 73
  • 99
10
votes
1 answer

Mimicking iOS 6 camera rotation

I have been doing some experiments with a custom camera using AVFoundation and so far everything's been great. The AVCam example got me very far and I am quite happy with the results. However, one thing I still don't get is how the iOS default…
defer
  • 101
  • 2
7
votes
3 answers

AVCam memory low warning

This is less a question and more a record of what I've found around the AVCam sample code provided by Apple for iOS4 and 5 camera manipulation. The symptoms of the problem for me were that my app would crash on launching the AVCamViewController…
Red Nightingale
  • 669
  • 3
  • 19
7
votes
2 answers

AVCam not in fullscreen

I've integrated AVCam in my iOS app. The problem is in iPhone 4 the preview frame isn't fullscreen, it has empty side borders... How can I solve this? Thanks.
diogo.appDev
  • 1,595
  • 5
  • 16
  • 30
6
votes
3 answers

Why my iOS app does not ask user permission to access camera?

I develop iOS app and it uses camera. AVCaptureDeviceInput is used to interface to camera. I checked Authorisation status as - (void)checkDeviceAuthorizationStatus { NSString *mediaType = AVMediaTypeVideo; [AVCaptureDevice…
batuman
  • 7,066
  • 26
  • 107
  • 229
6
votes
2 answers

Uploading a file from AVCapture using AFNetworking

I have a video that is captured with AVCapture, and I'm trying to upload with AFNetworking with Swift. Code: let manager = AFHTTPRequestOperationManager() let url = "http://localhost/test/upload.php" var fileURL = NSURL.fileURLWithPath(string:…
MasterWizard
  • 857
  • 2
  • 15
  • 44
5
votes
2 answers

Reopening AVCaptureSession

I have an application which takes some pictures. My whole application is based on the AVCam sample code from WWDC 2010. I've messed with it a lot and yet, up until now I can't figure out how to release the camera view properly which releases the…
EladG
  • 794
  • 9
  • 21
5
votes
0 answers

AVCamDemo - completion handler for captureStillImageAsynchronouslyFromConnection doesn't get called

I've modified the AVCamDemo from WWDC 2010 to use AVCaptureSessionPresetPhoto instead of AVCaptureSessionPresetHigh. This works fine with iPhone 3GS (iOS 4.3.5), but when using an iPhone 3G (iOS 4.2.1), the completion handler for…
5
votes
3 answers

AVCaptureMovieFileOutput causing wrong orientation when saving photo to Camera Roll

I have an odd problem with captureStillImageAsynchronouslyFromConnection. If I save the image using jpegStillImageNSDataRepresentation while the video is mirrored, the image in the camera roll is rotated 90 degrees clockwise. However, if it's not…
W Dyson
  • 4,604
  • 4
  • 40
  • 68
5
votes
1 answer

AVCam with square camera

I'm using AVCam to capture image, but now I want to show square camera and take square image. How I can do it? Thank you very much!
5
votes
4 answers

show record timer while making video

I had implemented the concept of AVCaptureSession for recording video. -(void)startRecordingWithOrientation:(AVCaptureVideoOrientation)videoOrientation { AVCaptureConnection *videoConnection = [AVCamUtilities …
Sudha Tiwari
  • 2,499
  • 26
  • 50
4
votes
3 answers

captureStillImageAsynchronouslyFromConnection:stillImageConnection completionHandler not always getting called

I downloaded the AVCam demo from the apple site and tried to add a simple start screen (I added a StartViewController.{h,m,nib}) with a button that would then launch the AVCam demo. The code for the button is as follows (everything else is just the…
michael
  • 41
  • 2
4
votes
1 answer

iOS record video and play MP3 at the same time

I need to record video from the iPhone camera, and play an MP3 file at the same time. I started with AVCam sample code, which I'm sure you all have. It works great for recording video. However, I then added the following code to play an MP3. This…
t3_guy
  • 151
  • 1
  • 5
1
2 3 4 5 6