More improvements to the video processing script