This is a video segmentation code...