mirror of
https://github.com/Motion-Project/motion.git
synced 2026-04-20 14:07:11 -04:00
2
conf.c
2
conf.c
@@ -278,7 +278,7 @@ config_param config_params[] = {
|
||||
},
|
||||
{
|
||||
"v4l2_palette",
|
||||
"# v4l2_palette allows to choose preferable palette to be use by motion\n"
|
||||
"# v4l2_palette allows one to choose preferable palette to be use by motion\n"
|
||||
"# to capture from those supported by your videodevice. (default: 17)\n"
|
||||
"# E.g. if your videodevice supports both V4L2_PIX_FMT_SBGGR8 and\n"
|
||||
"# V4L2_PIX_FMT_MJPEG then motion will by default use V4L2_PIX_FMT_MJPEG.\n"
|
||||
|
||||
@@ -465,7 +465,7 @@ else
|
||||
saved_LIBS=$LIBS
|
||||
|
||||
# first we check to see if the sqlite3 amalgamation (sqlite3.c), is in with our source
|
||||
# this is the prefered way to use sqlite
|
||||
# this is the preferred way to use sqlite
|
||||
if test -f sqlite3.c; then
|
||||
SQLITE3_SUPPORT="yes"
|
||||
VIDEO="$VIDEO sqlite3.o"
|
||||
|
||||
2
event.c
2
event.c
@@ -565,7 +565,7 @@ static void event_extpipe_put(struct context *cnt,
|
||||
/* Check that is open */
|
||||
if ((cnt->extpipe_open) && (fileno(cnt->extpipe) > 0)) {
|
||||
if (!fwrite(img, cnt->imgs.size, 1, cnt->extpipe))
|
||||
MOTION_LOG(ERR, TYPE_EVENTS, SHOW_ERRNO, "%s: Error writting in pipe , state error %d",
|
||||
MOTION_LOG(ERR, TYPE_EVENTS, SHOW_ERRNO, "%s: Error writing in pipe , state error %d",
|
||||
ferror(cnt->extpipe));
|
||||
} else {
|
||||
MOTION_LOG(ERR, TYPE_EVENTS, NO_ERRNO, "%s: pipe %s not created or closed already ",
|
||||
|
||||
@@ -38,7 +38,7 @@ log_type all
|
||||
# for FreeBSD default is /dev/bktr0
|
||||
videodevice /dev/video0
|
||||
|
||||
# v4l2_palette allows to choose preferable palette to be use by motion
|
||||
# v4l2_palette allows one to choose preferable palette to be use by motion
|
||||
# to capture from those supported by your videodevice. (default: 17)
|
||||
# E.g. if your videodevice supports both V4L2_PIX_FMT_SBGGR8 and
|
||||
# V4L2_PIX_FMT_MJPEG then motion will by default use V4L2_PIX_FMT_MJPEG.
|
||||
|
||||
@@ -459,7 +459,7 @@ The long term option will however only become effective the next time you get in
|
||||
<tr>
|
||||
<td bgcolor="#edf4f9" word-wrap:break-word > --prefix=PREFIX </td>
|
||||
<td bgcolor="#edf4f9" word-wrap:break-word > install architecture-independent files in PREFIX <br /> [/usr/local]</td>
|
||||
<td bgcolor="#edf4f9" word-wrap:break-word > The default /usr/local means that <br><br> The executable binary "motion" is installed in /usr/local/bin <br> The manual page in /usr/local/man/man1 <br>The document files in /usr/local/docs/motion-version<br>The configuration file in /usr/local/etc <br>The example config files in /usr/local/examples/motion-version <br><br> The editor recommends keeping this default setting. <br /> If you are experimenting with many parallel versions it may be interesting to set the PREFIX to e.g. /usr/local/motion and then add /usr/local/motion/bin to your search path (or simply cd /usr/local/motion/bin before execution). <br /> This way you can change version just by changing the symbolic link in /usr/local/motion as suggested earlier in this guide. <br /> If you are installing the software on a machine where you have no access to the /usr/local but have write access to a home directory, then you should change this to point to a directory within your home tree. <br /> Example: --prefix=$HOME </td>
|
||||
<td bgcolor="#edf4f9" word-wrap:break-word > The default /usr/local means that <br><br> The executable binary "motion" is installed in /usr/local/bin <br> The manual page in /usr/local/man/man1 <br>The document files in /usr/local/docs/motion-version<br>The configuration file in /usr/local/etc/motion <br>The example config files in /usr/local/examples/motion-version <br><br> The editor recommends keeping this default setting. <br /> If you are experimenting with many parallel versions it may be interesting to set the PREFIX to e.g. /usr/local/motion and then add /usr/local/motion/bin to your search path (or simply cd /usr/local/motion/bin before execution). <br /> This way you can change version just by changing the symbolic link in /usr/local/motion as suggested earlier in this guide. <br /> If you are installing the software on a machine where you have no access to the /usr/local but have write access to a home directory, then you should change this to point to a directory within your home tree. <br /> Example: --prefix=$HOME </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#edf4f9" word-wrap:break-word > --exec-prefix=EPREFIX </td>
|
||||
@@ -495,7 +495,7 @@ The long term option will however only become effective the next time you get in
|
||||
<br />
|
||||
<UL> <br /> 1. Current directory from where motion was invoked
|
||||
<br /> 2. $HOME/.motion
|
||||
<br /> 3. The sysconfig directory set by this switch. If not defined the default is /usr/local/etc/ <br />
|
||||
<br /> 3. The motion/ subdirectory inside the sysconfig directory set by this switch. If not defined the default is /usr/local/etc/ <br />
|
||||
</UL> <br /> Editor recommends leaving this at default. Be careful if you run "make install" again.
|
||||
This will overwrite the motion-dist.conf file that you may have edited.
|
||||
</td>
|
||||
@@ -691,7 +691,7 @@ Creates the directories (if they do not already exist)(path shown are the defaul
|
||||
<ul>
|
||||
<li>/usr/local/bin</li>
|
||||
<li>usr/local/man/man1</li>
|
||||
<li>/usr/local/etc</li>
|
||||
<li>/usr/local/etc/motion</li>
|
||||
<li>/usr/local/share/doc/motion-<code>version</code></li>
|
||||
<li>/usr/local/share/doc/examples/motion-<code>version</code></li>
|
||||
</ul>
|
||||
@@ -704,7 +704,7 @@ Copies the following files from the base motion directory
|
||||
<li> Manual page "motion.1" to /usr/local/man/man1</li>
|
||||
<li> Document files "CHANGELOG, COPYING, CREDITS, INSTALL, and README to /usr/local/share/doc/motion-<code>version</code></li>
|
||||
<li> Example configuration files "*.conf" to /usr/local/share/doc/examples/motion-<code>version</code></li>
|
||||
<li> Configuration file "motion-dist.conf" to /usr/local/etc</li>
|
||||
<li> Configuration file "motion-dist.conf" to /usr/local/etc/motion</li>
|
||||
</ul>
|
||||
|
||||
Note that the any existing files are overwritten. The default config file motion-dist.conf is named like
|
||||
|
||||
@@ -903,7 +903,7 @@ int put_picture_memory(struct context *cnt, unsigned char* dest_image, int image
|
||||
return put_jpeg_grey_memory(dest_image, image_size, image,
|
||||
cnt->imgs.width, cnt->imgs.height, quality);
|
||||
default:
|
||||
MOTION_LOG(WRN, TYPE_ALL, NO_ERRNO, "%s: Unknow image type %d",
|
||||
MOTION_LOG(WRN, TYPE_ALL, NO_ERRNO, "%s: Unknown image type %d",
|
||||
cnt->imgs.type);
|
||||
}
|
||||
|
||||
@@ -923,7 +923,7 @@ void put_picture_fd(struct context *cnt, FILE *picture, unsigned char *image, in
|
||||
put_jpeg_grey_file(picture, image, cnt->imgs.width, cnt->imgs.height, quality);
|
||||
break;
|
||||
default:
|
||||
MOTION_LOG(WRN, TYPE_ALL, NO_ERRNO, "%s: Unknow image type %d",
|
||||
MOTION_LOG(WRN, TYPE_ALL, NO_ERRNO, "%s: Unknown image type %d",
|
||||
cnt->imgs.type);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user