
VideoComp.instructions = Īnd than export it with an AVAssetExportSession with the property of the VideoComposition Instruction.timeRange = CMTimeRangeMake(kCMTimeZero, avasset_camera.duration) Īnd the instruction for the layer: AVAssetTrack *videoTrack = objectAtIndex:0] ĪVMutableVideoCompositionLayerInstruction *layerInstruction =

The instruction for the VideoComposition: AVMutableVideoCompositionInstruction *instruction = VideoComp.animationTool = animationVideoTool ameDuration = CMTimeMake(1, 30) ĪVVideoCompositionCoreAnimationTool *animationVideoTool = ame = CGRectMake(0, 0, videoSize.width, videoSize.height) Īnd than a AVMutableVideoComposition: AVMutableVideoComposition* videoComp = retain] ame = CGRectMake(0, 0, videoSize.width, videoSize.height) The UIImage converted to a CALayer and than added to another layer to incorporate with the animationTool: UIImage *myImage = Īame = CGRectMake(0, 0, 568, 320) ĬGSize videoSize = I've an AVAsset: NSString *path = *url = initFileURLWithPath: path] Īvasset_camera = Īn AVMutableComposition: AVMutableComposition *mix = But I don't want to show the watermark the complete time and I want to show different watermarks in the same movie.

This works well with the code that's been going around on the internet and Apple. I'm using AVFoundation to put a watermark in my movies.
