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)]