Setting up O2 webcam

Video, software tools and techniques on SGI systems.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
Omega_Trion
Posts: 131
Joined: Fri Nov 07, 2003 9:21 pm
Location: Palm Harbor, FL
Contact:

Setting up O2 webcam

Unread postby Omega_Trion » Thu Jan 01, 2004 11:27 am

Does anyboy know how to get the default script to work for sgi-camera. I click on the snap script and it doesn't seem to work at all. Do i need to edit the script or am i missing a setting somewher to make it work. -thanks

User avatar
blackcube
Posts: 285
Joined: Fri Jul 04, 2003 9:55 am
Location: Dallas, TX USA
Contact:

Unread postby blackcube » Thu Jan 01, 2004 12:19 pm

You might want to contact lisp. I think she runs her website and webcam from a Sgi box. Look her up in the "Memberlist".

I just checked and her website is up but the webcam is down at this moment. It's been up most of the time recently.

James

User avatar
wolflord
Posts: 603
Joined: Thu Apr 03, 2003 11:31 am
Location: Maryland
Contact:

Unread postby wolflord » Thu Jan 01, 2004 2:25 pm

You need to edit /var/www/cgi-bin/sgi-camera/snap and just comment the disable line and uncomment the enable line. Thats all you should have to do.
WolfLord - :4D70G: :Octane2:

"Two Minus Three Equals Negative Fun" - Troy McClure

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8040
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Tue Jan 06, 2004 2:58 pm

I haven't been able to get this working either - even after commenting out the camera="DISABLED" and uncommenting camera="ENABLED". All I ever get is the "Please Stand By" image.

I never had a problem using the Galileo/IndyCam on my old Indigo, which uses the same script. A couple years ago I had the live IndyCam output on the front page of nekochan.net; you could view the current weather conditions outside my window.

Not sure if this is an O2 issue or if an IRIX upgrade killed it along the way.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
wolflord
Posts: 603
Joined: Thu Apr 03, 2003 11:31 am
Location: Maryland
Contact:

Unread postby wolflord » Tue Jan 06, 2004 3:23 pm

I'll have to retry it on my O2 when I get the chance..has it was working last time I tried. If anything it could be related to the use of fw_apache or something and the script being read from someplace else. Not sure, but it's something to consider.
WolfLord - :4D70G: :Octane2:

"Two Minus Three Equals Negative Fun" - Troy McClure

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8040
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Tue Jan 06, 2004 3:26 pm

Could be, but I haven't changed where the website lives from machine to machine, nor have I used anything but fw_apache :)
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
SenDep7
Posts: 29
Joined: Mon Jun 23, 2003 5:47 pm
Contact:

Unread postby SenDep7 » Tue Jan 06, 2004 11:56 pm

i tried setting it up on my o2 with the old netscape server + fw_apache...i think the problem is that SGI changed some of the perms on the video interface so that only the user who is logged in has access...when i ran apache as me it worked....but when running as "nobody" it didnt.

Glock
Posts: 291
Joined: Wed Jul 21, 2004 8:54 am

Unread postby Glock » Wed Feb 22, 2006 5:51 pm

I just tried wolflord's tip on my freshly installed 02 6.5.27 and now the O2cam snaps a picture and beatly displays it in a webbrowser.

Finally, I can now log-in from work and watch the dust settle in my living room (naturally through a VPN-tunnel for security)...

Tigerwolf
Posts: 12
Joined: Tue Oct 25, 2005 5:14 pm
Location: Ohio
Contact:

Video permission issue?

Unread postby Tigerwolf » Sat Apr 29, 2006 7:09 pm

The O2 web server webcam function quit working when I installed 6.5.22f to run nekochan software. It did work with 6.5.13 previous to the upgrade.

The camera is enabled in the 'snap' script, but it dosen't generate a picture, just the camera-off test pattern appears.

I patched the 'snap' script to route various command results to a file instead of /dev/null as it ran, and I see the following when it tries to run vidtomem: /usr/sbin/vidtomem: couldn't open video

vidtomem is globally executable (755), and runs when called manually by root when logged in, but su to any other user seems to give the same 'couldn't open video' error, so the comment by SenDep7 that only the logged-in user works seems valid.

Is there any fix or workaround?
=^_^= Tigerwolf

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8040
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Re: Video permission issue?

Unread postby nekonoko » Sat Apr 29, 2006 7:19 pm

Tigerwolf wrote:Is there any fix or workaround?


Not that I ever found, no.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

Tigerwolf
Posts: 12
Joined: Tue Oct 25, 2005 5:14 pm
Location: Ohio
Contact:

Re: Video permission issue?

Unread postby Tigerwolf » Mon May 01, 2006 11:11 pm

nekonoko wrote:
Not that I ever found, no.


That bites. I'd really like to get the webcam going again. :/
=^_^= Tigerwolf

User avatar
khalidschofield
Posts: 462
Joined: Thu May 06, 2004 6:18 am

Unread postby khalidschofield » Wed Oct 18, 2006 11:15 am

I re-wrote the webcam script myself after getting the irix one to work was too much bother.

I've hacked this script to make time lapse movies but you can edit it as you wish.

Code: Select all

#!/bin/sh
seq -f "file-%08g.rgb" 0 7100 | while read filename
do
vidtomem -f $filename 2> /dev/null
#imgcopy -f JFIF $filename jpegs/$filename 2> /dev/null
#rm -f $filename
sleep 90
done


You could be a real botch artist and have a web page that includes an image /var/www/images/webcam.jpg

put this in crontab


Code: Select all

vidtomem -f /tmp/snap.rgb
rm -f /var/www/images/webcam.jpg
imgcopy -f JFIF /tmp/snap.rgb /var/www/images/webcam.jpg
rm -f /tmp/snap.rgb


easy as that. You could do something a little neater but that would work :)
If you want more help let me know.
############################
Re-install with OpenBSD :)


Return to “SGI: Video”

Who is online

Users browsing this forum: No registered users and 1 guest