My company purchased a 1 min looping video from Pond5 in this format: "1920x1080 @25fps / mov / 224.8MB / H.264". The video isn't really a minute long: the first 30 seconds are an animated object, and the last 30 are the an "alpha mask" (white and black image, white the animation object).
When I use AVPlayer to loop the first 30 seconds, the background is pure black. I want to mask it out so its transparent. I assume there is some way to combine the two halves of this video to achieve this. I actually found a post by an Apple Engineer on Medium (I recall) that shows how, if the video has each frame divided into two halves, the top the video and the bottom the mask, then using a CIFilter you can in real time achieve this.
My preference would be to use some tool I have on the Mac (or could get free) to reprocess the video, or failing that, do it in real time while its playing. That said, I have little experience in this area and would greatly appreciate any pointers!
PS: it has also occured to me that I might be able to use the CIColorCube filter to achieve this and just ignore the existing mask video.