 |

02-24-2008, 09:02 AM
|
 |
WebProWorld Member
|
|
Join Date: Dec 2003
Location: Minnesota
Posts: 43
|
|
Live Camera Feed to Web Page
I have a customer who is planning to install a live camera in a remote location that updates about every fifteen seconds. He wants to feed that image into a window on a page of his site. Can someone point me in the direction of what I'll need to learn?
__________________
Jeff Sundin, Professional Fishing Guide - WannaBe Webmaster
|

02-24-2008, 11:05 AM
|
 |
WebProWorld 1,000+ Club
|
|
Join Date: May 2005
Location: Norway
Posts: 4,565
|
|
Re: Live Camera Feed to Web Page
Last edited by kgun : 02-24-2008 at 11:33 AM.
|

02-25-2008, 11:07 AM
|
 |
Moderator
|
|
Join Date: Jun 2006
Location: United States
Posts: 1,629
|
|
Re: Live Camera Feed to Web Page
I used to work for a consumer electronics company as a technician, specifically working on IP camera systems. Generally speaking, it is very easy to integrate. There are a few different ways to accomplish this. Generally speaking you would not want to present the user with access to the live feed. This will increase your bandwidth, slow down the rest of the network, and present a potential security risk to the network itself.
The cameras I worked with had a built in FTP client and a timer. You could set up the timer to take a still image every so many seconds or minutes and transfer the image to a web server via FTP. This will probably give you the exact results you are looking for. Then the only thing you need is basic Javascript to change the image every 15 seconds if you don't want the user to have to refresh the page manually.
|

02-25-2008, 11:18 AM
|
 |
WebProWorld Member
|
|
Join Date: Jun 2007
Location: Swindon
Posts: 59
|
|
Re: Live Camera Feed to Web Page
This software ( http://www.pysoft.com/ActiveWebCamMainpage.htm) can do the ftp upload for you then you just need some javascript to display and update the image every xx seconds
This JavaScript will load new images from a 640 × 480 webcam as fast as your connection (or the server's) can supply them, without caching problems. It requires the "document.images" object, though could easily be updated for more modern DOMs by using document.getElementWithId().
<script type="text/javascript" language="JavaScript">
newImage = new Image();
function LoadNewImage()
{
var unique = new Date();
document.images.webcam.src = newImage.src;
newImage.src = "http://path/to/webcam.jpeg?time=" + unique.getTime();
}
function InitialImage()
{
var unique = new Date();
newImage.onload = LoadNewImage;
newImage.src = "http://path/to/webcam.jpeg?time=" + unique.getTime(); document.images.webcam.onload="";
}
</script>
<img src="http://path/to/webcam.jpeg" name="webcam" onload="InitialImage()" width="640" height="480">
|

02-25-2008, 12:52 PM
|
|
WebProWorld New Member
|
|
Join Date: Feb 2008
Location: Ojai, CA, USA
Posts: 2
|
|
Considering a Live Feed - www.ecyclegroup.com
Hi everyone. We are new to this site and we are considering posting a live video feed into our processing facilities. We recycle printer cartridges and cell phones . Our web url is Recycle Cartridges and Used Cell Phones. (that slogan just popped up when I entered our url - another mystery).
Any advice would be great. Is this common to post a feed that is focused on processing?

|

02-25-2008, 01:30 PM
|
 |
WebProWorld 1,000+ Club
|
|
Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,098
|
|
Re: Live Camera Feed to Web Page
I'm with Wige and Mr. Hart.
We did virtually the same thing several years back.
Our client runs construction sites all across the prairies and wanted their investors and potential clients to be able to monitor projects from anywhere.
We used a local PC on the job site which was hooked up to an outdoor webcam to shoot still images every 30 seconds. The camera software would then log on to the net, ftp the still shots (via dialup connection) to the web server, log off and compile the still shots into stop motion videos at the end of each week. All automatically.
The clients were thrilled and so where their investors. Eezie-Peezie to set up, inexpensive to operate and it works like a charm as long as there's an internet connection and a power supply.
Sorry, can't recall the name of the software but there are a few brands around that all do pretty much the same thing. Follow Alan-Hart's link, that'll get ya started in the right direction.
|

02-25-2008, 01:45 PM
|
|
WebProWorld New Member
|
|
Join Date: Feb 2008
Location: Ojai, CA, USA
Posts: 2
|
|
Re: Live Camera Feed to Web Page
Thanks Dubbya!
|

02-25-2008, 03:51 PM
|
 |
WebProWorld Member
|
|
Join Date: Jan 2008
Posts: 55
|
|
Re: Live Camera Feed to Web Page
wont that eat up bandwidth like a mother?
|

02-25-2008, 05:08 PM
|
 |
WebProWorld 1,000+ Club
|
|
Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,098
|
|
Re: Live Camera Feed to Web Page
Quote:
|
wont that eat up bandwidth like a mother?
|
Nope... only connects to the network once a minute, just long enough to upload a 320x240 .jpg file
The video is not meant for the general public and are seldom ever linked to other than in the pages they're displayed in.
|

02-26-2008, 12:59 AM
|
 |
WebProWorld 1,000+ Club
|
|
Join Date: May 2005
Location: Norway
Posts: 4,565
|
|
Re: Live Camera Feed to Web Page
Quote:
Originally Posted by wige
I used to work for a consumer electronics company as a technician, specifically working on IP camera systems. Generally speaking, it is very easy to integrate. There are a few different ways to accomplish this. Generally speaking you would not want to present the user with access to the live feed. This will increase your bandwidth, slow down the rest of the network, and present a potential security risk to the network itself.
The cameras I worked with had a built in FTP client and a timer. You could set up the timer to take a still image every so many seconds or minutes and transfer the image to a web server via FTP. This will probably give you the exact results you are looking for. Then the only thing you need is basic Javascript to change the image every 15 seconds if you don't want the user to have to refresh the page manually.
|
My bolding.
Googling that term gives a lot of potential solutions.
|

02-26-2008, 01:02 AM
|
 |
WebProWorld 1,000+ Club
|
|
Join Date: May 2005
Location: Norway
Posts: 4,565
|
|
Re: Live Camera Feed to Web Page
Quote:
Originally Posted by Alan-Hart
This JavaScript will load new images from a 640 × 480 webcam as fast as your connection (or the server's) can supply them, without caching problems. It requires the "document.images" object, though could easily be updated for more modern DOMs by using document.getElementWithId(). You mean document.getElementById().
<script type="text/javascript" language="JavaScript">
newImage = new Image();
function LoadNewImage()
{
var unique = new Date();
document.images.webcam.src = newImage.src;
newImage.src = "http://path/to/webcam.jpeg?time=" + unique.getTime();
}
function InitialImage()
{
var unique = new Date();
newImage.onload = LoadNewImage;
newImage.src = "http://path/to/webcam.jpeg?time=" + unique.getTime(); document.images.webcam.onload="";
}
</script>
<img src="http://path/to/webcam.jpeg" name="webcam" onload="InitialImage()" width="640" height="480">
|
May be that script is good enough, but is it crossbrowser compatible?
Good starting point.
|

02-26-2008, 09:50 AM
|
 |
Moderator
|
|
Join Date: Jun 2006
Location: United States
Posts: 1,629
|
|
Re: Live Camera Feed to Web Page
In our case the cameras I worked with had a built in web server and FTP solution, so that everything could be automated from the device itself. This cut down on the need for additional resources at the site where the camera was installed. All you need at that location is a firewall to limit direct access to the camera. On your web server you would create the client-side coding.
This functionality is available on IP cameras from D-Link, Linksys, and Panasonic, and probably others.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|