synchronize the video and audio smoothly