Removing or replacing the background on the video occurs by processing each frame of the video. 1 second of video is 24 frames in each of which you need to remove the background (unnecessary objects, people, etc.)