Added a thread to send video out