摘要
该文分析了引起音视频不同步现象的影响因素和当前音视频同步方法的优缺点,采用时间戳、缓存技术和丢包处理机制,提出了一种改进的音视频同步方法。在发送端,同一时刻采集的音视频数据同步发送,数据通过同一个端口传输。在接收端,设置缓存进行媒体内同步,采用主流为音频,从流为视频的主从流同步控制方式,基于时间戳判断音视频数据的同步关系,实现音频播放的流畅性和音视频媒体间同步。经过实际测试,效果良好。
This paper introduces the reason why audio and video are not synchronized and the advantages and disadvantages of the current audio and video synchronization methods. Then it proposes an improved audio and video synchronization method using the timestamp,caching mechanism and packet loss handling mechanism. In the sender,the audio and video data are synchronously transmitted through the same channel. In the receiver,caches are used to store audio and video data,in order to achieve synchronization within the media. It uses the master-slave flow synchronization control manner which audio is the mainstream. By determining the timestamps of audio and video,it not only gets smooth audio playback but also achieves audio and video media synchronization. After the actual test,the effect is good.
出处
《杭州电子科技大学学报(自然科学版)》
2014年第3期53-56,共4页
Journal of Hangzhou Dianzi University:Natural Sciences
基金
浙江省重点科技创新团队资助项目(2012R50011)
关键词
音视频同步
时间戳
缓存技术
丢包处理机制
主从流
audio and video synchronization
timestamp
caching mechanism
packet loss handling mechanism
master-slave flow