Video processing in a separate thread