Work flow of video data processing