I am trying to overlay a video (with an alpha channel) onto an existing video.
The way to do this with ffmpeg would be a command like so:
ffmpeg -i face_video.mov -i curtain_test.mov -filter_complex "[0:0][1:0]overlay[out]" -shortest -map [out] -map 0:1 -pix_fmt yuv420p -c:a copy -c:v libx264 -crf 18 output.mov
How would I complete this task using AVFoundation on iOS?