Questions tagged [avcapturemoviefileoutput]

70 questions
3
votes
1 answer

How to set videoMaximumDuration for AvcaptureSession in iOS

I am using AVCaptureSession for Recording Video.But i can't able to set maximum Video length.If i am using ImagePicker Controller there is method is used for set maximum video duration like videoMaximumDuration .But In AVCaptureSession how i can…
3
votes
1 answer

How to record mp4 file using AVCaptureSession?

I am recording .mov using AVCaptureMovieFileOutput with AVCaptureSession. I want to record .mp4 file, i guess it is not possible with AVCaptureMovieFileOutput, Any idea how to record .mp4 file? Edit: I have googled and found, there is a way…
Newbee
  • 3,231
  • 7
  • 42
  • 74
3
votes
2 answers

Modify AVCaptureSession before saving with AVCaptureMovieFileOutput

Use Case: I want to capture input from the camera, draw on top of the captured frames (and sound) and save the result as a .mov file. I see that I can capture input for the camera using AVCaptureSession. I can save this to a .mov file using…
Onato
  • 9,916
  • 5
  • 46
  • 54
2
votes
0 answers

swift iOS add CIFilter to video in realtime using moviefileoutput

I am trying to swipe through CIFilters to apply to my live video camera, however I am using movieFileOutput & the examples I have seen utilize videoDataOutput. Is it possible to merely create a subview of imageView on my previewView? Or does it…
2
votes
0 answers

Very fast video capture (vs AVCaptureMovieFileOutput)?

I'm working on a video capture app similar to Vine or Instagram. This lets the user hold down to record, release touch to pause, and continue again by touching. I have my prototype working, I'm capturing the video, merging them and cropping them…
user339946
  • 5,961
  • 9
  • 52
  • 97
2
votes
1 answer

IOS8: Camera preview flickers when recording to a file and using AVCaptureSession/commitConfiguration

Ever since IOS8, I am experiencing a strange problem when using commitConfiguration We record 5 second files via AVCaptureMovieFileOutput. When changing the files, the camera preview flickers and fades to black for a second. Also there is a stutter…
lelikg
  • 43
  • 5
2
votes
1 answer

UIImagePickerController stream type used to append .MOV?

What stream is employed in iOS7 by AVCaptureMovieFileOutput in a UIImagePickerController to append video frames from the camera to it's temporary .MOV file? A .MOV file is created in a temporary location, and then further appended to by an…
2
votes
1 answer

Recording video with AVCaptureSession

I'm trying to record a video using AVCaptureSession and AVCaptureMovieFileOutput but whenever I try to start recording I get this error in the didFinishRecordingToOutputFileAtURL AVCaptureFileOutputRecordingDelegate method. Error…
null0pointer
  • 1,533
  • 3
  • 15
  • 29
2
votes
1 answer

Play the same sound when start/stop recording video with AVCaptureMovieFileOutput that is heard in device's camera app?

I am creating a camera app that uses AVFoundation. When I take a picture with my AVCaptureStillImageOutput object, it makes the same "shutter" noise that the default camera makes without me needing to tell the AVCaptureStillImageOutput to do so,…
Will
  • 1,697
  • 17
  • 34
2
votes
2 answers

AVFoundation - How save AVCaptureMovieFileDataOutput to file?

I've been going through the AV Foundation Programming Guide. In particular I've been trying to get the "Putting it all together" part in the "Media Capture" section to work. I've made some minor changes to the code in the tutorial, but nothing that…
1
vote
1 answer

Record and play Video based on TensorFlow example Swift

#DEFINE UPDATE I realised I had forgotten to ask for recording permission. That has now been fixed. However, when I press the "Record button" I get the error Cannot create file. So when I start the recording, something is fishy with the path…
El_Loco
  • 1,716
  • 4
  • 20
  • 35
1
vote
0 answers

iOS: AVCaptureSession no audio when maxDuration met

today I have an issue with the AVCaptureSession. My issue is that when I set the MaxRecordedDuration to let's say 23 seconds, if the 23 seconds is reached and the recorder is still recording then it will stop with an error. I have no issue with…
1
vote
0 answers

Rotate saved video before uploading to server Swift

I have a requirement to record a video in mp4 format and send to AWS server. Below is the code used for the same. lazy var frontCameraDevice: AVCaptureDevice? = { let devices = AVCaptureDevice.DiscoverySession(deviceTypes:…
Shibin S
  • 139
  • 1
  • 9
1
vote
1 answer

How to record timelapse video from iPhone using AVCaptureDeviceFormat?

I am trying to record a timelapse video via iphone. I have already got it working for slow motion (by capturing maximum frames possible), with 120 fps. Now I am trying to reverse the logic to capture least frames possible, to achieve timelapse…
nr5
  • 4,228
  • 8
  • 42
  • 82
1
vote
1 answer

How to playback AVCaptureMovieFileOutput

I am currently able to record video to an AVCaptureMovieFileOutput instance , yet I can't find any sources to learn from that have show how video playback is possible like snapchat/facebook/instagram are capable of producing. Am I supposed to use…
lifewithelliott
  • 1,012
  • 2
  • 16
  • 35