process_movie function now completely changed over to using opencv2 functions.