Motion-Project / motionplus

MotionPlus Home Page: https://motion-project.github.io/
GNU General Public License v3.0
319 stars 40 forks source link

Motionplus won't end motion event when there is no motion in the frame #46

Closed mckin21 closed 1 year ago

mckin21 commented 1 year ago

Did you read the guide?

Yes

What is the base version number of MotionPlus being used?

0.1.x

What was the install method?

Built from source code

What is base architecture?

ARM-64bit

What is the distro being used?

Raspbian

Disto version number

bullseye

Camera/Sound type(s) being used?

PI camera via libcam

Describe the issue/problem and steps to reproduce

Two week ago, I installed a version of motionplus only my raspberry pi 4. It was working rather smoothly with no issues. In the past two days, I've reinstalled and rebuilt from the source code and ran into an issue where motion is detected by the camera, the camera does not seem to stop detecting motion when there is no motion in view. I have taped the camera just to block out all possible motion events that maybe even I couldn't notice on the web stream. I have tried running motion with a raspberry pi camera module 2 and 3. Both have the same issue though. My pi is running the latest version of bullseye and I have tried both with and without updating/upgrading all packages prior to installing motionplus

Relevant MotionPlus log output (at log_level 8)

Mar 22 05:38:27 [NTC][ALL][00:motionplus] log_init: MotionPlus 0.1.0-git-20230312-9e61018 started
Mar 22 05:38:27 [NTC][ALL][00:motionplus] log_init: Using log type (ALL) log level (DBG)
Mar 22 05:38:27 [NTC][ALL][00:motionplus] mytranslate_init: Language: English
Mar 22 05:38:27 [INF][ALL][00:motionplus] conf_parms_log: Logging configuration parameters from all files
Mar 22 05:38:27 [INF][ALL][00:motionplus] Config file: /etc/motionplus/motionplus.conf
Mar 22 05:38:27 [INF][ALL][00:motionplus] daemon                    off
Mar 22 05:38:27 [INF][ALL][00:motionplus] setup_mode                off
Mar 22 05:38:27 [INF][ALL][00:motionplus] pid_file                  
Mar 22 05:38:27 [INF][ALL][00:motionplus] log_file                  motionplus.log
Mar 22 05:38:27 [INF][ALL][00:motionplus] log_level                 8
Mar 22 05:38:27 [INF][ALL][00:motionplus] log_type                  ALL
Mar 22 05:38:27 [INF][ALL][00:motionplus] native_language           on
Mar 22 05:38:27 [INF][ALL][00:motionplus] device_name               PiCam
Mar 22 05:38:27 [INF][ALL][00:motionplus] device_id                 1
Mar 22 05:38:27 [INF][ALL][00:motionplus] device_tmo                30
Mar 22 05:38:27 [INF][ALL][00:motionplus] pause                     off
Mar 22 05:38:27 [INF][ALL][00:motionplus] target_dir                /home/pi/motionplusmedia
Mar 22 05:38:27 [INF][ALL][00:motionplus] watchdog_tmo              30
Mar 22 05:38:27 [INF][ALL][00:motionplus] watchdog_kill             10
Mar 22 05:38:27 [INF][ALL][00:motionplus] v4l2_device               
Mar 22 05:38:27 [INF][ALL][00:motionplus] v4l2_params               
Mar 22 05:38:27 [INF][ALL][00:motionplus] netcam_url                <redacted>
Mar 22 05:38:27 [INF][ALL][00:motionplus] netcam_params             
Mar 22 05:38:27 [INF][ALL][00:motionplus] netcam_high_url           <redacted>
Mar 22 05:38:27 [INF][ALL][00:motionplus] netcam_high_params        
Mar 22 05:38:27 [INF][ALL][00:motionplus] netcam_userpass           <redacted>
Mar 22 05:38:27 [INF][ALL][00:motionplus] libcam_device             camera0
Mar 22 05:38:27 [INF][ALL][00:motionplus] libcam_params             
Mar 22 05:38:27 [INF][ALL][00:motionplus] width                     1280
Mar 22 05:38:27 [INF][ALL][00:motionplus] height                    720
Mar 22 05:38:27 [INF][ALL][00:motionplus] framerate                 15
Mar 22 05:38:27 [INF][ALL][00:motionplus] rotate                    0
Mar 22 05:38:27 [INF][ALL][00:motionplus] flip_axis                 none
Mar 22 05:38:27 [INF][ALL][00:motionplus] locate_motion_mode        off
Mar 22 05:38:27 [INF][ALL][00:motionplus] locate_motion_style       box
Mar 22 05:38:27 [INF][ALL][00:motionplus] text_left                 
Mar 22 05:38:27 [INF][ALL][00:motionplus] text_right                %Y-%m-%d\n%T
Mar 22 05:38:27 [INF][ALL][00:motionplus] text_changes              off
Mar 22 05:38:27 [INF][ALL][00:motionplus] text_scale                1
Mar 22 05:38:27 [INF][ALL][00:motionplus] text_event                %Y%m%d%H%M%S
Mar 22 05:38:27 [INF][ALL][00:motionplus] emulate_motion            off
Mar 22 05:38:27 [INF][ALL][00:motionplus] threshold                 1500
Mar 22 05:38:27 [INF][ALL][00:motionplus] threshold_maximum         0
Mar 22 05:38:27 [INF][ALL][00:motionplus] threshold_sdevx           0
Mar 22 05:38:27 [INF][ALL][00:motionplus] threshold_sdevy           0
Mar 22 05:38:27 [INF][ALL][00:motionplus] threshold_sdevxy          0
Mar 22 05:38:27 [INF][ALL][00:motionplus] threshold_ratio           0
Mar 22 05:38:27 [INF][ALL][00:motionplus] threshold_ratio_change    64
Mar 22 05:38:27 [INF][ALL][00:motionplus] threshold_tune            off
Mar 22 05:38:27 [INF][ALL][00:motionplus] secondary_method          none
Mar 22 05:38:27 [INF][ALL][00:motionplus] secondary_params          
Mar 22 05:38:27 [INF][ALL][00:motionplus] noise_level               32
Mar 22 05:38:27 [INF][ALL][00:motionplus] noise_tune                on
Mar 22 05:38:27 [INF][ALL][00:motionplus] despeckle_filter          
Mar 22 05:38:27 [INF][ALL][00:motionplus] area_detect               
Mar 22 05:38:27 [INF][ALL][00:motionplus] mask_file                 
Mar 22 05:38:27 [INF][ALL][00:motionplus] mask_privacy              
Mar 22 05:38:27 [INF][ALL][00:motionplus] smart_mask_speed          0
Mar 22 05:38:27 [INF][ALL][00:motionplus] lightswitch_percent       0
Mar 22 05:38:27 [INF][ALL][00:motionplus] lightswitch_frames        5
Mar 22 05:38:27 [INF][ALL][00:motionplus] minimum_motion_frames     1
Mar 22 05:38:27 [INF][ALL][00:motionplus] static_object_time        10
Mar 22 05:38:27 [INF][ALL][00:motionplus] event_gap                 60
Mar 22 05:38:27 [INF][ALL][00:motionplus] pre_capture               3
Mar 22 05:38:27 [INF][ALL][00:motionplus] post_capture              10
Mar 22 05:38:27 [INF][ALL][00:motionplus] on_event_start            /etc/motionplus/on.py
Mar 22 05:38:27 [INF][ALL][00:motionplus] on_event_end              /etc/motionplus/off.py
Mar 22 05:38:27 [INF][ALL][00:motionplus] on_picture_save           
Mar 22 05:38:27 [INF][ALL][00:motionplus] on_area_detected          
Mar 22 05:38:27 [INF][ALL][00:motionplus] on_motion_detected        
Mar 22 05:38:27 [INF][ALL][00:motionplus] on_movie_start            
Mar 22 05:38:27 [INF][ALL][00:motionplus] on_movie_end              
Mar 22 05:38:27 [INF][ALL][00:motionplus] on_camera_lost            
Mar 22 05:38:27 [INF][ALL][00:motionplus] on_camera_found           
Mar 22 05:38:27 [INF][ALL][00:motionplus] on_secondary_detect       
Mar 22 05:38:27 [INF][ALL][00:motionplus] on_action_user            
Mar 22 05:38:27 [INF][ALL][00:motionplus] on_sound_alert            
Mar 22 05:38:27 [INF][ALL][00:motionplus] picture_output            off
Mar 22 05:38:27 [INF][ALL][00:motionplus] picture_output_motion     off
Mar 22 05:38:27 [INF][ALL][00:motionplus] picture_type              jpeg
Mar 22 05:38:27 [INF][ALL][00:motionplus] picture_quality           75
Mar 22 05:38:27 [INF][ALL][00:motionplus] picture_exif              
Mar 22 05:38:27 [INF][ALL][00:motionplus] picture_filename          %v-%Y%m%d%H%M%S-%q
Mar 22 05:38:27 [INF][ALL][00:motionplus] snapshot_interval         0
Mar 22 05:38:27 [INF][ALL][00:motionplus] snapshot_filename         %v-%Y%m%d%H%M%S-snapshot
Mar 22 05:38:27 [INF][ALL][00:motionplus] movie_output              off
Mar 22 05:38:27 [INF][ALL][00:motionplus] movie_output_motion       off
Mar 22 05:38:27 [INF][ALL][00:motionplus] movie_max_time            120
Mar 22 05:38:27 [INF][ALL][00:motionplus] movie_bps                 400000
Mar 22 05:38:27 [INF][ALL][00:motionplus] movie_quality             45
Mar 22 05:38:27 [INF][ALL][00:motionplus] movie_container           mkv
Mar 22 05:38:27 [INF][ALL][00:motionplus] movie_passthrough         off
Mar 22 05:38:27 [INF][ALL][00:motionplus] movie_filename            %v-%Y%m%d%H%M%S
Mar 22 05:38:27 [INF][ALL][00:motionplus] movie_retain              all
Mar 22 05:38:27 [INF][ALL][00:motionplus] movie_extpipe_use         off
Mar 22 05:38:27 [INF][ALL][00:motionplus] movie_extpipe             
Mar 22 05:38:27 [INF][ALL][00:motionplus] timelapse_interval        0
Mar 22 05:38:27 [INF][ALL][00:motionplus] timelapse_mode            daily
Mar 22 05:38:27 [INF][ALL][00:motionplus] timelapse_fps             30
Mar 22 05:38:27 [INF][ALL][00:motionplus] timelapse_container       mpg
Mar 22 05:38:27 [INF][ALL][00:motionplus] timelapse_filename        %Y%m%d-timelapse
Mar 22 05:38:27 [INF][ALL][00:motionplus] video_pipe                
Mar 22 05:38:27 [INF][ALL][00:motionplus] video_pipe_motion         
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_port           8080
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_base_path      
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_ipv6           off
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_localhost      off
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_parms          0
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_interface      default
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_auth_method    none
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_authentication <redacted>
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_tls            off
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_cert           <redacted>
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_key            <redacted>
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_headers        
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_html           
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_actions        
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_lock_minutes   10
Mar 22 05:38:27 [INF][ALL][00:motionplus] webcontrol_lock_attempts  3
Mar 22 05:38:27 [INF][ALL][00:motionplus] stream_preview_scale      25
Mar 22 05:38:27 [INF][ALL][00:motionplus] stream_preview_newline    off
Mar 22 05:38:27 [INF][ALL][00:motionplus] stream_preview_method     mjpg
Mar 22 05:38:27 [INF][ALL][00:motionplus] stream_preview_ptz        on
Mar 22 05:38:27 [INF][ALL][00:motionplus] stream_quality            50
Mar 22 05:38:27 [INF][ALL][00:motionplus] stream_grey               off
Mar 22 05:38:27 [INF][ALL][00:motionplus] stream_motion             off
Mar 22 05:38:27 [INF][ALL][00:motionplus] stream_maxrate            1
Mar 22 05:38:27 [INF][ALL][00:motionplus] stream_scan_time          5
Mar 22 05:38:27 [INF][ALL][00:motionplus] stream_scan_scale         25
Mar 22 05:38:27 [INF][ALL][00:motionplus] database_type             
Mar 22 05:38:27 [INF][ALL][00:motionplus] database_dbname           
Mar 22 05:38:27 [INF][ALL][00:motionplus] database_host             
Mar 22 05:38:27 [INF][ALL][00:motionplus] database_port             0
Mar 22 05:38:27 [INF][ALL][00:motionplus] database_user             <redacted>
Mar 22 05:38:27 [INF][ALL][00:motionplus] database_password         <redacted>
Mar 22 05:38:27 [INF][ALL][00:motionplus] database_busy_timeout     0
Mar 22 05:38:27 [INF][ALL][00:motionplus] sql_event_start           
Mar 22 05:38:27 [INF][ALL][00:motionplus] sql_event_end             
Mar 22 05:38:27 [INF][ALL][00:motionplus] sql_movie_start           
Mar 22 05:38:27 [INF][ALL][00:motionplus] sql_movie_end             
Mar 22 05:38:27 [INF][ALL][00:motionplus] sql_pic_save              
Mar 22 05:38:27 [INF][ALL][00:motionplus] ptz_auto_track            off
Mar 22 05:38:27 [INF][ALL][00:motionplus] ptz_wait                  0
Mar 22 05:38:27 [INF][ALL][00:motionplus] ptz_move_track            
Mar 22 05:38:27 [INF][ALL][00:motionplus] ptz_pan_left              
Mar 22 05:38:27 [INF][ALL][00:motionplus] ptz_pan_right             
Mar 22 05:38:27 [INF][ALL][00:motionplus] ptz_tilt_up               
Mar 22 05:38:27 [INF][ALL][00:motionplus] ptz_tilt_down             
Mar 22 05:38:27 [INF][ALL][00:motionplus] ptz_zoom_in               
Mar 22 05:38:27 [INF][ALL][00:motionplus] ptz_zoom_out              
Mar 22 05:38:27 [INF][ALL][00:motionplus] snd_device                
Mar 22 05:38:27 [INF][ALL][00:motionplus] snd_params                
Mar 22 05:38:27 [INF][ALL][00:motionplus] snd_window                hamming
Mar 22 05:38:27 [INF][ALL][00:motionplus] snd_show                  off
Mar 22 05:38:27 [INF][ALL][00:motionplus] Camera 1 - Config file: /etc/motionplus/camera.conf
Mar 22 05:38:27 [INF][ALL][00:motionplus] text_left                 CAMERA 1
Mar 22 05:38:27 [INF][ALL][00:motionplus] movie_filename            CAM01_%t-%v-%Y%m%d%H%M%S
Mar 22 05:38:27 [DBG][ALL][00:motionplus] motpls_ntc: v4l2   : available
Mar 22 05:38:27 [DBG][ALL][00:motionplus] motpls_ntc: webp   : available
Mar 22 05:38:27 [DBG][ALL][00:motionplus] motpls_ntc: libcam : available
Mar 22 05:38:27 [DBG][ALL][00:motionplus] motpls_ntc: mysql  : not available
Mar 22 05:38:27 [DBG][ALL][00:motionplus] motpls_ntc: MariaDB: available
Mar 22 05:38:27 [DBG][ALL][00:motionplus] motpls_ntc: sqlite3: not available
Mar 22 05:38:27 [DBG][ALL][00:motionplus] motpls_ntc: pgsql  : not available
Mar 22 05:38:27 [DBG][ALL][00:motionplus] motpls_ntc: nls    : available
Mar 22 05:38:27 [DBG][ALL][00:motionplus] motpls_ntc: alsa   : available
Mar 22 05:38:27 [DBG][ALL][00:motionplus] motpls_ntc: fftw3  : available
Mar 22 05:38:27 [NTC][STR][00:motionplus] webu_init_webcontrol: Starting webcontrol on port 8080
Mar 22 05:38:27 [INF][ALL][00:motionplus] util_parms_add: Parsed: >event< >off<
Mar 22 05:38:27 [INF][ALL][00:motionplus] util_parms_add: Parsed: >snapshot< >off<
Mar 22 05:38:27 [INF][ALL][00:motionplus] util_parms_add: Parsed: >pause< >off<
Mar 22 05:38:27 [INF][ALL][00:motionplus] util_parms_add: Parsed: >restart< >off<
Mar 22 05:38:27 [INF][ALL][00:motionplus] util_parms_add: Parsed: >stop< >off<
Mar 22 05:38:27 [INF][ALL][00:motionplus] util_parms_add: Parsed: >config_write< >off<
Mar 22 05:38:27 [INF][ALL][00:motionplus] util_parms_add: Parsed: >camera_add< >off<
Mar 22 05:38:27 [INF][ALL][00:motionplus] util_parms_add: Parsed: >camera_delete< >off<
Mar 22 05:38:27 [INF][ALL][00:motionplus] util_parms_add: Parsed: >config< >off<
Mar 22 05:38:27 [INF][ALL][00:motionplus] util_parms_add: Parsed: >ptz< >off<
Mar 22 05:38:27 [INF][ALL][00:motionplus] util_parms_add: Parsed: >movies< >on<
Mar 22 05:38:27 [INF][ALL][00:motionplus] util_parms_add: Parsed: >action_user< >off<
Mar 22 05:38:27 [DBG][STR][00:motionplus] webu_mhd_features_basic: Basic authentication: available
Mar 22 05:38:27 [DBG][STR][00:motionplus] webu_mhd_features_digest: Digest authentication: available
Mar 22 05:38:27 [DBG][STR][00:motionplus] webu_mhd_features_ipv6: IPV6: available
Mar 22 05:38:27 [DBG][STR][00:motionplus] webu_mhd_features_tls: SSL/TLS: available
Mar 22 05:38:27 [NTC][STR][00:motionplus] webu_init_webcontrol: Started webcontrol on port 8080
Mar 22 05:38:27 [NTC][ENC][00:motionplus] movie_global_init: libavcodec  version 58.91.100
Mar 22 05:38:27 [NTC][ENC][00:motionplus] movie_global_init: libavformat version 58.45.100
Mar 22 05:38:27 [NTC][ALL][00:motionplus] main: Motionplus pid: 1223
Mar 22 05:38:27 [INF][ALL][00:ml00:PiCam] mlp_init: Initialize
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] libcam_start: Opening libcam
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] libcam_start: Starting experimental libcamera .
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] libcam_start: EXPECT crashes and hung processes!!!
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] cam_start_params: Starting.
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] cam_start_params: Finished.
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] cam_start_mgr: Starting.
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] cam_start_mgr: cam_mgr started.
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] cam_start_mgr: Finished.
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] cam_start_config: Starting.
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] cam_start_config: Configuration is valid
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam] Libcamera Transform Options:
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   Identity
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   Rot0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   HFlip
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   VFlip
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   HVFlip
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   Rot180
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   Transpose
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   Rot270
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   Rot90
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   Rot180Transpose
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam] Libcamera Controls:
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AeEnable(bool)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AeLocked(bool)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AeMeteringMode(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     MeteringCentreWeighted = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     MeteringSpot = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     MeteringMatrix = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     MeteringCustom = 3
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AeConstraintMode(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     ConstraintNormal = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     ConstraintHighlight = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     ConstraintShadows = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     ConstraintCustom = 3
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AeExposureMode(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     ExposureNormal = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     ExposureShort = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     ExposureLong = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     ExposureCustom = 3
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   ExposureValue(float)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   ExposureTime(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AnalogueGain(float)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   Brightness(float)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   Contrast(float)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   Lux(float)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AwbEnable(bool)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AwbMode(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AwbAuto = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AwbIncandescent = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AwbTungsten = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AwbFluorescent = 3
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AwbIndoor = 4
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AwbDaylight = 5
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AwbCloudy = 6
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AwbCustom = 7
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AwbLocked(bool)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   ColourTemperature(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   Saturation(float)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   Sharpness(float)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   FocusFoM(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   ScalerCrop(Rect x-y-h-w)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   DigitalGain(float)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   FrameDuration(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   SensorTemperature(float)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   SensorTimestamp(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AfMode(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfModeManual = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfModeAuto = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfModeContinuous = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AfRange(0-2)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfRangeNormal = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfRangeMacro = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfRangeFull = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AfSpeed(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfSpeedNormal = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfSpeedFast = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AfMetering(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfMeteringAuto = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfMeteringWindows = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AfWindows(rect x-y-h-w)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AfTrigger(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfTriggerStart = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfTriggerCancel = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AfPause(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfPauseImmediate = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfPauseDeferred = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfPauseResume = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   LensPosition(float)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AfState(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfStateIdle = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfStateScanning = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfStateFocused = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfStateFailed = 3
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AfPauseState(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfPauseStateRunning = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfPauseStatePausing = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AfPauseStatePaused = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam] Libcamera Controls Draft:
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AePrecaptureTrigger(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AePrecaptureTriggerIdle = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AePrecaptureTriggerStart = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AePrecaptureTriggerCancel = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   NoiseReductionMode(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     NoiseReductionModeOff = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     NoiseReductionModeFast = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     NoiseReductionModeHighQuality = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     NoiseReductionModeMinimal = 3
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     NoiseReductionModeZSL = 4
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   ColorCorrectionAberrationMode(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     ColorCorrectionAberrationOff = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     ColorCorrectionAberrationFast = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     ColorCorrectionAberrationHighQuality = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AeState(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AeStateSearching = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AeStateConverged = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AeStateLocked = 3
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AeStateFlashRequired = 4
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AeStatePrecapture = 5
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   AwbState(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AwbStateInactive = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AwbStateSearching = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AwbConverged = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     AwbLocked = 3
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   SensorRollingShutterSkew(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   LensShadingMapMode(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     LensShadingMapModeOff = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     LensShadingMapModeOn = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   SceneFlicker(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     SceneFickerOff = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     SceneFicker50Hz = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     SceneFicker60Hz = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   PipelineDepth(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   MaxLatency(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]   TestPatternMode(int)
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     TestPatternModeOff = 0
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     TestPatternModeSolidColor = 1
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     TestPatternModeColorBars = 2
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     TestPatternModeColorBarsFadeToGray = 3
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     TestPatternModePn9 = 4
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam]     TestPatternModeCustom1 = 256
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam] cam_config_transform: Configuration valid
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam] cam_config_controls: Configuration valid
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] cam_start_config: Finished.
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] cam_start_req: Starting.
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam] cam_start_req: Plane 0 of 3 length 921600
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam] cam_start_req: Plane 1 of 3 length 230400
Mar 22 05:38:27 [DBG][VID][00:ml00:PiCam] cam_start_req: Plane 2 of 3 length 230400
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] cam_start_req: Finished.
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] cam_start_capture: Starting.
Mar 22 05:38:27 [NTC][VID][00:ml00:PiCam] cam_start_capture: Finished.
Mar 22 05:38:29 [NTC][VID][00:ml00:PiCam] cam_start: Started all.
Mar 22 05:38:29 [NTC][ALL][00:ml00:PiCam] mlp_ring_resize: Resizing buffer to 4 items
Mar 22 05:38:29 [NTC][ALL][00:ml00:PiCam] mlp_init: Camera 1 started: motion detection Enabled
Mar 22 05:38:40 [NTC][ALL][00:ml00:PiCam] mlp_detected_trigger: Motion detected - starting event 1
Mar 22 05:38:40 [DBG][EVT][00:ml00:PiCam] util_exec_command: Executing external command '/etc/motionplus/on.py'
Mar 22 05:39:28 [NTC][ALL][00:ml00:PiCam] mlp_main: Exiting
Mar 22 05:39:28 [DBG][EVT][00:ml00:PiCam] util_exec_command: Executing external command '/etc/motionplus/off.py'
Mar 22 05:39:28 [NTC][VID][00:ml00:PiCam] cam_stop: Stopped.
Mar 22 05:39:29 [NTC][ALL][00:motionplus] main: Motionplus devices finished
Mar 22 05:39:29 [NTC][ALL][00:motionplus] main: MotionPlus terminating
Mar 22 05:39:29 [NTC][ALL][00:motionplus] log_deinit: Closing logfile (motionplus.log).
Mr-Dave commented 1 year ago

I was not able to reproduce this. Based upon the setting, there is an event gap of 60 seconds and the log shows that Motionplus was triggered to end 48 seconds after the event started.

Can you try to wait the full minute after the motion ends to see if the event end is triggered?

mckin21 commented 1 year ago

This was the issue. My apologies