Motion-Project / motionplus

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

Master branch compiles, starts and dies after a few seconds, but I cannot see why in the log file. #181

Closed axeljerabek closed 2 months ago

axeljerabek commented 3 months ago

Did you read the guide?

Yes

What is the base version number of MotionPlus being used?

0.5.x

What was the install method?

Built from source code

What is base architecture?

x86/x64

What is the distro being used?

Ubuntu

Disto version number

24.04

Camera/Sound type(s) being used?

Network camera with RTSP

Describe the issue/problem and steps to reproduce

The master branch compiles, installs, starts but dies after a few seconds. Log file attached :)

Do I oversee something? I cannot find the reason.

Relevant MotionPlus log output (at log_level 8)

Aug 29 18:44:06 [NTC][ALL][mp00] mytranslate_init: Language: English
Aug 29 18:44:06 [INF][ALL][mp00] parms_log: Logging configuration parameters from all files
Aug 29 18:44:06 [INF][ALL][mp00] Config file: /etc/motionplus/motionplus.conf
Aug 29 18:44:06 [INF][ALL][mp00] daemon                    off
Aug 29 18:44:06 [INF][ALL][mp00] pid_file                  
Aug 29 18:44:06 [INF][ALL][mp00] log_file                  /var/log/motionplus.log
Aug 29 18:44:06 [INF][ALL][mp00] log_level                 9
Aug 29 18:44:06 [INF][ALL][mp00] log_fflevel               3
Aug 29 18:44:06 [INF][ALL][mp00] log_type                  ALL
Aug 29 18:44:06 [INF][ALL][mp00] native_language           on
Aug 29 18:44:06 [INF][ALL][mp00] device_name               
Aug 29 18:44:06 [INF][ALL][mp00] device_id                 0
Aug 29 18:44:06 [INF][ALL][mp00] device_tmo                300
Aug 29 18:44:06 [INF][ALL][mp00] pause                     off
Aug 29 18:44:06 [INF][ALL][mp00] target_dir                /mnt/motion
Aug 29 18:44:06 [INF][ALL][mp00] watchdog_tmo              1120
Aug 29 18:44:06 [INF][ALL][mp00] watchdog_kill             1120
Aug 29 18:44:06 [INF][ALL][mp00] v4l2_device               
Aug 29 18:44:06 [INF][ALL][mp00] v4l2_params               
Aug 29 18:44:06 [INF][ALL][mp00] netcam_url                <redacted>
Aug 29 18:44:06 [INF][ALL][mp00] netcam_params             
Aug 29 18:44:06 [INF][ALL][mp00] netcam_high_url           <redacted>
Aug 29 18:44:06 [INF][ALL][mp00] netcam_high_params        
Aug 29 18:44:06 [INF][ALL][mp00] netcam_userpass           <redacted>
Aug 29 18:44:06 [INF][ALL][mp00] libcam_device             
Aug 29 18:44:06 [INF][ALL][mp00] libcam_params             
Aug 29 18:44:06 [INF][ALL][mp00] width                     640
Aug 29 18:44:06 [INF][ALL][mp00] height                    480
Aug 29 18:44:06 [INF][ALL][mp00] framerate                 15
Aug 29 18:44:06 [INF][ALL][mp00] rotate                    0
Aug 29 18:44:06 [INF][ALL][mp00] flip_axis                 none
Aug 29 18:44:06 [INF][ALL][mp00] locate_motion_mode        off
Aug 29 18:44:06 [INF][ALL][mp00] locate_motion_style       box
Aug 29 18:44:06 [INF][ALL][mp00] text_left                 
Aug 29 18:44:06 [INF][ALL][mp00] text_right                %Y-%m-%d\n%T
Aug 29 18:44:06 [INF][ALL][mp00] text_changes              off
Aug 29 18:44:06 [INF][ALL][mp00] text_scale                1
Aug 29 18:44:06 [INF][ALL][mp00] text_event                %Y%m%d%H%M%S
Aug 29 18:44:06 [INF][ALL][mp00] emulate_motion            off
Aug 29 18:44:06 [INF][ALL][mp00] threshold                 1000
Aug 29 18:44:06 [INF][ALL][mp00] threshold_maximum         0
Aug 29 18:44:06 [INF][ALL][mp00] threshold_sdevx           0
Aug 29 18:44:06 [INF][ALL][mp00] threshold_sdevy           0
Aug 29 18:44:06 [INF][ALL][mp00] threshold_sdevxy          0
Aug 29 18:44:06 [INF][ALL][mp00] threshold_ratio           0
Aug 29 18:44:06 [INF][ALL][mp00] threshold_ratio_change    64
Aug 29 18:44:06 [INF][ALL][mp00] threshold_tune            off
Aug 29 18:44:06 [INF][ALL][mp00] secondary_method          none
Aug 29 18:44:06 [INF][ALL][mp00] secondary_params          
Aug 29 18:44:06 [INF][ALL][mp00] noise_level               32
Aug 29 18:44:06 [INF][ALL][mp00] noise_tune                on
Aug 29 18:44:06 [INF][ALL][mp00] despeckle_filter          EedDl
Aug 29 18:44:06 [INF][ALL][mp00] area_detect               
Aug 29 18:44:06 [INF][ALL][mp00] mask_file                 
Aug 29 18:44:06 [INF][ALL][mp00] mask_privacy              
Aug 29 18:44:06 [INF][ALL][mp00] smart_mask_speed          0
Aug 29 18:44:06 [INF][ALL][mp00] lightswitch_percent       0
Aug 29 18:44:06 [INF][ALL][mp00] lightswitch_frames        5
Aug 29 18:44:06 [INF][ALL][mp00] minimum_motion_frames     1
Aug 29 18:44:06 [INF][ALL][mp00] static_object_time        10
Aug 29 18:44:06 [INF][ALL][mp00] event_gap                 60
Aug 29 18:44:06 [INF][ALL][mp00] pre_capture               60
Aug 29 18:44:06 [INF][ALL][mp00] post_capture              60
Aug 29 18:44:06 [INF][ALL][mp00] on_event_start            
Aug 29 18:44:06 [INF][ALL][mp00] on_event_end              
Aug 29 18:44:06 [INF][ALL][mp00] on_picture_save           
Aug 29 18:44:06 [INF][ALL][mp00] on_area_detected          
Aug 29 18:44:06 [INF][ALL][mp00] on_motion_detected        
Aug 29 18:44:06 [INF][ALL][mp00] on_movie_start            
Aug 29 18:44:06 [INF][ALL][mp00] on_movie_end              
Aug 29 18:44:06 [INF][ALL][mp00] on_camera_lost            
Aug 29 18:44:06 [INF][ALL][mp00] on_camera_found           
Aug 29 18:44:06 [INF][ALL][mp00] on_secondary_detect       
Aug 29 18:44:06 [INF][ALL][mp00] on_action_user            
Aug 29 18:44:06 [INF][ALL][mp00] on_sound_alert            
Aug 29 18:44:06 [INF][ALL][mp00] picture_output            off
Aug 29 18:44:06 [INF][ALL][mp00] picture_output_motion     off
Aug 29 18:44:06 [INF][ALL][mp00] picture_type              jpg
Aug 29 18:44:06 [INF][ALL][mp00] picture_quality           75
Aug 29 18:44:06 [INF][ALL][mp00] picture_exif              
Aug 29 18:44:06 [INF][ALL][mp00] picture_filename          %v-%Y%m%d%H%M%S-%q
Aug 29 18:44:06 [INF][ALL][mp00] snapshot_interval         0
Aug 29 18:44:06 [INF][ALL][mp00] snapshot_filename         %v-%Y%m%d%H%M%S-snapshot
Aug 29 18:44:06 [INF][ALL][mp00] movie_output              on
Aug 29 18:44:06 [INF][ALL][mp00] movie_output_motion       off
Aug 29 18:44:06 [INF][ALL][mp00] movie_max_time            0
Aug 29 18:44:06 [INF][ALL][mp00] movie_bps                 400000
Aug 29 18:44:06 [INF][ALL][mp00] movie_quality             90
Aug 29 18:44:06 [INF][ALL][mp00] movie_container           mp4
Aug 29 18:44:06 [INF][ALL][mp00] movie_passthrough         on
Aug 29 18:44:06 [INF][ALL][mp00] movie_filename            %v-%Y%m%d%H%M%S
Aug 29 18:44:06 [INF][ALL][mp00] movie_retain              all
Aug 29 18:44:06 [INF][ALL][mp00] movie_extpipe_use         off
Aug 29 18:44:06 [INF][ALL][mp00] movie_extpipe             
Aug 29 18:44:06 [INF][ALL][mp00] timelapse_interval        0
Aug 29 18:44:06 [INF][ALL][mp00] timelapse_mode            daily
Aug 29 18:44:06 [INF][ALL][mp00] timelapse_fps             30
Aug 29 18:44:06 [INF][ALL][mp00] timelapse_container       mpg
Aug 29 18:44:06 [INF][ALL][mp00] timelapse_filename        %Y%m%d-timelapse
Aug 29 18:44:06 [INF][ALL][mp00] video_pipe                
Aug 29 18:44:06 [INF][ALL][mp00] video_pipe_motion         
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_port           8081
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_port2          0
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_base_path      
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_ipv6           off
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_localhost      off
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_parms          2
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_interface      default
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_auth_method    basic
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_authentication <redacted>
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_tls            on
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_cert           <redacted>
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_key            <redacted>
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_headers        
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_html           
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_actions        
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_lock_minutes   10
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_lock_attempts  3
Aug 29 18:44:06 [INF][ALL][mp00] webcontrol_lock_script    
Aug 29 18:44:06 [INF][ALL][mp00] stream_preview_scale      35
Aug 29 18:44:06 [INF][ALL][mp00] stream_preview_newline    off
Aug 29 18:44:06 [INF][ALL][mp00] stream_preview_location   
Aug 29 18:44:06 [INF][ALL][mp00] stream_preview_method     mjpg
Aug 29 18:44:06 [INF][ALL][mp00] stream_preview_ptz        off
Aug 29 18:44:06 [INF][ALL][mp00] stream_quality            25
Aug 29 18:44:06 [INF][ALL][mp00] stream_grey               off
Aug 29 18:44:06 [INF][ALL][mp00] stream_motion             on
Aug 29 18:44:06 [INF][ALL][mp00] stream_maxrate            8
Aug 29 18:44:06 [INF][ALL][mp00] stream_scan_time          5
Aug 29 18:44:06 [INF][ALL][mp00] stream_scan_scale         25
Aug 29 18:44:06 [INF][ALL][mp00] database_type             
Aug 29 18:44:06 [INF][ALL][mp00] database_dbname           
Aug 29 18:44:06 [INF][ALL][mp00] database_host             
Aug 29 18:44:06 [INF][ALL][mp00] database_port             0
Aug 29 18:44:06 [INF][ALL][mp00] database_user             <redacted>
Aug 29 18:44:06 [INF][ALL][mp00] database_password         <redacted>
Aug 29 18:44:06 [INF][ALL][mp00] database_busy_timeout     0
Aug 29 18:44:06 [INF][ALL][mp00] sql_event_start           
Aug 29 18:44:06 [INF][ALL][mp00] sql_event_end             
Aug 29 18:44:06 [INF][ALL][mp00] sql_movie_start           
Aug 29 18:44:06 [INF][ALL][mp00] sql_movie_end             
Aug 29 18:44:06 [INF][ALL][mp00] sql_pic_save              
Aug 29 18:44:06 [INF][ALL][mp00] ptz_auto_track            off
Aug 29 18:44:06 [INF][ALL][mp00] ptz_wait                  0
Aug 29 18:44:06 [INF][ALL][mp00] ptz_move_track            
Aug 29 18:44:06 [INF][ALL][mp00] ptz_pan_left              
Aug 29 18:44:06 [INF][ALL][mp00] ptz_pan_right             
Aug 29 18:44:06 [INF][ALL][mp00] ptz_tilt_up               
Aug 29 18:44:06 [INF][ALL][mp00] ptz_tilt_down             
Aug 29 18:44:06 [INF][ALL][mp00] ptz_zoom_in               
Aug 29 18:44:06 [INF][ALL][mp00] ptz_zoom_out              
Aug 29 18:44:06 [INF][ALL][mp00] snd_device                
Aug 29 18:44:06 [INF][ALL][mp00] snd_params                
Aug 29 18:44:06 [INF][ALL][mp00] snd_window                hamming
Aug 29 18:44:06 [INF][ALL][mp00] snd_show                  off
Aug 29 18:44:06 [INF][ALL][mp00] Camera config file: /etc/motionplus/camera1.conf
Aug 29 18:44:06 [INF][ALL][mp00] device_name               PiCam
Aug 29 18:44:06 [INF][ALL][mp00] device_id                 101
Aug 29 18:44:06 [INF][ALL][mp00] netcam_url                <redacted>
Aug 29 18:44:06 [INF][ALL][mp00] width                     1920
Aug 29 18:44:06 [INF][ALL][mp00] height                    1080
Aug 29 18:44:06 [INF][ALL][mp00] framerate                 30
Aug 29 18:44:06 [INF][ALL][mp00] text_left                 PiCam_HD
Aug 29 18:44:06 [INF][ALL][mp00] text_right                PiCam_HD\n%Y-%m-%d\n%T-%q
Aug 29 18:44:06 [INF][ALL][mp00] text_scale                3
Aug 29 18:44:06 [INF][ALL][mp00] movie_filename            PiCam_%t-%v-%Y_%m_%d_%H_%M_%S
Aug 29 18:44:06 [INF][ALL][mp00] Camera config file: /etc/motionplus/camera2.conf
Aug 29 18:44:06 [INF][ALL][mp00] device_name               ZeroCam
Aug 29 18:44:06 [INF][ALL][mp00] device_id                 102
Aug 29 18:44:06 [INF][ALL][mp00] netcam_url                <redacted>
Aug 29 18:44:06 [INF][ALL][mp00] width                     1920
Aug 29 18:44:06 [INF][ALL][mp00] height                    1080
Aug 29 18:44:06 [INF][ALL][mp00] framerate                 30
Aug 29 18:44:06 [INF][ALL][mp00] text_left                 ZeroCam_HD
Aug 29 18:44:06 [INF][ALL][mp00] text_right                ZeroCam_HD\n%Y-%m-%d\n%T-%q
Aug 29 18:44:06 [INF][ALL][mp00] text_scale                3
Aug 29 18:44:06 [INF][ALL][mp00] movie_filename            ZeroCam_%t-%v-%Y_%m_%d_%H_%M_%S
Aug 29 18:44:06 [INF][ALL][mp00] Camera config file: /etc/motionplus/camera3.conf
Aug 29 18:44:06 [INF][ALL][mp00] device_name               Mevo
Aug 29 18:44:06 [INF][ALL][mp00] device_id                 103
Aug 29 18:44:06 [INF][ALL][mp00] netcam_url                <redacted>
Aug 29 18:44:06 [INF][ALL][mp00] width                     1920
Aug 29 18:44:06 [INF][ALL][mp00] height                    1080
Aug 29 18:44:06 [INF][ALL][mp00] framerate                 30
Aug 29 18:44:06 [INF][ALL][mp00] text_left                 Mevo
Aug 29 18:44:06 [INF][ALL][mp00] text_right                Mevo\n%Y-%m-%d\n%T-%q
Aug 29 18:44:06 [INF][ALL][mp00] text_scale                3
Aug 29 18:44:06 [INF][ALL][mp00] movie_filename            Mevo_%t-%v-%Y_%m_%d_%H_%M_%S
Aug 29 18:44:06 [INF][ALL][mp00] Camera config file: /etc/motionplus/camera5.conf
Aug 29 18:44:06 [INF][ALL][mp00] device_name               ZeroCam
Aug 29 18:44:06 [INF][ALL][mp00] device_id                 105
Aug 29 18:44:06 [INF][ALL][mp00] netcam_url                <redacted>
Aug 29 18:44:06 [INF][ALL][mp00] width                     1920
Aug 29 18:44:06 [INF][ALL][mp00] height                    1080
Aug 29 18:44:06 [INF][ALL][mp00] framerate                 30
Aug 29 18:44:06 [INF][ALL][mp00] text_left                 ZeroCam3_HD
Aug 29 18:44:06 [INF][ALL][mp00] text_right                ZeroCam3_HD\n%Y-%m-%d\n%T-%q
Aug 29 18:44:06 [INF][ALL][mp00] text_scale                3
Aug 29 18:44:06 [INF][ALL][mp00] movie_filename            ZeroCam3_%t-%v-%Y_%m_%d_%H_%M_%S
Aug 29 18:44:06 [NTC][ALL][mp00] pid_write: Motionplus pid: 1697497
Aug 29 18:44:06 [DBG][ALL][mp00] ntc: v4l2   : available
Aug 29 18:44:06 [DBG][ALL][mp00] ntc: webp   : available
Aug 29 18:44:06 [DBG][ALL][mp00] ntc: libcam : available
Aug 29 18:44:06 [DBG][ALL][mp00] ntc: mysql  : not available
Aug 29 18:44:06 [DBG][ALL][mp00] ntc: MariaDB: available
Aug 29 18:44:06 [DBG][ALL][mp00] ntc: sqlite3: not available
Aug 29 18:44:06 [DBG][ALL][mp00] ntc: pgsql  : not available
Aug 29 18:44:06 [DBG][ALL][mp00] ntc: nls    : available
Aug 29 18:44:06 [DBG][ALL][mp00] ntc: alsa   : available
Aug 29 18:44:06 [DBG][ALL][mp00] ntc: fftw3  : available
Aug 29 18:44:06 [NTC][ALL][mp00] allcams_init: No stream_preview_location for cam 101
Aug 29 18:44:06 [NTC][ALL][mp00] allcams_init: No stream_preview_location for cam 102
Aug 29 18:44:06 [NTC][ALL][mp00] allcams_init: No stream_preview_location for cam 103
Aug 29 18:44:06 [NTC][ALL][mp00] allcams_init: No stream_preview_location for cam 105
Aug 29 18:44:06 [NTC][ALL][mp00] allcams_init: Creating default stream preview values
Aug 29 18:44:06 [DBG][ALL][mp00] allcams_init: stream_preview_location values. Device 101 row 1 col 1
Aug 29 18:44:06 [DBG][ALL][mp00] allcams_init: stream_preview_location values. Device 102 row 1 col 2
Aug 29 18:44:06 [DBG][ALL][mp00] allcams_init: stream_preview_location values. Device 103 row 2 col 1
Aug 29 18:44:06 [DBG][ALL][mp00] allcams_init: stream_preview_location values. Device 105 row 2 col 2
Aug 29 18:44:06 [NTC][ENC][mp00] av_init: libavcodec  version 61.3.100
Aug 29 18:44:06 [NTC][ENC][mp00] av_init: libavformat version 61.1.100
Aug 29 18:44:06 [NTC][STR][mp00] startup: Starting webcontrol on port 8081
Aug 29 18:44:06 [DBG][ALL][mp00] util_parms_add: webcontrol_actions:>event< >on<
Aug 29 18:44:06 [DBG][ALL][mp00] util_parms_add: webcontrol_actions:>snapshot< >on<
Aug 29 18:44:06 [DBG][ALL][mp00] util_parms_add: webcontrol_actions:>pause< >on<
Aug 29 18:44:06 [DBG][ALL][mp00] util_parms_add: webcontrol_actions:>restart< >on<
Aug 29 18:44:06 [DBG][ALL][mp00] util_parms_add: webcontrol_actions:>stop< >on<
Aug 29 18:44:06 [DBG][ALL][mp00] util_parms_add: webcontrol_actions:>config_write< >on<
Aug 29 18:44:06 [DBG][ALL][mp00] util_parms_add: webcontrol_actions:>camera_add< >on<
Aug 29 18:44:06 [DBG][ALL][mp00] util_parms_add: webcontrol_actions:>camera_delete< >on<
Aug 29 18:44:06 [DBG][ALL][mp00] util_parms_add: webcontrol_actions:>config< >on<
Aug 29 18:44:06 [DBG][ALL][mp00] util_parms_add: webcontrol_actions:>ptz< >on<
Aug 29 18:44:06 [DBG][ALL][mp00] util_parms_add: webcontrol_actions:>movies< >on<
Aug 29 18:44:06 [DBG][ALL][mp00] util_parms_add: webcontrol_actions:>action_user< >on<
Aug 29 18:44:06 [DBG][STR][mp00] mhd_features_basic: Basic authentication: available
Aug 29 18:44:06 [DBG][STR][mp00] mhd_features_digest: Digest authentication: available
Aug 29 18:44:06 [DBG][STR][mp00] mhd_features_ipv6: IPV6: available
Aug 29 18:44:06 [DBG][STR][mp00] mhd_features_tls: SSL/TLS: available
Aug 29 18:44:06 [INF][ALL][cl102:ZeroCam] init: Initialize Camera
Aug 29 18:44:06 [NTC][VID][cl102:ZeroCam] cls_netcam: Norm: Opening Netcam
Aug 29 18:44:06 [INF][NET][cl102:ZeroCam] set_parms: Norm:Setting up camera(ZeroCam).
Aug 29 18:44:06 [DBG][ALL][cl102:ZeroCam] util_parms_add: netcam_params:>decoder< >NULL<
Aug 29 18:44:06 [INF][NET][cl102:ZeroCam] set_path: Setting up rtmp 
Aug 29 18:44:06 [INF][NET][cl102:ZeroCam] set_options: Norm:Setting rtsp/rtmp
Aug 29 18:44:06 [DBG][ALL][cl102:ZeroCam] util_parms_add: netcam_params:>rtsp_transport< >tcp<
Aug 29 18:44:06 [INF][NET][cl102:ZeroCam] set_options: Norm:rtsp_transport = tcp
Aug 29 18:44:06 [INF][ALL][cl101:PiCam] init: Initialize Camera
Aug 29 18:44:06 [INF][ALL][cl101:PiCam] Above message repeats 2 times
Aug 29 18:44:06 [NTC][VID][cl103:Mevo] cls_netcam: Norm: Opening Netcam
Aug 29 18:44:06 [INF][NET][cl103:Mevo] set_parms: Norm:Setting up camera(Mevo).
Aug 29 18:44:06 [DBG][ALL][cl103:Mevo] util_parms_add: netcam_params:>decoder< >NULL<
Aug 29 18:44:06 [NTC][VID][cl101:PiCam] cls_netcam: Norm: Opening Netcam
Aug 29 18:44:06 [INF][NET][cl101:PiCam] set_parms: Norm:Setting up camera(PiCam).
Aug 29 18:44:06 [DBG][ALL][cl101:PiCam] util_parms_add: netcam_params:>decoder< >NULL<
Aug 29 18:44:06 [NTC][VID][cl105:ZeroCam] cls_netcam: Norm: Opening Netcam
Aug 29 18:44:06 [INF][NET][cl105:ZeroCam] set_parms: Norm:Setting up camera(ZeroCam).
Aug 29 18:44:06 [DBG][ALL][cl105:ZeroCam] util_parms_add: netcam_params:>decoder< >NULL<
Aug 29 18:44:06 [INF][NET][cl103:Mevo] set_path: Setting up rtmp 
Aug 29 18:44:06 [INF][NET][cl103:Mevo] set_options: Norm:Setting rtsp/rtmp
Aug 29 18:44:06 [DBG][ALL][cl103:Mevo] util_parms_add: netcam_params:>rtsp_transport< >tcp<
Aug 29 18:44:06 [INF][NET][cl103:Mevo] set_options: Norm:rtsp_transport = tcp
Aug 29 18:44:06 [INF][NET][cl101:PiCam] url_parse: Using port number 1935
Aug 29 18:44:06 [INF][NET][cl101:PiCam] set_path: Setting up rtmp 
Aug 29 18:44:06 [INF][NET][cl101:PiCam] set_options: Norm:Setting rtsp/rtmp
Aug 29 18:44:06 [DBG][ALL][cl101:PiCam] util_parms_add: netcam_params:>rtsp_transport< >tcp<
Aug 29 18:44:06 [INF][NET][cl101:PiCam] set_options: Norm:rtsp_transport = tcp
Aug 29 18:44:06 [INF][NET][cl105:ZeroCam] set_path: Setting up rtmp 
Aug 29 18:44:06 [INF][NET][cl105:ZeroCam] set_options: Norm:Setting rtsp/rtmp
Aug 29 18:44:06 [DBG][ALL][cl105:ZeroCam] util_parms_add: netcam_params:>rtsp_transport< >tcp<
Aug 29 18:44:06 [NTC][STR][mp00] start_daemon_port1: Started webcontrol on port 8081
Aug 29 18:44:06 [INF][NET][cl105:ZeroCam] set_options: Norm:rtsp_transport = tcp
Aug 29 18:44:27 [INF][NET][cl102:ZeroCam] netcam_interrupt: Norm:Camera (ZeroCam) timed out
Aug 29 18:44:27 [INF][NET][cl103:Mevo] netcam_interrupt: Norm:Camera (Mevo) timed out
Aug 29 18:44:27 [INF][NET][cl102:ZeroCam] netcam_interrupt: Norm:Camera (ZeroCam) timed out
Aug 29 18:44:27 [INF][NET][cl103:Mevo] netcam_interrupt: Norm:Camera (Mevo) timed out
Aug 29 18:44:27 [NTC][NET][cl102:ZeroCam] open_context: Norm:Unable to open camera(ZeroCam):Input/output error
Aug 29 18:44:27 [INF][NET][cl102:ZeroCam] handler_shutdown: Norm:Shutting down network camera.
Aug 29 18:44:27 [NTC][NET][cl102:ZeroCam] handler_shutdown: Norm: Shut down complete.
Aug 29 18:44:27 [ERR][ALL][cl102:ZeroCam] init_cam_start: Failed to start camera.
Aug 29 18:44:27 [NTC][NET][cl102:ZeroCam] check_szimg: Substream not available.  Image sizes not modulo 16.
Aug 29 18:44:27 [NTC][ALL][cl102:ZeroCam] ring_resize: Resizing buffer to 61 items
Aug 29 18:44:27 [NTC][NET][cl103:Mevo] open_context: Norm:Unable to open camera(Mevo):Input/output error
Aug 29 18:44:27 [INF][NET][cl103:Mevo] handler_shutdown: Norm:Shutting down network camera.
Aug 29 18:44:27 [NTC][NET][cl103:Mevo] handler_shutdown: Norm: Shut down complete.
Aug 29 18:44:27 [ERR][ALL][cl103:Mevo] init_cam_start: Failed to start camera.
Aug 29 18:44:27 [NTC][NET][cl103:Mevo] check_szimg: Substream not available.  Image sizes not modulo 16.
Aug 29 18:44:27 [NTC][ALL][cl103:Mevo] ring_resize: Resizing buffer to 61 items
Aug 29 18:44:27 [INF][NET][cl105:ZeroCam] netcam_interrupt: Norm:Camera (ZeroCam) timed out
Aug 29 18:44:27 [INF][NET][cl105:ZeroCam] Above message repeats 1 times
Aug 29 18:44:27 [NTC][NET][cl105:ZeroCam] open_context: Norm:Unable to open camera(ZeroCam):Input/output error
Aug 29 18:44:27 [INF][NET][cl105:ZeroCam] handler_shutdown: Norm:Shutting down network camera.
Aug 29 18:44:27 [NTC][NET][cl105:ZeroCam] handler_shutdown: Norm: Shut down complete.
Aug 29 18:44:27 [ERR][ALL][cl105:ZeroCam] init_cam_start: Failed to start camera.
Aug 29 18:44:27 [NTC][NET][cl105:ZeroCam] check_szimg: Substream not available.  Image sizes not modulo 16.
Aug 29 18:44:27 [NTC][ALL][cl105:ZeroCam] ring_resize: Resizing buffer to 61 items
Aug 29 18:44:27 [INF][NET][cl101:PiCam] netcam_interrupt: Norm:Camera (PiCam) timed out
Aug 29 18:44:27 [INF][NET][cl101:PiCam] Above message repeats 1 times
Aug 29 18:44:27 [NTC][NET][cl101:PiCam] open_context: Norm:Unable to open camera(PiCam):Input/output error
Aug 29 18:44:27 [INF][NET][cl101:PiCam] handler_shutdown: Norm:Shutting down network camera.
Aug 29 18:44:27 [NTC][NET][cl101:PiCam] handler_shutdown: Norm: Shut down complete.
Aug 29 18:44:27 [ERR][ALL][cl101:PiCam] init_cam_start: Failed to start camera.
Aug 29 18:44:27 [NTC][NET][cl101:PiCam] check_szimg: Substream not available.  Image sizes not modulo 16.
Aug 29 18:44:27 [NTC][ALL][cl101:PiCam] ring_resize: Resizing buffer to 61 items
Aug 29 18:44:27 [ERR][ALL][cl103:Mevo] init_firstimage: Unable to open camera
axeljerabek commented 3 months ago

Well yes, the timeout. Clear. But the netcams always need a while until motion picks up the stream from the nginx RTMP module. Mostly, all 4 cams show up after something like 20-30 seconds, sometimes even more.

Mr-Dave commented 3 months ago

The timeout is currently hard coded as 20 for the open processes. It then goes to 10 seconds for reading an image.

From the log, it looks like it isn't making it past the opening phase so you can revise that 20 and see if that works. (I'll make this a user configuration parameter soon)

axeljerabek commented 3 months ago

Thanks for those two! I use 120 and 180 now, still motionplus exits in under 10 seconds it seems. Any other hardcode I could edit here?

axeljerabek commented 3 months ago

Also had to set the watchdog parts, now it works sometimes after a few restarts. Still a bit away from stable somehow. Is there a chance that the 0.2.1 release gets an update for the new libav and ffmpeg components? That one was working in production and was pretty stable.