Skip to content

Instantly share code, notes, and snippets.

@Perelandric
Created June 16, 2018 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Perelandric/4dfc7527977cb2e22e79da7e4a470e2c to your computer and use it in GitHub Desktop.
Save Perelandric/4dfc7527977cb2e22e79da7e4a470e2c to your computer and use it in GitHub Desktop.
confusing logging in motion
[0:motion] [NTC] [ALL] [Jun 16 18:30:17] motion_startup: Motion 4.1.1+dirty20180614-57944cd Started
[0:motion] [NTC] [ALL] [Jun 16 18:30:17] motion_startup: Using log type (ALL) log level (INF)
[0:motion] [INF] [ALL] [Jun 16 18:30:17] conf_output_parms: Writing configuration parameters from all files (1):
[0:motion] [INF] [ALL] [Jun 16 18:30:17] Thread 0 - Config file: /usr/local/etc/motion/motion.conf
[0:motion] [INF] [ALL] [Jun 16 18:30:17] daemon off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] process_id_file /var/run/motion/motion.pid
[0:motion] [INF] [ALL] [Jun 16 18:30:17] setup_mode off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] logfile /home/mainuser/motion/tmp/motion.log
[0:motion] [INF] [ALL] [Jun 16 18:30:17] log_level 7
[0:motion] [INF] [ALL] [Jun 16 18:30:17] log_type all
[0:motion] [INF] [ALL] [Jun 16 18:30:17] native_language on
[0:motion] [INF] [ALL] [Jun 16 18:30:17] camera_id 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] camera_name
[0:motion] [INF] [ALL] [Jun 16 18:30:17] videodevice /dev/video0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] vid_control_params
[0:motion] [INF] [ALL] [Jun 16 18:30:17] v4l2_palette 17
[0:motion] [INF] [ALL] [Jun 16 18:30:17] input -1
[0:motion] [INF] [ALL] [Jun 16 18:30:17] norm 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] frequency 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] auto_brightness 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] tunerdevice
[0:motion] [INF] [ALL] [Jun 16 18:30:17] roundrobin_frames 1
[0:motion] [INF] [ALL] [Jun 16 18:30:17] roundrobin_skip 1
[0:motion] [INF] [ALL] [Jun 16 18:30:17] switchfilter off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] netcam_url <redacted>
[0:motion] [INF] [ALL] [Jun 16 18:30:17] netcam_highres
[0:motion] [INF] [ALL] [Jun 16 18:30:17] netcam_userpass
[0:motion] [INF] [ALL] [Jun 16 18:30:17] netcam_keepalive off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] netcam_proxy
[0:motion] [INF] [ALL] [Jun 16 18:30:17] netcam_tolerant_check on
[0:motion] [INF] [ALL] [Jun 16 18:30:17] rtsp_uses_tcp on
[0:motion] [INF] [ALL] [Jun 16 18:30:17] mmalcam_name
[0:motion] [INF] [ALL] [Jun 16 18:30:17] mmalcam_control_params
[0:motion] [INF] [ALL] [Jun 16 18:30:17] rotate 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] width 640
[0:motion] [INF] [ALL] [Jun 16 18:30:17] height 480
[0:motion] [INF] [ALL] [Jun 16 18:30:17] framerate 2
[0:motion] [INF] [ALL] [Jun 16 18:30:17] minimum_frame_time 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] despeckle_filter
[0:motion] [INF] [ALL] [Jun 16 18:30:17] locate_motion_mode off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] locate_motion_style box
[0:motion] [INF] [ALL] [Jun 16 18:30:17] text_right %Y-%m-%d\n%T-%q
[0:motion] [INF] [ALL] [Jun 16 18:30:17] text_left
[0:motion] [INF] [ALL] [Jun 16 18:30:17] text_changes off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] text_event %Y%m%d%H%M%S
[0:motion] [INF] [ALL] [Jun 16 18:30:17] text_scale 1
[0:motion] [INF] [ALL] [Jun 16 18:30:17] flip_axis none
[0:motion] [INF] [ALL] [Jun 16 18:30:17] emulate_motion off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] threshold 1500
[0:motion] [INF] [ALL] [Jun 16 18:30:17] threshold_tune off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] noise_level 32
[0:motion] [INF] [ALL] [Jun 16 18:30:17] noise_tune on
[0:motion] [INF] [ALL] [Jun 16 18:30:17] area_detect
[0:motion] [INF] [ALL] [Jun 16 18:30:17] mask_file
[0:motion] [INF] [ALL] [Jun 16 18:30:17] mask_privacy
[0:motion] [INF] [ALL] [Jun 16 18:30:17] smart_mask_speed 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] lightswitch_percent 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] lightswitch_frames 5
[0:motion] [INF] [ALL] [Jun 16 18:30:17] minimum_motion_frames 1
[0:motion] [INF] [ALL] [Jun 16 18:30:17] event_gap 60
[0:motion] [INF] [ALL] [Jun 16 18:30:17] pre_capture 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] post_capture 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] on_event_start
[0:motion] [INF] [ALL] [Jun 16 18:30:17] on_event_end
[0:motion] [INF] [ALL] [Jun 16 18:30:17] on_picture_save
[0:motion] [INF] [ALL] [Jun 16 18:30:17] on_motion_detected
[0:motion] [INF] [ALL] [Jun 16 18:30:17] on_area_detected
[0:motion] [INF] [ALL] [Jun 16 18:30:17] on_movie_start
[0:motion] [INF] [ALL] [Jun 16 18:30:17] on_movie_end
[0:motion] [INF] [ALL] [Jun 16 18:30:17] on_camera_lost
[0:motion] [INF] [ALL] [Jun 16 18:30:17] on_camera_found
[0:motion] [INF] [ALL] [Jun 16 18:30:17] quiet on
[0:motion] [INF] [ALL] [Jun 16 18:30:17] target_dir
[0:motion] [INF] [ALL] [Jun 16 18:30:17] output_pictures off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] output_debug_pictures off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] quality 75
[0:motion] [INF] [ALL] [Jun 16 18:30:17] picture_type jpeg
[0:motion] [INF] [ALL] [Jun 16 18:30:17] snapshot_interval 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] snapshot_filename %v-%Y%m%d%H%M%S-snapshot
[0:motion] [INF] [ALL] [Jun 16 18:30:17] picture_filename %v-%Y%m%d%H%M%S-%q
[0:motion] [INF] [ALL] [Jun 16 18:30:17] exif_text
[0:motion] [INF] [ALL] [Jun 16 18:30:17] ffmpeg_output_movies on
[0:motion] [INF] [ALL] [Jun 16 18:30:17] ffmpeg_output_debug_movies off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] max_movie_time 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] ffmpeg_bps 400000
[0:motion] [INF] [ALL] [Jun 16 18:30:17] ffmpeg_variable_bitrate 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] ffmpeg_video_codec mkv
[0:motion] [INF] [ALL] [Jun 16 18:30:17] ffmpeg_duplicate_frames off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] movie_filename %v-%Y%m%d%H%M%S
[0:motion] [INF] [ALL] [Jun 16 18:30:17] timelapse_interval 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] timelapse_mode daily
[0:motion] [INF] [ALL] [Jun 16 18:30:17] timelapse_codec mpg
[0:motion] [INF] [ALL] [Jun 16 18:30:17] timelapse_fps 30
[0:motion] [INF] [ALL] [Jun 16 18:30:17] timelapse_filename %Y%m%d-timelapse
[0:motion] [INF] [ALL] [Jun 16 18:30:17] ffmpeg_passthrough off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] video_pipe
[0:motion] [INF] [ALL] [Jun 16 18:30:17] motion_video_pipe
[0:motion] [INF] [ALL] [Jun 16 18:30:17] use_extpipe off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] extpipe
[0:motion] [INF] [ALL] [Jun 16 18:30:17] ipv6_enabled off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] stream_port 8081
[0:motion] [INF] [ALL] [Jun 16 18:30:17] substream_port 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] stream_quality 50
[0:motion] [INF] [ALL] [Jun 16 18:30:17] stream_motion off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] stream_maxrate 1
[0:motion] [INF] [ALL] [Jun 16 18:30:17] stream_localhost on
[0:motion] [INF] [ALL] [Jun 16 18:30:17] stream_limit 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] stream_auth_method 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] stream_cors_header
[0:motion] [INF] [ALL] [Jun 16 18:30:17] stream_authentication
[0:motion] [INF] [ALL] [Jun 16 18:30:17] stream_preview_scale 25
[0:motion] [INF] [ALL] [Jun 16 18:30:17] stream_preview_newline off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] stream_grey off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] webcontrol_port 8080
[0:motion] [INF] [ALL] [Jun 16 18:30:17] webcontrol_localhost on
[0:motion] [INF] [ALL] [Jun 16 18:30:17] webcontrol_interface 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] webcontrol_authentication
[0:motion] [INF] [ALL] [Jun 16 18:30:17] webcontrol_parms 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] sql_log_picture on
[0:motion] [INF] [ALL] [Jun 16 18:30:17] sql_log_snapshot on
[0:motion] [INF] [ALL] [Jun 16 18:30:17] sql_log_movie off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] sql_log_timelapse off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] sql_query_start
[0:motion] [INF] [ALL] [Jun 16 18:30:17] sql_query_stop
[0:motion] [INF] [ALL] [Jun 16 18:30:17] sql_query
[0:motion] [INF] [ALL] [Jun 16 18:30:17] database_type
[0:motion] [INF] [ALL] [Jun 16 18:30:17] database_dbname
[0:motion] [INF] [ALL] [Jun 16 18:30:17] database_host localhost
[0:motion] [INF] [ALL] [Jun 16 18:30:17] database_user
[0:motion] [INF] [ALL] [Jun 16 18:30:17] database_password
[0:motion] [INF] [ALL] [Jun 16 18:30:17] database_port 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] database_busy_timeout 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_type 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_auto off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_port
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_motorx 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_motorx_reverse off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_motory 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_motory_reverse off
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_maxx 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_minx 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_maxy 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_miny 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_homex 128
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_homey 128
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_iomojo_id 0
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_step_angle_x 10
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_step_angle_y 10
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_move_wait 10
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_speed 255
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_stepsize 40
[0:motion] [INF] [ALL] [Jun 16 18:30:17] track_generic_move
[0:motion] [INF] [ALL] [Jun 16 18:30:17] camera
[0:motion] [INF] [ALL] [Jun 16 18:30:17] camera_dir
[0:motion] [NTC] [ENC] [Jun 16 18:30:17] ffmpeg_global_init: ffmpeg libavcodec version 56.60.100 libavformat version 56.40.101
[0:motion] [NTC] [ALL] [Jun 16 18:30:17] translate_init: Language: English
[0:motion] [NTC] [ALL] [Jun 16 18:30:17] motion_start_thread: Camera ID: 0 is from /usr/local/etc/motion/motion.conf
[0:motion] [NTC] [ALL] [Jun 16 18:30:17] motion_start_thread: Camera ID: 0 Camera Name: (null) Service: http:
[0:motion] [NTC] [ALL] [Jun 16 18:30:17] motion_start_thread: Stream port 8081
[0:motion] [NTC] [ALL] [Jun 16 18:30:17] main: Waiting for threads to finish, pid: 27265
[1:ml1] [NTC] [ALL] [Jun 16 18:30:17] motion_init: Camera 0 started: motion detection Enabled
[0:wu0] [NTC] [STR] [Jun 16 18:30:17] http_bindsock: listening on 127.0.0.1 port 8080
[1:ml1] [NTC] [VID] [Jun 16 18:30:17] vid_start: Opening Netcam
[0:wu0] [NTC] [STR] [Jun 16 18:30:17] webu_httpd_run: Started motion-httpd server on port 8080 (auth Disabled)
[1:ml1] [NTC] [NET] [Jun 16 18:30:17] netcam_start: Network Camera starting for camera ((null))
[1:ml1] [INF] [NET] [Jun 16 18:30:17] netcam_url_parse: Using port number 80
[1:ml1] [INF] [NET] [Jun 16 18:30:17] netcam_start: Netcam_http parameter 'off' converts to flags: HTTP/1.0: 1 HTTP/1.1: 0 Keep-Alive OFF.
[1:ml1] [INF] [NET] [Jun 16 18:30:17] netcam_start: now calling netcam_setup_html()
[1:ml1] [INF] [NET] [Jun 16 18:30:17] netcam_http_build_url: Netcam has flags: HTTP/1.0: 1 HTTP/1.1: 0 Keep-Alive OFF.
[1:ml1] [INF] [NET] [Jun 16 18:30:17] netcam_http_request: about to try to connect, time #0
[1:ml1] [INF] [NET] [Jun 16 18:30:17] netcam_connect: disconnecting netcam since keep-alive not set.
[1:ml1] [INF] [NET] [Jun 16 18:30:17] netcam_connect: with no keepalive, new socket created fd 6
[1:ml1] [INF] [NET] [Jun 16 18:30:17] netcam_connect: re-using socket 6 since keepalive is set.
[1:ml1] [NTC] [NET] [Jun 16 18:30:17] netcam_setup_html: connected, going on to read image.
[1:ml1] [NTC] [NET] [Jun 16 18:30:17] netcam_read_html_jpeg: disconnecting netcam since keep-alive not set.
[1:ml1] [NTC] [NET] [Jun 16 18:30:17] netcam_read_html_jpeg: leaving netcam connected.
[1:ml1] [CRT] [NET] [Jun 16 18:30:17] netcam_start: libjpeg decompression failure on first frame - giving up!
[1:ml1] [ERR] [VID] [Jun 16 18:30:17] vid_start: Netcam failed to open
[1:ml1] [WRN] [ALL] [Jun 16 18:30:17] motion_init: Could not fetch initial image from camera
[1:ml1] [WRN] [ALL] [Jun 16 18:30:17] motion_init: Motion continues using width and height from config file(s)
[1:ml1] [NTC] [ALL] [Jun 16 18:30:17] image_ring_resize: Resizing pre_capture buffer to 1 items
[1:ml1] [NTC] [STR] [Jun 16 18:30:17] http_bindsock: listening on 127.0.0.1 port 8081
[1:ml1] [NTC] [ALL] [Jun 16 18:30:17] motion_init: Started motion-stream server on port 8081 (auth Disabled)
[1:ml1] [WRN] [ALL] [Jun 16 18:30:20] mlp_retry: Retrying until successful connection with camera
[1:ml1] [NTC] [VID] [Jun 16 18:30:20] vid_start: Opening Netcam
[1:ml1] [NTC] [NET] [Jun 16 18:30:20] netcam_start: Network Camera starting for camera ((null))
[1:ml1] [INF] [NET] [Jun 16 18:30:20] netcam_url_parse: Using port number 80
[1:ml1] [INF] [NET] [Jun 16 18:30:20] netcam_start: Netcam_http parameter 'off' converts to flags: HTTP/1.0: 1 HTTP/1.1: 0 Keep-Alive OFF.
[1:ml1] [INF] [NET] [Jun 16 18:30:20] netcam_start: now calling netcam_setup_html()
[1:ml1] [INF] [NET] [Jun 16 18:30:20] netcam_http_build_url: Netcam has flags: HTTP/1.0: 1 HTTP/1.1: 0 Keep-Alive OFF.
[1:ml1] [INF] [NET] [Jun 16 18:30:20] netcam_http_request: about to try to connect, time #0
[1:ml1] [INF] [NET] [Jun 16 18:30:20] netcam_connect: disconnecting netcam since keep-alive not set.
[1:ml1] [INF] [NET] [Jun 16 18:30:20] netcam_connect: with no keepalive, new socket created fd 7
[1:ml1] [INF] [NET] [Jun 16 18:30:20] netcam_connect: re-using socket 7 since keepalive is set.
[1:ml1] [NTC] [NET] [Jun 16 18:30:20] netcam_setup_html: connected, going on to read image.
[1:ml1] [NTC] [NET] [Jun 16 18:30:20] netcam_read_html_jpeg: disconnecting netcam since keep-alive not set.
[1:ml1] [NTC] [NET] [Jun 16 18:30:20] netcam_read_html_jpeg: leaving netcam connected.
[1:ml1] [CRT] [NET] [Jun 16 18:30:20] netcam_start: libjpeg decompression failure on first frame - giving up!
[1:ml1] [ERR] [VID] [Jun 16 18:30:20] vid_start: Netcam failed to open
[0:wu0] [NTC] [STR] [Jun 16 18:30:28] webu_httpd_run: Finishing
[0:wu0] [NTC] [STR] [Jun 16 18:30:28] webu_httpd_run: Closing
[0:wu0] [NTC] [STR] [Jun 16 18:30:28] webu_main: Thread exit
[1:ml1] [NTC] [ALL] [Jun 16 18:30:28] mlp_actions: End of event 1
[1:ml1] [NTC] [ALL] [Jun 16 18:30:28] motion_loop: Thread exiting
[1:ml1] [NTC] [STR] [Jun 16 18:30:28] stream_stop: Closing motion-stream listen socket & active motion-stream sockets
[1:ml1] [NTC] [STR] [Jun 16 18:30:28] stream_stop: Closed motion-stream listen socket & active motion-stream sockets
[0:motion] [NTC] [ALL] [Jun 16 18:30:29] main: Threads finished
[0:motion] [NTC] [ALL] [Jun 16 18:30:29] main: Motion terminating
[0:motion] [NTC] [ALL] [Jun 16 18:30:29] motion_remove_pid: Closing logfile (/home/mainuser/motion/tmp/motion.log).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment