Automatic synchronization of video and audio after transmission