From - Thu Jan 6 12:05:32 2000 Path: news.nyc.globix.net!newsfeed.nyc.globix.net!netnews.com!newsfeed.icl.net!oleane!dial.oleane.com!not-for-mail From: Emmanuel Florac Newsgroups: comp.sys.sgi.graphics,comp.sys.sgi.hardware,comp.sys.sgi.misc Subject: Re: Indigo Video web cam?? Date: Thu, 06 Jan 2000 15:25:58 +0100 Organization: Atelier Sud =?iso-8859-1?Q?Vid=E9o?= Lines: 47 Message-ID: <3874A5F6.58307A67@mail.dotcom.fr> References: <838ab0$nom$1@lola.ctv.es> <850j56$lu6$1@nnrp1.deja.com> Reply-To: eflorac@mail.dotcom.fr NNTP-Posting-Host: 62.161.49.220 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: minus.oleane.net 947168935 9709 62.161.49.220 (6 Jan 2000 14:28:55 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: 6 Jan 2000 14:28:55 GMT X-Mailer: Mozilla 4.7 [fr] (Win95; I) X-Accept-Language: fr Xref: news.nyc.globix.net comp.sys.sgi.graphics:30249 comp.sys.sgi.hardware:56841 comp.sys.sgi.misc:55479 megarat@my-deja.com a écrit : > > hi all, > > i have an R3000 Indigo with Entry Graphics and Indigo Video (a.k.a. > Starter Video, a.k.a. SVIDEO) that is currently employed as a web > server. i'm also hoping to set up a web-cam, so i can have something to > threaten my neighbors with. (mua-ha-ha-ha.) but the standard SVIDEO > tools all require a GUI, and the server is running headless. > > a friend of mine tooled together a quick program that does a > single-frame capture, but it needs to be run by a user who's logged in > (i.e. X needs to be running). sure, i can set up a user that's > autologin'd to run the program as cron, but i thought i'd check here > first ... > > so, does anyone have a solution to this dilemma? i only want a program > that captures single-frame images, preferably with any of the inputs > (for three cameras, if necessary), and to have it run under cron on my > headless server. does anyone have any code that does this? > > (if possible, please respond by email -- megarat at yahoo dot com -- as > my usenet access is limited.) > here is a common shell script you can put in your cgi-bin directory that creates and display a single image from the connected camera: #!/bin/sh name=$REMOTE_HOST cd /tmp /usr/sbin/vidtomem -f $name 1> /dev/null 2>&1 /usr/sbin/imgcopy ${name}-00000.rgb ${name}.jpg 1> /dev/null 2>&1 echo Content-type: image/jpeg echo cat ${name}.jpg rm -f ${name}* -- ------------------------------------------------------------------------------ Emmanuel Florac | Atelier Sud Video Integration Engineer | 39-41 Bd du général Martial Valin mailto:eflorac@asv-europe.com | 75015 PARIS http://www.asv-europe.com | phone: 33 153982333 fax: 33 153982368 ------------------------------------------------------------------------------