Results 1 to 5 of 5

Thread: Webcam

  1. #1

    Thread Starter
    Hyperactive Member kazar's Avatar
    Join Date
    Apr 2006
    Location
    UK
    Posts
    323

    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

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  3. #3

    Thread Starter
    Hyperactive Member kazar's Avatar
    Join Date
    Apr 2006
    Location
    UK
    Posts
    323

    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

  4. #4
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

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

  5. #5

    Thread Starter
    Hyperactive Member kazar's Avatar
    Join Date
    Apr 2006
    Location
    UK
    Posts
    323

    Re: Webcam

    thanks a tonne
    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
  •  



Click Here to Expand Forum to Full Width