博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
motion的移植和使用
阅读量:7042 次
发布时间:2019-06-28

本文共 2190 字,大约阅读时间需要 7 分钟。

说明:

motion主页:
motion下载地址:
系统: Ubuntu 12.10
开发板:mini2440
linux: 2.6.32
交叉工具链:4.4.3
motion版本:3.2.11.1
对于PC版本的直接apt-get install motion就可以的具体的使用方法参见 。
本文主要记录一下ARM版本的编译使用:
1.去上边说明的motion下载地址下载3.2.11.1版本
2.配置命令:./configure  --prefix=${PWD}/_install  --host=arm-linux --without-ffmpeg
3.接下来就是make  和 make install了。
4.make install后会在_install/bin/目录下产生motion可执行文件,拷贝到开发板上/root/motion目录下,并在同目录中建motion.conf内容如下:
# Minimal motion example config file provided by the
# Debian motion package - for basic webcam operation.
#
# You most certainly want to investigate
# /usr/share/doc/motion/examples/motion-dist.conf.gz
# for further configuration options. Also, refer to the
# motion man page and /usr/share/doc/motion/motion_guide.html
# for detailed information on configuration options.
 
daemon off
quiet on
locate on
 
# You may very well need to change this (check with 'dmesg'
# after plugging in your webcam).
videodevice /dev/video0
 
# Image size in pixels (valid range is camera dependent).
width 320
height 240
 
framerate 25
quality 85
auto_brightness off
 
# General threshold level and noise threshold
# level (for distinguishing between noise and motion).
threshold_tune off
threshold 4500
noise_level 64
# Initial brightness, contrast, hue (NTSC), and saturation.
# 0 = disabled (valid range 0-255).
brightness 0
contrast 0
saturation 0
hue 0
# Encode movies in real-time (install ffmpeg before enabling).
ffmpeg_cap_new on
 
# Codec to be used by ffmpeg for the video compression.
# Supported formats: mpeg4, msmpeg4.
ffmpeg_video_codec msmpeg4
 
# Target base directory for pictures and films (you may need
# to change this (or change its permissions) depending on
# which system user runs motion).
target_dir /root/motion/snapshots
 
# Define a port number (e.g. 8000) to enable the mini-http server.
# 0 = disabled.
webcam_port 8081
 
# Set to 'off' to allow anybody (not just localhost) to view the
# webcam via the mini-http server ( :port).
webcam_localhost off
 
snapshot_interval 1
snapshot_filename snapshot
 
webcam_quality 50
webcam_maxrate 8
#on_event_start /root/motion/on_motion_detected
#on_event_end /root/motion/on_motion_end
gap 10
5.运行./motion -c motion.conf
6.用chrome浏览器实时监控(360极速,世界之窗测试不可以)
 

 

转载地址:http://kjhal.baihongyu.com/

你可能感兴趣的文章
科技公司Vs.传统汽车厂商:谁做自动驾驶更有优势?
查看>>
java.net.BindException: Cannot assign requested address
查看>>
WinAPI 编写基本服务程序
查看>>
Android SDK中 tools 目录下的工具介绍
查看>>
J2EE下的oracle数据库备份方法
查看>>
网络管理技巧进阶:七招鲜
查看>>
PostgreSQL 11 preview - 分区智能并行JOIN (类似MPP架构,性能暴增)
查看>>
SCVMM2012R2 高可用性安装及配置
查看>>
关于邮件无法发送的问题
查看>>
Greenplum roaring bitmap与业务场景 (类阿里云RDS PG varbitx, 应用于海量用户 实时画像和圈选、透视)...
查看>>
深入研究Java类加载机制
查看>>
Server 2008 R2 AD RMS完整部署:RMS部署篇
查看>>
通过binlog日志文件恢复单表【小技巧】
查看>>
开荒之作《互联网运营智慧》一书即将付梓
查看>>
Python中单引号、双引号和三引号的区别
查看>>
DHCP中继代理
查看>>
可视化日志分析工具Gltail的安装与使用
查看>>
使用SSL协议保证web服务通信安全(一、基础理论篇)
查看>>
IHttpHandler的妙用(1):给图片添加水印
查看>>
ADO.NET DataReader对象简介
查看>>