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.
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.