Raspberry PI Development Tour-remote monitoring

Source: Internet
Author: User

1. Installing auxiliary Tools

12 sudo apt-get install libjpeg8-devsudo apt-get install cmake

2. Edit the source file

12 sudo git clone <a href="https://github.com/jacksonliam/mjpg-streamer"target="_blank">https://github.com/jacksonliam/mjpg-streamer<br></a>cd mjpg-streamer/mjpg-streamer-experimental/plugins/input_raspicamnano input_raspicam.c

Configure the Fps,width,height parameter in the file as shown

3. Compiling mjpg Software

Then go to the engineering Mjpg-streamer/mjpg-streamer-experimental and complete the compilation:

1 make clean all

Go to the Raspberry Pi settings menu:

1 sudo raspi-config

Move to the fifth "Enable Camera", enter, press the TAB key to switch to "enable" to confirm the return. Back to the main menu, tab to "Finish" to confirm the return. The Raspberry Pi will restart automatically.

Reboot complete Enter the system, command to enter the Mjpg-streamer-experimental directory, use the following command to start the normal USB camera:

1 ./mjpg_streamer -"./input_uvc.so"-"./output_http.so -w ./www"

The instructions for starting the Raspberry Pi dedicated camera Raspicamera are:

1 ./mjpg_streamer -"./input_raspicam.so"-"./output_http.so -w ./www"

Some cameras will have an error when executing this command, at least if you do not return to the command prompt at the end, and display "starting ouput", it will be successful.

4, the production of mjpg startup script

1 sudo nano jk.sh

Write the following two commands into the script

12 cd mjpg - streamer - master / mjpg - streamer - Experimental / mjpg_streamer  -  - <br>chmod  744  jk.sh

5. Execute mjpg Startup script (Start mjpg)

1 sh jk.sh

Finally, open it on the browser: (I'm using a Chrome browser)
HTTP//Your Raspberry Pi's ip:8080

Raspberry PI Development Tour-remote monitoring

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.