Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need a software which were able to capture images from a webcam and stream it to the web-page.

I already tried a webcam-server, but it uses java applet on the client side for retrieving pictures, which is not supported on my client device (Android tablet).

An alternative maybe be a software which captures images from a webcam and writes them to the same file, constantly rewriting it. In that case, my java-script on the client side can just use this file to constantly refresh an image.

Any ideas and suggestions are greatly appreciated.

share|improve this question
up vote 3 down vote accepted

Yeah you're on the right path. Deal with standard images and update it with javascript.

You should have a look at webcam which is a little command line app that just snaps away and can upload over FTP. If you don't have an FTP server (eg only SSH) you could mount that and have it upload that way.

One note about refreshing the images: stick '?var=' + (new Date).getTime() on the end of the image URL each time you fetch it. This just forces the browser not to use a cached copy. And make sure you don't set the refresh interval too aggressive.

share|improve this answer
Thank you for your respond. Is there any way to tell a webcam software to upload image to the local directory, not ftp server? – Peter17 Jan 24 '12 at 13:11
I found. It can be easily configured to save image to the local directory. – Peter17 Jan 24 '12 at 13:16
I used the webcam utility and it completely solved my problem after some editing of its configuration file. – Peter17 Jan 25 '12 at 16:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.