code to run pre-processing on all video files