Get Flash
to see this player.
The koicam:
A little bit about the koicam:
You can actually grab the video player and drag it around the browser window. The dragging portion is really just an experiment, and doesn't really add to the functionality of this site. But think of the possibilities...
This is mostly common sense, but the best time to watch this cam would be from approximately 6am to 5pm, pacific time (those times will differ from season to season.. obviously).
How did we do it?
1. One Linksys WVC11B Wireless-B Internet Video Camera, on the local NAT
at address 192.168.1.10, hard-wired on a 100MBit ethernet cable.
2. One UBUNTU server hosting KOIKIDS.COM on the same NAT
3. A program to generate 1 minute flash videos, running 7x24,
depositing the files in /movies in the format koi_<hhmm>.flv
where hh = hours and mm = minutes.
Required: mencoder
Optional: hyperscript program, as follows:
on_alarm CAPTURE_MOVIE() ;
alarm 5 ;
list CAPTURE_MOVIE()
{
str koitime = strext(time(timestamp+120),0,4) ;
str koimovie = "/var/www/movies/koi_"+koitime+".flv" ;
str cmd = {
"mencoder http://192.168.1.10/img/video.asf ",
"-of lavf -oac lavc -ovc lavc ",
"-lavcopts vcodec=flv -ffourcc DX50 ",
"-endpos 59 -ofps 25 -vf scale=640:480 ",
"-lavfopts
i_certify_that_my_video_stream_does_not_use_b_frames ",
"-o ",koimovie, " & " } ;
system ( { cmd } ) ;
alarm 60 ;
on_alarm CAPTURE_MOVIE() ;
};
idle ;
4. An opensource freeware flash flv player.
/flash/flvplayer.swf
5. An opensource freeware javascript object that manages the flash player
/js/swfobject.js
6. Personalized javascript functions to automatically load the next
minute's video when the current minute is up.
/cam.htm
7. (Optional) A draggable absolute DIV "window" that serves as a shell
for the CAM, powered by javascript and ajax calls.
/cam/htm + /js/*api.js + /css/sb_panel.css
