real time encoder