Send Motion-user mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. defunct sh processes (Mathias Koerber)


----------------------------------------------------------------------

Message: 1
Date: Fri, 2 Feb 2024 12:39:43 +0800
From: Mathias Koerber <[email protected]>
To: [email protected]
Subject: [Motion-user] defunct sh processes
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed

Why is motion 4.6.0 leaving definct sh processes when it detects motion?

> motion   1645058 27.6  0.8 782160 69964 ?        SLsl 12:31   0:36 
> /usr/bin/motion
> motion   1645173  0.0  0.0      0     0 ?        Zs   12:31   0:00  \_ [sh] 
> <defunct>
> motion   1645174  0.0  0.0      0     0 ?        Zs   12:31   0:00  \_ [sh] 
> <defunct>
> motion   1645175  0.0  0.0      0     0 ?        Zs   12:31   0:00  \_ [sh] 
> <defunct>

and these are accumulating with each detected event

I set

log_type ALL
log_velel 9

and this gets logged:
> [0:motion] [NTC] [ALL] [Feb 02 12:31:17] motion_startup: Motion 4.6.0 Started
> [0:motion] [NTC] [ALL] [Feb 02 12:31:17] motion_startup: Using log type (ALL) 
> log level (ALL)
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] conf_output_parms: Writing 
> configuration parameters from all files (1):
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] Thread 0 - Config file: 
> /etc/motion/motion.conf
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] daemon                    off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] setup_mode                off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] pid_file
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] log_file                  
> /var/log/motion/motion.log
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] log_level                 9
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] log_type                  ALL
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] quiet                     on
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] native_language           on
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] watchdog_tmo              30
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] watchdog_kill             10
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] camera_name
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] camera_id                 0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] target_dir                
> /var/lib/motion
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] video_device              /dev/video0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] video_params
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] auto_brightness           2
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] tuner_device
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] roundrobin_frames         1
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] roundrobin_skip           1
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] roundrobin_switchfilter   off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] netcam_url
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] netcam_params
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] netcam_high_url
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] netcam_high_params
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] netcam_userpass
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] mmalcam_name
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] mmalcam_params
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] width                     800
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] height                    600
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] framerate                 20
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] minimum_frame_time        0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] rotate                    90
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] flip_axis                 none
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] locate_motion_mode        preview
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] locate_motion_style       box
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] text_left                 
> Koerber-Door
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] text_right                
> %t-%3v-%{fps}-%D\n%Y-%m-%d\n%T-%q
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] text_changes              on
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] text_scale                3
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] text_event                
> %Y%m%d-%H:%M:%S-%t-%3v-%q
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] emulate_motion            off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] pause                     off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] threshold                 1500
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] threshold_maximum         0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] threshold_tune            off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] noise_level               32
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] noise_tune                on
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] despeckle_filter          EedDl
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] area_detect
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] mask_file
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] mask_privacy
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] smart_mask_speed          0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] lightswitch_percent       80
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] lightswitch_frames        5
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] minimum_motion_frames     5
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] event_gap                 0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] pre_capture               5
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] post_capture              150
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] on_event_start
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] on_event_end
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] on_picture_save           
> /usr/local/bin/send_email_notification %f
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] on_area_detected
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] on_motion_detected
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] on_movie_start
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] on_movie_end              
> /usr/local/bin/send_doorbell_to_onedrive
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] on_camera_lost
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] on_camera_found
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] picture_output            best
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] picture_output_motion     off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] picture_type              jpeg
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] picture_quality           75
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] picture_exif
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] picture_filename          
> albums/%Y-%m-%d/thumbs/%C
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] snapshot_interval         0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] snapshot_filename         
> albums/%Y-%m-%d/%v-%Y%m%d%H%M%S-snapshot
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] movie_output              on
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] movie_output_motion       on
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] movie_max_time            900
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] movie_bps                 400000
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] movie_quality             60
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] movie_codec               mp4
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] movie_duplicate_frames    off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] movie_passthrough         off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] movie_filename            
> albums/%Y-%m-%d/%C
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] movie_extpipe_use         off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] movie_extpipe
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] timelapse_interval        0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] timelapse_mode            daily
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] timelapse_fps             30
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] timelapse_codec           mpg
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] timelapse_filename        
> %Y%m%d-timelapse
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] video_pipe
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] video_pipe_motion
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_port           8080
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_ipv6           off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_localhost      off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_parms          2
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_interface      0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_auth_method    2
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_authentication <redacted>
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_tls            off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_cert
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_key
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_header_params  <redacted>
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_lock_minutes   10
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_lock_attempts  3
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] webcontrol_lock_max_ips   2
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_port               8081
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_localhost          off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_auth_method        0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_authentication
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_tls                off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_header_params
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_preview_scale      25
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_preview_newline    off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_preview_method     1
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_quality            45
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_grey               on
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_motion             off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_maxrate            1
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] stream_limit              0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] database_type
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] database_dbname
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] database_host             localhost
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] database_port             0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] database_user
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] database_password
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] database_busy_timeout     0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] sql_log_picture           off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] sql_log_snapshot          off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] sql_log_movie             off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] sql_log_timelapse         off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] sql_query_start
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] sql_query_stop
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] sql_query
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_type                0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_auto                off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_port
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_motorx              0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_motorx_reverse      off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_motory              0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_motory_reverse      off
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_maxx                0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_minx                0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_maxy                0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_miny                0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_homex               128
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_homey               128
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_iomojo_id           0
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_step_angle_x        10
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_step_angle_y        10
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_move_wait           10
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_speed               255
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_stepsize            40
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] track_generic_move
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] camera
> [0:motion] [INF] [ALL] [Feb 02 12:31:17] camera_dir
> [0:motion] [DBG] [ALL] [Feb 02 12:31:17] motion_ntc: v4l2   : available
> [0:motion] [DBG] [ALL] [Feb 02 12:31:17] motion_ntc: bktr   : not available
> [0:motion] [DBG] [ALL] [Feb 02 12:31:17] motion_ntc: webp   : available
> [0:motion] [DBG] [ALL] [Feb 02 12:31:17] motion_ntc: mmal   : not available
> [0:motion] [DBG] [ALL] [Feb 02 12:31:17] motion_ntc: ffmpeg : available
> [0:motion] [DBG] [DBL] [Feb 02 12:31:17] motion_ntc: mysql  : not available
> [0:motion] [DBG] [DBL] [Feb 02 12:31:17] motion_ntc: MariaDB: available
> [0:motion] [DBG] [DBL] [Feb 02 12:31:17] motion_ntc: sqlite3: available
> [0:motion] [DBG] [DBL] [Feb 02 12:31:17] motion_ntc: pgsql  : available
> [0:motion] [DBG] [DBL] [Feb 02 12:31:17] motion_ntc: nls    : available
> [0:motion] [DBG] [ALL] [Feb 02 12:31:17] util_parms_parse: Parsing: <redacted>
> [0:motion] [DBG] [ALL] [Feb 02 12:31:17] util_parms_add: Parsed: >redacted< 
> >redacted<
> [0:motion] [NTC] [STR] Above message repeats 1 times
> [0:motion] [NTC] [STR] [Feb 02 12:31:17] webu_start_strm: Starting all camera 
> streams on port 8081
> [0:motion] [DBG] [STR] [Feb 02 12:31:17] webu_mhd_features_basic: Basic 
> authentication: available
> [0:motion] [DBG] [STR] [Feb 02 12:31:17] webu_mhd_features_digest: Digest 
> authentication: available
> [0:motion] [DBG] [STR] [Feb 02 12:31:17] webu_mhd_features_ipv6: IPV6: 
> available
> [0:motion] [DBG] [STR] [Feb 02 12:31:17] webu_mhd_features_tls: SSL/TLS: 
> available
> [0:motion] [NTC] [STR] [Feb 02 12:31:17] webu_strm_ntc: Started camera 0 
> stream on port 8081
> [0:motion] [NTC] [STR] [Feb 02 12:31:17] webu_start_ctrl: Starting webcontrol 
> on port 8080
> [0:motion] [DBG] [STR] [Feb 02 12:31:17] webu_mhd_features_basic: Basic 
> authentication: available
> [0:motion] [DBG] [STR] [Feb 02 12:31:17] webu_mhd_features_digest: Digest 
> authentication: available
> [0:motion] [DBG] [STR] [Feb 02 12:31:17] webu_mhd_features_ipv6: IPV6: 
> available
> [0:motion] [DBG] [STR] [Feb 02 12:31:17] webu_mhd_features_tls: SSL/TLS: 
> available
> [0:motion] [NTC] [STR] [Feb 02 12:31:17] webu_start_ctrl: Started webcontrol 
> on port 8080
> [0:motion] [NTC] [ENC] [Feb 02 12:31:17] ffmpeg_global_init: ffmpeg 
> libavcodec version 58.91.100 libavformat version 58.45.100
> [0:motion] [DBG] [DBL] [Feb 02 12:31:17] dbse_global_init: Initializing 
> database
> [0:motion] [NTC] [ALL] [Feb 02 12:31:17] translate_init: Language: English
> [0:motion] [NTC] [ALL] [Feb 02 12:31:17] motion_start_thread: Camera ID: 0 is 
> from /etc/motion/motion.conf
> [0:motion] [NTC] [ALL] [Feb 02 12:31:17] motion_start_thread: Camera ID: 0 
> Camera Name: (null) Device: /dev/video0
> [0:motion] [NTC] [ALL] [Feb 02 12:31:17] main: Waiting for threads to finish, 
> pid: 1645058
> [1:ml1] [NTC] [ALL] [Feb 02 12:31:17] motion_init: Camera 0 started: motion 
> detection Enabled
> [1:ml1] [NTC] [VID] [Feb 02 12:31:17] vid_start: Opening V4L2 device
> [1:ml1] [DBG] [ALL] [Feb 02 12:31:17] util_parms_add: Parsed: >palette< >17<
> [1:ml1] [DBG] [ALL] [Feb 02 12:31:17] util_parms_add: Parsed: >input< >-1<
> [1:ml1] [DBG] [ALL] [Feb 02 12:31:17] util_parms_add: Parsed: >norm< >0<
> [1:ml1] [DBG] [ALL] [Feb 02 12:31:17] util_parms_add: Parsed: >frequency< >0<
> [1:ml1] [NTC] [VID] [Feb 02 12:31:17] v4l2_device_open: Using videodevice 
> /dev/video0 and input -1
> [1:ml1] [DBG] [VID] [Feb 02 12:31:17] v4l2_device_capability: 
> ------------------------
> [1:ml1] [DBG] [VID] [Feb 02 12:31:17] v4l2_device_capability: cap.driver: 
> "libcamera"
> [1:ml1] [DBG] [VID] [Feb 02 12:31:17] v4l2_device_capability: cap.card: 
> "/base/soc/i2c0mux/i2c@1/ov5647@"
> [1:ml1] [DBG] [VID] [Feb 02 12:31:17] v4l2_device_capability: cap.bus_info: 
> "libcamera:0"
> [1:ml1] [DBG] [VID] [Feb 02 12:31:17] v4l2_device_capability: 
> cap.capabilities=0x84200001
> [1:ml1] [DBG] [VID] [Feb 02 12:31:17] v4l2_device_capability: 
> ------------------------
> [1:ml1] [NTC] [VID] [Feb 02 12:31:17] v4l2_device_capability: - VIDEO_CAPTURE
> [1:ml1] [NTC] [VID] [Feb 02 12:31:17] v4l2_device_capability: - STREAMING
> [1:ml1] [DBG] [VID] [Feb 02 12:31:17] v4l2_input_select: Name = 
> "/base/soc/i2c0mux/i2c@1/ov5647@", type 0x00000002, status 00000000
> [1:ml1] [NTC] [VID] [Feb 02 12:31:17] v4l2_input_select: Name = 
> "/base/soc/i2c0mux/i2c@1/ov5647@"- CAMERA
> [1:ml1] [NTC] [VID] [Feb 02 12:31:17] v4l2_norm_select: Device does not 
> support specifying PAL/NTSC norm
> [1:ml1] [NTC] [VID] [Feb 02 12:31:17] v4l2_pixfmt_try: Testing palette YU12 
> (800x600)
> [1:ml1] [DBG] [VID] [Feb 02 12:31:17] v4l2_pixfmt_stride: Checking image size 
> 800x600 with stride 832
> [1:ml1] [WRN] [VID] [Feb 02 12:31:17] v4l2_pixfmt_stride: The image 
> width(800) is not multiple of the stride(832)
> [1:ml1] [WRN] [VID] [Feb 02 12:31:17] v4l2_pixfmt_stride: Image width will be 
> padded 32 bytes
> [1:ml1] [WRN] [VID] [Feb 02 12:31:17] v4l2_pixfmt_adj: Adjusting resolution 
> from 800x600 to 832x600.
> [1:ml1] [NTC] [VID] [Feb 02 12:31:17] v4l2_pixfmt_set: Using palette YU12 
> (832x600)
> [1:ml1] [INF] [VID] [Feb 02 12:31:17] v4l2_fps_set: Trying to set fps to 20
> [1:ml1] [ERR] [VID] [Feb 02 12:31:17] v4l2_fps_set: Error setting fps. Return 
> code -1
> [1:ml1] [INF] [VID] [Feb 02 12:31:17] v4l2_fps_set: Device set fps to 20
> [1:ml1] [INF] [VID] [Feb 02 12:31:17] v4l2_ctrls_list: No Controls found for 
> device
> [1:ml1] [DBG] [VID] [Feb 02 12:31:17] v4l2_mmap_request: mmap information: 
> frames=4
> [1:ml1] [DBG] [VID] [Feb 02 12:31:17] v4l2_mmap_query: 0 length=748800 
> Address (940cf000) offset 0
> [1:ml1] [DBG] [VID] [Feb 02 12:31:17] v4l2_mmap_query: 1 length=748800 
> Address (94018000) offset 748800
> [1:ml1] [DBG] [VID] [Feb 02 12:31:17] v4l2_mmap_query: 2 length=748800 
> Address (8df45000) offset 1497600
> [1:ml1] [DBG] [VID] [Feb 02 12:31:17] v4l2_mmap_query: 3 length=748800 
> Address (8de8e000) offset 2246400
> [1:ml1] [NTC] [NET] [Feb 02 12:31:17] motion_init: Substream not available.  
> Image sizes not modulo 16.
> [1:ml1] [NTC] [ALL] [Feb 02 12:31:17] image_ring_resize: Resizing pre_capture 
> buffer to 1 items
> [1:ml1] [NTC] [ALL] [Feb 02 12:31:17] image_ring_resize: Resizing pre_capture 
> buffer to 10 items
> [1:ml1] [INF] [ALL] [Feb 02 12:31:18] mlp_tuning: micro-lightswitch!
> [1:ml1] [NTC] [ALL] [Feb 02 12:31:40] motion_detected: Motion detected - 
> starting event 1.
> [1:ml1] [INF] [EVT] [Feb 02 12:31:40] event_ffmpeg_newfile: Source FPS 20
> [1:ml1] [INF] [ENC] [Feb 02 12:31:40] ffmpeg_set_quality: libx264 codec 
> vbr/crf/bit_rate: 20
> [1:ml1] [NTC] [EVT] [Feb 02 12:31:40] event_newfile: Writing movie to file: 
> /var/lib/motion/albums/2024-02-02/20240202-12:31:40-0-001-11.mp4
> [1:ml1] [INF] [ENC] [Feb 02 12:31:40] ffmpeg_set_quality: libx264 codec 
> vbr/crf/bit_rate: 20
> [1:ml1] [DBG] [EVT] [Feb 02 12:31:48] exec_command: Executing external 
> command '/usr/local/bin/send_email_notification 
> /var/lib/motion/albums/2024-02-02/thumbs/20240202-12:31:40-0-001-11.jpg'
> [1:ml1] [NTC] [EVT] [Feb 02 12:31:48] event_newfile: Writing image to file: 
> /var/lib/motion/albums/2024-02-02/thumbs/20240202-12:31:40-0-001-11.jpg
> [1:ml1] [DBG] [EVT] [Feb 02 12:31:48] exec_command: Executing external 
> command '/usr/local/bin/send_doorbell_to_onedrive'
> [1:ml1] [DBG] [EVT] [Feb 02 12:31:48] event_closefile: Saved movie to file: 
> /var/lib/motion/albums/2024-02-02/20240202-12:31:40-0-001-11.mp4
> [1:ml1] [DBG] [EVT] [Feb 02 12:31:48] exec_command: Executing external 
> command '/usr/local/bin/send_doorbell_to_onedrive'
> [1:ml1] [DBG] [EVT] [Feb 02 12:31:48] event_closefile: Saved movie to file: 
> /var/lib/motion/albums/2024-02-02/20240202-12:31:40-0-001-11m.mp4
> [1:ml1] [NTC] [ALL] [Feb 02 12:31:48] mlp_actions: End of event 1


There are 3 exec_command calls
(from 2 on_* config statements) which seem to
leave the started sub-shell hanging.

the /usr/local/bin/send_email_notification reads:

> #! /usr/bin/bash
> 
> D=$(date +%d-%m-%y %T);
> echo 'Doorbell Motion Detected:\nDate: ${D}\n' | mail -A "$1" -s "doorbell 
> motion ${D}" [email protected]

It is unclear why that would not exit cleanly. It is almost as
if the main otion process had no handler for completed
child process (SIGCHLD). Is that being supporessed somehow?


btw: are the log types defined anywhere?
I only see the codes mentioned, bvut not what they actually mean?

Here is the /etc/motion/mnotion.conf:

> $ egrep -v '^\s*([;#].*|\s*)$' /etc/motion/motion.conf
> daemon off
> setup_mode off
> log_file /var/log/motion/motion.log
> log_level 9
> log_type ALL
> target_dir /var/lib/motion
> snapshot_filename albums/%Y-%m-%d/%v-%Y%m%d%H%M%S-snapshot
> video_device /dev/video0
> width 800
> height 600
> framerate 20
> text_left Koerber-Door
> text_right %t-%3v-%{fps}-%D\n%Y-%m-%d\n%T-%q
> text_scale  3
> text_changes on
> text_event %Y%m%d-%H:%M:%S-%t-%3v-%q
> auto_brightness 2
> emulate_motion off
> threshold 1500
> despeckle_filter EedDl
> minimum_motion_frames 5
> event_gap 0
> pre_capture 5
> post_capture 150
> locate_motion_style box
> locate_motion_mode preview
> lightswitch_percent 80
> movie_output_motion on
> on_movie_end /usr/local/bin/send_doorbell_to_onedrive
> picture_output best
> picture_filename albums/%Y-%m-%d/thumbs/%C
> on_picture_save /usr/local/bin/send_email_notification %f
> movie_output on
> movie_max_time 900
> movie_quality 60
> movie_codec mp4
> movie_filename albums/%Y-%m-%d/%C
> webcontrol_port 8080
> webcontrol_localhost off
> webcontrol_parms 2
> webcontrol_auth_method 2
> webcontrol_authentication "doorbell:$PASS"
> webcontrol_tls off
> webcontrol_header_params Access-Control-Allow-Origin=*, 
> Cache-Control="no-cache"
> webcontrol_lock_attempts 3
> webcontrol_lock_minutes 10
> webcontrol_lock_max_ips 2
> stream_port 8081
> stream_maxrate 1
> stream_grey  on
> stream_quality 45
> stream_preview_method 1
> stream_localhost off
> rotate 90

any help is appreciated

M



------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 210, Issue 1
*******************************************

Reply via email to