SMIL : You're on Davis WebCamera

It is the nature of most webcams that they capture and save to disk still images as JPEG files. The basic problem: how do you display a sequence of these JPEG stills successively to suggest to the viewer live video rather than still imagery? The three most common methods:

  • native browser support of "Motion JPEG" MIME encapsulated multi-part JPEG streams;
  • Display of "Motion JPEG" using ActiveX technology;
  • or Display of "Motion JPEG" using Java technology.

Only "Mozilla" class browsers display "Motion JPEG" natively. Java VM is not pre-installed on Windows XP systems. Internet Explorer supports ActiveX technology, but only if manually enabled by a user with administrative rights.

Client has a Windows XP laptop. Client admits to having minimal IT skills and being easily frustrated by things that don’t work and he doesn’t understand. Somehow, Java VM was installed on his laptop (and the one in the conference room across the hall from his office). Client searched for examples of other schools and colleges who were building things like the Davis Center and who had webcams. Apparently, the ones he originally bookmarked as exemplary were using Java, because they "just worked" on his laptop. Existing UVM examples did not work and were considered sub-standard, because his Internet Explorer security settings disallowed ActiveX. He also purchased some network cameras that shipped with a Java applet solution, partly because the examples on the vendors web site "just worked."

After I changed his IE security settings, his exemplary list grew to include ActiveX examples, but his graduate student assistant web developer had difficulties making the UVM examples work — including the ones I developed using his new cameras, both with ActiveX and Java. The difficulty was the same: either Java was not installed or the target machine’s IE setting were not or could not be set correctly.

 So, we needed another solution. Some googling suggested scripting QuickTime Player with Synchronized Multimedia Integration Language (SMIL, pronounced "smile"). I created a SMIL file that essentially directed QuickTime to display a sequence of JPEG images. One hurdle was that the URL of the image never changes: the image to display is replaced by a new model every few seconds via FTP upload from the camera. So the URLs in the SMIL file had to be perturbed by a random number to appear differently. Another hurdle was that including more than about 10 or 20 images references in the same SMIL file created unsatisfactory performance. This was solved by using a QuickTime specific SMIL extension to reload a new SMIL file at the completion of the first. The SMIL files are created dynamically (and refreshed dynamically) by a PHP script; the QuickTime Plug-in is invoked via HTML. Of course, QuickTime, too, must be downloaded and installed before this all works, but I submit that — especially in the age of the iPod — QuickTime is more ubiquitous and less forbidding than Java, and is unlikely to be as bburdensome upon the user.

Posted in Projects, Video and Audio | Leave a comment

Dspace and Google

Buddy Tignor curious about how/if/why/ehen Google finds images in Dspace. Pointed him to Google FAQs, adjusted the robots.txt on badger. Google has found at least 2900 images on badger.

Posted in Dspace, Projects | Leave a comment

Tom asked about MP4

Tom Streeter was wondering how Safari treated MP4 files and was it a server or browser issue (the former). Told him about .htaccess AddType and how he might have to download MP4 files first,.

Posted in MacOS Support, Projects | Leave a comment

I hate webcams

More fiddling around with web cam display options, mostly along the lines of how to either avoid or alternatively ensure the use of ActiveX controls. Maybe the best way is to provide a choice: click here to use ActiveX (witha What is Active X? link); click here to use Java, click here if using Firefox. Probably could do it all using some javascript, but I don’t want to have to program all the variations. Or, just show static image with IE.

Met with Allen and his web designer Kate for 45 to dicuss the problems. Allen remains frustrated. All he wants is something simple that works, and I’m telling him he can’t have it. Here’s some examples of what he liked:

Here are a two places I have been to which seem to work well or provide a nice interface with what to do to get the image to appear…

#1
http://www.wesleyan.edu/masterplan/univcenter.html
Look at bottom right for link to cam

I clicked on "Click here to see a live update from the webcam, from the roof of Olin Library, looking north!" and was taken to

    http://campuscentercam.its.wesleyan.edu/view/index.shtml

o Using Safari web Browser on my Macintosh, I did NOT see an image
o using FireFox web browser on my Macintosh, I did see the image.
o Using IE on (virtual) PC, I was asked the usual "Do you  want to install this ActiveX control?" questions. Note that my IE Internet Options were set as I described to Kate this afternoon

#2
http://www.unr.edu/studentunion/newstudentunion/index.htm
Click in the middle on either of the NSU netcam links and you go to a green screen where you select either an active x or java button and you then see the image.

o Using Safari web Browser on my Macintosh, I only saw a Java option: but that’s OK, as 1) Macs don’t do ActiveX and 2) Java is pre-installed on all Macs

o Same situation using FireFox, Mac

o Using IE on (virtual) PC, I was asked the usual "Do you  want to install this ActiveX control?" questions. Note that my IE Internet Options were set as I described to Kate this afternoon

So, for all intents and purposes, these are no different than our cameras:

o You need Java installed, or
o You need to tell IE to allow Active X

Looking at trying something completely different, like SMIL or QuickTime….

Posted in Projects, Video and Audio | Leave a comment

barcode help

Consulted with Tina Escaja. hher barcodes ahd funny characters in them. Turns out she was feeding barcode generator .rtf (rich text format) rather than .txt (plain text format) files.

Posted in ElectronicArts, Projects | Leave a comment

iPod Video Demos

Demonstrtions and discussions of  use/support of iPod Video with Jon Bellum , Steve Cavrak, and Carol Caldwell-Edmonds

Posted in iPods, Projects | Leave a comment

Streaming Server Consult

very brief consult with Cathy Yandow re: streaming server access for Across the Fence

Posted in Projects, Video and Audio | Leave a comment

Davis Construction cam

increased frequency of DavisCam image capture from 1 hour to 15 minutes. Downloaded all images from DavisCam_1 (47) and DavisCam_2 (47) and Concam (27,000), and made QuickTime movies from them, just to show Allen Josey what to expect.:

Sent message to katherine.calise@uvm.edu with davis_cam.php attached so she can add it to the Davis web page.

Posted in Projects, Video and Audio | Leave a comment

Blog won’t blog

Investigated issue where new post to waw.blog.uvm.edu would not appear, an rebuillding indices  failed with perl error. Justin traced it down to enclosure URLs that were missing opr forbidden. Whoops.

Posted in Blogs, Projects | Leave a comment

Blog won't blog

Investigated issue where new post to waw.blog.uvm.edu would not appear, an rebuillding indices  failed with perl error. Justin traced it down to enclosure URLs that were missing opr forbidden. Whoops.

Posted in Blogs, Projects | Leave a comment