智能与分布计算实验室
  基于Linux的流媒体服务器
姓名 陈亚伟
论文答辩日期 2007.05.31
论文提交日期 2007.06.10
论文级别 硕士
中文题名 基于Linux的流媒体服务器
英文题名 Streaming Media Server Based on the Linux System
导师1 卢正鼎
导师2
中文关键词 协议;流媒体
英文关键词 Protocol;Streaming Media
中文文摘 流媒体(Streaming Media)是一种以新兴的网络传输技术,在互联网上实时顺序地传输和播放视/音频等多媒体内容的连续时基数据流。互联网的迅猛发展和普及为流媒体业务发展提供了强大的市场动力,流媒体业务正变得日益流行,因此对流媒体系统的需求正日益增加。在这里我们主要论述了一个基于Linux系统的通用流媒体服务器的设计和实现。 这个基于 Lniux的流媒体服务器由事件线程,处理线程两大功能模块组成。这两部分是整个系统的核心,主要实现包括系统框架的总体实现、Session接口设计、统一的file和流媒体协议处理接口,以及流媒体数据发送功能的实现。协议处理系统是流媒体传输协议处理的具体实现,各协议单独完成,因此如果需要在系统中增加新的协议处理时,系统的整体框架无需修改,只需加入相关协议处理的功能模块即可。Session接口,file接口分别用来管理用户连接,媒体文件的解析读取。数据发送功能模块用来处理数据包的传输,同时还负责传输速率的控制。 该系统针对用户的具体需要,基于主要协议的处理,实现了对主要文件格式的点播,直播。主要支持的流服务类型即通用的RTSP协议,因此系统具有良好的兼容性,流媒体数据传输即基于RTP协议的传输方式,同时还加入了自己的传输控制策略,因此服务器在保证良好实时性前提下,也提高了视频质量。主要支持的文件格式:MP3、MPEG2、MPEG4、H264。 作为实时流媒体系统,系统的安全性能和通信性能是一对矛盾,如何得到安全与通信性能的最佳平衡点一直是系统设计中的重要问题。因此我们对提高流媒体服务器系统的安全性也做了一些有益的讨论与尝试,取得了一定的效果,使得流媒体系统更适应于复杂环境的实际应用。
英文文摘 Streaming Media is one kind of emerging network transmission technology, the real-time smooth transmission and the broadcast regards八he audio frequency on the Internet and so on the multimedia content continual time base data stream. The Internet swift and violent development and the popularization for flowed the media service development provides the formidable market power, flowed the media service varies directly day by day popularly, therefore the convection media system demand day by day increased, this article mainly elaborated based on the Linux system one general class media system design and the realization. “Based on the Linux system class media system” is composed by the event thread and processing thread. The two parts are the core of the entire system , the main realization includes the system frame the overall realization, session, file and the agreement processing connection and unification,and data sending function;The agreement processing subsystem is flows media transmission agreement processing the concrete realization, various agreements alone complete, simultaneously when increases new agreement processing in the frame subsystem, frame needs not to revise, then must complete correlation agreement processing may hen. This system mainly aims at the user the concrete need, based on mainagreement processing, realized to the main document form selection and broadcast. The main support class service type is RTSP Protocol. Main support document are: MP3, MPEG2, MPEG4,H264. As the real-time exchange system. the security performance and the communicationperformance of system are a pair of contradictions, how to reach the best combination