Iβm trying to understand how I can implement functionality to repeatedly pause and resume video capture in one session, but each new segment (captured segments after each pause) is added to the same video file with AVFoundation. Currently, every time I click βstopβ and then βrecordβ again, it just saves a new video file on my iphone album and starts recording in a separate / new file. I need to press the record / stop button again and again ... only capture video and audio when the recording is active ... then when the done button is pressed, you have one AV file with all segments together. And all this should happen in the same capture / preview session.
the only way I can try to do this is to click the "done" button, taking each separate output file and combining them together into one file ... But I am sure that the processing time for inserting a bunch of separate clips together will not be acceptable. Also, it looks like it will be a very dirty and unnecessary way to get around this using too much code.
Is there an easy way to just pause video capture for one session and just resume capturing to the same file? Or any other ideas?
If this is not a big problem, the sample code will help me get a ton ... I am still learning and teaching myself, so I donβt really understand the explanations and terminology. Thanks
edit: this is the project I'm starting to learn AVFoundation with ... so this is the code I want to change to achieve the above functions: http://developer.apple.com/library/ios/#samplecode/AVCam/Introduction/Intro .html
ios objective-c iphone video-capture avfoundation
Daniel McCarthy
source share