⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 motion_guide.html

📁 motion motion
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</li> <li> <a href="#External_Commands"> External Commands</a> <ul><li> <a href="#on_area_detected"> on_area_detected</a></li> <li> <a href="#on_camera_lost"> on_camera_lost</a></li> <li> <a href="#on_event_end"> on_event_end</a></li> <li> <a href="#on_event_start"> on_event_start</a></li> <li> <a href="#on_motion_detected"> on_motion_detected</a></li> <li> <a href="#on_movie_end"> on_movie_end</a></li> <li> <a href="#on_movie_start"> on_movie_start</a></li> <li> <a href="#on_picture_save"> on_picture_save</a></li> <li> <a href="#quiet"> quiet</a></li> <li> <a href="#What_happened_to_mail_and_sms"> What happened to mail and sms?</a> <ul><li> <a href="#Sending_email_at_start_of_event"> Sending email at start of event</a></li> <li> <a href="#Sending_SMS_at_start_of_event"> Sending SMS at start of event</a></li></ul> </li></ul> </li></ul> </li> <li> <a href="#Motion_Guide_Special_Features"> Motion Guide - Special Features</a> <ul><li> <a href="#Tracking_Control"> Tracking Control</a> <ul><li> <a href="#Tracking_Feature_with_Logitech_Q"> Tracking Feature with Logitech Quickcam Sphere/Orbit</a></li> <li> <a href="#track_auto"> track_auto</a></li> <li> <a href="#track_iomojo_id"> track_iomojo_id</a></li> <li> <a href="#track_maxx"> track_maxx</a></li> <li> <a href="#track_maxy"> track_maxy</a></li> <li> <a href="#track_motorx"> track_motorx</a></li> <li> <a href="#track_motory"> track_motory</a></li> <li> <a href="#track_move_wait"> track_move_wait</a></li> <li> <a href="#track_port"> track_port</a></li> <li> <a href="#track_speed"> track_speed</a></li> <li> <a href="#track_step_angle_x"> track_step_angle_x</a></li> <li> <a href="#track_step_angle_y"> track_step_angle_y</a></li> <li> <a href="#track_stepsize"> track_stepsize</a></li> <li> <a href="#track_type"> track_type</a></li></ul> </li> <li> <a href="#Using_Databases"> Using Databases</a> <ul><li> <a href="#sql_log_image"> sql_log_image</a></li> <li> <a href="#sql_log_mpeg"> sql_log_mpeg</a></li> <li> <a href="#sql_log_snapshot"> sql_log_snapshot</a></li> <li> <a href="#sql_log_timelapse"> sql_log_timelapse</a></li> <li> <a href="#sql_query"> sql_query</a></li></ul> </li> <li> <a href="#MySQL"> MySQL</a> <ul><li> <a href="#mysql_db"> mysql_db</a></li> <li> <a href="#mysql_host"> mysql_host</a></li> <li> <a href="#mysql_password"> mysql_password</a></li> <li> <a href="#mysql_user"> mysql_user</a></li></ul> </li> <li> <a href="#PostgreSQL"> PostgreSQL</a> <ul><li> <a href="#pgsql_db"> pgsql_db</a></li> <li> <a href="#pgsql_host"> pgsql_host</a></li> <li> <a href="#pgsql_password"> pgsql_password</a></li> <li> <a href="#pgsql_port"> pgsql_port</a></li> <li> <a href="#pgsql_user"> pgsql_user</a></li></ul> </li> <li> <a href="#Video4Linux_Loopback_Device"> Video4Linux Loopback Device</a> <ul><li> <a href="#motion_video_pipe"> motion_video_pipe</a></li> <li> <a href="#video_pipe"> video_pipe</a></li></ul> </li></ul> </li></ul> </div><p /><h1><a name="Motion_Guide_Installation"></a> Motion Guide - Installation </h1><p /><h2><a name="Motion_Overview"></a> <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionOverview" class="twikiLink">Motion Overview</a> </h2><p /><h3><a name="What_is_Motion"></a><a name="What_is_Motion_"></a> What is Motion? </h3> Motion is a program that monitors the video signal from one or more cameras and is able to detect if a significant part of the picture has changed. Or in other words, it can detect motion.<p />The program is written in C and is made for the Linux operating system.<p />Motion is a command line based tool. It has absolutely no graphical user interface. Everything is setup either via the command line or via a set of configuration files (simple ASCII files that can be edited by any ASCII editor).<p />The output from motion can be:<p /> <ul><li> jpg files </li> <li> ppm format files </li> <li> mpeg video sequences </li></ul> <p /><h3><a name="How_do_I_get_Motion_and_what_doe"></a> How do I get Motion and what does it cost? </h3> Motion is an open source type of project. It does not cost anything. Motion is published under the <a href="http://www.gnu.org/licenses/gpl.html" rel="nofollow" target="_top">GNU GENERAL PUBLIC LICENSE</a> (GPL) version 2 or later. It may be a bit difficult to understand all the details of the license text (especially if your first language is not English). It means that you can get the program, install it and use it freely. You do not have to pay anything and you do not have to register anywhere or ask the author or publisher for permission. The GPL gives you both rights and some very reasonable duties when it comes to copying, distribution and modification of the program. So in very general terms you do not have to worry about licensing as a normal hobby user. If you want to use Motion in a commercial product, if you want to distribute either modified or original versions of Motion - for free or for a fee, you should read the license carefully. For more information about free software and the GPL, I encourage you to study the very interesting documents about the subject available the of the Free Software Foundation pages about the <a href="http://www.gnu.org/philosophy/philosophy.html" rel="nofollow" target="_top">Philosophy of the GNU Project</a>.<p /><h3><a name="Maintenance_and_Support"></a> Maintenance and Support </h3> Both Motion and the Motion Guide are written by people that do all this as a hobby and without asking for any payments or donations. We have a life other than developing Motion and its documentation. This means that bugfixes and updates to this guide are done as our time and families allow it. You are however encouraged to participate and contribute in a very active <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MailingList" class="twikiLink">mailing list</a>. It is a list with a very "positive attitude" and with many contributors that propose features, post patches, discuss problems and patiently answer newbie questions with a very positive spirit. Expect 1-10 emails per day.<p />To get motion direct your browser to the <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome" class="twikiCurrentWebHomeLink twikiLink">Motion Homepage</a>.<p />On the <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/DownloadFiles" class="twikiLink">Download Files</a> page you will find a links to the latest stable version both as sources and binaries for some of the most popular Linux distributions. You will also find links to development versions. Snapshot releases are special test releases that are normally very stable. Every day a <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionDailySourceSnap" class="twikiLink">Motion Daily Source Snap</a> is created from the <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionSubversion" class="twikiLink">Motion Subversion</a><p />Motion was originally written by Jeroen Vreeken who still actively participates in the development of Motion and later Folkert van Heusden continued as a lead programmer with Kenneth Lavrsen responsible for Motion Guide, website and releases on Sourceforge.<p />From version 3.1.12 Motion is now project managed entirely by Kenneth Lavrsen, and the project now shift towards being developed by many contributers.<p />For support we encourage you to join the mailing list instead of writing to Jeroen, Folkert or Kenneth directly. We are all very active on the mailing list and by using the mailing list much more users will have benefit of the answers. Newbies and stupid questions are welcome on the list. Contributions in the form of patches are also very welcome on the mailing list.<p /><h3><a name="Which_version_to_download_and_us"></a> Which version to download and use? </h3> Versions 3.2.X are the current version. There is at the moment no development branch. The versions 3.1.X ended at 3.1.20 and there will be no more 3.1.X releases. If you use use a version older than 3.2.X you are encouraged to update.<p />Since 3.1.13 quite many options have been renamed to make setting up Motion easier. From 3.1.17-18 some unfinished features have been removed. The Berkeley mpeg feature is now removed because the ffmpeg feature is now mature and much better working. At version 3.1.18 a new network camera feature was introduced replacing the old cURL based netcam code and introducing support of mjpeg streaming cameras. However this new code was quite difficult to get stable. During the development of 3.2.2 the network camera code was totally rewritten again learning from our experience and now finally it seems to be stable.<p />Motion is included in Debian, while Ubuntu and RPM users can find binary packages on the Motion Sourceforge file download page.<p /><h3><a name="What_features_does_Motion_have"></a><a name="What_features_does_Motion_have_"></a> What features does Motion have? </h3> See more description at the <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome" class="twikiCurrentWebHomeLink twikiLink">Motion Homepage</a>.  <ul><li> Taking snapshots of movement </li> <li> Watch multiple video devices at the same time </li> <li> Watch multiple inputs on one capture card at the same time </li> <li> Live streaming webcam (using multipart/x-mixed-replace) </li> <li> Real time creation of mpeg movies using libraries from ffmpeg </li> <li> Take automated snapshots on regular intervals </li> <li> Take automated snapshots at irregular intervals using cron </li> <li> Executing external program when detecting movement </li> <li> Execute external program at the beginning of an event of several motion detections. </li> <li> Execute external program at the end of an event of several motion detections. </li> <li> Execute external program when a picture is saved. </li> <li> Execute external program when a movie mpeg is created (opened) </li> <li> Execite external program when a movie mpeg ends (closed) </li> <li> Motion tracking </li> <li> Feed events to an MySQL or PostgreSQL database. </li> <li> Feed video back to a video4linux loopback for real time viewing </li> <li> Web interface using <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/RelatedProjects" class="twikiLink">Motion Related Projects</a> such as <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionCGI" class="twikiLink">motion.cgi</a>, <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/KennethsWebcamPackage" class="twikiLink">Kenneths Webcam Package</a>, <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/KevinsWebpage" class="twikiLink">Kevins Webpage</a>, <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/XMotionTool" class="twikiLink">X-Motion</a> and many more. </li> <li> User configurable and user defined on screen display. </li> <li> Control via simple web interface. </li> <li> Automatic noise and threshold control </li> <li> Ability to control the pan/tilt of a Logitech Sphere (or Orbit) camera </li> <li> Highly configurable display of text on images. </li> <li> High configurable definition of path and file names of the stored images and films. </li></ul> <p />You can find more information and links at the <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome" target="_top">Motion Homepage</a>.<p /><h3><a name="FreeBSD"></a><a name="_FreeBSD"></a> FreeBSD </h3><p />Motion is originally developed for Linux and it is still mainly developed and supported for this platform. From version 3.1.15 an experimental port has been made by Angel Carpintero. Not all features of Motion are supported at this time and it still needs a lot of test time on different hardware. Angel is very interested in feedback. Join the Motion Mailing List and give your feedback there. Patches for bugfixes and for enabling the missing features are very welcome. The rest of this guide is still mainly targeted for Linux users. Follow this topic to <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/FreeBSD" target="_top">Install FreeBSD</a>.<p /><h3><a name="MacOSX"></a><a name="_MacOSX"></a> MacOSX </h3><p />From Motion version 3.2.4 it is now also possible to build and install Motion under <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MacOSX" class="twikiLink">MacOSX</a>. Feature set it the same as for FreeBSD. See the <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MacOSX" class="twikiLink">MacOSX</a> topic for specific help how to install Motion and its dependencies on <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MacOSX" class="twikiLink">MacOSX</a>. Again this port has been contributed by Angel Carpintero.<p /><h3><a name="Documentation"></a> Documentation </h3> You have the following sources of information:<p /> <ul><li> This <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuide" class="twikiLink">Motion Guide</a>. 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -