Installation and use of Mjpg_streamer

Source: Internet
Author: User

Mjpg-streamer can access the Linux UVC compatible camera via file or HTTP mode. In the company, it is helpful for parents with children to see the situation at home by visiting the camera installed at home. Mjpg-streamer requires very little CPU and memory resources to work, most of the coding work is done by the camera, so it is suitable for routers with limited memory and performance. The experiment was done on a UNBUTU14.04 system. I. Installation-dependent related libraries

sudo apt-get install Libjpeg8-dev
sudo apt-get install Libjpeg62-dev two. Check the camera driver

$ lsusb
[If you see a connected camera, it means the connection is successful] (https://img-blog.csdn.net/20160611214741689)

Then check the camera driver.
ls/dev/vid*
If the driver reads successfully, the above instruction will display a driver file, usually a name such as Video0. three. Installing Mjpg_streamer

1, installation CMake
sudo apt-get install CMake
2. Place all *.so files in the/lib directory (if you do not do this, you may get the following error:)
Error:could not find input plugin perhaps you want to adjust the search path With:export ld_library_path=/path/to/plugin /folder Dlopen:input_uvc.so:cannot Open Shared object file:no such file or directory
3. Switch to the mjpg path:

CD ~/mjpg-streamer-master/mjpg-streamer-experimental sudo make clean all

4, Installation Mjpg-streamer
sudo cp Mjpg_streamer/usr/local/bin
sudo cp-r www/usr/local/www

5. Open Mjpg-streamer
Go to the Mjpg_streamer folder and execute the./start.sh command to open the application. In the browser enter http://Your ip:8080/stream.html to open the monitoring interface. Iv. Virtual Machine extranet Access settings # See this blog:

> [(http://graybull.is-programmer.com/posts/36941.html)]

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.