Questions tagged [avcapturemoviefileoutput]

70 questions
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…
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…
1
vote
0 answers

AVFoundation: Capture session with AVCaptureMovieFileOutput and AVCaptureStillImageOutput has lagging shutter sound

I have a camera view in my app where the user can take a still image, or a video recording. In my viewDidLoad, I add an AVCaptureMovieFileOutput and an AVCaptureStillImageOutput to a single capture session. The functionality works fine, but when you…
1
vote
1 answer

Why does switching cameras stop my AVCaptureSession to MovieFileOutput?

The iOS documentation says you can add and remove inputs while a session is running, for example to switch between front and back cameras. However when I try this, my session stops. I'm locking the session with beginConfiguration and…
1
vote
1 answer

IOS adding UIProgressView to AVFoundation AVCaptureMovieFileOutput

I am using AVCaptureMovieFileOutput to record videos and I want to add a UIProgressView to represent how much time there is left before the video stops recording. I set a max duration of 15 seconds: CMTime maxDuration = CMTimeMakeWithSeconds(15,…
1
vote
1 answer

How to save AVCaptureMovieFileOutput object into NSSavePanel

Hi i have to implement save movie file into custom folder, for this i am using NSSavepanel. I am new in NSSavepanel so i am not getting idea that how i add AVCaptureMovieFileOutput object to NSSavePanel My code is -(void)doSaveDocument { …
1
vote
2 answers

AVCaptureMovieFileOutput crash on iPhone 5S

My app is crashing on iPhone 5S and not on any other device and its pointing to an exception raised in startRecordingToOutputFileURL:recordingDelegate : Date/Time: 2013-11-01 13:18:03.672 -0400 OS Version: iOS 7.0.3…
Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131
1
vote
1 answer

AVFoundation - How to use beginConfiguration and commitConfiguration to change AVCaptureMovieFileOutput settings?

The Apple documentation for AVCaptureSession's beginConfiguration and commitConfiguration says that After calling beginConfiguration, you can for example add or remove outputs, alter the sessionPreset, or configure individual capture input or output…
golmschenk
  • 11,736
  • 20
  • 78
  • 137
0
votes
1 answer

AVKit used with Swift, yet no file created. Why?

Here is some simplified code that attempts to use AVKit in Swift to record a video to a file. No errors are thrown, yet no file exists when checked. What have I left out? I've tried several different variations, all with the same result. No file is…
Lee
  • 29
  • 3
0
votes
2 answers

How to crop a video recorded given by AVCaptureMovieFileOutput?

I've made CustomCamera which records video into full screen (by setting AVCaptureVideoPreviewLayer's videoGravity to resizeAspectFill) and saving the recording using AVCaptureMovieFileOutput. The recording works perfect but when I save the recorded…
0
votes
0 answers

AVCaptureMovieFileOutput.startRecording(to:recordingDelegate:) sometimes hang with no error/exception

I'm using the AVCaptureSession to record an iPad screen from a macOS device. The recording duration is long and I use AVCaptureMovieFileOutput.startRecording(to:recordingDelegate:) to start a new recording depending on a certain condition. (I don't…
0
votes
0 answers

iOS 12 Swift save TrueDepth data to video

I've been trying to write TrueDepth data as a quicktime movie. I have examined the example from https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/streaming_depth_data_from_the_truedepth_camera I understand that it is…
0
votes
1 answer

how to extract the video from the capture session using the delegate method?

I'm trying to learn how camera works in swift, so I created a simple viewController set the session, the input and output instances, and then I start recording, but the lenght of the video is always zero and the AVCaptureOutput.isRunning is always…
Lucas
  • 746
  • 8
  • 23
0
votes
1 answer

Called Delegate Method after Stopping Recording Video

When I stop recording video manually, using stopRecording() method of an instance of AVCaptureMovieFileOutput, it will call fileOutput(_:didFinishRecordingTo:from:error:) delegate method of AVCaptureFileOutputRecordingDelegate. But when I stop video…
rick
  • 1,009
  • 2
  • 10
  • 28
0
votes
1 answer

How to change AVCaptureSession audio volume?

I'm capturing video+audio with AVCaptureSession. Capture inputs are standard audio and video AVCaptureDevice. Capture output is AVCaptureMovieFileOutput. How one can change audio volume?