From bb4959005f58f62fe52fdaddb5a9fff81a1b87b4 Mon Sep 17 00:00:00 2001 From: AngelCarpintero Date: Thu, 15 Nov 2007 02:54:06 +0000 Subject: [PATCH] Update version and latest changes from 3.2.9 for motion guide --- motion.spec | 2 +- motion_guide.html | 65 +++++++++++++++++++++++++++++------------------ 2 files changed, 41 insertions(+), 26 deletions(-) diff --git a/motion.spec b/motion.spec index 941b989..ab04631 100644 --- a/motion.spec +++ b/motion.spec @@ -1,5 +1,5 @@ Name: motion -Version: 3.2.9 +Version: 3.2.10 Release: 1 Summary: MOTION, a Video-surveilance-system diff --git a/motion_guide.html b/motion_guide.html index d00b74c..c23bb02 100644 --- a/motion_guide.html +++ b/motion_guide.html @@ -402,32 +402,33 @@

Generating MPEG films with ffmpeg for how to install ffmpeg and libavframe/libavcodec)
+(See also the section Generating MPEG films with ffmpeg for how to install ffmpeg and libavformat/libavcodec)
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.

- +
Library RPM Packages Debian Packages
libavcodec, libavframe ffmpeg and ffmpeg-devel or install from source ffmpeg ,libavcodec1,libavcodec1-dev (*)
libavcodec, libavformat ffmpeg and ffmpeg-devel or install from source libavcodec-dev libavcodec0d libavformat-dev libavformat0d (*)

-Debian 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 Christian Marillat website or apt repository. +Debian 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 Christian Marillat website or apt repository.

-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 )
+deb http://www.debian-multimedia.org stable main # ( etch )
+deb http://www.debian-multimedia.org testing main # ( lenny )
+deb http://www.debian-multimedia.org unstable main # ( sid )
+
 
Add the suitable line to your /etc/apt/sources.list and run this:
-apt-get update ; apt-get -y install ffmpeg libavcodec1 libavcodec1-dev
+apt-get update ; apt-get -y install libavcodec-dev libavcodec0d libavformat-dev libavformat0d
 

For logging in MySQL you need this library: - +
Library RPM Packages Debian Packages
libmysqlclient mysql and mysql-devel libmysqlclient10 and libmysqlclient10-dev
libmysqlclient mysql and mysql-devel libmysqlclient15-off and libmysqlclient15-dev

For logging in PostgreSQL you need this library: - +
Library RPM Packages Debian Packages
libpq postgresql-libs and postgresql-devel postgresql-dev and libpgsql2
libpq postgresql-libs and postgresql-devel libpq-dev and libpq4

@@ -571,8 +572,13 @@

V4L2 support with many new supported palettes : V4L2_PIX_FMT_SBGGR8, V4L2_PIX_FMT_SN9C10X, V4L2_PIX_FMT_JPEG, V4L2_PIX_FMT_UYVY (3.2.8) +
  • ffmpeg_video_codec allow swf (3.2.8) +
  • V4L2 fix support for : V4L2_PIX_FMT_MJPEG (3.2.9) +
  • ffmpeg_video_codec allow flv and ffv1(3.2.9)
  • +

    The table below shows the new options in the left column, and obsolete options in the right column. If the there are options on both sides in a row it means that the options in the left column replaced the options in the right column.

    @@ -617,9 +623,12 @@

    movie_filename (3.2.5) ffmpeg_filename (3.2.5) ffmpeg_deinterlace (3.2.5)   minimum_frame_time (3.2.7) minimum_gap (3.2.7) - process_id_file (3.2.7)   + process_id_file (3.2.7)   + ffmpeg_video_codec allow swf (3.2.8)   + ffmpeg_video_codec allow flv and ffv1 (3.2.9)   +   night_compensate (3.2.10)
    low_cpu (3.2.10) - +

    @@ -746,7 +755,7 @@

    ffmpeg_timelapse Values: 0 - 2147483647
    Default: 0 (disabled) Create a timelapse movie saving a picture frame at the interval in seconds set by this parameter. Set it to 0 if not used. ffmpeg_timelapse_mode Values: hourly, daily, weekly-sunday, weekly-monday, monthly, manual
    Default: daily The file rollover mode of the timelapse video. ffmpeg_variable_bitrate Values: 0, 2 - 31
    Default: 0 (disabled) Enables and defines variable bitrate for the ffmpeg encoder. ffmpeg_bps is ignored if variable bitrate is enabled. Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps, or the range 2 - 31 where 2 means best quality and 31 is worst. - ffmpeg_video_codec Values: mpeg1 (ffmpeg-0.4.8 only), mpeg4, msmpeg4, swf
    Default: mpeg4 Codec to be used by ffmpeg for the video compression. Timelapse mpegs are always made in mpeg1 format independent from this option. + ffmpeg_video_codec Values: mpeg1 (ffmpeg-0.4.8 only), mpeg4, msmpeg4, swf, flv, ffv1
    Default: mpeg4 Codec to be used by ffmpeg for the video compression. Timelapse mpegs are always made in mpeg1 format independent from this option. framerate Values: 2 - 100
    Default: 100 (no limit) Maximum number of frames to be captured from the camera per second. frequency Values: 0 - 999999
    Default: 0 (Not set) The frequency to set the tuner to (kHz). Valid range: per tuner spec, default: 0 (Don't set it) gap Values: 0 - 2147483647
    Default: 60 Gap is the seconds of no motion detection that triggers the end of an event. An event is defined as a series of motion images taken within a short timeframe. @@ -761,16 +770,16 @@

    max_mpeg_time Values: 0 (infinite) - 2147483647
    Default: 3600 The maximum length of an mpeg movie in seconds. Set this to zero for unlimited length. minimum_frame_time Values: 0 - 2147483647
    Default: 0 Minimum time in seconds between the capturing picture frames from the camera. Default: 0 = disabled - the capture rate is given by the camera framerate. minimum_gap Values: 0 - 2147483647
    Default: 0 (no minimum) The minimum time between two shots in seconds. - minimum_motion_frames Values: 1 - 1000s
    Default: 1 Picture frames must contain motion at least the specified number of frames in a row before they are detected as true motion. At the default of 1, all motion is detected. Valid range is 1 to thousands, but it is recommended to keep it within 1-10. + minimum_motion_frames Values: 1 - 1000s
    Default: 1 Picture frames must contain motion at least the specified number of frames in a row before they are detected as true motion. At the default of 1, all motion is detected. Valid range is 1 to thousands, but it is recommended to keep it within 1-5. motion_video_pipe Values: Max 4095 characters
    Default: Not defined The video4linux video loopback input device for motion images. If a particular pipe is to be used then use the device filename of this pipe, if a dash '-' is given motion will use /proc/video/vloopback/vloopbacks to locate a free pipe. Default: not set movie_filename Values: Max 4095 characters
    Default: %v-%Y%m%d%H%M%S File path for motion triggered ffmpeg movies (mpeg) relative to target_dir. This was previously called ffmpeg_filename. mysql_db Values: Max 4095 characters
    Default: Not defined Name of the MySQL database. - mysql_host Values: Max 4095 characters
    Default: Not defined IP address or domain name for the MySQL server. Use "localhost" if motion and MySQL runs on the same server. + mysql_host Values: Max 4095 characters
    Default: localhost IP address or domain name for the MySQL server. Use "localhost" if motion and MySQL runs on the same server. mysql_password Values: Max 4095 characters
    Default: Not defined The MySQL password. mysql_user Values: Max 4095 characters
    Default: Not defined The MySQL user name. netcam_proxy Values: Max 4095 characters
    Default: Not defined URL to use for a netcam proxy server, if required. The syntax is http://myproxy:portnumber netcam_url Values: Max 4095 characters
    Default: Not defined Specify an url to a downloadable jpeg file or raw mjpeg stream to use as input device. Such as an AXIS 2100 network camera. - netcam_userpass Values: Max 4095 characters
    Default: Not defined For network cameras protected by username and password, use this option for HTTP 1.1 Basic authentication. The string is specified as username:password. Do not specify this option for no authentication. + netcam_userpass Values: Max 4095 characters
    Default: Not defined For network cameras protected by username and password, use this option for HTTP 1.1 Basic authentication. The string is specified as username:password. Do not specify this option for no authentication. night_compensate Values: on, off
    Default: off When this option is set the noise threshold will be lowered if the picture is dark. This will improve the sensitivity in dark places. However it might also increase the number of false alarms since most cameras also increase light sensitivity with their AGC (Automatic Gain Control) and this will increase noise. noise_level Values: 1 - 255
    Default: 32 The noise level is used as a threshold for distinguishing between noise and motion. noise_tune Values: on, off
    Default: on Activates the automatic tuning of noise level. @@ -785,7 +794,7 @@

    output_motion Values: on, off
    Default: off Output pictures with only the moving object. This feature generates the special motion type movies where you only see the pixels that changes as a graytone image. If labelling is enabled you see the largest area in blue. Smartmask is shown in red. output_normal Values: on, off, first, best
    Default: on Normal image is an image that is stored when motion is detected. It is the same image that was taken by the camera. I.e. not a motion image like defined by output_motion. Default is that normal images are stored. pgsql_db Values: Max 4095 characters
    Default: Not defined Name of the PostgreSQL database. - pgsql_host Values: Max 4095 characters
    Default: Not defined IP address or domain name for the PostgreSQL server. Use "localhost" if motion and PostgreSQL runs on the same server. + pgsql_host Values: Max 4095 characters
    Default: localhost IP address or domain name for the PostgreSQL server. Use "localhost" if motion and PostgreSQL runs on the same server. pgsql_password Values: Max 4095 characters
    Default: Not defined The PostgreSQL password. pgsql_port Values: 0 - 65535
    Default: 5432 The PostgreSQL server port number. pgsql_user Values: Max 4095 characters
    Default: Not defined The PostgreSQL user name. @@ -815,7 +824,7 @@

    text_event Values: Max 4095 characters
    Default: %Y%m%d%H%M%S This option defines the value of the speciel event conversion specifier %C. You can use any conversion specifier in this option except %C. Date and time values are from the timestamp of the first image in the current event. text_left Values: Max 4095 characters
    Default: Not defined User defined text overlayed on each in the lower left corner. Use A-Z, a-z, 0-9, " / ( ) @ ~ # < > \ , . : - + _ \n and conversion specifiers (codes starting by a %). text_right Values: Max 4095 characters
    Default: %Y-%m-%d\n%T User defined text overlayed on each in the lower right corner. Use A-Z, a-z, 0-9, " / ( ) @ ~ # < > , . : - + _ \n and conversion specifiers (codes starting by a %). Default: %Y-%m-%d\n%T = date in ISO format and time in 24 hour clock - thread Values: Max 4095 characters
    Default: Not defined Specifies full path and filename for a thread config file. Each camera needs a thread config file containing the options that are unique to the camera. If you only have one camera you do not need thread config files. If you have two or more cameras you need one thread config file for each camera in addition to motion.conf. This option must be placed in motion.conf and not in a thread config file. + thread Values: Max 4095 characters
    Default: Not defined Specifies full path and filename for a thread config file. Each camera needs a thread config file containing the options that are unique to the camera. If you only have one camera you do not need thread config files. If you have two or more cameras you need one thread config file for each camera in addition to motion.conf. This option must be placed in motion.conf and not in a thread config file. threshold Values: 1 - 2147483647
    Default: 1500 Threshold for declaring motion. The threshold is the number of changed pixels counted after noise filtering, masking, despeckle, and labelling. threshold_tune Values: on, off
    Default: off Activates the automatic tuning of threshold level. timelapse_filename Values: Max 4095 characters
    Default: %v-%Y%m%d-timelapse File path for timelapse mpegs relative to target_dir (ffmpeg only). @@ -1193,7 +1202,7 @@

    netcam_userpass

  • Option Topic
  • -For network cameras protected by username and password, use this option for HTTP 1.1 Basic authentication. The string is specified as username:password. Do not specify this option for no authentication. +For network cameras protected by username and password, use this option for HTTP 1.1 Basic authentication. The string is specified as username:password. Do not specify this option for no authentication.

    To use no authentication simply remove this option from the config file comment it out with "#" or ";" in front.

    @@ -1298,7 +1307,7 @@

    gap

    Gap is the seconds of no motion detection that triggers the end of an event. An event is defined as a series of motion images taken within a short timeframe.

    -Recommended value is 60 seconds (Default). The value 0 is allowed and disables events causing all Motion to be written to one single mpeg file and no pre_capture. You can force an event to end and a new to begin using the http control 'http://host:port/thread_number/action/makemovie'. +Recommended value is 60 seconds (Default). The value 0 is allowed (but not recommended) and disables events causing all Motion to be written to one single mpeg file and no pre_capture. You can force an event to end and a new to begin using the http control 'http://host:port/thread_number/action/makemovie'. Disabling events has bad side effects on noise_tune and smartmask. Both features can only work properly outside an event. When gap is set to 0, both features don't work properly anymore.

    An event is defined as a series of motion images taken within a short timeframe. E.g. a person walking through the room is an event that may have caused 10 single jpg images to be stored. This option defines how long a pause between detected motions that is needed to be defined as a new event.

    @@ -1449,7 +1458,7 @@

    minimum_motion_frames

  • Option Topic
  • -Picture frames must contain motion at least the specified number of frames in a row before they are detected as true motion. At the default of 1, all motion is detected. Valid range is 1 to thousands, but it is recommended to keep it within 1-10. +Picture frames must contain motion at least the specified number of frames in a row before they are detected as true motion. At the default of 1, all motion is detected. Valid range is 1 to thousands, but it is recommended to keep it within 1-5.

    Note that the picture frames are buffered by Motion and once motion is detected also the first frames containing motion are saved so you will not miss anything.

    @@ -1904,7 +1913,7 @@

    ffmpeg_variable_bitrate

    ffmpeg_video_codec

    @@ -1917,6 +1926,12 @@

    ffmpeg_video_codec

    msmpeg4 is recommended for use with Windows Media Player because it requires with no installation of codec on the Windows client.

    +swf gives you a flash film with extension .swf +

    +flv gives you a flash video with extension .flv +

    +ffv1 , FF video codec 1 for Lossless Encoding ( experimental ) +

    This option does not affect the timelapse feature. Timelapse is always recorded in mpeg1 format because we need to be able to append to an existing file. mpeg4 does not easily allow this.

    @@ -3135,7 +3150,7 @@

    track_type

    Value 4 is the generic track type. Currently it has no other function than enabling some of the internal Motion features related to tracking. Eventually more functionality will be implemented for this type.

    -Value 5 is for uvcvideo type USB tracking cameras such as the Logitech Quickcam Sphere/Orbit MP (new Model) which is driven by the uvcvideo driver. This option is only available at the motion-3.2.8-beta1 version with V4L2 support. +Value 5 is for uvcvideo type USB tracking cameras such as the Logitech Quickcam Sphere/Orbit MP (new Model) which is driven by the uvcvideo driver. This option was added in Motion 3.2.8.

    Using Databases

    @@ -3242,7 +3257,7 @@

    MySQL

  • text_event (timestamp) - The text from the text_event option which by default is compatible with timestamps in SQL.
  • -Note from version 3.2.4 the introduction of sql_query completely redefines the way you setup the SQL feature. It is not 100% flexible and can easily be made compatible with your existing Motion database from earlier versions of Motion. +Note from version 3.2.4 the introduction of sql_query completely redefines the way you setup the SQL feature. It is now 100% flexible and can easily be made compatible with your existing Motion database from earlier versions of Motion.

    These are the file type descriptions and the file type numbers stored in the database.

    @@ -3295,7 +3310,7 @@

    mysql_host

    @@ -3356,7 +3371,7 @@

    pgsql_host