I am writing an iPhone application that capture video from iPhone back camera and edit that video and record edited video. The following are the functions to perform.
- Get video from back camera.
- Record the video to some location in iPhone.
- Get the 1 mins duration video from the recorded video.
- Get the frame by frame CMSampleBuffer from the video.
- Modify the image of the CMSampleBuffer and write the modified video in the iPhone.
The steps 1 – 4 are worked fine for me. But the modification of image of the CMSampleBuffer are not working. The modifications I want to perform is draw an additional image in the image of CMSampleBuffer. Draw some texts in the image of the CMSampleBuffer. Can somebody tell me how can I do this?