随着社会的发展,网络技术日新月异,由此网络技术和通信技术融合在一起,新兴了一门新的学科—网络通信技术。之后出现很多远程通信工具如QQ、网络会议、MSN等视频语音通信软件, 但这类软件都功能比较完善,相对独立,很难集成到自己开发的软件中,然而我们也希望这种语音通信功能能继承到自己的开发的软件中。
本文讨论了Windows环境下局域网视频语音聊天程序的设计思路和实现方法。网络通信部分采用流行的UDP/IP协议,采用点对点方式连接,用Win Socket编程设计网络通信,采用VFW函数进行视频捕捉和H263编码实现视频通信,分析系统软件的结构和功能,阐述系统的实现方法和实现思路。硬件上只需要一块双DMA通道的声卡、一个麦克风和一个摄像头,其余部分由软件编程实现,程序在Windows XP,Visual C++ 6.0环境下编译通过。论文主要介绍了本课题的开发背景,设计思路,所要完成的功能和开发的过程。重点的说明了视频语音通信的设计思路、难点技术和解决方案。
关键词:UDP/IP协议,视频语音通信,Sockets,点对点,VFW,H263编码
ABSTRACT
With the social development, network technology with each passing day, the resulting network and communication technologies together, then emergence a new subject - network communication technology. At the same time, appear many video-voice communication tools such as QQ, NetMeeting, MSN Video, but such software is functional fully, relatively independent, it is difficult to integrate to own software, but sometimes we also hope that video-voice communication function can be inherited to own software.
This discourse discusses about the LAN video-voice chat program design ideas and design methods under Windows environment. The part of Network Communication is use the popular UDP / IP protocol, and use peer-to-peer mode communications, with socket program to design network communication, using VFW program and H263 code video communication, analyse the function and structure of the application system, expound the system how to implementation and the ideas of realization. Only need one pairs of DMA channel sound card, a headset and a camera on hardware ,the rest of using software program to realize, the program on Visual C++ 6.0 compiler passed under Windows XP. The discourse describes the subject of the development background, design ideas,to complete the function and the development process. Focused on explaining the video-voice communication design ideas, difficulty of technologies and solutions .