instead of this, do frame by frame overlay on the base video and make the frames transparent using (PIL)