Fixed timestamp and framecount issue. Preprocessing to be carried out in a separate Mat