Click here to Skip to main content
15,902,777 members
Please Sign up or sign in to vote.
5.00/5 (4 votes)
See more:
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:
XML
<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
Comments
Sergey Alexandrovich Kryukov 18-Jan-11 17:54pm    
Good question
--SA
Nish Nishant 18-Jan-11 17:55pm    
These guys do it : http://www.tincam.com/

Not free though.
Nish Nishant 18-Jan-11 17:57pm    
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:05pm    
Thank you Nish and SAKryukov, I looked and it seems ideal for the job.
Nish Nishant 18-Jan-11 18:17pm    
You're welcome.

Didn't the web cam come with software that does the capture/upload part for you?
 
Share this answer
 
Comments
Dalek Dave 18-Jan-11 18:36pm    
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).
Sergey Alexandrovich Kryukov 18-Jan-11 19:05pm    
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.
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.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 18-Jan-11 19:06pm    
The money is not a problem; the problem there is no source code.
--SA
Sergey Alexandrovich Kryukov 18-Jan-11 19:34pm    
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.
Nish Nishant 19-Jan-11 9:06am    
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:47am    
5+ $19.00 I'll have remember that one - it's a question that pops up from time to time
Nish Nishant 19-Jan-11 9:48am    
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? :-)
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.
 
Share this answer
 
v5
Comments
Espen Harlinn 19-Jan-11 9:46am    
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
Sergey Alexandrovich Kryukov 19-Jan-11 10:22am    
Thank again, Espen!
I wonder what Dalek say, if he wants to try that.
 
Share this answer
 
Comments
JF2015 19-Jan-11 0:20am    
Good links!
Espen Harlinn 19-Jan-11 9:48am    
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[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900