375 Eleventh Street
San Francisco, CA 94103


   
Webcam Slideshow Scripts

Here's how we do our JPEG slideshow webcam. It's a lot simpler than the RealVideo Webcam!)

  • The various cameras feed into a video switcher. From there, a single baseband NTSC video signal emerges.

  • That signal goes into the machine that will grab and encode the images. (This machine is a fairly basic Linux server running Red Hat: 600MHz or so, and it's also used for other tasks. Doing the slideshow doesn't require a lot.) The video capture card in this machine is an Osprey 100.

    A script grabs a frame every few seconds, adds a timestamp caption to it, and publishes it on the local machine's web server.

    Our server machine, in our ISP's colocation facility (the same machine that serves our audio streams, in fact), periodically pulls the image from the video encoder machine. The firewall access control list only allows the server machine to get at this file: the outside world can't connect to the internal server (since there is limited bandwidth between the two machines.)

  • The server machine is a VA Linux FullOn 2230 700MHz PIII rackmount server, with 512M RAM, sitting in our ISP's colocation facility (so it has lots of outgoing bandwidth.)

  • The server machine then re-publishes that image on its own web server, which is where the outside world sees it.

Here are the shell scripts and data files that make all that work. Please let me know if you find this useful, or make any improvements...

_______________________________________________