|
| 1 | +; /home/pi/motion/conf/motion_4.conf |
| 2 | +; |
| 3 | +; This config file was generated by Motion 5.0.0-git-20250703-7a7ed327 |
| 4 | +; at 2025-08-05T08:13:52 |
| 5 | + |
| 6 | + |
| 7 | +daemon off |
| 8 | +pid_file |
| 9 | +log_file /home/pi/motion/log/motion.log |
| 10 | +log_level 9 |
| 11 | +log_fflevel 3 |
| 12 | +log_type ALL |
| 13 | +native_language on |
| 14 | + |
| 15 | +;************************************************* |
| 16 | +;***** Camera |
| 17 | +;************************************************* |
| 18 | +device_name |
| 19 | +device_id 0 |
| 20 | +device_tmo 30 |
| 21 | +pause off |
| 22 | +schedule_params |
| 23 | +cleandir_params |
| 24 | +target_dir /home/pi/motion/output |
| 25 | +watchdog_tmo 30 |
| 26 | +watchdog_kill 10 |
| 27 | + |
| 28 | +;************************************************* |
| 29 | +;***** Source |
| 30 | +;************************************************* |
| 31 | +v4l2_device |
| 32 | +v4l2_params |
| 33 | +netcam_url |
| 34 | +netcam_params |
| 35 | +netcam_high_url |
| 36 | +netcam_high_params |
| 37 | +netcam_userpass |
| 38 | +libcam_device camera0 |
| 39 | +libcam_params AfMode=0,LensPosition=0.15,AeMeteringMode=1,AwbMode=0,AeConstraintMode=2,AeExposureMode=0,HdrMode=2 |
| 40 | + |
| 41 | +;************************************************* |
| 42 | +;***** Image |
| 43 | +;************************************************* |
| 44 | +width 1280 |
| 45 | +height 720 |
| 46 | +framerate 10 |
| 47 | +rotate 0 |
| 48 | +flip_axis none |
| 49 | + |
| 50 | +;************************************************* |
| 51 | +;***** Overlays |
| 52 | +;************************************************* |
| 53 | +locate_motion_mode on |
| 54 | +locate_motion_style box |
| 55 | +text_left %m-%d_%{secdetect}_%{timing}ms |
| 56 | +text_right %T_%q |
| 57 | +text_changes on |
| 58 | +text_scale 2 |
| 59 | +text_event %Y%m%d%H%M%S |
| 60 | + |
| 61 | +;************************************************* |
| 62 | +;***** Method |
| 63 | +;************************************************* |
| 64 | +emulate_motion off |
| 65 | +threshold 40 |
| 66 | +threshold_maximum 0 |
| 67 | +threshold_sdevx 0 |
| 68 | +threshold_sdevy 0 |
| 69 | +threshold_sdevxy 0 |
| 70 | +threshold_ratio 0 |
| 71 | +threshold_ratio_change 0 |
| 72 | +threshold_tune off |
| 73 | +secondary_method dnn |
| 74 | +secondary_params model_file=/home/pi/motion/src/frozen_inference_graph_V2.pb,image_type=roi,threshold=0.5,frame_interval=9,config=/home/pi/motion/src/ssd_mobilenet_v2_coco_2018_03_29.pbtxt,classes_file=/home/pi/motion/src/COCO_labels.txt,width=300,height=300,mean=127.5,backend=Tensorflow,framework=Tensorflow |
| 75 | + |
| 76 | +;************************************************* |
| 77 | +;***** Masks |
| 78 | +;************************************************* |
| 79 | +noise_level 44 |
| 80 | +noise_tune off |
| 81 | +despeckle_filter |
| 82 | +area_detect |
| 83 | +mask_file /home/pi/motion/conf/5.local.pgm |
| 84 | +mask_privacy |
| 85 | +smart_mask_speed 0 |
| 86 | + |
| 87 | +;************************************************* |
| 88 | +;***** Detection |
| 89 | +;************************************************* |
| 90 | +lightswitch_percent 0 |
| 91 | +lightswitch_frames 50 |
| 92 | +minimum_motion_frames 30 |
| 93 | +static_object_time 10 |
| 94 | +event_gap 6 |
| 95 | +pre_capture 3 |
| 96 | +post_capture 60 |
| 97 | + |
| 98 | +;************************************************* |
| 99 | +;***** Scripts |
| 100 | +;************************************************* |
| 101 | +on_event_start |
| 102 | +on_event_end |
| 103 | +on_picture_save |
| 104 | +on_area_detected |
| 105 | +on_motion_detected |
| 106 | +on_movie_start |
| 107 | +on_movie_end /home/pi/motion/web_movie_add.sh %{eventid} %{secdetect} %{fps} %w %h |
| 108 | +on_camera_lost |
| 109 | +on_camera_found |
| 110 | +on_secondary_detect |
| 111 | +on_action_user |
| 112 | +on_sound_alert |
| 113 | +on_lightswitch |
| 114 | + |
| 115 | +;************************************************* |
| 116 | +;***** Picture |
| 117 | +;************************************************* |
| 118 | +picture_output best |
| 119 | +picture_output_motion off |
| 120 | +picture_type jpg |
| 121 | +picture_quality 50 |
| 122 | +picture_exif |
| 123 | +picture_filename %{eventid} |
| 124 | +snapshot_interval 0 |
| 125 | +snapshot_filename %v-%Y%m%d%H%M%S-snapshot |
| 126 | + |
| 127 | +;************************************************* |
| 128 | +;***** Movie |
| 129 | +;************************************************* |
| 130 | +movie_output on |
| 131 | +movie_output_motion on |
| 132 | +movie_max_time 360 |
| 133 | +movie_bps 1000000 |
| 134 | +movie_quality 50 |
| 135 | +movie_container mp4:h264_v4l2m2m |
| 136 | +movie_passthrough off |
| 137 | +movie_filename %{eventid} |
| 138 | +movie_retain all |
| 139 | +movie_all_frames on |
| 140 | +movie_extpipe_use off |
| 141 | +movie_extpipe tee /home/pi/mplus/%{eventid}.yuv >/dev/null |
| 142 | + |
| 143 | +;************************************************* |
| 144 | +;***** Timelapse |
| 145 | +;************************************************* |
| 146 | +timelapse_interval 0 |
| 147 | +timelapse_mode daily |
| 148 | +timelapse_fps 30 |
| 149 | +timelapse_container mpg |
| 150 | +timelapse_filename %Y%m%d-timelapse |
| 151 | + |
| 152 | +;************************************************* |
| 153 | +;***** Pipes |
| 154 | +;************************************************* |
| 155 | +video_pipe |
| 156 | +video_pipe_motion |
| 157 | + |
| 158 | +;************************************************* |
| 159 | +;***** Web Control |
| 160 | +;************************************************* |
| 161 | +webcontrol_port 8080 |
| 162 | +webcontrol_port2 0 |
| 163 | +webcontrol_base_path |
| 164 | +webcontrol_ipv6 off |
| 165 | +webcontrol_localhost off |
| 166 | +webcontrol_parms 3 |
| 167 | +webcontrol_interface default |
| 168 | +webcontrol_auth_method none |
| 169 | +webcontrol_authentication |
| 170 | +webcontrol_tls off |
| 171 | +webcontrol_cert |
| 172 | +webcontrol_key |
| 173 | +webcontrol_headers |
| 174 | +webcontrol_html |
| 175 | +webcontrol_actions |
| 176 | +webcontrol_lock_minutes 10 |
| 177 | +webcontrol_lock_attempts 3 |
| 178 | +webcontrol_lock_script |
| 179 | + |
| 180 | +;************************************************* |
| 181 | +;***** Web Stream |
| 182 | +;************************************************* |
| 183 | +stream_preview_scale 25 |
| 184 | +stream_preview_newline off |
| 185 | +stream_preview_params |
| 186 | +stream_preview_method mjpg |
| 187 | +stream_preview_ptz on |
| 188 | +stream_quality 50 |
| 189 | +stream_grey off |
| 190 | +stream_motion on |
| 191 | +stream_maxrate 10 |
| 192 | +stream_scan_time 5 |
| 193 | +stream_scan_scale 25 |
| 194 | + |
| 195 | +;************************************************* |
| 196 | +;***** Database |
| 197 | +;************************************************* |
| 198 | +database_type |
| 199 | +database_dbname motionplus |
| 200 | +database_host localhost |
| 201 | +database_port 3306 |
| 202 | +database_user root |
| 203 | +database_password root |
| 204 | +database_busy_timeout 30 |
| 205 | + |
| 206 | +;************************************************* |
| 207 | +;***** SQL |
| 208 | +;************************************************* |
| 209 | +sql_event_start |
| 210 | +sql_event_end |
| 211 | +sql_movie_start |
| 212 | +sql_movie_end |
| 213 | +sql_pic_save |
| 214 | + |
| 215 | +;************************************************* |
| 216 | +;***** Tracking |
| 217 | +;************************************************* |
| 218 | +ptz_auto_track off |
| 219 | +ptz_wait 0 |
| 220 | +ptz_move_track |
| 221 | +ptz_pan_left |
| 222 | +ptz_pan_right |
| 223 | +ptz_tilt_up |
| 224 | +ptz_tilt_down |
| 225 | +ptz_zoom_in |
| 226 | +ptz_zoom_out |
| 227 | + |
| 228 | +;************************************************* |
| 229 | +;***** Sound |
| 230 | +;************************************************* |
| 231 | +snd_device |
| 232 | +snd_params |
| 233 | +snd_window hamming |
| 234 | +snd_show off |
| 235 | + |
| 236 | +;************************************************* |
| 237 | +;***** Camera |
| 238 | +;************************************************* |
| 239 | +camera /home/pi/motion/conf/camera1.conf |
| 240 | + |
| 241 | +config_dir |
| 242 | + |
0 commit comments