In this AVFoundation tutorial, you’ll learn how to add overlays and animations to videos, by using the AVVideoCompositionCoreAnimationTool, which allows you to combine CALayers with videos to add backgrounds and overlays.
@marinbenc That’s an amazing article - to the point and does what it says, although there are a few things which you could also mention like accessing framerate/bitrate, Codec (although it is h264) a little explanation about them and then how to also make sure to have minimum loss while setting the AVAssetExportPreset Quality, what are the difference and what should one use to ensure least size and maximum quality at the same time.
But in all I found this article to be really amazing and very well structured
I didn’t figured out a way to do this. In tutorial you showed how to add overlay to a video. what i am trying to achieve here is, i have an overlay (which is a video) should be on top of other video.
Right now i am adding image as overlay layer.