discard scenes with length below a certain threshold and take middle frames of scenes as keyframes