0

Can we merge two video for implementing pause/play feature in screen recording type application in cocoa.

I did't write code yet. Because first I want to be conform about it that this can be possible.

First start video recording on pressing "Play Button" than stop its session by pressing "pause Button" save its session AVCaptureSession into AVCaptureMovieFileOutput in a temporary directory.

On tapping "Resume Button" again session will be started now pressing "Stop Button" video save in temporary folder, then merge both video into single one and show it

Is it a right way of implementing pause/play functionality.If you have any other logic please share with me .

Toseef Khilji
  • 17,192
  • 12
  • 80
  • 121
Gauri rawat
  • 109
  • 1
  • 10

1 Answers1

1

Yes, you can. Store captured samples in NSTemporaryDirectory and use AVMutableComposition to merge assets at the end of recording session.

birukaze
  • 376
  • 1
  • 12
  • Thanks for the response did you implement such a things can you provide me some sample code – Gajendra Rawat Dec 30 '13 at 09:40
  • I can't show you my code, 'cause it's under NDA. But i will do some samples of "general idea". Not right now though, too busy. – birukaze Dec 30 '13 at 10:30
  • i am telling you give me whole code please you can give only merging video i am so troubled now a day i spent a couple of week on researching on it. If it is possible please give me a positive response – Gajendra Rawat Dec 30 '13 at 10:35