In order to install it on your pi follow the steps:
1. Install Subversion:
sudo apt-get update
sudo apt-get install subversion
2. Go to the folder where you want to has the Mjpg-stremer, for EXAMPLE/HOME/PI
Cd/home/pi
3. Get Mjpg-streamer:
sudo svn co https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer mjpg-streamer
4. Install Libjpeg8-dev
sudo apt-get install Libjpeg8-dev
5. Install ImageMagick
sudo apt-get install ImageMagick
6. Make the project:
CD Mjpg-streamer/mjpg-streamer
Make
7. when the it finishes you should is ready to start streaming your video. To does so, enter the following command:
./mjpg_streamer-i "./input_uvc.so"-o "./output_http.so-w./www"
8. Now you should is able to view the stream from other computer on your network. Open a Web browser and open the following link:
Http://{name or ip-address of the raspi}:8080
9. However, to-let the stream is viewed from outsite your network you'll need to port forward your router. This varies from router to router, so please search for Google how to do it on yours.
//
Sudo svn co https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer mjpg-streamer