@@ -77,12 +77,12 @@ flip_axis none
|
|
77
77
|
|
78
78
|
# Image width (pixels). Valid range: Camera dependent, default: 320
|
79
|
-
width
|
79
|
+
width 640
|
80
80
|
|
81
81
|
# Image height (pixels). Valid range: Camera dependent, default: 240
|
82
|
-
height
|
82
|
+
height 480
|
83
83
|
|
84
84
|
# Maximum number of frames to be captured per second.
|
85
85
|
# Valid range: 2-100. Default: 100 (almost no limit).
|
86
|
-
framerate
|
86
|
+
framerate 20
|
87
87
|
|
88
88
|
# Minimum time in seconds between capturing picture frames from the camera.
|
@@ -119,5 +119,5 @@ rtsp_uses_tcp on
|
|
119
119
|
# Name of camera to use if you are using a camera accessed through OpenMax/MMAL
|
120
120
|
# Default: Not defined
|
121
|
-
|
121
|
+
mmalcam_name vc.ril.camera
|
122
122
|
|
123
123
|
# Camera control parameters (see raspivid/raspistill tool documentation)
|
@@ -223,5 +223,5 @@ pre_capture 0
|
|
223
223
|
|
224
224
|
# Number of frames to capture after motion is no longer detected (default: 0)
|
225
|
-
post_capture
|
225
|
+
post_capture 5
|
226
226
|
|
227
227
|
# Event Gap is the seconds of no motion detection that triggers the end of an event.
|
@@ -235,5 +235,5 @@ event_gap 60
|
|
235
235
|
# Maximum length in seconds of a movie
|
236
236
|
# When value is exceeded a new movie file is created. (Default: 0 = infinite)
|
237
|
-
max_movie_time
|
237
|
+
max_movie_time 30
|
238
238
|
|
239
239
|
# Always save images even if there was no motion (default: off)
|
@@ -251,5 +251,5 @@ emulate_motion off
|
|
251
251
|
# Picture with motion nearest center of picture is saved when set to 'center'.
|
252
252
|
# Can be used as preview shot for the corresponding movie.
|
253
|
-
output_pictures
|
253
|
+
output_pictures best
|
254
254
|
|
255
255
|
# Output pictures with only the pixels moving object (ghost images) (default: off)
|
@@ -257,5 +257,5 @@ output_debug_pictures off
|
|
257
257
|
|
258
258
|
# The quality (in percent) to be used by the jpeg and webp compression (default: 75)
|
259
|
-
quality
|
259
|
+
quality 80
|
260
260
|
|
261
261
|
# Type of output images
|
@@ -266,5 +266,5 @@ picture_type jpeg
|
|
266
266
|
|
267
267
|
# Use ffmpeg to encode videos of motion (default: off)
|
268
|
-
ffmpeg_output_movies
|
268
|
+
ffmpeg_output_movies off
|
269
269
|
|
270
270
|
# Use ffmpeg to make videos showing the moving pixels (ghost images) (default: off)
|
@@ -344,5 +344,5 @@ snapshot_interval 0
|
|
344
344
|
# Valid values: on, off, preview (default: off)
|
345
345
|
# Set to 'preview' will only draw a box in preview_shot pictures.
|
346
|
-
locate_motion_mode
|
346
|
+
locate_motion_mode preview
|
347
347
|
|
348
348
|
# Set the look and style of the locate box if enabled.
|
@@ -352,5 +352,5 @@ locate_motion_mode off
|
|
352
352
|
# Set to 'cross' will draw a little cross to mark center.
|
353
353
|
# Set to 'redcross' will draw a little red cross to mark center.
|
354
|
-
locate_motion_style
|
354
|
+
locate_motion_style redbox
|
355
355
|
|
356
356
|
# Draws the timestamp using same options as C function strftime(3)
|
@@ -367,5 +367,5 @@ text_right %Y-%m-%d\n%T-%q
|
|
367
367
|
# Will normally be set to off except when you setup and adjust the motion settings
|
368
368
|
# Text is placed in upper right corner
|
369
|
-
text_changes
|
369
|
+
text_changes on
|
370
370
|
|
371
371
|
# This option defines the value of the special event conversion specifier %C
|
@@ -375,5 +375,5 @@ text_changes off
|
|
375
375
|
# The idea is that %C can be used filenames and text_left/right for creating
|
376
376
|
# a unique identifier for each event.
|
377
|
-
text_event %Y
|
377
|
+
text_event %Y/%m/%d-%H:%M:%S
|
378
378
|
|
379
379
|
# Draw characters at twice normal size on images. (default: off)
|
@@ -402,5 +402,5 @@ text_double off
|
|
402
402
|
# Target base directory for pictures and films
|
403
403
|
# Recommended to use absolute path. (Default: current working directory)
|
404
|
-
|
404
|
+
target_dir /home/pi/motion/detected
|
405
405
|
|
406
406
|
# File path for snapshots (jpeg, ppm or webp) relative to target_dir
|
@@ -411,5 +411,5 @@ text_double off
|
|
411
411
|
# Note: A symbolic link called lastsnap.jpg created in the target_dir will always
|
412
412
|
# point to the latest snapshot, unless snapshot_filename is exactly 'lastsnap'
|
413
|
-
snapshot_filename %v-%Y
|
413
|
+
snapshot_filename %v-%Y-%m-%d_%H%M%S-snapshot
|
414
414
|
|
415
415
|
# File path for motion triggered images (jpeg, ppm or .webp) relative to target_dir
|
@@ -420,15 +420,15 @@ snapshot_filename %v-%Y%m%d%H%M%S-snapshot
|
|
420
420
|
# Set to 'preview' together with best-preview feature enables special naming
|
421
421
|
# convention for preview shots. See motion guide for details
|
422
|
-
picture_filename %v-%Y
|
422
|
+
picture_filename %v-%Y-%m-%d_%H%M%S-%q
|
423
423
|
|
424
424
|
# File path for motion triggered ffmpeg films (movies) relative to target_dir
|
425
425
|
# Default: %v-%Y%m%d%H%M%S
|
426
426
|
# File extensions(.mpg .avi) are automatically added so do not include them
|
427
|
-
movie_filename %v-%Y
|
427
|
+
movie_filename %v-%Y-%m-%d_%H%M%S
|
428
428
|
|
429
429
|
# File path for timelapse movies relative to target_dir
|
430
430
|
# Default: %Y%m%d-timelapse
|
431
431
|
# File extensions(.mpg .avi) are automatically added so do not include them
|
432
|
-
timelapse_filename %Y
|
432
|
+
timelapse_filename %Y-%m-%d-timelapse
|
433
433
|
|
434
434
|
############################################################
|
@@ -453,11 +453,11 @@ stream_quality 50
|
|
453
453
|
# Output frames at 1 fps when no motion is detected and increase to the
|
454
454
|
# rate given by stream_maxrate when motion is detected (default: off)
|
455
|
-
stream_motion
|
455
|
+
stream_motion on
|
456
456
|
|
457
457
|
# Maximum framerate for stream streams (default: 1)
|
458
|
-
stream_maxrate
|
458
|
+
stream_maxrate 10
|
459
459
|
|
460
460
|
# Restrict stream connections to localhost only (default: on)
|
461
|
-
stream_localhost
|
461
|
+
stream_localhost off
|
462
462
|
|
463
463
|
# Limits the number of images per connection (default: 0 = unlimited)
|
@@ -493,5 +493,5 @@ webcontrol_port 8080
|
|
493
493
|
|
494
494
|
# Restrict control connections to localhost only (default: on)
|
495
|
-
webcontrol_localhost
|
495
|
+
webcontrol_localhost off
|
496
496
|
|
497
497
|
# Output for http server, select off to choose raw text plain (default: on)
|
@@ -607,5 +607,5 @@ quiet on
|
|
607
607
|
# Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
|
608
608
|
# To give the filename as an argument to a command append it with %f
|
609
|
-
|
609
|
+
on_picture_save /home/pi/motion/send_detection.py %f
|
610
610
|
|
611
611
|
# Command to be executed when a motion frame is detected (default: none)
|