Another example of how to remove background from a video, this time using imagemagick and ffmpeg. You need a background video without a subject or, if it is immobile, a simple frame.
I always wondered how they did that. Seems simple enough explanation that even I can do it.