Note that there are some explanatory texts on larger screens.

plurals
  1. POPause & resume video capture for same file with AVFoundation in iOS
    primarykey
    data
    text
    <p>I'm trying to figure out how I can implement functionality to repeatedly pause and resume video capture in a single session, but have each new segment (the captured segments after each pause) added to the same video file, with AVFoundation. Currently, every time I press "stop" then "record" again, it just saves a new video file to my iphone's album and starts capturing to a separate/new file. I need to be able to press the "record/stop" button over and over... only capture video &amp; audio when record is active... then when the "done" button is pressed, have a single AV file with all the segments together. And all this needs to happen in the same capture session / preview session.</p> <p>the only way I can think of to try this is when the "done" button is pressed, taking each individual output file and combining them together into a single file... But im pretty sure the processing time to basically paste a bunch of separate clips together won't be acceptable. Plus, it just seems like this will be a really messy &amp; unnecessary way to go about this, with way too much code.</p> <p>Is there any simple way to just pause video capture within a single session and simply resume capture to the same file? Or any other ideas?</p> <p>If it's not too much trouble, sample code would help me out a ton... I'm still learning &amp; teaching myself, so I'm not great with following the lingo &amp; terminology in explanations. Thanks</p> <p>edit: this is the project I am starting with to learn AVFoundation... so this is the code I am looking to alter to achieve the above functionality: <a href="http://developer.apple.com/library/ios/#samplecode/AVCam/Introduction/Intro.html" rel="noreferrer">http://developer.apple.com/library/ios/#samplecode/AVCam/Introduction/Intro.html</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload