毕业论文(设计)
题目:基于RTP的linux实时语音通信系统的设计与实现
I
摘 要
随着信息社会的高速发展,Internet已经成为很多人生活不可缺少的一部分。 当前Internet中流动的“比特”所代表的内容已从原来的数据逐渐向实时多媒体数据演变,它们的特点是对实时性要求非常高。但是,Internet是建立在TCP/IP之上的计算机网络,最初设计时的定位决定了它不适合实时数据的传输。因此,1996年1月IETF音视频传输工作颁布了针对实时应用的实时传输协议RTP/RTCP。RTP/RTCP 使Internet从理论上具备了处理实时业务的能力,解决了媒体同步问题和满足了多媒体通信业务的要求,现在在IP电话、网络多媒体会议、远程网络教学和远程网络诊断等领域都有着重大的应用。
本文结合RTP/RTCP高实时性的特点,主要针对局域网,提出了音频数据采用G729a压缩,传输数据采用ortp库,在linux平台下开发的实时语音通信系统。本文首先介绍了实时传输协议的简单应用后,详细分析了RTP/RTCP协议;接着介绍系统的具体实现,主要分三个部分:音频数据的采集和播放,音频数据的解码和编码以及音频数据包的发送和接收。最后简单阐述了本系统在其他领域的可扩展性及前景。
【关键词】实时性,音频传输,RTP/RTCP,音频压缩
II
Abstract
With the rapid development of information society, the Internet has become an indispensable part of a lot of people life.
The current flows through the Internet \of which have been gradually from the original data to real-time multimedia data, the characteristic of them is very high demand for real-time.However, the Internet is based on TCP/IP computer networks, the initial design of location determines it is not suitable for real-time data transmission.Therefore, IETF audio and video transmission work in January 1996 issued for real-time application of real-time transmission protocol RTP/RTCP.RTP/RTCP make Internet theoretically with the real-time ability of the business, the media synchronization problems and meet the requirements of the multimedia communication service, the IP telephone, network, multimedia conference, remote network teaching and remote diagnosis, etc all have important applications.
In this paper, combining with the characteristics of RTP/RTCP high real-time performance, mainly for local area network (LAN), is put forward using G729a audio data compression, data transmission using ortp library, development of real-time voice communication system on the Linux platform.This paper first introduces the simple application of real-time transport protocol, RTP/RTCP protocol are analyzed in detail.Then this paper introduces the implementation of system, mainly divided into three parts: audio data acquisition and playback, audio data decoding and encoding and audio packets sent and received.The last simply expounds the system scalability and prospects in other areas.
【Keywords】 Real time audio transmission, RTP/RTCP, audio compression
III
IV
嘉应学院毕业论文(设计)
前 言
随着多媒体网络的发展,RTP/RTCP在众多领域也得到了深入的应用,如VOIP电话、多媒体会议系统等应用的出现,也让语音传输通信技术也得到了迅速的发展。然而,语音通信需要的实时性是非常高的,而且数据量大。例如,一个多媒体会议系统,我们总是希望发言者的发言能够尽早让收听者收听到,也就是说时延尽量短;另外一个就是我们希望在收听者收听语音信息时,一句话平滑的,即中间没有断点,也就是等时性。这些都是实现实时语音通话应达到的要求。
为此,本人在导师的指导下,详细研究分析了RTP/RTCP协议,结合RTP/RTCP协议高实时性的特点,利用现有的音频编程和网络编程知识,设计和开发了这个基于RTP的linux实时语音通信系统。目前只实现了单播功能,即点对点的通信。
论文的主要内容如下:
第一章:引言,主要介绍了实时多媒体数据传输的发展,阐述了TCP不适合多媒体传输的原因并引入了RTP.
第二章:根据RFC3550官方文档,详细分析了RTP/RTCP协议。
第三章:介绍了linux下基于RTP的实时语音通信系统实现的基本原理和总体架构。 第四章:介绍了linux音频编程。 第五章:讲解了音频传输的实现。 第六章:介绍了音频解码和编码的实现。 第七章:总结与展望。
1