Implement threaded video with mutexess