📄 motion_guide.html
字号:
</li></ul> <UL><pre>ln -s motion-3.2.X motion</pre></UL> <ul><li> Now change to the new directory</li></ul> <UL><pre>cd motion</pre></UL> <ul><li> Run configure. You can start with the defaults. If you need to modify the installation parameters you can read the next section.</li></ul> <UL><pre>./configure</pre></UL> <ul><li> Build the code</li></ul> <UL><pre>make</pre></UL> <ul><li> Install the code, manual page, etc</li></ul> <UL><pre>make install</pre></UL> <ul><li> In /etc/motion/etc you will find a file called motion-dist.conf. If it is the first time you install Motion - rename this file to <strong>motion.conf</strong> and edit as a minimum the settings: <strong>videodevice</strong>, <strong>input</strong>, <strong>norm</strong>, <strong>frequency</strong>, <strong>width</strong>, <strong>height</strong> and <strong>target_dir</strong>. That should get you going.</li></ul> <p /> <ul><li> Run the program. To enable more features you must modify the config file.</li></ul> <UL><pre>motion</pre></UL><p /><p /><h2><a name="Preparation_For_Install"></a> <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/PrepareInstall" class="twikiLink">Preparation For Install</a> </h2><p />Note: If you're using SuSE 9.2, you might want to <strong>ADDITIONALLY</strong> have a look at <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/SuSE92Prep" class="twikiLink">Compiling on SuSE 9.2</a>. As mentioned on that page as well, <em>you will still need to read the instructions here as well</em>.<p />Before you start you may need to install a number of shared libraries that Motion uses. If they are missing the feature will simply normally not be included. Most of these libraries can be found on the CDs of your distribution. A few will have to be downloaded from the Internet. Note that when you install software using pre-compiled binaries (Redhat type RPMs, Debian debs etc) you normally only get what is needed to run the programs themselves. In order to compile other programs from source that uses these pre-compiled libraries you also need to installed the development packages. These are normally called the same name as the package suffixed by -devel or -dev. These development packages contains the header files (xxx.h) that Motion needs to build with the shared libraries. If you build a library from sources you already have these header files. It is recommended to simply install the pre-compiled binary packages and their development brothers.<p />This is a list of shared libraries used by Motion and the RPM packages that provides them.<p />Motion will always need these libraries to be built and work <table cellspacing="1" cellpadding="1" class="twikiTable" border="0"><tr><th bgcolor="#dadada" class="twikiFirstCol"> <a rel="nofollow" href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuideOneLargeDocument?skin=text&amp;sortcol=0;table=1;up=0#sorted_table" title="Sort by this column"><font color="#000000">Library</font></a> </th><th bgcolor="#dadada"> <a rel="nofollow" href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuideOneLargeDocument?skin=text&amp;sortcol=1;table=1;up=0#sorted_table" title="Sort by this column"><font color="#000000">RPM Packages</font></a> </th><th bgcolor="#dadada"> <a rel="nofollow" href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuideOneLargeDocument?skin=text&amp;sortcol=2;table=1;up=0#sorted_table" title="Sort by this column"><font color="#000000">Debian Packages</font></a> </th></tr><tr><td bgcolor="#ffffff" class="twikiFirstCol"> libm, libresolv, libdl, libpthread, libc, ld-linux, libcrypt, and libnsl </td><td bgcolor="#ffffff"> glibc and glibc-devel </td><td bgcolor="#ffffff"> libc6 , libc6-dev ,libglib1.2 </td></tr><tr><td bgcolor="#eaeaea" class="twikiFirstCol"> libjpeg </td><td bgcolor="#eaeaea"> libjpeg and libjpeg-devel </td><td bgcolor="#eaeaea"> libjpeg62 and libjpeg62-dev ( optional libjpeg-mmx-dev ) </td></tr><tr><td bgcolor="#ffffff" class="twikiFirstCol"> libz </td><td bgcolor="#ffffff"> zlib and zlib-devel </td><td bgcolor="#ffffff"> zlib1g and zlib1g-dev </td></tr></table><p />For generating mpeg films with <strong>ffmpeg</strong> you need this library:<br>(See also the section <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MpegFilmsFFmpeg" class="twikiLink">Generating MPEG films with ffmpeg</a> for how to install ffmpeg and libavframe/libavcodec)<br><em>Motion must be installed with revision 0.4.8 or 0.4.9pre1 of ffmpeg. Motion will also work with later CVS snapshots of ffmpeg but the API of the ffmpeg libraries changes all the time and without warning. If you have problems compiling Motion or with running an RPM of Motion you may try with an older CVS snapshot of ffmpeg. The Motion developers will like to know when ffmpeg changes and breaks Motion so we can fix it. Please file a bug report then with the exact date of the ffmpeg CVS version you have trouble with.</em><p /><table cellspacing="1" cellpadding="1" class="twikiTable" border="0"><tr><th bgcolor="#dadada" class="twikiFirstCol"> <a rel="nofollow" href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuideOneLargeDocument?skin=text&amp;sortcol=0;table=2;up=0#sorted_table" title="Sort by this column"><font color="#000000">Library</font></a> </th><th bgcolor="#dadada"> <a rel="nofollow" href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuideOneLargeDocument?skin=text&amp;sortcol=1;table=2;up=0#sorted_table" title="Sort by this column"><font color="#000000">RPM Packages</font></a> </th><th bgcolor="#dadada"> <a rel="nofollow" href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuideOneLargeDocument?skin=text&amp;sortcol=2;table=2;up=0#sorted_table" title="Sort by this column"><font color="#000000">Debian Packages</font></a> </th></tr><tr><td bgcolor="#ffffff" class="twikiFirstCol"> libavcodec, libavframe </td><td bgcolor="#ffffff"> ffmpeg and ffmpeg-devel or install from source </td><td bgcolor="#ffffff"> ffmpeg ,libavcodec1,libavcodec1-dev (*) </td></tr></table><p /><strong>Debian</strong> has not provided deb packages for ffmpeg due patent issues. However this is about to change so checkout for availability of newer versions of debian ffmpeg debs. You can build yourself from source or from <a href="ftp://ftp.nerim.net/debian-marillat/" target="_top">Christian Marillat website</a> or apt repository. <pre>deb ftp://ftp.nerim.net/debian-marillat/ stable main # ( woody )deb ftp://ftp.nerim.net/debian-marillat/ testing main # ( sarge )deb ftp://ftp.nerim.net/debian-marillat/ unstable main # ( sid )</pre>Add the suitable line to your /etc/apt/sources.list and run this: <pre>apt-get update ; apt-get -y install ffmpeg libavcodec1 libavcodec1-dev</pre><p />For logging in <strong>MySQL</strong> you need this library:<table cellspacing="1" cellpadding="1" class="twikiTable" border="0"><tr><th bgcolor="#dadada" class="twikiFirstCol"> <a rel="nofollow" href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuideOneLargeDocument?skin=text&amp;sortcol=0;table=3;up=0#sorted_table" title="Sort by this column"><font color="#000000">Library</font></a> </th><th bgcolor="#dadada"> <a rel="nofollow" href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuideOneLargeDocument?skin=text&amp;sortcol=1;table=3;up=0#sorted_table" title="Sort by this column"><font color="#000000">RPM Packages</font></a> </th><th bgcolor="#dadada"> <a rel="nofollow" href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuideOneLargeDocument?skin=text&amp;sortcol=2;table=3;up=0#sorted_table" title="Sort by this column"><font color="#000000">Debian Packages</font></a> </th></tr><tr><td bgcolor="#ffffff" class="twikiFirstCol"> libmysqlclient </td><td bgcolor="#ffffff"> mysql and mysql-devel </td><td bgcolor="#ffffff"> libmysqlclient10 and libmysqlclient10-dev </td></tr></table><p />For logging in <strong>PostgreSQL</strong> you need this library:<table cellspacing="1" cellpadding="1" class="twikiTable" border="0"><tr><th bgcolor="#dadada" class="twikiFirstCol"> <a rel="nofollow" href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuideOneLargeDocument?skin=text&amp;sortcol=0;table=4;up=0#sorted_table" title="Sort by this column"><font color="#000000">Library</font></a> </th><th bgcolor="#dadada"> <a rel="nofollow" href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuideOneLargeDocument?skin=text&amp;sortcol=1;table=4;up=0#sorted_table" title="Sort by this column"><font color="#000000">RPM Packages</font></a> </th><th bgcolor="#dadada"> <a rel="nofollow" href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuideOneLargeDocument?skin=text&amp;sortcol=2;table=4;up=0#sorted_table" title="Sort by this column"><font color="#000000">Debian Packages</font></a> </th></tr><tr><td bgcolor="#ffffff" class="twikiFirstCol"> libpq </td><td bgcolor="#ffffff"> postgresql-libs and postgresql-devel </td><td bgcolor="#ffffff"> postgresql-dev and libpgsql2 </td></tr></table><p /><p /><h2><a name="Configure_Script"></a> <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/ConfigureScript" class="twikiLink">Configure Script</a> </h2>Configure is script that you run to setup the build environment for the C-compiler. It generates the "Makefile" which the program "make" uses to compile and install the software.<p />To run configure your current directory must be the motion directory. You type<p /><code>./configure</code><p />You can add the parameter <code>./configure --help</code> to get help on the different switches.<p />This is walk through of the options.<p /> <a name="edittable1"></a><div class="editTable"><form name="edittable1" action="http://www.lavrsen.dk/twiki/bin/viewauth/Motion/ConfigureScript#edittable1" method="post"><input type="hidden" name="ettablenr" value="1" /><input type="hidden" name="etedit" value="on" /><table cellspacing="1" cellpadding="1" class="twikiTable" border="0"><tr><th width="160" bgcolor="#dadada" align="left" valign="top" class="twikiFirstCol"> <strong><font color="#000000">Option</font></strong> </th><th bgcolor="#dadada" align="left" valign="top"> <strong><font color="#000000">Description<br />Defaults for the options<br /> are specified in brackets [ ]</font></strong> </th><th bgcolor="#dadada" align="left" valign="top"> <strong><font color="#000000">Editors comment</font></strong> </th></tr><tr><td width="160" bgcolor="#ffffff" valign="top" class="twikiFirstCol"> -h, --help </td><td bgcolor="#ffffff" valign="top"> display this help and exit </td><td bgcolor="#ffffff" valign="top"> </td></tr><tr><td width="160" bgcolor="#eaeaea" valign="top" class="twikiFirstCol"> --help=short </td><td bgcolor="#eaeaea" valign="top"> display options specific to this package </td><td bgcolor="#eaeaea" valign="top"> This command shows the options special to motion. Recommended </td></tr><tr><td width="160" bgcolor="#ffffff" valign="top" class="twikiFirstCol"> --help=recursive </td><td bgcolor="#ffffff" valign="top"> display the short help of all the included packages </td><td bgcolor="#ffffff" valign="top"> </td></tr><tr><td width="160" bgcolor="#eaeaea" valign="top" class="twikiFirstCol"> -V, --version </td><td bgcolor="#eaeaea" valign="top"> display version information and exit </td><td bgcolor="#eaeaea" valign="top"> Gives no useful information </td></tr><tr><td width="160" bgcolor="#ffffff" valign="top" class="twikiFirstCol"> -q, --quiet, --silent </td><td bgcolor="#ffffff" valign="top"> do not print `checking...' messages </td><td bgcolor="#ffffff" valign="top"> Not very useful. Output to screen is only a few lines anyway. </td></tr><tr><td width="160" bgcolor="#eaeaea" valign="top" class="twikiFirstCol"> --cache-file=FILE </td><td bgcolor="#eaeaea" valign="top"> cache test results in FILE. [disabled] </td><td bgcolor="#eaeaea" valign="top"> No function </td></tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -