Closed Mr-DaveDev closed 5 years ago
May want to also review the guide which I will concede may need additional clarity.
If the same port is specified in both the motion.conf file as well as the camera.conf file, then the "rule" is that the method of the motion.conf file wins and streams are provided as {ip}:{port}/{camid}
If two different valid port numbers are provided, then either can be used. If it is only desired to have the one from the camera file used, specify a port number of zero in the motion.conf file.
[0:motion] [NTC] [ALL] [Aug 18 04:52:08] motion_startup: Motion 4.2.2 Started
[0:motion] [NTC] [ALL] [Aug 18 04:52:08] motion_startup: Using log type (ALL) log level (ALL)
[0:motion] [INF] [ALL] [Aug 18 04:52:08] conf_output_parms: Writing configuration parameters from all files (2):
[0:motion] [INF] [ALL] [Aug 18 04:52:08] Thread 0 - Config file: /etc/motion/motion.conf
[0:motion] [INF] [ALL] [Aug 18 04:52:08] daemon off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] setup_mode off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] pid_file /var/run/motion/motion.pid
[0:motion] [INF] [ALL] [Aug 18 04:52:08] log_file /home/devd/motion.log
[0:motion] [INF] [ALL] [Aug 18 04:52:08] log_level 9
[0:motion] [INF] [ALL] [Aug 18 04:52:08] log_type all
[0:motion] [INF] [ALL] [Aug 18 04:52:08] quiet on
[0:motion] [INF] [ALL] [Aug 18 04:52:08] native_language on
[0:motion] [INF] [ALL] [Aug 18 04:52:08] camera_name
[0:motion] [INF] [ALL] [Aug 18 04:52:08] camera_id 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] target_dir /var/lib/motion
[0:motion] [INF] [ALL] [Aug 18 04:52:08] videodevice /dev/video0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] vid_control_params
[0:motion] [INF] [ALL] [Aug 18 04:52:08] v4l2_palette 15
[0:motion] [INF] [ALL] [Aug 18 04:52:08] input -1
[0:motion] [INF] [ALL] [Aug 18 04:52:08] norm 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] frequency 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] auto_brightness 1
[0:motion] [INF] [ALL] [Aug 18 04:52:08] tunerdevice
[0:motion] [INF] [ALL] [Aug 18 04:52:08] roundrobin_frames 1
[0:motion] [INF] [ALL] [Aug 18 04:52:08] roundrobin_skip 1
[0:motion] [INF] [ALL] [Aug 18 04:52:08] roundrobin_switchfilter off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] netcam_url
[0:motion] [INF] [ALL] [Aug 18 04:52:08] netcam_highres
[0:motion] [INF] [ALL] [Aug 18 04:52:08] netcam_userpass
[0:motion] [INF] [ALL] [Aug 18 04:52:08] netcam_keepalive on
[0:motion] [INF] [ALL] [Aug 18 04:52:08] netcam_proxy
[0:motion] [INF] [ALL] [Aug 18 04:52:08] netcam_tolerant_check off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] netcam_use_tcp on
[0:motion] [INF] [ALL] [Aug 18 04:52:08] mmalcam_name
[0:motion] [INF] [ALL] [Aug 18 04:52:08] mmalcam_control_params
[0:motion] [INF] [ALL] [Aug 18 04:52:08] width 1280
[0:motion] [INF] [ALL] [Aug 18 04:52:08] height 720
[0:motion] [INF] [ALL] [Aug 18 04:52:08] framerate 25
[0:motion] [INF] [ALL] [Aug 18 04:52:08] minimum_frame_time 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] rotate 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] flip_axis none
[0:motion] [INF] [ALL] [Aug 18 04:52:08] locate_motion_mode off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] locate_motion_style box
[0:motion] [INF] [ALL] [Aug 18 04:52:08] text_left CAM %t
[0:motion] [INF] [ALL] [Aug 18 04:52:08] text_right %Y-%m-%d\n%T-%q
[0:motion] [INF] [ALL] [Aug 18 04:52:08] text_changes off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] text_scale 1
[0:motion] [INF] [ALL] [Aug 18 04:52:08] text_event %Y%m%d%H%M%S
[0:motion] [INF] [ALL] [Aug 18 04:52:08] emulate_motion off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] threshold 100
[0:motion] [INF] [ALL] [Aug 18 04:52:08] threshold_maximum 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] threshold_tune on
[0:motion] [INF] [ALL] [Aug 18 04:52:08] noise_level 32
[0:motion] [INF] [ALL] [Aug 18 04:52:08] noise_tune on
[0:motion] [INF] [ALL] [Aug 18 04:52:08] despeckle_filter EedDl
[0:motion] [INF] [ALL] [Aug 18 04:52:08] area_detect
[0:motion] [INF] [ALL] [Aug 18 04:52:08] mask_file
[0:motion] [INF] [ALL] [Aug 18 04:52:08] mask_privacy
[0:motion] [INF] [ALL] [Aug 18 04:52:08] smart_mask_speed 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] lightswitch_percent 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] lightswitch_frames 5
[0:motion] [INF] [ALL] [Aug 18 04:52:08] minimum_motion_frames 1
[0:motion] [INF] [ALL] [Aug 18 04:52:08] event_gap 60
[0:motion] [INF] [ALL] [Aug 18 04:52:08] pre_capture 5
[0:motion] [INF] [ALL] [Aug 18 04:52:08] post_capture 5
[0:motion] [INF] [ALL] [Aug 18 04:52:08] on_event_start
[0:motion] [INF] [ALL] [Aug 18 04:52:08] on_event_end
[0:motion] [INF] [ALL] [Aug 18 04:52:08] on_picture_save
[0:motion] [INF] [ALL] [Aug 18 04:52:08] on_area_detected
[0:motion] [INF] [ALL] [Aug 18 04:52:08] on_motion_detected
[0:motion] [INF] [ALL] [Aug 18 04:52:08] on_movie_start
[0:motion] [INF] [ALL] [Aug 18 04:52:08] on_movie_end
[0:motion] [INF] [ALL] [Aug 18 04:52:08] on_camera_lost
[0:motion] [INF] [ALL] [Aug 18 04:52:08] on_camera_found
[0:motion] [INF] [ALL] [Aug 18 04:52:08] picture_output off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] picture_output_motion off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] picture_type jpeg
[0:motion] [INF] [ALL] [Aug 18 04:52:08] picture_quality 75
[0:motion] [INF] [ALL] [Aug 18 04:52:08] picture_exif
[0:motion] [INF] [ALL] [Aug 18 04:52:08] picture_filename %v-%Y%m%d%H%M%S-%q
[0:motion] [INF] [ALL] [Aug 18 04:52:08] snapshot_interval 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] snapshot_filename %v-%Y%m%d%H%M%S-snapshot
[0:motion] [INF] [ALL] [Aug 18 04:52:08] movie_output on
[0:motion] [INF] [ALL] [Aug 18 04:52:08] movie_output_motion off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] movie_max_time 1800
[0:motion] [INF] [ALL] [Aug 18 04:52:08] movie_bps 500000
[0:motion] [INF] [ALL] [Aug 18 04:52:08] movie_quality 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] movie_codec mp4
[0:motion] [INF] [ALL] [Aug 18 04:52:08] movie_duplicate_frames off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] movie_passthrough off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] movie_filename %v-%Y%m%d%H%M%S
[0:motion] [INF] [ALL] [Aug 18 04:52:08] movie_extpipe_use off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] movie_extpipe
[0:motion] [INF] [ALL] [Aug 18 04:52:08] timelapse_interval 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] timelapse_mode daily
[0:motion] [INF] [ALL] [Aug 18 04:52:08] timelapse_fps 30
[0:motion] [INF] [ALL] [Aug 18 04:52:08] timelapse_codec mpg
[0:motion] [INF] [ALL] [Aug 18 04:52:08] timelapse_filename %Y%m%d-timelapse
[0:motion] [INF] [ALL] [Aug 18 04:52:08] video_pipe
[0:motion] [INF] [ALL] [Aug 18 04:52:08] video_pipe_motion
[0:motion] [INF] [ALL] [Aug 18 04:52:08] webcontrol_port 8080
[0:motion] [INF] [ALL] [Aug 18 04:52:08] webcontrol_ipv6 off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] webcontrol_localhost off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] webcontrol_parms 2
[0:motion] [INF] [ALL] [Aug 18 04:52:08] webcontrol_interface 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] webcontrol_auth_method 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] webcontrol_authentication
[0:motion] [INF] [ALL] [Aug 18 04:52:08] webcontrol_tls off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] webcontrol_cert
[0:motion] [INF] [ALL] [Aug 18 04:52:08] webcontrol_key
[0:motion] [INF] [ALL] [Aug 18 04:52:08] webcontrol_cors_header
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_port 8081
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_localhost off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_auth_method 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_authentication
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_tls off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_cors_header
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_preview_scale 25
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_preview_newline off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_preview_method 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_quality 70
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_grey off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_motion on
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_maxrate 10
[0:motion] [INF] [ALL] [Aug 18 04:52:08] stream_limit 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] database_type
[0:motion] [INF] [ALL] [Aug 18 04:52:08] database_dbname
[0:motion] [INF] [ALL] [Aug 18 04:52:08] database_host localhost
[0:motion] [INF] [ALL] [Aug 18 04:52:08] database_port 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] database_user
[0:motion] [INF] [ALL] [Aug 18 04:52:08] database_password
[0:motion] [INF] [ALL] [Aug 18 04:52:08] database_busy_timeout 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] sql_log_picture off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] sql_log_snapshot off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] sql_log_movie off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] sql_log_timelapse off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] sql_query_start
[0:motion] [INF] [ALL] [Aug 18 04:52:08] sql_query_stop
[0:motion] [INF] [ALL] [Aug 18 04:52:08] sql_query
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_type 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_auto off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_port
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_motorx 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_motorx_reverse off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_motory 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_motory_reverse off
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_maxx 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_minx 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_maxy 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_miny 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_homex 128
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_homey 128
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_iomojo_id 0
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_step_angle_x 10
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_step_angle_y 10
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_move_wait 10
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_speed 255
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_stepsize 40
[0:motion] [INF] [ALL] [Aug 18 04:52:08] track_generic_move
[0:motion] [INF] [ALL] [Aug 18 04:52:08] camera
[0:motion] [INF] [ALL] [Aug 18 04:52:08] camera_dir
[0:motion] [INF] [ALL] [Aug 18 04:52:08] Thread 1 - Config file: /etc/motion/camera1.conf
[0:motion] [INF] [ALL] [Aug 18 04:52:08] log_file /var/log/motion/motion.log
[0:motion] [INF] [ALL] [Aug 18 04:52:08] log_level 7
[0:motion] [INF] [ALL] [Aug 18 04:52:08] camera_id 1
[0:motion] [INF] [ALL] [Aug 18 04:52:08] netcam_url
[1:ml1] [DBG] [NET] [Aug 18 04:52:12] netcam_check_buffsize: expanding buffer from [0/0] to [0/1384448] bytes. [1:ml1] [INF] [ENC] Above message repeats 1 times [1:ml1] [INF] [ENC] [Aug 18 04:52:12] ffmpeg_avcodec_log: deblocking_filter_idc 27 out of range [1:ml1] [INF] [ENC] [Aug 18 04:52:12] ffmpeg_avcodec_log: decode_slice_header error [1:ml1] [INF] [ENC] [Aug 18 04:52:12] ffmpeg_avcodec_log: no frame! [1:ml1] [INF] [NET] [Aug 18 04:52:12] netcam_rtsp_decode_video: Ignoring packet with invalid data
[1:ml1] [DBG] [NET] [Aug 18 04:52:12] netcam_check_buffsize: expanding buffer from [1382400/1384448] to [1382400/2764800] bytes. [1:ml1] [NTC] [NET] [Aug 18 04:52:12] netcam_rtsp_connect: Normal resolution: Camera ((null)) connected [1:ml1] [DBG] [NET] [Aug 18 04:52:12] netcam_check_buffsize: expanding buffer from [1382400/1384448] to [1382400/2764800] bytes. [1:ml1] [NTC] [ALL] [Aug 18 04:52:12] image_ring_resize: Resizing pre_capture buffer to 1 items [2:nc2] [NTC] [NET] [Aug 18 04:52:12] netcam_rtsp_handler: Normal resolution: Camera handler thread [2] started [2:nc2] [INF] [NET] [Aug 18 04:52:12] netcam_rtsp_open_context: Normal resolution: Opened camera((null)) [2:nc2] [INF] [ENC] [Aug 18 04:52:12] ffmpeg_avcodec_log: deblocking_filter_idc 27 out of range [2:nc2] [INF] [ENC] [Aug 18 04:52:12] ffmpeg_avcodec_log: decode_slice_header error [2:nc2] [INF] [ENC] [Aug 18 04:52:12] ffmpeg_avcodec_log: no frame! [2:nc2] [INF] [NET] [Aug 18 04:52:15] netcam_rtsp_decode_video: Ignoring packet with invalid data
[2:nc2] [INF] [NET] [Aug 18 04:52:15] netcam_rtsp_decode_video: Ignoring packet with invalid data [2:nc2] [NTC] [NET] [Aug 18 04:52:15] netcam_rtsp_connect: Normal resolution: Camera ((null)) connected [1:ml1] [NTC] [ALL] [Aug 18 04:52:16] image_ring_resize: Resizing pre_capture buffer to 6 items [1:ml1] [INF] [EVT] [Aug 18 04:52:34] event_new_video: Source FPS 10 [1:ml1] [INF] [ENC] [Aug 18 04:52:34] ffmpeg_set_quality: libx264 codec vbr/crf/bit_rate: 28 [1:ml1] [NTC] [EVT] [Aug 18 04:52:34] event_newfile: File of type 8 saved to: /var/lib/motion/cam1-01-20190818045234.mp4 [1:ml1] [NTC] [ALL] [Aug 18 04:52:34] motion_detected: Motion detected - starting event 1 [0:cn0] [DBG] [STR] [Aug 18 04:52:55] webu_parseurl: Sent url: / [0:cn0] [DBG] [STR] [Aug 18 04:52:55] webu_parseurl: Decoded url: / [0:cn0] [DBG] [STR] [Aug 18 04:52:55] webu_parseurl: Sent url: / [0:cn0] [DBG] [STR] [Aug 18 04:52:55] webu_parseurl: Decoded url: / [0:cn0] [DBG] [STR] [Aug 18 04:53:22] webu_parseurl: Sent url: /1 [0:cn0] [DBG] [STR] [Aug 18 04:53:22] webu_parseurl: Decoded url: /1 [0:cn0] [DBG] [STR] [Aug 18 04:53:22] webu_parseurl: camid: >1< cmd1: >< cmd2: >< parm1:>< val1:>< parm2:>< val2:>< [0:st0] [INF] [ALL] [Aug 18 04:53:22] webu_clientip: Connection from: 127.0.0.1 [1:ml1] [NTC] [ALL] [Aug 18 04:56:31] mlp_actions: End of event 1
You're right: webu_start_strm: Starting all camera streams on port 8081 Very confused by default for old motion users...
Per comment in #968 opening issue related to default streaming url when port is specified in camera configuration file.
@denisio Please post full log at
log_level 7
from start through a connection attempt tolocalhost:8081
. We need to see all the configuration parameters as well as what is reported when the connection attempt is made. (Mask or delete as appropriate the IP address that will be reported when you connect to the camera.)