motion的移植和使用
来源:互联网 发布:网络快车功能 编辑:程序博客网 时间:2024/06/04 19:50
说明:
motion主页:http://www.lavrsen.dk/foswiki/bin/view/Motionmotion下载地址:http://sourceforge.net/projects/motion/files/motion%20-%203.2/
系统: Ubuntu 12.10开发板:mini2440linux: 2.6.32交叉工具链:4.4.3motion版本: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 offquiet onlocate 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 320height 240framerate 25quality 85auto_brightness off# General threshold level and noise threshold# level (for distinguishing between noise and motion).threshold_tune offthreshold 4500noise_level 64# Initial brightness, contrast, hue (NTSC), and saturation.# 0 = disabled (valid range 0-255).brightness 0contrast 0saturation 0hue 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 offsnapshot_interval 1snapshot_filename snapshotwebcam_quality 50webcam_maxrate 8#on_event_start /root/motion/on_motion_detected#on_event_end /root/motion/on_motion_endgap 10
5.运行./motion -c motion.conf
6.用chrome浏览器实时监控(360极速,世界之窗测试不可以)
7.Motion编译不过的解决方法
a.以上记录所有的版本全部已经给出arm-linux-gcc请采用这个版本。
b.关于桌面系统,我觉得关系不大,但是我采用的是ubuntu 12.10
c.如果出现的是MySQL的问题说明检测的是PC上有这个mysql库,而在交叉编译时并没有导致配置和编译出不同的结果,解决方法有两个:1.卸载PC上的MySQL数据库2.编译配置的时候强制禁制使用MySQL库添加--without-mysql。会主动跳过MySQL的:checking for mysql support... skipped
阅读全文
0 0
- motion的移植和使用
- motion的移植和使用
- motion的移植和配置
- motion程序的移植和安装
- iOS4 中 Core Motion 框架的介绍和使用
- iOS中Core Motion框架的介绍和使用
- iOS4中Core Motion框架的介绍和使用
- iOS4中Core Motion框架的介绍和使用
- iOS4中Core Motion框架的介绍和使用
- iOS4中Core Motion框架的介绍和使用
- iOS4中Core Motion框架的介绍和使用
- iOS4中Core Motion框架的介绍和使用
- iOS4中Core Motion框架的介绍和使用
- iOS4 中 Core Motion 框架的介绍和使用
- 【原创】【专栏】移动侦测motion的学习和使用
- iOS中Core Motion框架的介绍和使用
- iOS4 中 Core Motion 框架的介绍和使用
- 【Unity3D】Generic 动画中 Root Motion的概念和使用
- Java异常处理总结
- 1143: 最大值—多种进制
- 数据结构与算法—常用数据结构及其Java实现
- 采用VB的编码和解码过程(VB encoding and decoding)
- vue-cli之那些日子踩过的坑 哈哈(或许有你想要的答案)
- motion的移植和使用
- Android Studio 打包时 Signature Version V1 V2
- [Unity&重装系统]重装系统缺少MSCRV120.dll
- SQL 简介
- FPGA学习之基于MicroBlaze软核的推箱子游戏设计
- Java中的NIO和IO的比较
- 由浅入深理解java集合(四)
- 医疗协议DICOM学习之基础知识
- Hadoop之HDFS工作原理