motion的配置


配置命令:./configure  --prefix=${PWD}/_install  --host=arm-linux --without-ffmpeg


接下来就是make  和 make install了



make install后会在_install/bin/目录下产生motion可执行文件,拷贝到开发板上/root/motion目录下,并在同目录中建motion.conf内容如下:
内容如下:

daemon off
quiet on
locate on
videodevice /dev/video0
width 320
height 240
framerate 25
quality 85
auto_brightness off
threshold_tune off
threshold 4500
noise_level 64
brightness 0
contrast 0
saturation 0
hue 0
ffmpeg_cap_new on
ffmpeg_video_codec msmpeg4
target_dir /root/motion/snapshots
webcam_port 8081
webcam_localhost off
snapshot_interval 1
snapshot_filename snapshot
webcam_quality 50
webcam_maxrate 8
gap 10





运行./motion -c motion.conf


用浏览器实时监控{输入开发板的ip地址和接口地址,如:192.168.1.100:8081 }






你可能感兴趣的:(Embedded积累)