Reputation: 8066
I am looking for a way to slice the middle part of the video and remove it , and merge the other two parts and render a new track. Is there any way in AVFoundation to perform this?
For eg:- please see the below illustration, if the full video height is from 1 to 4, I need to crop a slice from 2 to 3 and combine that [1-2] and [3-4] parts into a new video track. (Following is an illustration of ONE frame not the whole clip)
1----------------------------------
2----------------------------------
3----------------------------------
4----------------------------------
Upvotes: 2
Views: 395
Reputation: 10938
I think you should try to overlay a cropped video in the middle of your background video instead of trying to "make a whole".
Take a look at GPUImage's blend filters and then use a movie writer.
Upvotes: 3