I\'m a relative newbie on the whole AVFoundation video editing circuit.
My current test app is a two screen application, the first screen does an AVFoundation Video
The problem was with the following lines.
parentLayer.frame = CGRectMake(0,0, videoSize.width, videoSize.height);
videoLayer.frame = CGRectMake(0,0, videoSize.width, videoSize.height);
Changing videoSize.width to 320, and videoSize.height = 480 fixed the issue.
But if the size of the video wont be 320X480, it will mess up. Try to use this one to get the video size.
CGSize videoSize = [[[self.videoAsset tracksWithMediaType:AVMediaTypeVideo] objectAtIndex:0] naturalSize];