preprocessing to split videos