What's the right way to add an image overlay to a video created with AVAssetWriter?
It's possible to do so with AVAssetExportSession, but this question is about how to do so with AVAssetWriter so there is more control over the quality and output.
There are two scenarios:
1) Simple: Add single overlay that is present the entire duration of the video (similar to a watermark).
2) Complex: Add different overlays that animate in and out of the video at different times (similar to using AVVideoCompositionCoreAnimationTool).