[PD] output grayscale value of pixels in a video