Closed wendy2702 closed 6 years ago
Few minutes ago stream stopped again.
This is from motion log after changing any value at WEB-IF.
[0:motion] [ALR] [ALL] conf_cmdparse: Deprecated config option "thread" since after version 3.4.1:
[0:motion] [ALR] [ALL] conf_cmdparse: The "thread" option has been replaced by the "camera" option.
[0:motion] [NTC] [ALL] config_camera: Processing camera config file thread-1.conf
[0:motion] [NTC] [ALL] motion_startup: Motion 4.1.1 Started
[0:motion] [NTC] [ALL] motion_startup: Logging to syslog
[0:motion] [NTC] [ALL] motion_startup: Using default log type (ALL)
[0:motion] [NTC] [ALL] motion_startup: Using log type (ALL) log level (ALL)
[0:motion] [INF] [ALL] conf_output_parms: Writing configuration parameters from all files (2):
[0:motion] [INF] [ALL] Thread 0 - Config file: /etc/motioneye/motion.conf
[0:motion] [INF] [ALL] daemon off
[0:motion] [INF] [ALL] setup_mode off
[0:motion] [INF] [ALL] log_level 9
[0:motion] [INF] [ALL] log_type ALL
[0:motion] [INF] [ALL] videodevice /dev/video0
[0:motion] [INF] [ALL] v4l2_palette 17
[0:motion] [INF] [ALL] input -1
[0:motion] [INF] [ALL] norm 0
[0:motion] [INF] [ALL] frequency 0
[0:motion] [INF] [ALL] flip_axis none
[0:motion] [INF] [ALL] rotate 0
[0:motion] [INF] [ALL] width 352
[0:motion] [INF] [ALL] height 288
[0:motion] [INF] [ALL] framerate 100
[0:motion] [INF] [ALL] minimum_frame_time 0
[0:motion] [INF] [ALL] netcam_keepalive off
[0:motion] [INF] [ALL] netcam_tolerant_check off
[0:motion] [INF] [ALL] rtsp_uses_tcp on
[0:motion] [INF] [ALL] auto_brightness off
[0:motion] [INF] [ALL] brightness 0
[0:motion] [INF] [ALL] contrast 0
[0:motion] [INF] [ALL] saturation 0
[0:motion] [INF] [ALL] hue 0
[0:motion] [INF] [ALL] power_line_frequency -1
[0:motion] [INF] [ALL] roundrobin_frames 1
[0:motion] [INF] [ALL] roundrobin_skip 1
[0:motion] [INF] [ALL] switchfilter off
[0:motion] [INF] [ALL] threshold 1500
[0:motion] [INF] [ALL] threshold_tune off
[0:motion] [INF] [ALL] noise_level 32
[0:motion] [INF] [ALL] noise_tune on
[0:motion] [INF] [ALL] smart_mask_speed 0
[0:motion] [INF] [ALL] lightswitch 0
[0:motion] [INF] [ALL] minimum_motion_frames 1
[0:motion] [INF] [ALL] pre_capture 0
[0:motion] [INF] [ALL] post_capture 0
[0:motion] [INF] [ALL] event_gap 60
[0:motion] [INF] [ALL] max_movie_time 3600
[0:motion] [INF] [ALL] emulate_motion off
[0:motion] [INF] [ALL] output_pictures on
[0:motion] [INF] [ALL] output_debug_pictures off
[0:motion] [INF] [ALL] quality 75
[0:motion] [INF] [ALL] camera_id 0
[0:motion] [INF] [ALL] picture_type jpeg
[0:motion] [INF] [ALL] ffmpeg_output_movies off
[0:motion] [INF] [ALL] ffmpeg_output_debug_movies off
[0:motion] [INF] [ALL] ffmpeg_bps 400000
[0:motion] [INF] [ALL] ffmpeg_variable_bitrate 0
[0:motion] [INF] [ALL] ffmpeg_video_codec mpeg4
[0:motion] [INF] [ALL] ffmpeg_passthrough off
[0:motion] [INF] [ALL] ffmpeg_duplicate_frames off
[0:motion] [INF] [ALL] use_extpipe off
[0:motion] [INF] [ALL] snapshot_interval 0
[0:motion] [INF] [ALL] locate_motion_mode off
[0:motion] [INF] [ALL] locate_motion_style box
[0:motion] [INF] [ALL] text_right %Y-%m-%d\n%T
[0:motion] [INF] [ALL] text_changes off
[0:motion] [INF] [ALL] text_event %Y%m%d%H%M%S
[0:motion] [INF] [ALL] text_double off
[0:motion] [INF] [ALL] snapshot_filename %v-%Y%m%d%H%M%S-snapshot
[0:motion] [INF] [ALL] picture_filename %v-%Y%m%d%H%M%S-%q
[0:motion] [INF] [ALL] movie_filename %v-%Y%m%d%H%M%S
[0:motion] [INF] [ALL] timelapse_interval 0
[0:motion] [INF] [ALL] timelapse_mode daily
[0:motion] [INF] [ALL] timelapse_codec mpeg4
[0:motion] [INF] [ALL] timelapse_fps 30
[0:motion] [INF] [ALL] timelapse_filename %Y%m%d-timelapse
[0:motion] [INF] [ALL] ipv6_enabled off
[0:motion] [INF] [ALL] stream_port 0
[0:motion] [INF] [ALL] substream_port 0
[0:motion] [INF] [ALL] stream_quality 50
[0:motion] [INF] [ALL] stream_motion off
[0:motion] [INF] [ALL] stream_maxrate 1
[0:motion] [INF] [ALL] stream_localhost on
[0:motion] [INF] [ALL] stream_limit 0
[0:motion] [INF] [ALL] stream_auth_method 0
[0:motion] [INF] [ALL] stream_preview_scale 25
[0:motion] [INF] [ALL] stream_preview_newline off
[0:motion] [INF] [ALL] webcontrol_port 7999
[0:motion] [INF] [ALL] webcontrol_localhost off
[0:motion] [INF] [ALL] webcontrol_html_output on
[0:motion] [INF] [ALL] webcontrol_parms 2
[0:motion] [INF] [ALL] track_type 0
[0:motion] [INF] [ALL] track_auto off
[0:motion] [INF] [ALL] track_motorx 0
[0:motion] [INF] [ALL] track_motorx_reverse off
[0:motion] [INF] [ALL] track_motory 0
[0:motion] [INF] [ALL] track_motory_reverse off
[0:motion] [INF] [ALL] track_maxx 0
[0:motion] [INF] [ALL] track_minx 0
[0:motion] [INF] [ALL] track_maxy 0
[0:motion] [INF] [ALL] track_miny 0
[0:motion] [INF] [ALL] track_homex 128
[0:motion] [INF] [ALL] track_homey 128
[0:motion] [INF] [ALL] track_iomojo_id 0
[0:motion] [INF] [ALL] track_step_angle_x 10
[0:motion] [INF] [ALL] track_step_angle_y 10
[0:motion] [INF] [ALL] track_move_wait 10
[0:motion] [INF] [ALL] track_speed 255
[0:motion] [INF] [ALL] track_stepsize 40
[0:motion] [INF] [ALL] quiet on
[0:motion] [INF] [ALL] sql_log_picture on
[0:motion] [INF] [ALL] sql_log_snapshot on
[0:motion] [INF] [ALL] sql_log_movie off
[0:motion] [INF] [ALL] sql_log_timelapse off
[0:motion] [INF] [ALL] sql_query_start sql_query_start insert into security_events(camera, event_time_stamp) values('%t', '%Y-%m-%d %T')
[0:motion] [INF] [ALL] sql_query sql_query insert into security_file(camera, filename, frame, file_type, time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T')
[0:motion] [INF] [ALL] database_host localhost
[0:motion] [INF] [ALL] database_port 0
[0:motion] [INF] [ALL] database_busy_timeout 0
[0:motion] [INF] [ALL] Thread 1 - Config file: thread-1.conf
[0:motion] [INF] [ALL] log_level 15
[0:motion] [INF] [ALL] width 1920
[0:motion] [INF] [ALL] height 1080
[0:motion] [INF] [ALL] framerate 10
[0:motion] [INF] [ALL] netcam_url <redacted>
[0:motion] [INF] [ALL] netcam_userpass <redacted>
[0:motion] [INF] [ALL] netcam_tolerant_check on
[0:motion] [INF] [ALL] threshold 101606
[0:motion] [INF] [ALL] noise_level 31
[0:motion] [INF] [ALL] despeckle_filter EedDl
[0:motion] [INF] [ALL] mask_file /etc/motioneye/mask_1.pgm
[0:motion] [INF] [ALL] lightswitch 75
[0:motion] [INF] [ALL] minimum_motion_frames 20
[0:motion] [INF] [ALL] pre_capture 1
[0:motion] [INF] [ALL] post_capture 1
[0:motion] [INF] [ALL] event_gap 30
[0:motion] [INF] [ALL] max_movie_time 120
[0:motion] [INF] [ALL] emulate_motion on
[0:motion] [INF] [ALL] output_pictures off
[0:motion] [INF] [ALL] quality 85
[0:motion] [INF] [ALL] ffmpeg_output_movies on
[0:motion] [INF] [ALL] ffmpeg_variable_bitrate 75
[0:motion] [INF] [ALL] ffmpeg_video_codec mp4:h264_omx
[0:motion] [INF] [ALL] locate_motion_mode on
[0:motion] [INF] [ALL] locate_motion_style redbox
[0:motion] [INF] [ALL] text_left Garage Gross
[0:motion] [INF] [ALL] text_changes on
[0:motion] [INF] [ALL] text_double on
[0:motion] [INF] [ALL] target_dir /srv/dev-disk-by-label-Cameras
[0:motion] [INF] [ALL] movie_filename %Y-%m-%d/%H-%M-%S
[0:motion] [INF] [ALL] stream_port 8085
[0:motion] [INF] [ALL] stream_quality 75
[0:motion] [INF] [ALL] stream_maxrate 24
[0:motion] [INF] [ALL] stream_localhost off
[0:motion] [INF] [ALL] stream_authentication <redacted>
[0:motion] [INF] [ALL] on_event_start /usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" start %t
[0:motion] [INF] [ALL] on_event_end /usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" stop %t
[0:motion] [INF] [ALL] on_picture_save /usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" picture_save %t %f
[0:motion] [INF] [ALL] on_movie_end /usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" movie_end %t %f
[0:motion] [DBG] [VID] bktr_mutex_init: BKTR is not enabled.
[0:motion] [NTC] [ENC] ffmpeg_global_init: ffmpeg libavcodec version 56.1.0 libavformat version 56.1.0
[0:motion] [NTC] [ALL] main: Camera ID: 1 is from thread-1.conf
[0:motion] [NTC] [ALL] main: Camera ID: 1 Camera Name: (null) Service: rtsp:
[0:motion] [NTC] [ALL] main: Stream port 8085
[0:motion] [NTC] [ALL] main: Waiting for threads to finish, pid: 30286
[0:wc0] [NTC] [STR] http_bindsock: listening on any IPv4 address port 7999
[0:wc0] [NTC] [STR] httpd_run: Started motion-httpd server on port 7999 (auth Disabled)
[1:ml1] [NTC] [ALL] motion_init: Camera 1 started: motion detection Enabled
[1:ml1] [NTC] [VID] vid_start: Opening Netcam RTSP
[1:ml1] [INF] [NET] netcam_rtsp_set_parms: Setting up Normal resolution stream.
[1:ml1] [INF] [NET] netcam_rtsp_set_path: Setting up rtsp via ffmpeg netcam
[1:ml1] [INF] [NET] netcam_rtsp_set_rtsp: Normal resolution: Setting rtsp transport to tcp
[1:ml1] [INF] [NET] netcam_rtsp_open_context: Normal resolution: Opened camera((null))
[1:ml1] [INF] [ENC] ffmpeg_avcodec_log: Estimating duration from bitrate, this may be inaccurate
[1:ml1] [DBG] [NET] netcam_check_buffsize: expanding buffer from [0/0] to [0/3112960] bytes.
[1:ml1] [DBG] [NET] Above message repeats 1 times
[1:ml1] [DBG] [NET] netcam_check_buffsize: expanding buffer from [0/3112960] to [0/6131712] bytes.
[1:ml1] [NTC] [NET] netcam_rtsp_resize_ntc:
[1:ml1] [NTC] [NET] netcam_rtsp_resize_ntc: ****************************************************************
[1:ml1] [NTC] [NET] netcam_rtsp_resize_ntc: The network camera is sending pictures in a different
[1:ml1] [NTC] [NET] netcam_rtsp_resize_ntc: size than specified in the configuration file.
[1:ml1] [NTC] [NET] netcam_rtsp_resize_ntc: The picture is being transcoded into the size
[1:ml1] [NTC] [NET] netcam_rtsp_resize_ntc: requested in the configuration. If possible change
[1:ml1] [NTC] [NET] netcam_rtsp_resize_ntc: netcam or configuration to indicate the same size
[1:ml1] [NTC] [NET] netcam_rtsp_resize_ntc: to possibly lower CPU usage.
[1:ml1] [NTC] [NET] netcam_rtsp_resize_ntc: Netcam: 2688 x 1520 => Config: 1920 x 1080
[1:ml1] [NTC] [NET] netcam_rtsp_resize_ntc: ****************************************************************
[1:ml1] [NTC] [NET] netcam_rtsp_resize_ntc:
[1:ml1] [DBG] [NET] netcam_check_buffsize: expanding buffer from [0/3112960] to [0/6131712] bytes.
[1:ml1] [NTC] [NET] netcam_rtsp_connect: Normal resolution: Camera ((null)) connected
[1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[3:nc3] [NTC] [NET] netcam_rtsp_handler: Normal resolution: Camera handler thread [3] started
[1:ml1] [INF] [ALL] motion_init: Maskfile "/etc/motioneye/mask_1.pgm" loaded.
[1:ml1] [NTC] [STR] http_bindsock: listening on any IPv4 address port 8085
[1:ml1] [NTC] [ALL] motion_init: Started motion-stream server on port 8085 (auth Disabled)
[1:ml1] [INF] [ALL] motion_init: Emulating motion
[1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 21 items
[3:nc3] [INF] [NET] netcam_rtsp_open_context: Normal resolution: Opened camera((null))
[0:wc0] [INF] [STR] httpd_run: motion-httpd - Read from client (127.0.0.1)
[3:nc3] [INF] [ENC] ffmpeg_avcodec_log: Estimating duration from bitrate, this may be inaccurate
[3:nc3] [DBG] [NET] netcam_check_buffsize: expanding buffer from [3110400/6131712] to [3110400/6221824] bytes.
[3:nc3] [NTC] [NET] Above message repeats 1 times
[3:nc3] [NTC] [NET] netcam_rtsp_connect: Normal resolution: Camera ((null)) connected
[1:ml1] [DBG] [EVT] exec_command: Executing external command '/usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" start 1'
[1:ml1] [INF] [EVT] event_new_video: Source FPS 10
[1:ml1] [WRN] [ENC] ffmpeg_set_codec: Preferred codec h264_omx has been blacklisted
[1:ml1] [NTC] [ENC] ffmpeg_set_codec: Using codec libx264
[1:ml1] [INF] [ENC] ffmpeg_set_quality: libx264 codec vbr/crf/bit_rate: 12
[1:ml1] [NTC] [EVT] event_newfile: File of type 8 saved to: /srv/dev-disk-by-label-Cameras/2018-07-17/10-05-19.mp4
[1:ml1] [NTC] [ALL] motion_detected: Motion detected - starting event 1
[1:ml1] [INF] [ENC] ffmpeg_avcodec_log: specified frame type (3) at 0 is not compatible with keyframe interval
[1:ml1] [DBG] [EVT] exec_command: Executing external command '/usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" stop 1'
[1:ml1] [DBG] [EVT] exec_command: Executing external command '/usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" movie_end 1 /srv/dev-disk-by-label-Cameras/2018-07-17/10-05-19.mp4'
[1:ml1] [NTC] [ALL] mlp_actions: End of event 1
[1:ml1] [DBG] [EVT] exec_command: Executing external command '/usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" start 1'
[1:ml1] [INF] [EVT] event_new_video: Source FPS 10
[1:ml1] [WRN] [ENC] ffmpeg_set_codec: Preferred codec h264_omx has been blacklisted
[1:ml1] [NTC] [ENC] ffmpeg_set_codec: Using codec libx264
[1:ml1] [INF] [ENC] ffmpeg_set_quality: libx264 codec vbr/crf/bit_rate: 12
[1:ml1] [NTC] [EVT] event_newfile: File of type 8 saved to: /srv/dev-disk-by-label-Cameras/2018-07-17/10-07-19.mp4
[1:ml1] [NTC] [ALL] motion_detected: Motion detected - starting event 2
[1:ml1] [INF] [ENC] ffmpeg_avcodec_log: specified frame type (3) at 0 is not compatible with keyframe interval
[1:ml1] [DBG] [EVT] exec_command: Executing external command '/usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" stop 1'
[1:ml1] [DBG] [EVT] exec_command: Executing external command '/usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" movie_end 1 /srv/dev-disk-by-label-Cameras/2018-07-17/10-07-19.mp4'
[1:ml1] [NTC] [ALL] mlp_actions: End of event 2
[1:ml1] [DBG] [EVT] exec_command: Executing external command '/usr/local/lib/python2.7/dist-packages/motioneye/scripts/relayevent.sh "/etc/motioneye/motioneye.conf" start 1'
[1:ml1] [INF] [EVT] event_new_video: Source FPS 10
[1:ml1] [WRN] [ENC] ffmpeg_set_codec: Preferred codec h264_omx has been blacklisted
[1:ml1] [NTC] [ENC] ffmpeg_set_codec: Using codec libx264
[1:ml1] [INF] [ENC] ffmpeg_set_quality: libx264 codec vbr/crf/bit_rate: 12
[1:ml1] [NTC] [EVT] event_newfile: File of type 8 saved to: /srv/dev-disk-by-label-Cameras/2018-07-17/10-09-19.mp4
[1:ml1] [NTC] [ALL] motion_detected: Motion detected - starting event 3
[1:ml1] [INF] [ENC] ffmpeg_avcodec_log: specified frame type (3) at 0 is not compatible with keyframe interval
`
Problem solved after changing client configuration.
@wendy2702 howdie
can you share what you changed to fix it?
i'm getting the same sporatic cutoffs, along with:
mjpg client timed out receiving data
Hi,
I‘m using ioBroker to visualize and control my Smarthome. To get the Camera picture on my wall mounted IPAD i select a so called Widget. Everytime the IPAD Screen is switched on the widget send a refresh command to motioneye which lead to loss of feed. After disabling the refresh it works without problem.
Hi,
i installed motioneye a few days ago on my Debian Jessie Homeserver. Installation went fine without any issues but now i faced a problem that my camera stream seems to stop working as i did not get any camera picture from motioneye WEB-IF or any client.
As soon as i change anything on WEB-IF it starts to work again for some hours.
Installed Motioneye Version: 0.39.2 Motion: 4.1.1 Debian: 8.11 (up to date)
System Disk Kingston SSD 120GB with 70GB free space Storage Device: Samsung 500GB WDU 75% usage Camera: Hikvision DS-2CD2042WD-I
Attached you can find a logfile. Problem starts at:
Jul 16 17:10:53 openmediavault meyectl[12137]: ERROR: mjpg client timed out receiving data for camera 1 on port 8085
Maybe somebody can tell me if this is a setup issue or how to fix. Thansk for help