哪位大师知道在VC中怎样实现视频捕捉功能,并且还要对捕捉的图像数据进行压缩和解压以便进行网络传输。
使用DirectShow,如果你对这个不熟悉
最好去找个控件
使用VFW32.lib库
If your camera generate analog signals,you have to install a video capture card in you computer to convert the analog signals to digital signals.If you want to develop your program on the Windows platform,the cards driver must fit the standard of Microsofts DirectShow.If you want to develop your program on the Macintosh platform,the cards driver must fit the standard of Apples QuickTime.In fact theres too many video capture cards,which are compatible with Microsofts DirectShow.
If you have a Microsoft DirectX SDK,you will find lots of useful information in its help documents.
其实这个我做过的,主要是利用windows中的VIDEO FOE WINDOWS类里的函数,包罗帧捕捉,还有回调函数也很有用的。不过我做的都是没有经过压缩直接传输的
我做的时候用WmencoderSDK。很好用,可以讨论一下。
至少有三种方法:
1.使用VFW,但功能不强;
2.使用DirectX,太复杂,
3.使用NetMeeting SDK, 提供整体解决方案.
对不起,如果你只是想传输静态图像,用VFW是很方便的, 用TWAIN也可以.