Orange PI Lite安装USB UVC摄像头以及motion与mjpeg-streamer实现远程视频监控

摄像头安装

USB UVC摄像头在LINUX上是即插即用的,因此将USB线插入orange PI Lite的USB口后,即可看到摄像头设备。
dmesg:
[ 241.190330] usb 1-1: new high-speed USB device number 3 using ehci-platform
[ 241.657110] usb 1-1: New USB device found, idVendor=038f, idProduct=6001
[ 241.657120] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 241.657125] usb 1-1: Product: USB 2.0 Camera
[ 241.657130] usb 1-1: Manufacturer: lihappe8 Corp.
[ 241.670388] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (038f:6001)
[ 241.685400] uvcvideo 1-1:1.0: Entity type for entity Processing 2 was not initialized!
[ 241.685411] uvcvideo 1-1:1.0: Entity type for entity Extension 6 was not initialized!
[ 241.685417] uvcvideo 1-1:1.0: Entity type for entity Camera 1 was not initialized!
[ 241.685744] input: USB 2.0 Camera: USB 2.0 Camera as /devices/platform/soc/1c1b000.usb/usb1/1-1/1-1:1.0/input/input4

Motion安装

sudo apt-get install motion

修改/etc/motion/motion.conf:
stream_localhost on改成stream_localhost off
daemon on改成daemon off
默认帧率很低,会严重卡顿,修改帧率:
framerate改成100
stream_maxrate改成60

修改/etc/default/motion:
start_motion_daemon = yes

运行motion:
sudo motion

访问地址:
http://192.168.31.100:8081/
效果如下:
Orange PI Lite安装USB UVC摄像头以及motion与mjpeg-streamer实现远程视频监控_第1张图片

mjpg-streamer安装

sudo apt-get upgrade
sudo apt-get install libjpeg8-dev
sudo apt-get install cmake
unzip master.zip
cd mjpg-streamer-master/mjpg-streamer-experimental
make clean all

直接运行 sh start.sh
后台运行 sh start.sh&

访问http://192.168.31.100:8080/
如需开机自启 ,修改配置:
sudo nano /etc/rc.d/rc.local
sudo sh /home/test/mjpg-streamer-master/mjpg-streamer-experimental/start.sh

效果如下:
Orange PI Lite安装USB UVC摄像头以及motion与mjpeg-streamer实现远程视频监控_第2张图片

总体感觉mjpeg-streamer要比motion流畅,更适合远程视频监控。

你可能感兴趣的:(Robot,motion,mjpeg-streamer,orangePI)