Click here to Skip to main content
Sign Up to vote bad
good
See more: HTMLWebcam
I am attempting a project that will put a webcam feed onto a web page.
 
I have created the viewer with
 <img src="webcam.jpg" width="200" height="200" border="0" alt="my cam pic" />
 
I have refreshed and cache controlled with:
<meta http-equiv="refresh" content="15"/>
<meta http-equiv="expires" content="0"/>
in the header.
 
So far so good.
 
Now I know I need some way of posting from the camera to the website.
 
Can anyone recommend either how I can do this or point me to any software that can do it for me.
 
Thanks.
Posted 18 Jan '11 - 11:51

Comments
SAKryukov - 18 Jan '11 - 17:54
Good question --SA
Nishant Sivakumar - 18 Jan '11 - 17:55
These guys do it : http://www.tincam.com/ Not free though.
Nishant Sivakumar - 18 Jan '11 - 17:57
Okay, it's only $19 so it's quite cheap. Their software will periodically capture images via the webcam, and optionally upload it to a website via FTP. That's basically what you need here.
Dalek Dave - 18 Jan '11 - 18:05
Thank you Nish and SAKryukov, I looked and it seems ideal for the job.
Nishant Sivakumar - 18 Jan '11 - 18:17
You're welcome.

5 solutions

Just to summarize the discussion, here're the steps needed:
 
(1) Periodically capture images form the connected webcam
 
(2) Upload captures images to a website via FTP
 
One company that has software that automates this is:
 
http://www.tincam.com/[^]
 
It's cheap, and currently costs $19.00 for a license.
  Permalink  
Comments
SAKryukov - 18 Jan '11 - 19:06
The money is not a problem; the problem there is no source code. --SA
SAKryukov - 18 Jan '11 - 19:34
Also, it can be two slow. A stream of frames is not a video stream. In particular, compression is done not just at the level of separate frames.
Nishant Sivakumar - 19 Jan '11 - 9:06
Yeah but I thought the idea was to periodically show a still capture (like weather cams) and not to stream actual video.
Espen Harlinn - 19 Jan '11 - 9:47
5+ $19.00 I'll have remember that one - it's a question that pops up from time to time
Nishant Sivakumar - 19 Jan '11 - 9:48
If one of us gets the time, it should not take more than a couple of days to write a free library that will do this. The question is who will take it up? :-)
Espen Harlinn - 19 Jan '11 - 10:17
Using something like http://www.red5server.org/ and SilverLight just to check if it can be done?
Nishant Sivakumar - 19 Jan '11 - 10:23
Yeah, something like that I guess. Haven't previously heard of that red5server site though.
Dalek, my first idea was using VLC which I knew was a streaming software, but I was not sure it would accept camera input. I used VLC for different purposes like downloading/conversion in tricky situations, not streaming. Important thing: this is Open Source.
 
See also http://en.wikipedia.org/wiki/VLC_media_player[^] and http://en.wikipedia.org/wiki/VideoLAN[^]. Originally, VLC means VideoLAN client.
 
(No cameras do not come with streaming software, John, I used good number of them (more of industrial class though)). Some comes with embedded server or course, but this is firmware, you cannot serve it from a regular Web site.
 
Combined search on Goodle gave me this:
 
http://www.wikihow.com/Stream-Your-Webcam[^].
 
(By the way: a credit to Espen Harlinn: he reminded me about VLC in some completely irrelevant context, so I immediately remembered Dalek's question and decided to find out if VLC could serve up a camera.)
 
Please see if it's good enough for you.
If you need something better, try to Google "stream camera to web" or "stream camera to web VLC".
 
Please share you experience if you find and implement something interesting.
  Permalink  
Comments
Espen Harlinn - 19 Jan '11 - 9:46
5+ Liked ... streaming software, John, I used ... and it's a good answer. I use VLC as part of a setup to stream TV and Video around the house from a set top box ... accessed via web
SAKryukov - 19 Jan '11 - 10:22
Thank again, Espen! I wonder what Dalek say, if he wants to try that.
Didn't the web cam come with software that does the capture/upload part for you?
  Permalink  
Comments
Dalek Dave - 18 Jan '11 - 18:36
Alas not, I can access through windows media, but there is no specialist software with it. (Built in vanilla web cam - I could stretch to actually buying a proper one with all the necessary software, but for what I want to do it is unnecessary).
SAKryukov - 18 Jan '11 - 19:05
I don't think so. I used to buy many, mostly industrial and few consumer. See my answer -- it must be at least something close.
  Permalink  
Comments
JF2015 - 19 Jan '11 - 0:20
Good links!
Espen Harlinn - 19 Jan '11 - 9:48
5+ Good answer, another good solution
There was a PowerToy for WindowsXP called Timershot that would capture a webcam picture at a set interval and upload it to a website - I don't know what OS you are using but it may be worth a look
 
http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 545
1 Maciej Los 270
2 Slacker007 240
3 OriginalGriff 235
4 Aarti Meswania 185
0 Sergey Alexandrovich Kryukov 8,953
1 OriginalGriff 7,134
2 CPallini 3,758
3 Rohan Leuva 3,066
4 Maciej Los 2,528


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 20 Jan 2011
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid