video processing script for matlab