摘要
分析音频和视频同步的标准以及造成音视频不同步的原因,提出一种基于RTP/RTCP协议的音视频同步控制方法。以音频为主媒体,视频为从媒体,在接收端通过设置缓冲区实现音频流的媒体内同步,通过比较音视频数据包的时间戳判断同步关系,对视频采取重复或丢弃的方法实现音视频同步控制。在实验环境下模拟音视频流经网络传输后在接收端经过同步控制后播放和直接播放两种情况,表明,提出的同步方法能很好的纠正音视频不同步的现象。
This paper analysises the synchronization standard of audio and video and the reason why audio and video are not synchronized, then a method of audio and video synchronization control based on RTP / RTCP is proposed. With audio as master media stream and video as slave stream, at the receiver synchronization within the audio streaming is achieved by setting the buffer, and the synchronization of audio and video is achieved by the comparision between the timestamp of the audio frame and the video frame and repeating or dropping the video frame. In the experimental environment, by simulating the transmission of audio and video through the network and the eomparision the play situation with synchronization control and without synchronization control, a conclusion of the method can well corrected audio and video out of synchronization can easily come to.
出处
《软件》
2011年第6期78-80,共3页
Software