While you can use AVAssetExportPresetPassthrough to concatenate a video, the resulting video is not the most compatible, as each segment ends on its own track. It should play on iOS / OSX, but it is unlikely to play well with YouTube or Facebook.
So, something is wrong with your implementation, but you should probably consider using another preset (which will smooth your videos in one track) or use AVAssetWriter .
source share