This seems like a simple thing to do, but for my life I cannot find an answer that does this the way I need to.
Using a mask image, I want to make the white parts of the mask still be white (not transparent) in the video output, while the black pixels of the mask would not appear in the output. This would make it easier for a particle tracking software to work properly as there would be no confounding particles coming from the background+text. Like so:
I can almost achieve this using the code:
ffmpeg -i video.mp4 -loop 1 -i mask.png \ -filter_complex "split[m][a];[m][a]alphamerge[keyed]; \ [keyed]overlay=eof_action=endall" video.mp4
However, the result is not an opaque white due to the overlay function, and I would further need to blur it as the clock is still very visible and becomes a new trackable particle.
So specific questions would be:
Is there a way to make the masked overlay be opaque white?
Alternatively, is there a way I could still use the code above but make just the white part of the mask blurred? (right now, it blurs everything if I add