1、 基于局域网的视频聊天室系统的设计与实现基于局域网的视频聊天室系统的设计与实现 摘摘 要要 视频聊天系统作为一种新型的通信和交流工具,突破了地域的限制,可以提 供更为便捷、灵活、全面的音、视频信息的传递和服务,具有极其广泛的发展前 景。 本文介绍了采用 Microsoft Visual C+ 6.0 编程开发视频聊天系统的一套 比较常用的解决方案。文字聊天采用 TCP 模式;语音视频聊天采用 UDP 模式,在 客户端之间点对点的进行。在该方案中,通过函数库 VFW 来实现视频捕获、影像 压缩以及影像播放。微软公司提供的专门用于视频捕获开发的工具包 VFW,为在 Windows 操作系统中实现视
2、频捕获提供了标准的接口,从而大大降低了程序的开 发难度。在视频传输方面,则通过组建视频帧,将位图形式的视频帧压缩成帧格 式的 Mpeg4 流,传输到客户端后,解压并显示影像。同时,在本方案中,采用了 线程来实现语音录制和语音回放,最终实现了通过服务器中转的文字聊天、点对 点的语音视频聊天。 关键词关键词:文字聊天;VFW;视频捕获;视频传输;语音录制;语音回放 The Design and Realization of LAN-Based Video Chat Room System Abstract As a new tool about communication, video chatt
3、ing system has broken through geographical restrictions, has provides more convenient, flexible and complete transmission and service. Furthermore, it has a very bright future. The common solution about how to develop a video chatting system is introduced by the Microsoft Visual C + + 6.0 programmin
4、g. TCP model is used in the text chatting and UDP for the point-to-point video chats between the Clients. In this plan, Video Capture, Video Compression Manager and DrawDib are realized by the functions of VFW Library. The special kit VFW (Video for Windows) in video capture offered by Microsoft Cor
5、poration, has provided a standard interface for video capture in Windows Operating System and thus greatly reduced the hardship of programming. In video transmission aspect, it requires a video frame which is compressed the video frame of bitmap into Mpeg4 steam of frame form. Then it will be decomp
6、ressed into images since it has been arrived the Client. Meanwhile, the thread is used to achieve audio recording and replaying. Finally, it has realized the text chatting through a server to transit, the point-to-point audio and video chats. Key words: text chatting; VFW; Video Capture; video transmission; audio recording; audio playing 目目 录录 论文总页数:24 页 1 引言 1 1.1 课题背景 1 1.2 国内外研究现状 . 1 2 理论知识介绍 1 2.1 VFW 简介 1 2.2 线程的实现方法 . 4 3 需求分析. 5 3.1 软硬件环境 5 3.2 需求分析 5 4 系统结构. 7 4.1 硬件结构 7 4.2 软件结构