I have put together something that may be useful to you. https://github.com/Kseniya/NewVideoRecorder
Using the AVCaptureSession record, hold your finger and stop when you release it. Hold again, write down the next one. Add them to the array. And then at the end combine them into one composition and save them in a camera roll.
I am still working on this, so I will be happy to answer any questions.