apt-get update -y ### 这步要先操作,否则会找不到motion
apt-get upgrade -y ### 有时间再操作,这个升级会花很长的时间
### 开 motion daemon 守护进程,让它可以一直在后台运行
sudo vi /etc/default/motionstart_motion_daemon=yes### 4.修改motion的配置文件 C110参数下方的数据设置,否则无法打开摄像头
sudo vi /etc/motion/motion.conf#deamon off 改成 ondeamon on#设置分辨率width 800height 600#关闭 localhost 的限制webcam_localhost off ### 5.运行 motion:sudo motion http://pingbin.com/2012/12/raspberry-pi-web-cam-server-motion/For me it up running fine, i am using Logitech Webcam C110
Below is my configurationdaemon=onnorm=3input=8auto_brightness=onframerate=300height=640width=480jpeg_filename=motion/%Y%m%d/%v-%H%M%S-%qnoise_tune=onoutput_all=offoutput_motion=onoutput_normal=onquality=1000snapshot_interval=500target_dir=/home/pi/motiontext_left=(c) Nestcamtext_right=%d %b %Y\n%k:%M:%Sthreshold=500v4l2_palette=6videodevice=/dev/video0webcam_localhost=offwebcam_maxrate=50webcam_port=8080wecam_quality=100
引用:
http://shumeipai.nxez.com/2016/09/01/raspberry-pi-motion-cameras-for-remote-monitoring.html#more-2579
http://pingbin.com/2012/12/raspberry-pi-web-cam-server-motion/