Advertisement
Guest User

motion.conf for motionstills debug

a guest
Jul 2nd, 2013
1,515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.48 KB | None | 0 0
  1. ############################################################
  2. # Daemon
  3. ############################################################
  4.  
  5. # Start in daemon (background) mode and release terminal (default: off)
  6. daemon off
  7.  
  8. # File to store the process ID, also called pid file. (default: not defined)
  9. process_id_file /var/run/motion/motion.pid
  10.  
  11. ############################################################
  12. # Basic Setup Mode
  13. ############################################################
  14.  
  15. # Start in Setup-Mode, daemon disabled. (default: off)
  16. setup_mode off
  17.  
  18.  
  19. # Use a file to save logs messages, if not defined stderr and syslog is used. (default: not defined)
  20. ;logfile /home/pi/motion.log
  21.  
  22. # Level of log messages [1..9] (EMR, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL). (default: 6 / NTC)
  23. log_level 5
  24.  
  25. # Filter to log messages by type (COR, STR, ENC, NET, DBL, EVT, TRK, VID, ALL). (default: ALL)
  26. log_type all
  27.  
  28. ###########################################################
  29. # Capture device options
  30. ############################################################
  31.  
  32. # Videodevice to be used for capturing (default /dev/video0)
  33. # for FreeBSD default is /dev/bktr0
  34. #videodevice /dev/video0
  35.  
  36. # v4l2_palette allows to choose preferable palette to be use by motion
  37. # to capture from those supported by your videodevice. (default: 17)
  38. # E.g. if your videodevice supports both V4L2_PIX_FMT_SBGGR8 and
  39. # V4L2_PIX_FMT_MJPEG then motion will by default use V4L2_PIX_FMT_MJPEG.
  40. # Setting v4l2_palette to 2 forces motion to use V4L2_PIX_FMT_SBGGR8
  41. # instead.
  42. #
  43. # Values :
  44. # V4L2_PIX_FMT_SN9C10X : 0 'S910'
  45. # V4L2_PIX_FMT_SBGGR16 : 1 'BYR2'
  46. # V4L2_PIX_FMT_SBGGR8 : 2 'BA81'
  47. # V4L2_PIX_FMT_SPCA561 : 3 'S561'
  48. # V4L2_PIX_FMT_SGBRG8 : 4 'GBRG'
  49. # V4L2_PIX_FMT_SGRBG8 : 5 'GRBG'
  50. # V4L2_PIX_FMT_PAC207 : 6 'P207'
  51. # V4L2_PIX_FMT_PJPG : 7 'PJPG'
  52. # V4L2_PIX_FMT_MJPEG : 8 'MJPEG'
  53. # V4L2_PIX_FMT_JPEG : 9 'JPEG'
  54. # V4L2_PIX_FMT_RGB24 : 10 'RGB3'
  55. # V4L2_PIX_FMT_SPCA501 : 11 'S501'
  56. # V4L2_PIX_FMT_SPCA505 : 12 'S505'
  57. # V4L2_PIX_FMT_SPCA508 : 13 'S508'
  58. # V4L2_PIX_FMT_UYVY : 14 'UYVY'
  59. # V4L2_PIX_FMT_YUYV : 15 'YUYV'
  60. # V4L2_PIX_FMT_YUV422P : 16 '422P'
  61. # V4L2_PIX_FMT_YUV420 : 17 'YU12'
  62. #
  63. v4l2_palette 17
  64.  
  65. # Tuner device to be used for capturing using tuner as source (default /dev/tuner0)
  66. # This is ONLY used for FreeBSD. Leave it commented out for Linux
  67. ; tunerdevice /dev/tuner0
  68.  
  69. # The video input to be used (default: -1)
  70. # Should normally be set to 0 or 1 for video/TV cards, and -1 for USB cameras
  71. input -1
  72.  
  73. # The video norm to use (only for video capture and TV tuner cards)
  74. # Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL)
  75. norm 0
  76.  
  77. # The frequency to set the tuner to (kHz) (only for TV tuner cards) (default: 0)
  78. frequency 0
  79.  
  80. # Rotate image this number of degrees. The rotation affects all saved images as
  81. # well as movies. Valid values: 0 (default = no rotation), 90, 180 and 270.
  82. rotate 0
  83.  
  84. # Image width (pixels). Valid range: Camera dependent, default: 352
  85. width 1024
  86.  
  87. # Image height (pixels). Valid range: Camera dependent, default: 288
  88. height 576
  89.  
  90. # Maximum number of frames to be captured per second.
  91. # Valid range: 2-100. Default: 100 (almost no limit).
  92. framerate 2
  93.  
  94. # Minimum time in seconds between capturing picture frames from the camera.
  95. # Default: 0 = disabled - the capture rate is given by the camera framerate.
  96. # This option is used when you want to capture images at a rate lower than 2 per second.
  97. minimum_frame_time 5
  98.  
  99. # URL to use if you are using a network camera, size will be autodetected (incl http:// ftp:// mjpg:// or file:///)
  100. # Must be a URL that returns single jpeg pictures or a raw mjpeg stream. Default: Not defined
  101. ;netcam_url http://127.0.0.1/cgi-bin/raspicam.sh
  102.  
  103. # Username and password for network camera (only if required). Default: not defined
  104. # Syntax is user:password
  105. ; netcam_userpass value
  106.  
  107. # The setting for keep-alive of network socket, should improve performance on compatible net cameras.
  108. # off: The historical implementation using HTTP/1.0, closing the socket after each http request.
  109. # force: Use HTTP/1.0 requests with keep alive header to reuse the same connection.
  110. # on: Use HTTP/1.1 requests that support keep alive as default.
  111. # Default: off
  112. netcam_keepalive off
  113.  
  114. # URL to use for a netcam proxy server, if required, e.g. "http://myproxy".
  115. # If a port number other than 80 is needed, use "http://myproxy:1234".
  116. # Default: not defined
  117. ; netcam_proxy value
  118.  
  119. # Set less strict jpeg checks for network cameras with a poor/buggy firmware.
  120. # Default: off
  121. netcam_tolerant_check off
  122.  
  123. # Let motion regulate the brightness of a video device (default: off).
  124. # The auto_brightness feature uses the brightness option as its target value.
  125. # If brightness is zero auto_brightness will adjust to average brightness value 128.
  126. # Only recommended for cameras without auto brightness
  127. auto_brightness off
  128.  
  129. # Set the initial brightness of a video device.
  130. # If auto_brightness is enabled, this value defines the average brightness level
  131. # which Motion will try and adjust to.
  132. # Valid range 0-255, default 0 = disabled
  133. brightness 0
  134.  
  135. # Set the contrast of a video device.
  136. # Valid range 0-255, default 0 = disabled
  137. contrast 0
  138.  
  139. # Set the saturation of a video device.
  140. # Valid range 0-255, default 0 = disabled
  141. saturation 0
  142.  
  143. # Set the hue of a video device (NTSC feature).
  144. # Valid range 0-255, default 0 = disabled
  145. hue 0
  146.  
  147. ############################################################
  148. # File "camera" support - read raw YUV data from a file
  149. ############################################################
  150. #filecam_path /home/pi/test-cap/motion-mmal.capture
  151.  
  152. ############################################################
  153. # OpenMax/MMAL camera support for Raspberry Pi
  154. ############################################################
  155. mmalcam_name vc.ril.camera
  156. #mmalcam_control_params
  157. #mmalcam_raw_capture_file /home/pi/motion-mmal.capture
  158.  
  159. # Switch this setting to "on" to use the still image mode of the Pi's camera
  160. # instead of video. This gives a wider field of view, but requires
  161. # a much slower frame-rate to achieve exposure stability
  162. # (e.g. 0.25 fps or slower). You can use the minimum_frame_time
  163. # parameter above to achieve this
  164.  
  165. mmalcam_use_still on
  166.  
  167.  
  168. ############################################################
  169. # Round Robin (multiple inputs on same video device name)
  170. ############################################################
  171.  
  172. # Number of frames to capture in each roundrobin step (default: 1)
  173. roundrobin_frames 1
  174.  
  175. # Number of frames to skip before each roundrobin step (default: 1)
  176. roundrobin_skip 1
  177.  
  178. # Try to filter out noise generated by roundrobin (default: off)
  179. switchfilter off
  180.  
  181.  
  182. ############################################################
  183. # Motion Detection Settings:
  184. ############################################################
  185.  
  186. # Threshold for number of changed pixels in an image that
  187. # triggers motion detection (default: 1500)
  188. threshold 1500
  189.  
  190. # Automatically tune the threshold down if possible (default: off)
  191. threshold_tune off
  192.  
  193. # Noise threshold for the motion detection (default: 32)
  194. noise_level 32
  195.  
  196. # Automatically tune the noise threshold (default: on)
  197. noise_tune on
  198.  
  199. # Despeckle motion image using (e)rode or (d)ilate or (l)abel (Default: not defined)
  200. # Recommended value is EedDl. Any combination (and number of) of E, e, d, and D is valid.
  201. # (l)abeling must only be used once and the 'l' must be the last letter.
  202. # Comment out to disable
  203. despeckle_filter EedDl
  204.  
  205. # Detect motion in predefined areas (1 - 9). Areas are numbered like that: 1 2 3
  206. # A script (on_area_detected) is started immediately when motion is 4 5 6
  207. # detected in one of the given areas, but only once during an event. 7 8 9
  208. # One or more areas can be specified with this option. Take care: This option
  209. # does NOT restrict detection to these areas! (Default: not defined)
  210. ; area_detect value
  211.  
  212. # PGM file to use as a sensitivity mask.
  213. # Full path name to. (Default: not defined)
  214. ; mask_file value
  215.  
  216. # Dynamically create a mask file during operation (default: 0)
  217. # Adjust speed of mask changes from 0 (off) to 10 (fast)
  218. smart_mask_speed 0
  219.  
  220. # Ignore sudden massive light intensity changes given as a percentage of the picture
  221. # area that changed intensity. Valid range: 0 - 100 , default: 0 = disabled
  222. lightswitch 0
  223.  
  224. # Picture frames must contain motion at least the specified number of frames
  225. # in a row before they are detected as true motion. At the default of 1, all
  226. # motion is detected. Valid range: 1 to thousands, recommended 1-5
  227. minimum_motion_frames 1
  228.  
  229. # Specifies the number of pre-captured (buffered) pictures from before motion
  230. # was detected that will be output at motion detection.
  231. # Recommended range: 0 to 5 (default: 0)
  232. # Do not use large values! Large values will cause Motion to skip video frames and
  233. # cause unsmooth movies. To smooth movies use larger values of post_capture instead.
  234. pre_capture 0
  235.  
  236. # Number of frames to capture after motion is no longer detected (default: 0)
  237. post_capture 0
  238.  
  239. # Event Gap is the seconds of no motion detection that triggers the end of an event.
  240. # An event is defined as a series of motion images taken within a short timeframe.
  241. # Recommended value is 60 seconds (Default). The value -1 is allowed and disables
  242. # events causing all Motion to be written to one single movie file and no pre_capture.
  243. # If set to 0, motion is running in gapless mode. Movies don't have gaps anymore. An
  244. # event ends right after no more motion is detected and post_capture is over.
  245. event_gap -1
  246.  
  247. # Maximum length in seconds of a movie
  248. # When value is exceeded a new movie file is created. (Default: 0 = infinite)
  249. max_movie_time 0
  250.  
  251. # Always save images even if there was no motion (default: off)
  252. emulate_motion off
  253.  
  254.  
  255. ############################################################
  256. # Image File Output
  257. ############################################################
  258.  
  259. # Output 'normal' pictures when motion is detected (default: on)
  260. # Valid values: on, off, first, best, center
  261. # When set to 'first', only the first picture of an event is saved.
  262. # Picture with most motion of an event is saved when set to 'best'.
  263. # Picture with motion nearest center of picture is saved when set to 'center'.
  264. # Can be used as preview shot for the corresponding movie.
  265. output_pictures on
  266.  
  267. # Output pictures with only the pixels moving object (ghost images) (default: off)
  268. output_debug_pictures off
  269.  
  270. # The quality (in percent) to be used by the jpeg compression (default: 75)
  271. quality 75
  272.  
  273. # Type of output images
  274. # Valid values: jpeg, ppm (default: jpeg)
  275. picture_type jpeg
  276.  
  277. ############################################################
  278. # FFMPEG related options
  279. # Film (movies) file output, and deinterlacing of the video input
  280. # The options movie_filename and timelapse_filename are also used
  281. # by the ffmpeg feature
  282. ############################################################
  283.  
  284. # Use ffmpeg to encode movies in realtime (default: off)
  285. ffmpeg_output_movies off
  286.  
  287. # Use ffmpeg to make movies with only the pixels moving
  288. # object (ghost images) (default: off)
  289. ffmpeg_output_debug_movies off
  290.  
  291. # Use ffmpeg to encode a timelapse movie
  292. # Default value 0 = off - else save frame every Nth second
  293. ffmpeg_timelapse 0
  294.  
  295. # The file rollover mode of the timelapse video
  296. # Valid values: hourly, daily (default), weekly-sunday, weekly-monday, monthly, manual
  297. ffmpeg_timelapse_mode daily
  298.  
  299. # Bitrate to be used by the ffmpeg encoder (default: 400000)
  300. # This option is ignored if ffmpeg_variable_bitrate is not 0 (disabled)
  301. ffmpeg_bps 500000
  302.  
  303. # Enables and defines variable bitrate for the ffmpeg encoder.
  304. # ffmpeg_bps is ignored if variable bitrate is enabled.
  305. # Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps,
  306. # or the range 2 - 31 where 2 means best quality and 31 is worst.
  307. ffmpeg_variable_bitrate 0
  308.  
  309. # Codec to used by ffmpeg for the video compression.
  310. # Timelapse mpegs are always made in mpeg1 format independent from this option.
  311. # Supported formats are: mpeg1 (ffmpeg-0.4.8 only), mpeg4 (default), and msmpeg4.
  312. # mpeg1 - gives you files with extension .mpg
  313. # mpeg4 or msmpeg4 - gives you files with extension .avi
  314. # msmpeg4 is recommended for use with Windows Media Player because
  315. # it requires no installation of codec on the Windows client.
  316. # swf - gives you a flash film with extension .swf
  317. # flv - gives you a flash video with extension .flv
  318. # ffv1 - FF video codec 1 for Lossless Encoding ( experimental )
  319. # mov - QuickTime ( testing )
  320. # ogg - Ogg/Theora ( testing )
  321. ffmpeg_video_codec mpeg4
  322.  
  323. # Use ffmpeg to deinterlace video. Necessary if you use an analog camera
  324. # and see horizontal combing on moving objects in video or pictures.
  325. # (default: off)
  326. ffmpeg_deinterlace off
  327.  
  328. ############################################################
  329. # SDL Window
  330. ############################################################
  331.  
  332. # Number of motion thread to show in SDL Window (default: 0 = disabled)
  333. #sdl_threadnr 0
  334.  
  335. ############################################################
  336. # External pipe to video encoder
  337. # Replacement for FFMPEG builtin encoder for ffmpeg_output_movies only.
  338. # The options movie_filename and timelapse_filename are also used
  339. # by the ffmpeg feature
  340. #############################################################
  341.  
  342. # Bool to enable or disable extpipe (default: off)
  343. use_extpipe off
  344.  
  345. # External program (full path and opts) to pipe raw video to
  346. # Generally, use '-' for STDIN...
  347. ;extpipe mencoder -demuxer rawvideo -rawvideo w=320:h=240:i420 -ovc x264 -x264encopts bframes=4:frameref=1:subq=1:scenecut=-1:nob_adapt:threads=1:keyint=1000:8x8dct:vbv_bufsize=4000:crf=24:partitions=i8x8,i4x4:vbv_maxrate=800:no-chroma-me -vf denoise3d=16:12:48:4,pp=lb -of avi -o %f.avi - -fps %fps
  348.  
  349.  
  350.  
  351. ############################################################
  352. # Snapshots (Traditional Periodic Webcam File Output)
  353. ############################################################
  354.  
  355. # Make automated snapshot every N seconds (default: 0 = disabled)
  356. snapshot_interval 5
  357.  
  358.  
  359. ############################################################
  360. # Text Display
  361. # %Y = year, %m = month, %d = date,
  362. # %H = hour, %M = minute, %S = second, %T = HH:MM:SS,
  363. # %v = event, %q = frame number, %t = thread (camera) number,
  364. # %D = changed pixels, %N = noise level, \n = new line,
  365. # %i and %J = width and height of motion area,
  366. # %K and %L = X and Y coordinates of motion center
  367. # %C = value defined by text_event - do not use with text_event!
  368. # You can put quotation marks around the text to allow
  369. # leading spaces
  370. ############################################################
  371.  
  372. # Locate and draw a box around the moving object.
  373. # Valid values: on, off, preview (default: off)
  374. # Set to 'preview' will only draw a box in preview_shot pictures.
  375. locate_motion_mode off
  376.  
  377. # Set the look and style of the locate box if enabled.
  378. # Valid values: box, redbox, cross, redcross (default: box)
  379. # Set to 'box' will draw the traditional box.
  380. # Set to 'redbox' will draw a red box.
  381. # Set to 'cross' will draw a little cross to mark center.
  382. # Set to 'redcross' will draw a little red cross to mark center.
  383. ;locate_motion_style box
  384.  
  385. # Draws the timestamp using same options as C function strftime(3)
  386. # Default: %Y-%m-%d\n%T = date in ISO format and time in 24 hour clock
  387. # Text is placed in lower right corner
  388. text_right %Y-%m-%d\n%T-%q
  389.  
  390. # Draw a user defined text on the images using same options as C function strftime(3)
  391. # Default: Not defined = no text
  392. # Text is placed in lower left corner
  393. ; text_left CAMERA %t
  394.  
  395. # Draw the number of changed pixed on the images (default: off)
  396. # Will normally be set to off except when you setup and adjust the motion settings
  397. # Text is placed in upper right corner
  398. text_changes off
  399.  
  400. # This option defines the value of the special event conversion specifier %C
  401. # You can use any conversion specifier in this option except %C. Date and time
  402. # values are from the timestamp of the first image in the current event.
  403. # Default: %Y%m%d%H%M%S
  404. # The idea is that %C can be used filenames and text_left/right for creating
  405. # a unique identifier for each event.
  406. ;text_event %Y%m%d%H%M%S
  407.  
  408. # Draw characters at twice normal size on images. (default: off)
  409. text_double off
  410.  
  411.  
  412. # Text to include in a JPEG EXIF comment
  413. # May be any text, including conversion specifiers.
  414. # The EXIF timestamp is included independent of this text.
  415. ;exif_text %i%J/%K%L
  416.  
  417. ############################################################
  418. # Target Directories and filenames For Images And Films
  419. # For the options snapshot_, picture_, movie_ and timelapse_filename
  420. # you can use conversion specifiers
  421. # %Y = year, %m = month, %d = date,
  422. # %H = hour, %M = minute, %S = second,
  423. # %v = event, %q = frame number, %t = thread (camera) number,
  424. # %D = changed pixels, %N = noise level,
  425. # %i and %J = width and height of motion area,
  426. # %K and %L = X and Y coordinates of motion center
  427. # %C = value defined by text_event
  428. # Quotation marks round string are allowed.
  429. ############################################################
  430.  
  431. # Target base directory for pictures and films
  432. # Recommended to use absolute path. (Default: current working directory)
  433. target_dir /home/pi
  434.  
  435. # File path for snapshots (jpeg or ppm) relative to target_dir
  436. # Default: %v-%Y%m%d%H%M%S-snapshot
  437. # Default value is equivalent to legacy oldlayout option
  438. # For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-snapshot
  439. # File extension .jpg or .ppm is automatically added so do not include this.
  440. # Note: A symbolic link called lastsnap.jpg created in the target_dir will always
  441. # point to the latest snapshot, unless snapshot_filename is exactly 'lastsnap'
  442. snapshot_filename %v-%Y%m%d%H%M%S-snapshot
  443.  
  444. # File path for motion triggered images (jpeg or ppm) relative to target_dir
  445. # Default: %v-%Y%m%d%H%M%S-%q
  446. # Default value is equivalent to legacy oldlayout option
  447. # For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-%q
  448. # File extension .jpg or .ppm is automatically added so do not include this
  449. # Set to 'preview' together with best-preview feature enables special naming
  450. # convention for preview shots. See motion guide for details
  451. picture_filename %v-%Y%m%d%H%M%S-%q
  452.  
  453. # File path for motion triggered ffmpeg films (movies) relative to target_dir
  454. # Default: %v-%Y%m%d%H%M%S
  455. # Default value is equivalent to legacy oldlayout option
  456. # For Motion 3.0 compatible mode choose: %Y/%m/%d/%H%M%S
  457. # File extension .mpg or .avi is automatically added so do not include this
  458. # This option was previously called ffmpeg_filename
  459. movie_filename %v-%Y%m%d%H%M%S
  460.  
  461. # File path for timelapse movies relative to target_dir
  462. # Default: %Y%m%d-timelapse
  463. # Default value is near equivalent to legacy oldlayout option
  464. # For Motion 3.0 compatible mode choose: %Y/%m/%d-timelapse
  465. # File extension .mpg is automatically added so do not include this
  466. timelapse_filename %Y%m%d-timelapse
  467.  
  468. ############################################################
  469. # Global Network Options
  470. ############################################################
  471. # Enable or disable IPV6 for http control and stream (default: off )
  472. ipv6_enabled off
  473.  
  474. ############################################################
  475. # Live Stream Server
  476. ############################################################
  477.  
  478. # The mini-http server listens to this port for requests (default: 0 = disabled)
  479. stream_port 0
  480.  
  481. # Quality of the jpeg (in percent) images produced (default: 50)
  482. stream_quality 50
  483.  
  484. # Output frames at 1 fps when no motion is detected and increase to the
  485. # rate given by stream_maxrate when motion is detected (default: off)
  486. stream_motion off
  487.  
  488. # Maximum framerate for stream streams (default: 1)
  489. stream_maxrate 1
  490.  
  491. # Restrict stream connections to localhost only (default: on)
  492. stream_localhost off
  493.  
  494. # Limits the number of images per connection (default: 0 = unlimited)
  495. # Number can be defined by multiplying actual stream rate by desired number of seconds
  496. # Actual stream rate is the smallest of the numbers framerate and stream_maxrate
  497. stream_limit 0
  498.  
  499. # Set the authentication method (default: 0)
  500. # 0 = disabled
  501. # 1 = Basic authentication
  502. # 2 = MD5 digest (the safer authentication)
  503. stream_auth_method 0
  504.  
  505. # Authentication for the stream. Syntax username:password
  506. # Default: not defined (Disabled)
  507. ; stream_authentication username:password
  508.  
  509.  
  510. ############################################################
  511. # HTTP Based Control
  512. ############################################################
  513.  
  514. # TCP/IP port for the http server to listen on (default: 0 = disabled)
  515. webcontrol_port 0
  516.  
  517. # Restrict control connections to localhost only (default: on)
  518. webcontrol_localhost on
  519.  
  520. # Output for http server, select off to choose raw text plain (default: on)
  521. webcontrol_html_output on
  522.  
  523. # Authentication for the http based control. Syntax username:password
  524. # Default: not defined (Disabled)
  525. ; webcontrol_authentication username:password
  526.  
  527.  
  528. ############################################################
  529. # Tracking (Pan/Tilt)
  530. #############################################################
  531.  
  532. # Type of tracker (0=none (default), 1=stepper, 2=iomojo, 3=pwc, 4=generic, 5=uvcvideo, 6=servo)
  533. # The generic type enables the definition of motion center and motion size to
  534. # be used with the conversion specifiers for options like on_motion_detected
  535. track_type 0
  536.  
  537. # Enable auto tracking (default: off)
  538. track_auto off
  539.  
  540. # Serial port of motor (default: none)
  541. ;track_port /dev/ttyS0
  542.  
  543. # Motor number for x-axis (default: 0)
  544. ;track_motorx 0
  545.  
  546. # Set motorx reverse (default: 0)
  547. ;track_motorx_reverse 0
  548.  
  549. # Motor number for y-axis (default: 0)
  550. ;track_motory 1
  551.  
  552. # Set motory reverse (default: 0)
  553. ;track_motory_reverse 0
  554.  
  555. # Maximum value on x-axis (default: 0)
  556. ;track_maxx 200
  557.  
  558. # Minimum value on x-axis (default: 0)
  559. ;track_minx 50
  560.  
  561. # Maximum value on y-axis (default: 0)
  562. ;track_maxy 200
  563.  
  564. # Minimum value on y-axis (default: 0)
  565. ;track_miny 50
  566.  
  567. # Center value on x-axis (default: 0)
  568. ;track_homex 128
  569.  
  570. # Center value on y-axis (default: 0)
  571. ;track_homey 128
  572.  
  573. # ID of an iomojo camera if used (default: 0)
  574. track_iomojo_id 0
  575.  
  576. # Angle in degrees the camera moves per step on the X-axis
  577. # with auto-track (default: 10)
  578. # Currently only used with pwc type cameras
  579. track_step_angle_x 10
  580.  
  581. # Angle in degrees the camera moves per step on the Y-axis
  582. # with auto-track (default: 10)
  583. # Currently only used with pwc type cameras
  584. track_step_angle_y 10
  585.  
  586. # Delay to wait for after tracking movement as number
  587. # of picture frames (default: 10)
  588. track_move_wait 10
  589.  
  590. # Speed to set the motor to (stepper motor option) (default: 255)
  591. track_speed 255
  592.  
  593. # Number of steps to make (stepper motor option) (default: 40)
  594. track_stepsize 40
  595.  
  596.  
  597. ############################################################
  598. # External Commands, Warnings and Logging:
  599. # You can use conversion specifiers for the on_xxxx commands
  600. # %Y = year, %m = month, %d = date,
  601. # %H = hour, %M = minute, %S = second,
  602. # %v = event, %q = frame number, %t = thread (camera) number,
  603. # %D = changed pixels, %N = noise level,
  604. # %i and %J = width and height of motion area,
  605. # %K and %L = X and Y coordinates of motion center
  606. # %C = value defined by text_event
  607. # %f = filename with full path
  608. # %n = number indicating filetype
  609. # Both %f and %n are only defined for on_picture_save,
  610. # on_movie_start and on_movie_end
  611. # Quotation marks round string are allowed.
  612. ############################################################
  613.  
  614. # Do not sound beeps when detecting motion (default: on)
  615. # Note: Motion never beeps when running in daemon mode.
  616. quiet on
  617.  
  618. # Command to be executed when an event starts. (default: none)
  619. # An event starts at first motion detected after a period of no motion defined by event_gap
  620. ; on_event_start value
  621.  
  622. # Command to be executed when an event ends after a period of no motion
  623. # (default: none). The period of no motion is defined by option event_gap.
  624. ; on_event_end value
  625.  
  626. # Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
  627. # To give the filename as an argument to a command append it with %f
  628. ; on_picture_save value
  629.  
  630. # Command to be executed when a motion frame is detected (default: none)
  631. ; on_motion_detected value
  632.  
  633. # Command to be executed when motion in a predefined area is detected
  634. # Check option 'area_detect'. (default: none)
  635. ; on_area_detected value
  636.  
  637. # Command to be executed when a movie file (.mpg|.avi) is created. (default: none)
  638. # To give the filename as an argument to a command append it with %f
  639. ; on_movie_start value
  640.  
  641. # Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)
  642. # To give the filename as an argument to a command append it with %f
  643. ; on_movie_end value
  644.  
  645. # Command to be executed when a camera can't be opened or if it is lost
  646. # NOTE: There is situations when motion don't detect a lost camera!
  647. # It depends on the driver, some drivers dosn't detect a lost camera at all
  648. # Some hangs the motion thread. Some even hangs the PC! (default: none)
  649. ; on_camera_lost value
  650.  
  651. #####################################################################
  652. # Common Options for database features.
  653. # Options require database options to be active also.
  654. #####################################################################
  655.  
  656. # Log to the database when creating motion triggered picture file (default: on)
  657. ; sql_log_picture on
  658.  
  659. # Log to the database when creating a snapshot image file (default: on)
  660. ; sql_log_snapshot on
  661.  
  662. # Log to the database when creating motion triggered movie file (default: off)
  663. ; sql_log_movie off
  664.  
  665. # Log to the database when creating timelapse movies file (default: off)
  666. ; sql_log_timelapse off
  667.  
  668. # SQL query string that is sent to the database
  669. # Use same conversion specifiers has for text features
  670. # Additional special conversion specifiers are
  671. # %n = the number representing the file_type
  672. # %f = filename with full path
  673. # Default value:
  674. # Create tables :
  675. ##
  676. # Mysql
  677. # CREATE TABLE security (camera int, filename char(80) not null, frame int, file_type int, time_stamp timestamp(14), event_time_stamp timestamp(14));
  678. #
  679. # Postgresql
  680. # CREATE TABLE security (camera int, filename char(80) not null, frame int, file_type int, time_stamp timestamp without time zone, event_time_stamp timestamp without time zone);
  681. #
  682. # insert into security(camera, filename, frame, file_type, time_stamp, text_event) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
  683. ; sql_query insert into security(camera, filename, frame, file_type, time_stamp, event_time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
  684.  
  685.  
  686. ############################################################
  687. # Database Options
  688. ############################################################
  689.  
  690. # database type : mysql, postgresql, sqlite3 (default : not defined)
  691. ; database_type value
  692.  
  693. # database to log to (default: not defined)
  694. ; database_dbname value
  695.  
  696. # The host on which the database is located (default: localhost)
  697. ; database_host value
  698.  
  699. # User account name for database (default: not defined)
  700. ; database_user value
  701.  
  702. # User password for database (default: not defined)
  703. ; database_password value
  704.  
  705. # Port on which the database is located
  706. # mysql 3306 , postgresql 5432 (default: not defined)
  707. ; database_port value
  708.  
  709. ############################################################
  710. # Database Options For SQLite3
  711. ############################################################
  712.  
  713. # SQLite3 database (file path) (default: not defined)
  714. ; sqlite3_db value
  715.  
  716.  
  717.  
  718. ############################################################
  719. # Video Loopback Device (vloopback project)
  720. ############################################################
  721.  
  722. # Output images to a video4linux loopback device
  723. # The value '-' means next available (default: not defined)
  724. ; video_pipe value
  725.  
  726. # Output motion images to a video4linux loopback device
  727. # The value '-' means next available (default: not defined)
  728. ; motion_video_pipe value
  729.  
  730.  
  731. ##############################################################
  732. # Thread config files - One for each camera.
  733. # Except if only one camera - You only need this config file.
  734. # If you have more than one camera you MUST define one thread
  735. # config file for each camera in addition to this config file.
  736. ##############################################################
  737.  
  738. # Remember: If you have more than one camera you must have one
  739. # thread file for each camera. E.g. 2 cameras requires 3 files:
  740. # This motion.conf file AND thread1.conf and thread2.conf.
  741. # Only put the options that are unique to each camera in the
  742. # thread config files.
  743. ; thread /usr/local/etc/thread1.conf
  744. ; thread /usr/local/etc/thread2.conf
  745. ; thread /usr/local/etc/thread3.conf
  746. ; thread /usr/local/etc/thread4.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement