Advertisement
Xi0N

motion config for raspberry pi

Oct 17th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.14 KB | None | 0 0
  1. # Rename this distribution example file to motion.conf
  2. #
  3. # This config file was generated by motion 3.2.12
  4.  
  5.  
  6. ############################################################
  7. # Daemon
  8. ############################################################
  9.  
  10. # Start in daemon (background) mode and release terminal (default: off)
  11. daemon on
  12.  
  13. # File to store the process ID, also called pid file. (default: not defined)
  14. process_id_file /var/run/motion/motion.pid
  15.  
  16. ############################################################
  17. # Basic Setup Mode
  18. ############################################################
  19.  
  20. # Start in Setup-Mode, daemon disabled. (default: off)
  21. setup_mode off
  22.  
  23. ###########################################################
  24. # Capture device options
  25. ############################################################
  26.  
  27. # Videodevice to be used for capturing (default /dev/video0)
  28. # for FreeBSD default is /dev/bktr0
  29. videodevice /dev/video0
  30.  
  31. # v4l2_palette allows to choose preferable palette to be use by motion
  32. # to capture from those supported by your videodevice. (default: 8)
  33. # E.g. if your videodevice supports both V4L2_PIX_FMT_SBGGR8 and
  34. # V4L2_PIX_FMT_MJPEG then motion will by default use V4L2_PIX_FMT_MJPEG.
  35. # Setting v4l2_palette to 1 forces motion to use V4L2_PIX_FMT_SBGGR8
  36. # instead.
  37. #
  38. # Values :
  39. # V4L2_PIX_FMT_SN9C10X : 0 'S910'
  40. # V4L2_PIX_FMT_SBGGR8 : 1 'BA81'
  41. # V4L2_PIX_FMT_MJPEG : 2 'MJPEG'
  42. # V4L2_PIX_FMT_JPEG : 3 'JPEG'
  43. # V4L2_PIX_FMT_RGB24 : 4 'RGB3'
  44. # V4L2_PIX_FMT_UYVY : 5 'UYVY'
  45. # V4L2_PIX_FMT_YUYV : 6 'YUYV'
  46. # V4L2_PIX_FMT_YUV422P : 7 '422P'
  47. # V4L2_PIX_FMT_YUV420 : 8 'YU12'
  48. v4l2_palette 8
  49.  
  50. # Tuner device to be used for capturing using tuner as source (default /dev/tuner0)
  51. # This is ONLY used for FreeBSD. Leave it commented out for Linux
  52. ; tunerdevice /dev/tuner0
  53.  
  54. # The video input to be used (default: 8)
  55. # Should normally be set to 0 or 1 for video/TV cards, and 8 for USB cameras
  56. input 8
  57.  
  58. # The video norm to use (only for video capture and TV tuner cards)
  59. # Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL)
  60. norm 0
  61.  
  62. # The frequency to set the tuner to (kHz) (only for TV tuner cards) (default: 0)
  63. frequency 0
  64.  
  65. # Rotate image this number of degrees. The rotation affects all saved images as
  66. # well as mpeg movies. Valid values: 0 (default = no rotation), 90, 180 and 270.
  67. rotate 0
  68.  
  69. # Image width (pixels). Valid range: Camera dependent, default: 352
  70. #width 320
  71. width 640
  72.  
  73. # Image height (pixels). Valid range: Camera dependent, default: 288
  74. #height 240
  75. height 480
  76.  
  77. # Maximum number of frames to be captured per second.
  78. # Valid range: 2-100. Default: 100 (almost no limit).
  79. framerate 30
  80.  
  81. # Minimum time in seconds between capturing picture frames from the camera.
  82. # Default: 0 = disabled - the capture rate is given by the camera framerate.
  83. # This option is used when you want to capture images at a rate lower than 2 per second.
  84. minimum_frame_time 0
  85.  
  86. # URL to use if you are using a network camera, size will be autodetected (incl http:// ftp:// or file:///)
  87. # Must be a URL that returns single jpeg pictures or a raw mjpeg stream. Default: Not defined
  88. ; netcam_url value
  89.  
  90. # Username and password for network camera (only if required). Default: not defined
  91. # Syntax is user:password
  92. ; netcam_userpass value
  93.  
  94. # The setting for keep-alive of network socket, should improve performance on compatible net cameras.
  95. # 1.0: The historical implementation using HTTP/1.0, closing the socket after each http request.
  96. # keep_alive: Use HTTP/1.0 requests with keep alive header to reuse the same connection.
  97. # 1.1: Use HTTP/1.1 requests that support keep alive as default.
  98. # Default: 1.0
  99. ; netcam_http 1.0
  100.  
  101. # URL to use for a netcam proxy server, if required, e.g. "http://myproxy".
  102. # If a port number other than 80 is needed, use "http://myproxy:1234".
  103. # Default: not defined
  104. ; netcam_proxy value
  105.  
  106. # Set less strict jpeg checks for network cameras with a poor/buggy firmware.
  107. # Default: off
  108. netcam_tolerant_check off
  109.  
  110. # Let motion regulate the brightness of a video device (default: off).
  111. # The auto_brightness feature uses the brightness option as its target value.
  112. # If brightness is zero auto_brightness will adjust to average brightness value 128.
  113. # Only recommended for cameras without auto brightness
  114. auto_brightness off
  115.  
  116. # Set the initial brightness of a video device.
  117. # If auto_brightness is enabled, this value defines the average brightness level
  118. # which Motion will try and adjust to.
  119. # Valid range 0-255, default 0 = disabled
  120. brightness 0
  121.  
  122. # Set the contrast of a video device.
  123. # Valid range 0-255, default 0 = disabled
  124. contrast 0
  125.  
  126. # Set the saturation of a video device.
  127. # Valid range 0-255, default 0 = disabled
  128. saturation 0
  129.  
  130. # Set the hue of a video device (NTSC feature).
  131. # Valid range 0-255, default 0 = disabled
  132. hue 0
  133.  
  134.  
  135. ############################################################
  136. # Round Robin (multiple inputs on same video device name)
  137. ############################################################
  138.  
  139. # Number of frames to capture in each roundrobin step (default: 1)
  140. roundrobin_frames 1
  141.  
  142. # Number of frames to skip before each roundrobin step (default: 1)
  143. roundrobin_skip 1
  144.  
  145. # Try to filter out noise generated by roundrobin (default: off)
  146. switchfilter off
  147.  
  148.  
  149. ############################################################
  150. # Motion Detection Settings:
  151. ############################################################
  152.  
  153. # Threshold for number of changed pixels in an image that
  154. # triggers motion detection (default: 1500)
  155. threshold 1500
  156.  
  157. # Automatically tune the threshold down if possible (default: off)
  158. threshold_tune off
  159.  
  160. # Noise threshold for the motion detection (default: 32)
  161. noise_level 32
  162.  
  163. # Automatically tune the noise threshold (default: on)
  164. noise_tune on
  165.  
  166. # Despeckle motion image using (e)rode or (d)ilate or (l)abel (Default: not defined)
  167. # Recommended value is EedDl. Any combination (and number of) of E, e, d, and D is valid.
  168. # (l)abeling must only be used once and the 'l' must be the last letter.
  169. # Comment out to disable
  170. despeckle EedDl
  171.  
  172. # Detect motion in predefined areas (1 - 9). Areas are numbered like that: 1 2 3
  173. # A script (on_area_detected) is started immediately when motion is 4 5 6
  174. # detected in one of the given areas, but only once during an event. 7 8 9
  175. # One or more areas can be specified with this option. (Default: not defined)
  176. ; area_detect value
  177.  
  178. # PGM file to use as a sensitivity mask.
  179. # Full path name to. (Default: not defined)
  180. ; mask_file value
  181.  
  182. # Dynamically create a mask file during operation (default: 0)
  183. # Adjust speed of mask changes from 0 (off) to 10 (fast)
  184. smart_mask_speed 0
  185.  
  186. # Ignore sudden massive light intensity changes given as a percentage of the picture
  187. # area that changed intensity. Valid range: 0 - 100 , default: 0 = disabled
  188. lightswitch 0
  189.  
  190. # Picture frames must contain motion at least the specified number of frames
  191. # in a row before they are detected as true motion. At the default of 1, all
  192. # motion is detected. Valid range: 1 to thousands, recommended 1-5
  193. minimum_motion_frames 1
  194.  
  195. # Specifies the number of pre-captured (buffered) pictures from before motion
  196. # was detected that will be output at motion detection.
  197. # Recommended range: 0 to 5 (default: 0)
  198. # Do not use large values! Large values will cause Motion to skip video frames and
  199. # cause unsmooth mpegs. To smooth mpegs use larger values of post_capture instead.
  200. pre_capture 0
  201.  
  202. # Number of frames to capture after motion is no longer detected (default: 0)
  203. post_capture 0
  204.  
  205. # Gap is the seconds of no motion detection that triggers the end of an event
  206. # An event is defined as a series of motion images taken within a short timeframe.
  207. # Recommended value is 60 seconds (Default). The value 0 is allowed and disables
  208. # events causing all Motion to be written to one single mpeg file and no pre_capture.
  209. gap 60
  210.  
  211. # Maximum length in seconds of an mpeg movie
  212. # When value is exceeded a new mpeg file is created. (Default: 0 = infinite)
  213. max_mpeg_time 0
  214.  
  215. # Always save images even if there was no motion (default: off)
  216. output_all off
  217.  
  218.  
  219. ############################################################
  220. # Image File Output
  221. ############################################################
  222.  
  223. # Output 'normal' pictures when motion is detected (default: on)
  224. # Valid values: on, off, first, best, center
  225. # When set to 'first', only the first picture of an event is saved.
  226. # Picture with most motion of an event is saved when set to 'best'.
  227. # Picture with motion nearest center of picture is saved when set to 'center'.
  228. # Can be used as preview shot for the corresponding movie.
  229. output_normal on
  230.  
  231. # Output pictures with only the pixels moving object (ghost images) (default: off)
  232. output_motion off
  233.  
  234. # The quality (in percent) to be used by the jpeg compression (default: 75)
  235. quality 75
  236.  
  237. # Output ppm images instead of jpeg (default: off)
  238. ppm off
  239.  
  240.  
  241. ############################################################
  242. # FFMPEG related options
  243. # Film (mpeg) file output, and deinterlacing of the video input
  244. # The options movie_filename and timelapse_filename are also used
  245. # by the ffmpeg feature
  246. ############################################################
  247.  
  248. # Use ffmpeg to encode mpeg movies in realtime (default: off)
  249. ffmpeg_cap_new on
  250.  
  251. # Use ffmpeg to make movies with only the pixels moving
  252. # object (ghost images) (default: off)
  253. ffmpeg_cap_motion off
  254.  
  255. # Use ffmpeg to encode a timelapse movie
  256. # Default value 0 = off - else save frame every Nth second
  257. ffmpeg_timelapse 0
  258.  
  259. # The file rollover mode of the timelapse video
  260. # Valid values: hourly, daily (default), weekly-sunday, weekly-monday, monthly, manual
  261. ffmpeg_timelapse_mode daily
  262.  
  263. # Bitrate to be used by the ffmpeg encoder (default: 400000)
  264. # This option is ignored if ffmpeg_variable_bitrate is not 0 (disabled)
  265. ffmpeg_bps 500000
  266.  
  267. # Enables and defines variable bitrate for the ffmpeg encoder.
  268. # ffmpeg_bps is ignored if variable bitrate is enabled.
  269. # Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps,
  270. # or the range 2 - 31 where 2 means best quality and 31 is worst.
  271. ffmpeg_variable_bitrate 0
  272.  
  273. # Codec to used by ffmpeg for the video compression.
  274. # Timelapse mpegs are always made in mpeg1 format independent from this option.
  275. # Supported formats are: mpeg1 (ffmpeg-0.4.8 only), mpeg4 (default), and msmpeg4.
  276. # mpeg1 - gives you files with extension .mpg
  277. # mpeg4 or msmpeg4 - gives you files with extension .avi
  278. # msmpeg4 is recommended for use with Windows Media Player because
  279. # it requires no installation of codec on the Windows client.
  280. # swf - gives you a flash film with extension .swf
  281. # flv - gives you a flash video with extension .flv
  282. # ffv1 - FF video codec 1 for Lossless Encoding ( experimental )
  283. # mov - QuickTime ( testing )
  284. ffmpeg_video_codec mpeg4
  285.  
  286. # Use ffmpeg to deinterlace video. Necessary if you use an analog camera
  287. # and see horizontal combing on moving objects in video or pictures.
  288. # (default: off)
  289. ffmpeg_deinterlace off
  290.  
  291.  
  292. ############################################################
  293. # Snapshots (Traditional Periodic Webcam File Output)
  294. ############################################################
  295.  
  296. # Make automated snapshot every N seconds (default: 0 = disabled)
  297. snapshot_interval 0
  298.  
  299.  
  300. ############################################################
  301. # Text Display
  302. # %Y = year, %m = month, %d = date,
  303. # %H = hour, %M = minute, %S = second, %T = HH:MM:SS,
  304. # %v = event, %q = frame number, %t = thread (camera) number,
  305. # %D = changed pixels, %N = noise level, \n = new line,
  306. # %i and %J = width and height of motion area,
  307. # %K and %L = X and Y coordinates of motion center
  308. # %C = value defined by text_event - do not use with text_event!
  309. # You can put quotation marks around the text to allow
  310. # leading spaces
  311. ############################################################
  312.  
  313. # Locate and draw a box around the moving object.
  314. # Valid values: on, off and preview (default: off)
  315. # Set to 'preview' will only draw a box in preview_shot pictures.
  316. locate off
  317.  
  318. # Draws the timestamp using same options as C function strftime(3)
  319. # Default: %Y-%m-%d\n%T = date in ISO format and time in 24 hour clock
  320. # Text is placed in lower right corner
  321. text_right %Y-%m-%d\n%T-%q
  322.  
  323. # Draw a user defined text on the images using same options as C function strftime(3)
  324. # Default: Not defined = no text
  325. # Text is placed in lower left corner
  326. ; text_left CAMERA %t
  327.  
  328. # Draw the number of changed pixed on the images (default: off)
  329. # Will normally be set to off except when you setup and adjust the motion settings
  330. # Text is placed in upper right corner
  331. text_changes off
  332.  
  333. # This option defines the value of the special event conversion specifier %C
  334. # You can use any conversion specifier in this option except %C. Date and time
  335. # values are from the timestamp of the first image in the current event.
  336. # Default: %Y%m%d%H%M%S
  337. # The idea is that %C can be used filenames and text_left/right for creating
  338. # a unique identifier for each event.
  339. text_event %Y%m%d%H%M%S
  340.  
  341. # Draw characters at twice normal size on images. (default: off)
  342. text_double off
  343.  
  344.  
  345. ############################################################
  346. # Target Directories and filenames For Images And Films
  347. # For the options snapshot_, jpeg_, mpeg_ and timelapse_filename
  348. # you can use conversion specifiers
  349. # %Y = year, %m = month, %d = date,
  350. # %H = hour, %M = minute, %S = second,
  351. # %v = event, %q = frame number, %t = thread (camera) number,
  352. # %D = changed pixels, %N = noise level,
  353. # %i and %J = width and height of motion area,
  354. # %K and %L = X and Y coordinates of motion center
  355. # %C = value defined by text_event
  356. # Quotation marks round string are allowed.
  357. ############################################################
  358.  
  359. # Target base directory for pictures and films
  360. # Recommended to use absolute path. (Default: current working directory)
  361. target_dir /usr/local/apache2/htdocs/cam1
  362.  
  363. # File path for snapshots (jpeg or ppm) relative to target_dir
  364. # Default: %v-%Y%m%d%H%M%S-snapshot
  365. # Default value is equivalent to legacy oldlayout option
  366. # For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-snapshot
  367. # File extension .jpg or .ppm is automatically added so do not include this.
  368. # Note: A symbolic link called lastsnap.jpg created in the target_dir will always
  369. # point to the latest snapshot, unless snapshot_filename is exactly 'lastsnap'
  370. snapshot_filename %v-%Y%m%d%H%M%S-snapshot
  371.  
  372. # File path for motion triggered images (jpeg or ppm) relative to target_dir
  373. # Default: %v-%Y%m%d%H%M%S-%q
  374. # Default value is equivalent to legacy oldlayout option
  375. # For Motion 3.0 compatible mode choose: %Y/%m/%d/%H/%M/%S-%q
  376. # File extension .jpg or .ppm is automatically added so do not include this
  377. # Set to 'preview' together with best-preview feature enables special naming
  378. # convention for preview shots. See motion guide for details
  379. #jpeg_filename %v-%Y%m%d%H%M%S-%q
  380. jpeg_filename snapshot
  381.  
  382. # File path for motion triggered ffmpeg films (mpeg) relative to target_dir
  383. # Default: %v-%Y%m%d%H%M%S
  384. # Default value is equivalent to legacy oldlayout option
  385. # For Motion 3.0 compatible mode choose: %Y/%m/%d/%H%M%S
  386. # File extension .mpg or .avi is automatically added so do not include this
  387. # This option was previously called ffmpeg_filename
  388. #movie_filename %v-%Y%m%d%H%M%S
  389. movie_filename movie
  390.  
  391. # File path for timelapse mpegs relative to target_dir
  392. # Default: %Y%m%d-timelapse
  393. # Default value is near equivalent to legacy oldlayout option
  394. # For Motion 3.0 compatible mode choose: %Y/%m/%d-timelapse
  395. # File extension .mpg is automatically added so do not include this
  396. timelapse_filename %Y%m%d-timelapse
  397.  
  398.  
  399. ############################################################
  400. # Live Webcam Server
  401. ############################################################
  402.  
  403. # The mini-http server listens to this port for requests (default: 0 = disabled)
  404. webcam_port 8085
  405.  
  406. # Quality of the jpeg (in percent) images produced (default: 50)
  407. webcam_quality 50
  408.  
  409. # Output frames at 1 fps when no motion is detected and increase to the
  410. # rate given by webcam_maxrate when motion is detected (default: off)
  411. webcam_motion on
  412.  
  413. # Maximum framerate for webcam streams (default: 1)
  414. webcam_maxrate 30
  415.  
  416. # Restrict webcam connections to localhost only (default: on)
  417. webcam_localhost off
  418.  
  419. # Limits the number of images per connection (default: 0 = unlimited)
  420. # Number can be defined by multiplying actual webcam rate by desired number of seconds
  421. # Actual webcam rate is the smallest of the numbers framerate and webcam_maxrate
  422. webcam_limit 0
  423.  
  424.  
  425. ############################################################
  426. # HTTP Based Control
  427. ############################################################
  428.  
  429. # TCP/IP port for the http server to listen on (default: 0 = disabled)
  430. control_port 8083
  431.  
  432. # Restrict control connections to localhost only (default: on)
  433. control_localhost on
  434.  
  435. # Output for http server, select off to choose raw text plain (default: on)
  436. control_html_output on
  437.  
  438. # Authentication for the http based control. Syntax username:password
  439. # Default: not defined (Disabled)
  440. ; control_authentication username:password
  441.  
  442.  
  443. ############################################################
  444. # Tracking (Pan/Tilt)
  445. ############################################################
  446.  
  447. # Type of tracker (0=none (default), 1=stepper, 2=iomojo, 3=pwc, 4=generic, 5=uvcvideo)
  448. # The generic type enables the definition of motion center and motion size to
  449. # be used with the conversion specifiers for options like on_motion_detected
  450. track_type 0
  451.  
  452. # Enable auto tracking (default: off)
  453. track_auto off
  454.  
  455. # Serial port of motor (default: none)
  456. ; track_port value
  457.  
  458. # Motor number for x-axis (default: 0)
  459. track_motorx 0
  460.  
  461. # Motor number for y-axis (default: 0)
  462. track_motory 0
  463.  
  464. # Maximum value on x-axis (default: 0)
  465. track_maxx 0
  466.  
  467. # Maximum value on y-axis (default: 0)
  468. track_maxy 0
  469.  
  470. # ID of an iomojo camera if used (default: 0)
  471. track_iomojo_id 0
  472.  
  473. # Angle in degrees the camera moves per step on the X-axis
  474. # with auto-track (default: 10)
  475. # Currently only used with pwc type cameras
  476. track_step_angle_x 10
  477.  
  478. # Angle in degrees the camera moves per step on the Y-axis
  479. # with auto-track (default: 10)
  480. # Currently only used with pwc type cameras
  481. track_step_angle_y 10
  482.  
  483. # Delay to wait for after tracking movement as number
  484. # of picture frames (default: 10)
  485. track_move_wait 10
  486.  
  487. # Speed to set the motor to (stepper motor option) (default: 255)
  488. track_speed 255
  489.  
  490. # Number of steps to make (stepper motor option) (default: 40)
  491. track_stepsize 40
  492.  
  493.  
  494. ############################################################
  495. # External Commands, Warnings and Logging:
  496. # You can use conversion specifiers for the on_xxxx commands
  497. # %Y = year, %m = month, %d = date,
  498. # %H = hour, %M = minute, %S = second,
  499. # %v = event, %q = frame number, %t = thread (camera) number,
  500. # %D = changed pixels, %N = noise level,
  501. # %i and %J = width and height of motion area,
  502. # %K and %L = X and Y coordinates of motion center
  503. # %C = value defined by text_event
  504. # %f = filename with full path
  505. # %n = number indicating filetype
  506. # Both %f and %n are only defined for on_picture_save,
  507. # on_movie_start and on_movie_end
  508. # Quotation marks round string are allowed.
  509. ############################################################
  510.  
  511. # Do not sound beeps when detecting motion (default: on)
  512. # Note: Motion never beeps when running in daemon mode.
  513. quiet on
  514.  
  515. # Command to be executed when an event starts. (default: none)
  516. # An event starts at first motion detected after a period of no motion defined by gap
  517. ; on_event_start value
  518.  
  519. # Command to be executed when an event ends after a period of no motion
  520. # (default: none). The period of no motion is defined by option gap.
  521. ; on_event_end value
  522.  
  523. # Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
  524. # To give the filename as an argument to a command append it with %f
  525. ; on_picture_save value
  526.  
  527. # Command to be executed when a motion frame is detected (default: none)
  528. ; on_motion_detected value
  529.  
  530. # Command to be executed when motion in a predefined area is detected
  531. # Check option 'area_detect'. (default: none)
  532. ; on_area_detected value
  533.  
  534. # Command to be executed when a movie file (.mpg|.avi) is created. (default: none)
  535. # To give the filename as an argument to a command append it with %f
  536. ; on_movie_start value
  537.  
  538. # Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)
  539. # To give the filename as an argument to a command append it with %f
  540. ; on_movie_end value
  541.  
  542. # Command to be executed when a camera can't be opened or if it is lost
  543. # NOTE: There is situations when motion doesn't detect a lost camera!
  544. # It depends on the driver, some drivers don't detect a lost camera at all
  545. # Some hang the motion thread. Some even hang the PC! (default: none)
  546. ; on_camera_lost value
  547.  
  548. ############################################################
  549. # Common Options For MySQL and PostgreSQL database features.
  550. # Options require the MySQL/PostgreSQL options to be active also.
  551. ############################################################
  552.  
  553. # Log to the database when creating motion triggered image file (default: on)
  554. sql_log_image on
  555.  
  556. # Log to the database when creating a snapshot image file (default: on)
  557. sql_log_snapshot on
  558.  
  559. # Log to the database when creating motion triggered mpeg file (default: off)
  560. sql_log_mpeg off
  561.  
  562. # Log to the database when creating timelapse mpeg file (default: off)
  563. sql_log_timelapse off
  564.  
  565. # SQL query string that is sent to the database
  566. # Use same conversion specifiers has for text features
  567. # Additional special conversion specifiers are
  568. # %n = the number representing the file_type
  569. # %f = filename with full path
  570. # Default value:
  571. # insert into security(camera, filename, frame, file_type, time_stamp, text_event) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
  572. 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')
  573.  
  574.  
  575. ############################################################
  576. # Database Options For MySQL
  577. ############################################################
  578.  
  579. # Mysql database to log to (default: not defined)
  580. ; mysql_db value
  581.  
  582. # The host on which the database is located (default: localhost)
  583. ; mysql_host value
  584.  
  585. # User account name for MySQL database (default: not defined)
  586. ; mysql_user value
  587.  
  588. # User password for MySQL database (default: not defined)
  589. ; mysql_password value
  590.  
  591.  
  592. ############################################################
  593. # Database Options For PostgreSQL
  594. ############################################################
  595.  
  596. # PostgreSQL database to log to (default: not defined)
  597. ; pgsql_db value
  598.  
  599. # The host on which the database is located (default: localhost)
  600. ; pgsql_host value
  601.  
  602. # User account name for PostgreSQL database (default: not defined)
  603. ; pgsql_user value
  604.  
  605. # User password for PostgreSQL database (default: not defined)
  606. ; pgsql_password value
  607.  
  608. # Port on which the PostgreSQL database is located (default: 5432)
  609. ; pgsql_port 5432
  610.  
  611.  
  612. ############################################################
  613. # Video Loopback Device (vloopback project)
  614. ############################################################
  615.  
  616. # Output images to a video4linux loopback device
  617. # The value '-' means next available (default: not defined)
  618. ; video_pipe value
  619.  
  620. # Output motion images to a video4linux loopback device
  621. # The value '-' means next available (default: not defined)
  622. ; motion_video_pipe value
  623.  
  624.  
  625. ##############################################################
  626. # Thread config files - One for each camera.
  627. # Except if only one camera - You only need this config file.
  628. # If you have more than one camera you MUST define one thread
  629. # config file for each camera in addition to this config file.
  630. ##############################################################
  631.  
  632. # Remember: If you have more than one camera you must have one
  633. # thread file for each camera. E.g. 2 cameras requires 3 files:
  634. # This motion.conf file AND thread1.conf and thread2.conf.
  635. # Only put the options that are unique to each camera in the
  636. # thread config files.
  637. ; thread /usr/local/etc/thread1.conf
  638. ; thread /usr/local/etc/thread2.conf
  639. ; thread /usr/local/etc/thread3.conf
  640. ; thread /usr/local/etc/thread4.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement