i need an advice about video recording and break between two records.

I have already done video recording in my application using CVideoRecorderUtility but what i need is to reduce to minimum time between two recordings.
I just want to save video after 5min of recording but all the time keep recording.
In my application after 5 min i stop recording and start it again and i have got 5 min length video but the problem is that when video is saved to file for few seconds (it depends on video size) nothing is recorded.

How can i solve it?

thanks in advance