更新时间:04-04 (riku0803)提供原创文章
摘要:随着互联网的迅猛发展,基于RTSP协议的流媒体传输技术得到了广泛的应用。同时,随着Linux 操作系统不断的推广,在Linux环境下基于套接口的网络通信也成为了研究的热点。本文以RTSP协议应用为例,阐述了基于RTSP的流媒体文件下载技术的研究与实现,包括在Linux环境下进行TCP套接口和UDP套接口的C语言网络编程,构建基本的RTSP客户端,实现客户端与RTSP服务器之间的通信和基于RTP/RTCP的数据的传输,进而实现了流媒体的下载等。
关键字:RTSP;Linux;套接口;流媒体;RTP/RTCP
Abstract:With the rapid development of the Internet, the RTSP based streaming media technology has been widely applied. At the same time, along with the unceasing promotion of Linux operating system, socket based network communication in the Linux environment also becomes a hot research topic. Taking RTSP as an example, this paper describes the research and implementation of downloading streaming media files based on RTSP, including network programming of TCP socket and UDP socket on Linux environment in C, forming of basic RTSP client, implementation of communications and RTP/RTCP based data transmissions between clients and RTSP servers to realize the downloading of streaming media files, etc.
Key words:RTSP; Linux; socket; streaming media; RTP/RTCP
随着互联网技术的发展以及3G时代的到来,基于RTSP的流媒体的传播越来越普及。经过自己的努力学习研究、老师的指导和同学们的帮助,我完成了基于RTSP的客户端的设计以及实现流媒体的下载功能。在研发过程中,我一直在学习积累,从最开始的对RTSP/RTP协议、基于RTSP客户端的搭建、流媒体技术知之甚少,到慢慢阅读代码,到设计,解析架构,开发,最后初步实现,其中经过多次的思路,方法调整。而随着设计的不断完善,我也学会很多,在设计完成的过程中积累的经验将是我未来学习、工作中的巨大财富。通过这次论文,我更加深刻理解了“态度决定一切”这句话。