树莓派安装监控程序mjpg_streamer

树莓派作为一款功耗比较小的卡片式电脑

比较省电,可以有来当作下载机,监控机

如何操作摄像头

我们可以安装mjpg_streamer

首先查看摄像头

>root@orangepipc:~# ls /dev/video0
/dev/video0

然后安装mjpg_streamer

```
pi@raspberrypi:~ sudo apt-get install subversion gcc make
pi@raspberrypi:~ sudo apt-get install libv4l-dev #armbian貌似不可以
pi@raspberrypi:~ sudo apt-get install libjpeg62-dev #armbian貌似不可以
pi@raspberrypi:~ sudo apt-get install libjpeg8-dev
pi@raspberrypi:~ sudo apt-get install imagemagick
pi@raspberrypi:~ $ sudo apt-get install cmake libjpeg8-dev libjpeg62-turbo-dev
pi@raspberrypi:~ $ wget https://github.com/Five-great/mjpg-streamer/archive/master.zip
pi@raspberrypi:~ $ unzip mjpg-streamer-master.zip
pi@raspberrypi:~ $ cd mjp*g-*
pi@raspberrypi:~/mjpg-streamer-master $ cd mjpg-*
pi@raspberrypi:~/mjpg-streamer-master $ make clean all
pi@raspberrypi:~/mjpg-streamer-master/mjpg-streamer-experimental $ make
pi@raspberrypi:~/mjpg-streamer-master/mjpg-streamer-experimental $ sudo make install
```

然后访问`http://localhost:8080`即可

我们也可以设置密码

>./mjpg_streamer -i "./input_uvc.so -d /dev/video0 -y -r 640x480 -f 20" -o "./output_http.so -p 8090 -c test:123456 -w ./www" -o "output_file.so -d 60000 -f /home/pi"

    A+
发布日期:2021年06月27日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: