Skip to content

Commit 8f9786f

Browse files
authored
Merge pull request #151 from Mr-DaveDev/doc-updates
Documentation Update
2 parents 793080e + eb92db9 commit 8f9786f

12 files changed

Lines changed: 44 additions & 110 deletions

FAQ

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,2 @@
11
This FAQ is no longer kept up to date
2-
Look at this URL for a more up to date wiki based FAQ
3-
http://www.lavrsen.dk/twiki/bin/view/Motion/FrequentlyAskedQuestions
4-
5-
Q: motion crashes while parsing the config file.
6-
7-
A: Appearantly the behaviour of strtok in glibc has changed somewhat.
8-
This problem should be fixed as of 2.3
9-
10-
11-
Q: Were does motion look for the config file?
12-
13-
A: First it will look for 'motion.conf' in the current directory, next it will
14-
try to find '.motion/motion.conf' in your home directory (pointed to by
15-
the HOME environment variable). If these don't exist it will try to open
16-
'/usr/local/etc/motion/motion.conf' if you specified /usr/local as the prefix
17-
to configure (this is the default).
18-
19-
Q: What codingstyle is used for motion?
20-
21-
A: Motion follows the same style as the linux kernel.
22-
Read Documentation/Codingstyle in the kernel tree for some good reasons.
23-
Also be aware that motion is multithreaded and as such all functions should
24-
be reentrant, using static variables is usually a bad idea.
2+
Look at the guide in /usr/share/doc/motion/motion_guide.html

Makefile.in

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Please read the file COPYING for more info. #
88
################################################################################
99
# Please visit the Motion home page: #
10-
# http://www.lavrsen.dk/twiki/bin/view/Motion #
10+
# https://motion-project.github.io/ #
1111
################################################################################
1212

1313
CC = @CC@
@@ -40,7 +40,7 @@ OBJ = motion.o logger.o conf.o draw.o jpegutils.o vloopback_motion.o $(
4040
alg.o event.o picture.o rotate.o webhttpd.o \
4141
stream.o md5.o netcam_rtsp.o @FFMPEG_OBJ@ @SDL_OBJ@
4242
SRC = $(OBJ:.o=.c)
43-
DOC = CHANGELOG COPYING CREDITS README motion_guide.html
43+
DOC = CHANGELOG COPYING CREDITS README motion_guide.html mask1.png normal.jpg outputmotion1.jpg outputnormal1.jpg
4444
EXAMPLES = *.conf
4545
EXAMPLES_BIN = motion.init-Debian motion.init-Fedora motion.init-FreeBSD.sh
4646
PROGS = motion
@@ -281,15 +281,4 @@ distclean: clean
281281
@echo "You will need to re-run configure if you want to build Motion."
282282
@echo
283283

284-
################################################################################
285-
# UPDATEGUIDE downloads the Motion Guide from TWiki. #
286-
################################################################################
287-
updateguide: pre-build-info
288-
@echo "Downloading Motion Guide. If it fails, please check your Internet connection."
289-
@echo
290-
wget www.lavrsen.dk/twiki/bin/view/Motion/MotionGuideOneLargeDocument?skin=text -O motion_guide.tmp
291-
@echo "Cleaning up and fixing links..."
292-
@cat motion_guide.tmp | sed -e 's/\?skin=text//g;s,"/twiki/,"http://www.lavrsen.dk/twiki/,g' > motion_guide.html
293-
@rm -f motion_guide.tmp
294-
@echo "All done, you should now have a local copy of the Motion guide from the home page."
295-
@echo
284+

README

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,17 @@ Read the motion.1 manpage for more info
4141

4242
And most of all read the Motion Guide for very detailed description of both
4343
installation and use.
44-
The Motion Guide is part of the distribution (motion_guide.htm).
45-
You are encouraged to look up an up to date version by visiting the Motion
46-
homepage at
47-
http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
48-
and specifically the Motion Guide at
49-
http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuide
44+
The Motion Guide is part of the distribution (/usr/share/doc/motion/motion_guide.html).
45+
You are encouraged to visit the Motion homepage at
46+
https://motion-project.github.io/
5047

5148

5249
Support:
5350

54-
Lots of resources at http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
51+
Lots of resources at https://motion-project.github.io/
5552

5653
Please join the mailing list
57-
http://www.lavrsen.dk/twiki/bin/view/Motion/MailingList
54+
https://lists.sourceforge.net/lists/listinfo/motion-user
5855
Newbies and silly questions are welcome. We prefer support through the mailing
5956
list because more will have benefit from the answers.
6057

README.FreeBSD

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,4 @@ Packages needed (dependencies for 6.x):
7676
- And many others ...
7777

7878
Any question / fix / suggestion please send it to motion mailing list.
79-
80-
81-
http://www.lavrsen.dk/twiki/bin/view/Motion/FreeBSD
82-
83-
* WEBCAMS
84-
----------
85-
http://www.lavrsen.dk/twiki/bin/view/Motion/HowtoMotionPwcFreeBSD
86-
87-
Angel Carpintero
88-
ack@telefonica.net
79+

conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2404,7 +2404,7 @@ static struct context **config_thread(struct context **cnt, const char *str,
24042404
*/
24052405
static void usage()
24062406
{
2407-
printf("motion Version "VERSION", Copyright 2000-2005 Jeroen Vreeken/Folkert van Heusden/Kenneth Lavrsen\n");
2407+
printf("motion Version "VERSION", Copyright 2000-2016 Jeroen Vreeken/Folkert van Heusden/Kenneth Lavrsen/Motion-Project maintainers\n");
24082408
printf("\nusage:\tmotion [options]\n");
24092409
printf("\n\n");
24102410
printf("Possible options:\n\n");

mask1.png

854 Bytes
Loading

motion.1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH MOTION 1 2015-09-26 "Motion" "Motion Options and Config Files"
1+
.TH MOTION 1 2016-08-25 "Motion" "Motion Options and Config Files"
22
.SH NAME
33
motion \- Detct motion using a video4linux device or network camera
44
.SH SYNOPSIS
@@ -2022,11 +2022,10 @@ The time zone or name or abbreviation.
20222022

20232023
.TP
20242024
.B More information
2025-
Motion homepage: http://www.lavrsen.dk/foswiki/bin/view/Motion/
2025+
Motion homepage: https://motion-project.github.io/
20262026

20272027
Motion Guide (user and installation guide):
2028-
.br http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuide
2029-
.br http://www.lavrsen.dk/twiki/bin/view/Motion/VideoFourLinuxLoopbackDevice
2028+
.br /usr/share/doc/motion/motion_guide.html
20302029
.SH AUTHORS
20312030
Jeroen Vreeken (pe1rxq@amsat.org),
20322031
Folkert van Heusden,

motion.spec.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Summary: A motion detection system
55

66
Group: Applications/Multimedia
77
License: GPLv2+
8-
URL: http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
9-
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
8+
URL: https://motion-project.github.io/
9+
Source0: https://github.com/Motion-Project/motion
1010
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1111

1212
BuildRequires: libjpeg-devel ffmpeg-devel zlib-devel

motion_guide.html

Lines changed: 28 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -77,44 +77,39 @@ <h3><a name="How_do_I_get_Motion_and_what_does_it_cost"></a> How do I get Motio
7777
<p></p>
7878
<h3><a name="Maintenance_and_Support"></a> Maintenance and Support </h3>
7979
<p></p>
80-
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">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.
80+
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="https://lists.sourceforge.net/lists/listinfo/motion-user">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.
8181
<p></p>
82-
To get motion direct your browser to the <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome" class="foswikiCurrentWebHomeLink">Motion Homepage</a>.
82+
To get motion direct your browser to the <a href="https://motion-project.github.io/">Motion Homepage</a>.
8383
<p></p>
84-
On the <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/DownloadFiles">Download Files</a> page you will find
84+
On the <a href="https://github.com/Motion-Project/motion/releases/">Releases</a> page you will find
8585
links to the latest stable version both as sources and binaries for some of the most popular Linux distributions.
86-
You will also find links to development versions. Snapshot releases are special test releases that are normally
87-
stable. Every day a <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionDailySourceSnap">Motion Daily Source Snap</a> is created from the <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionSubversion">Motion Subversion</a>
88-
<p></p>
86+
p></p>
8987
Motion was originally written by Jeroen Vreeken and later Folkert van Heusden continued as a
9088
lead programmer with Kenneth Lavrsen responsible for Motion Guide, website and releases on Sourceforge.
9189
<p></p>
92-
From version 3.1.12 Motion is now project managed entirely by Kenneth Lavrsen, and the project now shift
93-
towards being developed by many contributers.
90+
From version 3.4.1 Motion is now managed on github via a many maintainers and contributors.
9491
<p></p>
95-
For support we encourage you to join the mailing list instead of writing to Jeroen, Folkert or Kenneth directly.
96-
Newbies and stupid questions are welcome on the list. Contributions in the form of patches are also very welcome
97-
on the mailing list.
92+
For support we encourage you to join the mailing list instead of writing to the maintainers directly.
93+
Newbies and stupid questions are welcome on the list. Contributions in the form of pull requests to the github
94+
repository are also very welcome.
9895
<p></p>
9996
<h3><a name="Which_version_to_download_and_use"></a> Which version to download and use? </h3>
10097
<p></p>
101-
Versions 3.2.12 is the current official version released in June 2010. The trunk of the SVN represents the official
102-
development branch of Motion. Additional independent development forks exist on Github that contain additional bug
103-
fixes, enhanced features and updated documentation.
98+
The most current release version can be found on the github releases page <a href="https://github.com/Motion-Project/motion/releases">here</a>. The master branch of the github
99+
repository represents the official development branch of Motion. Additional independent development forks exist
100+
in other Github repos that contain additional bug fixes, enhanced features and updated documentation.
104101
This guide is based upon the features and options included in the source code with which it is distributed.
105102
It was re-written in September 2015 to reflect the changes and options in the code at that time.
106-
The majority of the new options and changed names represent differences between the official 3.2.12 version
107-
and the SVN trunk and as a result this guide will generally apply to the code in the trunk as well. There may
108-
however be some options and features included in this guide that are not incorporated into the trunk source code.
109-
Users are encouraged to evaluate the pros and cons for themselves of using any particular source.
103+
The majority of the new options and changed names represent differences between the 3.2.12 version
104+
and the legacy SVN trunk.
110105
<p></p>
111-
Since 3.2.12 many options have been renamed in the development branches to make setting up Motion easier.
106+
Since 3.2.12 many options have been renamed to make setting up Motion easier.
112107
<p></p>
113-
Motion is included in Debian and Ubuntu while RPM users can find the binary package for 3.2.12 on the Motion Sourceforge file download page.
108+
Motion is included in Debian and Ubuntu while RPM users currently must build from source.
114109
<p></p>
115110
<h3><a name="What_features_does_Motion_have"></a> What features does Motion have? </h3>
116111
<p></p>
117-
See more description at the <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome" class="foswikiCurrentWebHomeLink">Motion Homepage</a>.
112+
See more description at the <a href="https://motion-project.github.io/">Motion Homepage</a>.
118113
<ul>
119114
<li> Taking snapshots of movement</li>
120115
<li> Watch multiple video devices at the same time</li>
@@ -148,8 +143,8 @@ <h3><a name="Documentation"></a> Documentation </h3>
148143
<p></p>
149144
<ul>
150145
<li> This Motion Guide</li>
151-
<li> The <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/FrequentlyAskedQuestions">Frequently Asked Questions</a></li>
152-
<li> The author of the program has written a description of the <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionTechnology">technology behind motion</a>.</li>
146+
<li> The <a href="https://github.com/Motion-Project/motion/wiki/FAQ">Frequently Asked Questions</a></li>
147+
<li> The author of the program has written a description of the <a href="https://github.com/Motion-Project/motion/wiki/Technology">technology behind motion</a>.</li>
153148
<li> The man page. After installation simply type 'man motion' into a terminal screen.</li>
154149
<li> The default motion.conf file (motion-dist.conf) that comes with the package.</li>
155150
</ul>
@@ -170,11 +165,7 @@ <h2><a name="Known_Problems"></a> Known Problems</a> </h2>
170165
<ul>
171166

172167
<p></p>
173-
See also the <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/FrequentlyAskedQuestions">Frequently Asked Questions</a> and <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/BugReports">Bug Reports</a> for known open bugs.
174-
<p></p>
175-
<strong>Kernel 2.6 and pwc.</strong> Note that for kernel 2.6 there is a new release of the Philips WebCam (pwc) drivers 10.0.X. It is recommended to install this. At the time of this being written the 2.6.12+ kernels have a version of pwc built-in but it is a crippled version which can only support very small picture size. You can however download the latest source code of the pwc driver (at this time 10.0.11) and build it without having to rebuild your kernel. But you will need to have either the kernel sources or a special kernel-header package installed to compile it. See <a href="http://www.lavrsen.dk/twiki/bin/viewPWC/InstallationOfPWC">Installation of PWC</a> page which is also hosted in this wiki.
176-
<p></p>
177-
If you use use a <strong>Logitech Quickcam Orbit or Sphere</strong> using the driver pwc/pwcx and kernel 2.6.X you should replace the file in the Motion sources called pwc-ioctl.h with the one that comes with the your pwc version. Motion is shipped with 3 versions of pwc-ioctl.h-VERSION. Rename the one that fits your major pwc version number best to pwc-ioctl.h (after renaming the current to something else). There has been some small adjustments in the API that requires that you have the right header file.
168+
See also the <a href="https://github.com/Motion-Project/motion/wiki/FAQ">Frequently Asked Questions</a> and <a href="https://github.com/Motion-Project/motion/issues">Issues</a> for known open issues.
178169
<p></p>
179170
<p></p>
180171

@@ -215,13 +206,8 @@ <h2><a name="Build_and_install_from_sources"></a> How to build Motion from sour
215206
<ul>
216207

217208
<p></p>
218-
While Motion is included in the apt packages for Ubuntu and Debian, it can also be built from the source code.
209+
While Motion is included in the apt packages for Ubuntu and Debian, it can also be built from the <a href="https://github.com/Motion-Project/motion">source code</a>
219210
Source code is located in multiple locations depending upon the needs of the user
220-
<ul>
221-
<li>SourceForge (official release)</li>
222-
<li>SVN(official release and maintainer development trunk) </li>
223-
<li>Github(Latest fixes, enhancements and documents from community) </li>
224-
</ul>
225211

226212
<p></p>
227213
<h3><a name="Preparation_For_Building"></a> <a Preparation For Building</a> </h3>
@@ -2048,10 +2034,8 @@ <h3><a name="netcam_userpass"></a> netcam_userpass </h3>
20482034
</ul>
20492035
<p></p>
20502036
The Username and password for the network camera. For http protocols, this
2051-
option is for HTTP 1.1 Basic authentication. The string is specified as username:password.
2052-
Do not specify this option for no authentication. To use no authentication simply
2053-
remove this option. Note that only basic authentication is
2054-
supported for connection to netwwork cameras. Digest authentication is not currently available
2037+
option is for HTTP 1.1 Basic authentication only. The string is specified as username:password.
2038+
To use no authentication simply remove this option. Digest authentication is only available for rtsp cameras.
20552039

20562040
<p></p>
20572041

@@ -2614,14 +2598,14 @@ <h3><a name="mask_file"></a> mask_file </h3>
26142598
<p></p>
26152599
Normal picture. Notice the street is visible through the hedge.
26162600
<p></p>
2617-
<img alt="normal.jpg" src="http://www.lavrsen.dk/twiki/pub/Motion/ConfigOptionMaskFile/normal.jpg" />
2601+
<img alt="normal.jpg" src="normal.jpg" />
26182602
<p></p>
26192603
Mask file (converted to png format so it can be shown by your web browser)
26202604
<p></p>
26212605
<table style="border-width:1px;" cellspacing="0" cellpadding="0" border="1">
26222606
<tr >
26232607
<td bgcolor="#ffffff" valign="top" style="vertical-align:top;" >
2624-
<img alt="mask1.png" src="http://www.lavrsen.dk/twiki/pub/Motion/ConfigOptionMaskFile/mask1.png" />
2608+
<img alt="mask1.png" src="mask1.png" />
26252609
</td>
26262610
</tr>
26272611
</table>
@@ -3046,7 +3030,7 @@ <h2> <strong><a name="Options_Pictures"></a> Output - Picture Options </strong><
30463030
<p></p>
30473031
Motion can output different types of pictures. The normal picture is indicated below.
30483032
<p></p>
3049-
<img alt="outputnormal1.jpg" src="http://www.lavrsen.dk/twiki/pub/Motion/TuningMotion/outputnormal1.jpg" />
3033+
<img alt="outputnormal1.jpg" src="outputnormal1.jpg" />
30503034
<p></p>
30513035
The motion type picture or also referred to as a debug picture is shown
30523036
below. Note that the largest area is blue and only this is counted as Motion.
@@ -3055,7 +3039,7 @@ <h2> <strong><a name="Options_Pictures"></a> Output - Picture Options </strong><
30553039
but a mathematical calculation of the past images. This enlarges real Motion and ensures that it is not easy to
30563040
sneak in slowly.
30573041
<p></p>
3058-
<img alt="outputmotion1.jpg" src="http://www.lavrsen.dk/twiki/pub/Motion/TuningMotion/outputmotion1.jpg" />
3042+
<img alt="outputmotion1.jpg" src="outputmotion1.jpg" />
30593043
<p></p>
30603044
<p></p>
30613045

@@ -3395,8 +3379,7 @@ <h2><a name="Options_Pipe"></a><strong>Output - Pipe Options</strong></h2>
33953379

33963380
<p></p>
33973381
The video4linux driver is written by the same author that first created Motion. You can
3398-
find the source and a brief description at the
3399-
<a href="http://www.lavrsen.dk/twiki/bin/view/Motion/VideoFourLinuxLoopbackDevice" class="twikiLink">video4linux loopback device web page</a>.
3382+
find the source within apt packages.
34003383
<p></p>
34013384
The video4linux device is a Kernel module which installs itself as a video pipe.
34023385
It has an input and an output. The module simply takes anything that comes on its input
@@ -3444,9 +3427,7 @@ <h2><a name="Options_Pipe"></a><strong>Output - Pipe Options</strong></h2>
34443427
<p></p>
34453428
Now you need to install the video loopback device.
34463429
<p></p>
3447-
Download the latest
3448-
<a href="http://www.lavrsen.dk/twiki/bin/view/Motion/VideoFourLinuxLoopbackDevice" target="_top">video4linux loopback device</a> .
3449-
Place the file in a place of your own choice.
3430+
Download the latest via the apt packages and place the file in a place of your own choice.
34503431
<p></p>
34513432
Untar and uncompress the file to the place you want the program installed. Editor recommends /usr/local/vloopback.
34523433
<p></p>
@@ -3538,7 +3519,6 @@ <h3><a name="motion_video_pipe"></a> motion_video_pipe </h3>
35383519
<li> Type: String
35393520
</li> <li> Range / Valid values: Max 4095 characters
35403521
</li> <li> Default: Not defined
3541-
</li> <li> <a href="http://www.lavrsen.dk/twiki/bin/view/Motion/ConfigOptionMotionVideoPipe" class="twikiLink">Option Topic</a>
35423522
</li></ul>
35433523
<p></p>
35443524
The video4linux video loopback input device for motion images.

normal.jpg

14 KB
Loading

0 commit comments

Comments
 (0)