Video capture and streaming from Webcam
Posted on 2002-06-07
I'm currently trying to write a piece of software that will capture video from a webcam, and stream this over a LAN to other computers on the network.
So far, I've managed to write code that will capture an AVI file, and code that will send this AVI to any other machine that requests it. However, I need to take this a step further and make this a real time process, letting other users on the LAN watch the video live, as it happens.
After a little research, it seems that I must capture the AVI to memory, rather than to a file. The OCX I was using doesn't support this, so I feel like I'm back to square one. Thus the first part of my question, can anyone recommend an OCX that will let me save the file to ram instead?
Now, when it comes to streaming, I know little more than it's usually (or possibly always?) done with the UDP protocol. Again, this shouldn't prove to be a problem, since I'm quite comfortable with the use of the winsock control for TCP and UDP communication.
However, I still need to figure out:
1) How to capture the AVI to RAM
2) How to prepare this stream / retreive the data to be sent via the winsock control
Full points will be given to anyone who can offer me relative code, otherwise I will drop the points available and allocate them to anyone who can point me to another site with references to this subject that prove useful in the final solution.
Thanks in advance,