Home About Archive Sitemap

.

Software projects

How to stream your cheap webcam to the net

Syslog

I have strugled with avserver/avconv, mjpeg-server and web-cam-server without success for some of my web cameras but Motion seems to work with most and it is the easiest software to set up for a webcam (or other type of video camera). The main purpose of this software is to detect motion and record it or even do something more. This document will help you to setup the streaming, in the future you might use some of the additional features of this software. e.g You can set it up for advanced motion detection, I use Zoneminder for that purpose though I have several cameras to administrate.


For debian based systems like ubuntu and LinuxMint install as normally:

For Red-Hat/Centos RPM for Fedora 12/13/rawhide on x86/x86-64 – Available on RPM Fusion, build without DB support.
Motion and all its dependencies (ffmpeg…) are available on the RPM Fusion repository. Configure the repository and Install motion with

For other linux distributions download and install the tar package. ntar and uncompress the file to the place you want the program installed. Recommended is to place the motion source file directory in /usr/local. Go here for more intructions.

Enable Motion by editing /etc/default/motion file:

If you have only one webcam (or other type of cam) you only need one config file called motion.conf. Here are the parameters in this file I modified:

Start Motion:

Go to http://your_host:8081 from any computer on your intranet and hopefully you can see what the camera see...

Do you want to save motion detected pictures on a FTP server please read How to to save captured images in a remote server when using motion

Do you use an Operating System from MicroSoft see How to stream your cheap webcam to the net using windows