Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Video broadcast using Winsock control.

Status
Not open for further replies.

BogdanMBM

Programmer
Aug 6, 2003
213
RO
Guys!
I have a chat application that can capture frames (live) from a webcam or tv tunner. What I am trying to do is to broadcast over network using winsock control the captured frames from the webcam but I want it to be LIVE.
What I was able to accomplish so far is to grab the frame (one by one), save it to disk (as .BMP), then broadcast the file over network using winsock control. The client application receives the file, writes it to disk and then loads it into a picture box. This seems logical, I'nt?
Let me tell you: is slow and I meen slooooow. Many frames skipped. Bottom of line: it is not LIVE.
Any ideas? I was thinking at loading the initial captured frame in a byte array and send the byte array over the network, read the byte array at destination and load it into a picture box. It should be much much faster but I don't have any ideea about how can I save a picture into a byte array and then load it back into a picture box.
Anyone can please help???
Thanks!!

Hope I've been helpful,
Bogdan Muresan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top