RE: USB

From: Jayton Garnett (jay_at_codegurus.org)
Date: 08/27/05

  • Next message: Igor Sysoev: "Re: thanks for commiting (MFC ffs_softdep.c 1.182, softdep.h 1.18) to RELENG_5 and 6. When in 4?"
    Date: Sat, 27 Aug 2005 08:40:41 +0100
    To: stable@freebsd.org, multimedia@freebsd.org
    
    

    Hi,

    There seems to be a need for a web cam streamer for FreeBSD so I have
    figured out a VERY tempary solution.
    I just created a web cam "steam" (just a page auto-refresh every 60
    seconds).

    The webcam:
    Logitech Quickcam Express
    http://www.logitech.com/index.cfm/products/details/GB/EN,CRID=2204,CONTENTID=5037

    The software:
    qcamview (you can view a REAL stream with this, but we need
    qcamshot that comes with it)
    WebMagick (we only need the convert utility that comes with this)

    What I did and why I did it?
    I wanted a webcam stream for my friends/family in Australia, South
    Africa and the UK.

    Added a user called cam to the wheel group.

    added some lines to /etc/devfs.conf:

    #Webcam
    own /dev/ugen0 root:wheel
    perm /dev/ugen0 0644

    own /dev/ugen0.1 root:wheel
    perm /dev/ugen0.1 0644

    own /dev/ugen0.2 root:wheel
    perm /dev/ugen0.2 0644

    made a simple script named webcam.sh in my home dir, it looks like this:

    #!/usr/local/bin/bash
    qcamshot > ./~/public_html/image.ppm
    convert -despeckle ./~public_html/image.ppm ./~public_html/image.jpg
    chmod 755 ./~/public_html/image.jpg

    Now I added a line to my /etc/crontab:

    #Run the script every minute.
    */1 * * * * cam /home/cam/./webcam.sh

    Then created a html file with the refresh tag set to 60, kinda looks like:
    <meta http-equiv="refresh"
    content="60;http://www.mydomain.com/path_to_autorefresh_page">

    Sorry if this does not relate to what anyone really needs, but it is
    02:39am and im tired :-) and thought
    at least 1 other person might need this, you can alter the crontab to
    take images more frequently and
    set the refresh accordingly.

    For a FreeBSD NON-guru i feel pretty good that I managed this. wo0t!

    Hope someone finds this useful.

    Cheers,
    Jay... a very sleepy one...
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


  • Next message: Igor Sysoev: "Re: thanks for commiting (MFC ffs_softdep.c 1.182, softdep.h 1.18) to RELENG_5 and 6. When in 4?"

    Relevant Pages

    • USB Web Cam
      ... I'm using FreeBSD 4.8 p14 and have a USB Web Cam that I would ... Not sure if these are the correct settings or not. ... Any help with setting my web cam up is greatly appreciated it. ...
      (freebsd-questions)
    • USB Web Cam
      ... I'm using FreeBSD 4.8 p14 and have a USB Web Cam that I would ... Not sure if these are the correct settings or not. ... Any help with setting my web cam up is greatly appreciated it. ...
      (freebsd-questions)