|
-
Nov 12th, 2006, 08:31 PM
#1
Thread Starter
Hyperactive Member
Webcam
Hey,
I have some code for getting a webcam feed, does anyone know of a good way to send this over a network?
Thanks
KAZAR
The Law Of Programming:
As the Number of Lines of code increases, the number of bugs generated by fixing a bug increases exponentially.
__________________________________
www.startingqbasic.co.uk
-
Nov 13th, 2006, 11:04 PM
#2
Re: Webcam
If you're sending the feed to other people on a LAN, it should be just as simple as saving the current frame as bmp and transfering it as a binary file to the other people on the network.
If it's over the internet, you'll probably want to convert it to JPEG first, then send it. You could also convert it to JPEG for transferring over a LAN too, and it would be faster.
Convert to JPEG
A "faster" version
There's also some code in the codebank for transferring files over a Winsock connection.
-
Nov 14th, 2006, 11:01 AM
#3
Thread Starter
Hyperactive Member
Re: Webcam
i tried that but it just didn't process fast enough, so i couldn't do a live feed - anyone know how msn does theirs?
KAZAR
The Law Of Programming:
As the Number of Lines of code increases, the number of bugs generated by fixing a bug increases exponentially.
__________________________________
www.startingqbasic.co.uk
-
Nov 16th, 2006, 05:47 PM
#4
Re: Webcam
do it over UDP protocol, it will be much faster, UDP hs no connection you just send your data and thats it. When you send the image be sure your not sending a super high quality image, cut the quality and resolution down. I'm almost certain msn does it via UDP.
-
Nov 16th, 2006, 05:49 PM
#5
Thread Starter
Hyperactive Member
KAZAR
The Law Of Programming:
As the Number of Lines of code increases, the number of bugs generated by fixing a bug increases exponentially.
__________________________________
www.startingqbasic.co.uk
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|