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 set MaximumDuration .please help me..Advance Thanks
How to set videoMaximumDuration for AvcaptureSession in iOS
2.8k Views Asked by Vipin K V Ias At
1
There are 1 best solutions below
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in XCODE
- Using Storyboard Reference
- Getting this message in my console in xcode "Ignoring restoreCompletedTransactionsWithApplicationUsername: because already restoring transactions"?
- Error when creating UIImage
- fade in an bounce animation subview
- How to delete static library ".a" file from xcode project?
- Error in main.storyboard
- Is the compiler Xcode uses to produce Assembly code a bad compiler?
- Using paths bonded to a XCode project to be shared
- How to set the time of Local notification in app to random between two times? (swift)
- "Invalid Signature, code object not signed at all" error
- Alarming memory increase with custom segue
- Display both alertTitle and AlertBody on a custom WatchKit notification
- How to make a CocoaPods project work on OS X El Capitan & Xcode 7 Beta?
- Cannot use CTRL+Drag for making a button action in Xcode?
- Labels properties changing in Xcode
Related Questions in AVFOUNDATION
- AVFoundation - Process each image separately
- How to listen to changes in Camera authorization status?
- Creating a square video with custom background color and aspect-fitted video on top with AVFoundation
- Unable to display thumbnail in another view controller
- AVFoundation: toggle camera fails at CanAddInput
- iOS Apply CATransform3D on every frame
- Play sound from AppDelegate
- AVAssetResourceLoader backed AVURLAsset playback fails only via AirPlay
- Why is this mp3 file not streaming
- iOS set video frame rate
- Swift - AVFoundation on OS X adding sublayer issue
- AVSpeechUtterance completion handler
- How to implement trimming of video which is playing on AVPlayer?
- AVCaptureOutput didOutputSampleBuffer stops getting called
- AVCaptureSession w/o Decompression
Related Questions in AVCAPTURESESSION
- iOS: how to allow animations for one view and prohibit animations for a few another views
- IOS : Video recording using avcam in landscape mode?
- AVCaptureVideoPreviewLayer displays correctly except on iPhone6
- AVCaptureOutput didOutputSampleBuffer stops getting called
- Using maxRecordedFileSize to limit AVCaptureSession record time
- Quick 180 rotation of iOS Device results in the camera viewing upside-down
- iOS: AVCaptureOutput stops working after navigation
- Using OpenGLES with Swift for photo preview iPhone
- Audio Not Recording in AVCaptureSession
- Record multiple videos and update progress bar using AVCaptureSession
- AVCapturePhotoSettings error in ios 10?
- Capture dual pictures with iPhone 7Plus and AVCaptureSession
- Use Front Camera for AVCaptureDevice Preview Layer Automatically Like Snapchat or Houseparty (Swift 3)
- Video is not getting saved + Appending pixel buffer to adapter returns false , both is very rare and random
- Custom Camera, White screen // swift 3
Related Questions in AVCAPTUREMOVIEFILEOUTPUT
- Using maxRecordedFileSize to limit AVCaptureSession record time
- SampleBufferDelegate is not Working
- I am unable to save an AVFoundation video to a local url
- Video recording fails on iPhone, but works on iPod Touch and iPad
- How to set videoMaximumDuration for AvcaptureSession in iOS
- Error while recording multiple screens using AVFoundation
- How can I reduce the file size of a .mov video created with AVCaptureSession?
- How to save AVCaptureMovieFileOutput object into NSSavePanel
- Stop Camera recording and save file when entering background
- How do I record a video on iOS without using a preset?
- How to save a movie from AVCapture
- Pause/Resume Video Recording like Instagram
- Create MPEG-2 Transfer Stream with AVFoundation
- AVCaptureMovieFileOutput.startRecording(to:recordingDelegate:) sometimes hang with no error/exception
- Problems with AVCaptureSession in landscape mode on iPad
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can set the maximum duration using the property
maxRecordedDurationof yourAVCaptureMovieFileOutputsettings.Here's an example.
I hope this answers your question