Advertisement
Guest User

Untitled

a guest
Feb 9th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.26 KB | None | 0 0
  1. # Rename this distribution example file to motion.conf
  2. #
  3. # This config file was generated by motion 4.5.1
  4. # Documentation: /usr/share/doc/motion/motion_guide.html
  5. #
  6. # This file contains only the basic configuration options to get a
  7. # system working. There are many more options available. Please
  8. # consult the documentation for the complete list of all options.
  9. #
  10.  
  11. ############################################################
  12. # System control configuration parameters
  13. ############################################################
  14.  
  15. # Start in daemon (background) mode and release terminal.
  16. daemon off
  17.  
  18. # Start in Setup-Mode, daemon disabled.
  19. setup_mode off
  20.  
  21. # File to store the process ID.
  22. ; pid_file value
  23.  
  24. # File to write logs messages into. If not defined stderr and syslog is used.
  25. log_file /var/log/motion/motion.log
  26.  
  27. # Level of log messages [1..9] (EMG, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL).
  28. log_level 6
  29.  
  30. # Target directory for pictures, snapshots and movies
  31. target_dir /media/debian/IM/motion/
  32.  
  33. # Video device (e.g. /dev/video0) to be used for capturing.
  34. video_device /dev/video0
  35.  
  36. # Parameters to control video device. See motion_guide.html
  37. ; video_params value
  38.  
  39. # The full URL of the network camera stream.
  40. netcam_url rtsp://192.168.1.102:8554/unicast
  41.  
  42. # Name of mmal camera (e.g. vc.ril.camera for pi camera).
  43. ; mmalcam_name value
  44.  
  45. # Camera control parameters (see raspivid/raspistill tool documentation)
  46. ; mmalcam_params value
  47.  
  48. ############################################################
  49. # Image Processing configuration parameters
  50. ############################################################
  51.  
  52. # Image width in pixels.
  53. width 1280
  54.  
  55. # Image height in pixels.
  56. height 720
  57.  
  58. # Maximum number of frames to be captured per second.
  59. framerate 10
  60.  
  61. # Text to be overlayed in the lower left corner of images
  62. text_left CAMERA1
  63.  
  64. # Text to be overlayed in the lower right corner of images.
  65. text_right %Y-%m-%d\n%T-%q
  66.  
  67. ############################################################
  68. # Motion detection configuration parameters
  69. ############################################################
  70.  
  71. # Always save pictures and movies even if there was no motion.
  72. emulate_motion off
  73.  
  74. # Threshold for number of changed pixels that triggers motion.
  75. threshold 1500
  76.  
  77. # Noise threshold for the motion detection.
  78. ; noise_level 32
  79.  
  80. # Despeckle the image using (E/e)rode or (D/d)ilate or (l)abel.
  81. despeckle_filter EedDl
  82.  
  83. # Number of images that must contain motion to trigger an event.
  84. minimum_motion_frames 1
  85.  
  86. # Gap in seconds of no motion detected that triggers the end of an event.
  87. event_gap 60
  88.  
  89. # The number of pre-captured (buffered) pictures from before motion.
  90. pre_capture 3
  91.  
  92. # Number of frames to capture after motion is no longer detected.
  93. post_capture 0
  94.  
  95. ############################################################
  96. # Script execution configuration parameters
  97. ############################################################
  98.  
  99. # Command to be executed when an event starts.
  100. ; on_event_start value
  101.  
  102. # Command to be executed when an event ends.
  103. ; on_event_end value
  104.  
  105. # Command to be executed when a movie file is closed.
  106. ; on_movie_end value
  107.  
  108. ############################################################
  109. # Picture output configuration parameters
  110. ############################################################
  111.  
  112. # Output pictures when motion is detected
  113. picture_output off
  114.  
  115. # File name(without extension) for pictures relative to target directory
  116. picture_filename %Y%m%d%H%M%S-%q
  117.  
  118. ############################################################
  119. # Movie output configuration parameters
  120. ############################################################
  121.  
  122. # Create movies of motion events.
  123. movie_output on
  124.  
  125. # Maximum length of movie in seconds.
  126. movie_max_time 60
  127.  
  128. # The encoding quality of the movie. (0=use bitrate. 1=worst quality, 100=best)
  129. movie_quality 75
  130.  
  131. # Container/Codec to used for the movie. See motion_guide.html
  132. movie_codec mkv
  133.  
  134. # File name(without extension) for movies relative to target directory
  135. movie_filename %Y-%m-%d--%H-%M-%S
  136.  
  137. ############################################################
  138. # Webcontrol configuration parameters
  139. ############################################################
  140.  
  141. # Port number used for the webcontrol.
  142. webcontrol_port 8080
  143.  
  144. # Restrict webcontrol connections to the localhost.
  145. webcontrol_localhost on
  146.  
  147. # Type of configuration options to allow via the webcontrol.
  148. webcontrol_parms 1
  149.  
  150. ############################################################
  151. # Live stream configuration parameters
  152. ############################################################
  153.  
  154. # The port number for the live stream.
  155. stream_port 8081
  156.  
  157. # Restrict stream connections to the localhost.
  158. stream_localhost on
  159.  
  160. ##############################################################
  161. # Camera config files - One for each camera.
  162. ##############################################################
  163. ; camera /usr/etc/motion/camera1.conf
  164. ; camera /usr/etc/motion/camera2.conf
  165. ; camera /usr/etc/motion/camera3.conf
  166. ; camera /usr/etc/motion/camera4.conf
  167.  
  168. ##############################################################
  169. # Directory to read '.conf' files for cameras.
  170. ##############################################################
  171. ; camera_dir /usr/etc/motion/conf.d
  172.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement