1、安装所依赖的库 sudo apt-get install subversion sudo apt-get install libjpeg8-dev sudo apt-get install imagemagick sudo apt-get install libv4l-dev sudo apt-get install cmake sudo apt-get install git 2、下载mjpg-streamer sudo git clone https://github.com/jacksonliam/mjpg-streamer.git 3、进入mjpg-streamer-experimental文件夹 cd mjpg-streamer/mjpg-streamer-experimental 4、编译 sudo make all 5、安装 sudo make install 6、添加动态库的路径 export LD_LIBRARY_PATH="$(pwd)" 7、运行 ./mjpg_streamer -i “./input_raspicam.so” -o “./output_http.so -w ./www” 8、打开浏览器,输入网址 树莓派ip地址:8080,就可以看到视频监控了
|