### 1.修改成国内的软件源,否则会失败或下载太慢
sudo vi /etc/apt/sources.list
deb http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib
### 2.更新系统软件 并 更新已安装的包
sudo -
apt-get update -y ### 这步要先操作,否则会找不到motion
apt-get upgrade -y ### 有时间再操作,这个升级会花很长的时间
### 开 motion daemon 守护进程,让它可以一直在后台运行
sudo vi /etc/default/motion
start_motion_daemon=yes
### 4.修改motion的配置文件 C110参数下方的数据设置,否则无法打开摄像头
sudo vi /etc/motion/motion.conf
#deamon off 改成 on
deamon on
#设置分辨率
width 800
height 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 configuration
daemon=on
norm=3
input=8
auto_brightness=on
framerate=300
height=640width=480
jpeg_filename=motion/%Y%m%d/%v-%H%M%S-%q
noise_tune=on
output_all=off
output_motion=on
output_normal=on
quality=1000
snapshot_interval=500
target_dir=/home/pi/motion
text_left=(c) Nestcam
text_right=%d %b %Y\n%k:%M:%S
threshold=500
v4l2_palette=6
videodevice=/dev/video0
webcam_localhost=off
webcam_maxrate=50
webcam_port=8080
wecam_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/