说明:

motion下载地址:http://sourceforge.net/projects/motion/files/motion%20-%203.2/

 
系统: 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 (http://hostname: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极速,世界之窗测试不可以)

motion的移植和使用的更多相关文章

  1. Linux下移动图像监测系统——motion的移植及应用

    移动图像监控主系统的开发 移动图像监控的原理方法: 通过获取摄像头图像,比较前后每一帧的图像数据,从而实现移动物体监控.所有移动监控均是如此,只是图像帧的比较算法不同. 移动图像监控系统的实现 选择开 ...

  2. 移动物体监控系统-sprint3移动监控主系统设计与开发

    一.移动监控的原理 通过获取摄像头图像,比较前后每一帧的图像数据,从而实现移动物体监控.所有移动监控原理都是这样,只是图像帧的对比的算法不一样. 二.移动物体监控系统的实现 选择开源的移动监控软件mo ...

  3. motion程序的移植和安装【转】

    本文转载自:http://blog.csdn.net/guozhiyuan20095318/article/details/7310486 motion是一个开源的用于移动图像监控的程序.我在做博创杯 ...

  4. motion移植

    一. 支持ffmpeg功能(使能motion中的视频编码功能)支持视频采集 —> ffmpeg不支持 —host   1. mkdir _install 2. ./configure —pref ...

  5. linux下motion摄像头监控编译与配置

    利用linxu下的开源的motion搭建嵌入式视频动态监控系统 所谓移动图像监测,简单来说就是利用摄像头定点监测某个区域,当有移动物体经过时,摄像头便自动抓拍(要监测多大物体.按拍照速率都是可调的), ...

  6. 六轴加速度传感器MPU6050官方DMP库到瑞萨RL78/G13的移植

    2015年的电赛已经结束了.赛前接到器件清单的时候,看到带防护圈的多旋翼飞行器赫然在列,又给了一个瑞萨RL78/G13的MCU,于是自然联想到13年的电赛,觉得多半是拿RL78/G13做四旋翼的主控, ...

  7. 基于mjpg_streamer视频服务器移植【转】

    本文转载自:http://blog.csdn.net/wavemcu/article/details/7539560 MJPG简介: MJPG是MJPEG的缩写,但是MJPEG还可以表示文件格式扩展名 ...

  8. 小波变换和motion信号处理(一)(转)

    写的太好,不得不转:http://www.kunli.info/2011/02/15/fourier-wavelet-motion-signal-1/ 这是<小波变换和motion信号处理> ...

  9. linux下的开源移动图像监测程序--motion编译与配置

    前几天在网上偶然看到一篇博客,是利用linxu下的开源的motion搭建嵌入式视频动态监控系统,感觉很好很强大于,是就想自己编译移植一下试试. 所谓移动图像监测,简单来说就是利用摄像头定点监测某个区域 ...

随机推荐

  1. DNS与NS、NS记录

    DNS:人们习惯记忆域名,但机器间互相只认IP地址,域名与IP地址之间是一一对应的,它们之间的转换工作称为域名解析,域名解析需要由专门的域名解析服务器来完成,整个过程是自动进行的. 当你的网站制作完成 ...

  2. 程序员Git代码托管平台

    程序员Git代码托管平台 说到Git代码托管平台,首先推荐的是GitHub,好多好的开源项目都来自GitHub,但是GitHub只能新建公开的Git仓库,私有 仓库要收费,如果你做的是一个开源项目,可 ...

  3. django1.8读书笔记模版高级进阶

    一.概述 想要定制或者扩展模版引擎,模版系统工作原理,自动转移特征 名词解析:模板 渲染 就是是通过从context获取值来替换模板中变量并执行所有的模板标签. 二.Context处理器 如果在模版中 ...

  4. unity5 where is "Edit->Render Settings"?

    The Render Settings logic has changed a bit. To find the settings you will need to go to "Windo ...

  5. Android Gradle 引用本地 AAR 的几种方式

    折衷方案: 1.方式2 - 不完美解决办法2 2.再使用"自定义Gradle代码"来减轻重复设置的问题. 自定义Gradle代码如下: repositories { flatDir ...

  6. mysql常用函数汇总(分享)

    以下是对mysql中的常用函数进行了汇总介绍.需要的朋友可以过来参考下. 一.数学函数ABS(x) 返回x的绝对值BIN(x) 返回x的二进制(OCT返回八进制,HEX返回十六进制)CEILING(x ...

  7. C++ 智能指针 shared_ptr

    今天晚上去旁听了C++高级编程的课,其中提到智能指针.第一反映还以为是auto_ptr呢,一听才知道是share_ptr这个.哦,原来是C++11特性.大致的原因是auto_ptr有一点缺陷,而sha ...

  8. cocos2d-x 粒子动作 setTexture

    CCSize s = CCDirector::sharedDirector()->getWinSize(); CCNode* explosion = CCParticleSun::create( ...

  9. kafka传数据到Flink存储到mysql之Flink使用SQL语句聚合数据流(设置时间窗口,EventTime)

    网上没什么资料,就分享下:) 简单模式:kafka传数据到Flink存储到mysql 可以参考网站: 利用Flink stream从kafka中写数据到mysql maven依赖情况: <pro ...

  10. canvas.drawBitmap(bitmap, src, dst, paint)

    // GameView.drawImage(canvas, mBitDestTop, miDTX, mBitQQ.getHeight(), mBitDestTop.getWidth(), mBitDe ...