Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
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 motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. Re: I'm screwing something up, but what?.. (Tony Ross) ---------------------------------------------------------------------- Message: 1 Date: Wed, 22 Apr 2020 11:22:24 -0700 From: Tony Ross <ynots...@hotmail.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] I'm screwing something up, but what?.. Message-ID: <cy1pr07mb2730dc82f8fcec55880ffb36de...@cy1pr07mb2730.namprd07.prod.outlook.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" Star with an empty log file, then observe it after a restart. Any errors should be stated there, although you may wish to increase the log_level from 4 to 9 until you discover the problem: ???? > /home/me/motion_logs/motion_logs ???? kill -HUP $(pidof motion) On 4/22/20 4:35 AM, JB wrote: > On Tue, 21 Apr 2020 21:30:05 -0700 > Tony Ross<ynots...@hotmail.com> wrote: > >> Edit the last lines of motion.conf to specify each camera's >> configuration file, or the directory where the configuration files are held: >> ... >> ############################################################## >> # Camera config files - One for each camera. >> ############################################################## >> ; camera /etc/motion/camera1.conf >> ############################################################## >> # Directory to read '.conf' files for cameras. >> ############################################################## >> ; camera_dir /etc/motion/conf.d >> >> > Yes, I did that. I screwed up*again* by not putting the .conf file I use > for > two or more cameras. My apologies. > > Here is the motion.conf file I use for two or more cameras, and then > two .conf files for two different cameras. I have it set up to use > the P3304 (camera 1) and the Logitech USB (camera 4). > > -----motion.conf for two (or more) cameras: > > # /etc/motion/motion.conf > # > # This config file was generated by motion 4.3.1 > # at 2020-03-13T06:14:34 > > > ############################################################ > # System control configuration parameters > ############################################################ > > # Start in daemon (background) mode and release terminal. > daemon on > > # Start in Setup-Mode, daemon disabled. > setup_mode off > > # File to store the process ID. > ; pid_file value > > # File to write logs messages into. If not defined stderr and syslog is used. > log_file /home/me/motion_logs/motion_logs > > # Level of log messages [1..9] (EMG, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL). > log_level 4 > > # Filter to log messages by type (COR, STR, ENC, NET, DBL, EVT, TRK, VID, > ALL). > log_type ALL > > # Do not sound beeps when detecting motion > quiet on > > # Native language support. > native_language on > > # User defined name for the camera. > ; camera_name value > > # Numeric identifier for the camera. > #camera_id 0 > > # Target directory for pictures, snapshots and movies > target_dir /home/me/motion_cam > > # Video device (e.g. /dev/video0) to be used for capturing. > #videodevice /dev/video0 > > # Parameters to control video device. See motion_guide.html > # vid_control_params auto_brightness=0 > > # Preferred color palette to be used for the video device > v4l2_palette 17 > > # The input number to be used on the video device. > input -1 > > # The video norm to use for video capture and TV tuner cards. > norm 0 > > # The frequency to set the tuner to (kHz) for TV tuner cards > frequency 0 > > # The Motion method to use to change the brightness/exposure on video device. > auto_brightness 0 > > # Number of frames to capture in each roundrobin step > roundrobin_frames 1 > > # Number of frames to skip before each roundrobin step > roundrobin_skip 1 > > # Try to filter out noise generated by roundrobin > roundrobin_switchfilter off > > # The full URL of the network camera stream. > ; netcam_url value > > # Optional high resolution URL for rtsp/rtmp cameras only. > ; netcam_highres value > > # Username and password for network camera. Syntax username:password > ; netcam_userpass value > > # The method for keep-alive of network socket for mjpeg streams. > netcam_keepalive off > > # The URL to use for a netcam proxy server. > ; netcam_proxy value > > # Use less strict jpeg checks for network cameras. > netcam_tolerant_check off > > # Use TCP transport for RTSP/RTMP connections to camera. > netcam_use_tcp on > > # Name of mmal camera (e.g. vc.ril.camera for pi camera). > ; mmalcam_name value > > # Camera control parameters (see raspivid/raspistill tool documentation) > ; mmalcam_control_params value > > ############################################################ > # Image Processing configuration parameters > ############################################################ > > # Image width in pixels. > width 800 > > # Image height in pixels. > height 600 > > # Maximum number of frames to be captured per second. > framerate 30 > > # Minimum time in seconds between capturing picture frames from the camera. > minimum_frame_time 0 > > # Number of degrees to rotate image. > rotate 0 > > # Flip image over a given axis > flip_axis none > > # Draw a locate box around the moving object. > locate_motion_mode off > > # Set the look and style of the locate box. > locate_motion_style box > > # Text to be overlayed in the lower left corner of images > ; text_left value > > # Text to be overlayed in the lower right corner of images. > #text_right %d %^b %y\n%T-%q > > # Overlay number of changed pixels in upper right corner of images. > text_changes off > > # Scale factor for text overlayed on images. > text_scale 1 > > # The special event conversion specifier %C > text_event %d %^b %y\n%H%M%S > > ############################################################ > # Motion detection configuration parameters > ############################################################ > > # Always save pictures and movies even if there was no motion. > emulate_motion off > > # Threshold for number of changed pixels that triggers motion. > threshold 1500 > > # The maximum threshold for number of changed pixels that triggers motion. > threshold_maximum 0 > > # Enable tuning of the threshold down if possible. > threshold_tune off > > # Noise threshold for the motion detection. > noise_level 32 > > # Automatically tune the noise threshold > noise_tune on > > # Despeckle the image using (E/e)rode or (D/d)ilate or (l)abel. > despeckle_filter EedDl > > # Full path and file name for motion detection mask PGM file. > #mask_file /etc/motion/mask.pgm > > # Full path and file name for privacy mask PGM file. > ; mask_privacy value > > # The value defining how slow or fast the smart motion mask created and used. > smart_mask_speed 0 > > # Percentage of image that triggers a lightswitch detected. > lightswitch_percent 0 > > # When lightswitch is detected, ignore this many frames > lightswitch_frames 5 > > # Number of images that must contain motion to trigger an event. > minimum_motion_frames 1 > > # Gap in seconds of no motion detected that triggers the end of an event. > event_gap 60 > > # The number of pre-captured (buffered) pictures from before motion. > pre_capture 0 > > # Number of frames to capture after motion is no longer detected. > post_capture 30 > > ############################################################ > # Picture output configuration parameters > ############################################################ > > # Output pictures when motion is detected > picture_output off > > # Output pictures with only the pixels moving object (ghost images) > picture_output_motion off > > # Format for the output pictures. > picture_type jpeg > > # The quality (in percent) to be used in the picture compression > picture_quality 100 > > # Text to include in a JPEG EXIF comment > ; picture_exif value > > # File name(without extension) for pictures relative to target directory > picture_filename %d %^b %y--%T-%q > > ############################################################ > # Snapshot output configuration parameters > ############################################################ > > # Make automated snapshot every N seconds > snapshot_interval 0 > > # File name(without extension) for snapshots relative to target directory > snapshot_filename %d %^b %y--%T-snapshot > > ############################################################ > # Movie output configuration parameters > ############################################################ > > # Create movies of motion events. > movie_output on > > # Create movies of moving pixels of motion events. > movie_output_motion off > > # Maximum length of movie in seconds. > movie_max_time 120 > > # The fixed bitrate to be used by the movie encoder. Ignore quality setting > ; movie_bps 400000 > > # The encoding quality of the movie. (0=use bitrate. 1=worst quality, > 100=best) > movie_quality 90 > > # Container/Codec to used for the movie. See motion_guide.html > movie_codec mpeg4 > > # Duplicate frames to achieve "framerate" fps. > movie_duplicate_frames off > > # Pass through from the camera to the movie without decode/encoding. > movie_passthrough off > > # File name(without extension) for movies relative to target directory > movie_filename %d %^b %y--%T-%q > > # Use pipe and external encoder for creating movies. > movie_extpipe_use off > > # Full path and options for external encoder of movies from raw images > ; movie_extpipe value > > ############################################################ > # Timelapse output configuration parameters > ############################################################ > > # Interval in seconds between timelapse captures. > timelapse_interval 0 > > # Timelapse file rollover mode. See motion_guide.html for options and uses. > timelapse_mode daily > > # Frame rate for timelapse playback > timelapse_fps 30 > > # Container/Codec for timelapse movie. > timelapse_codec mpg > > # File name(without extension) for timelapse movies relative to target > directory > timelapse_filename %d %b %y-timelapse > > ############################################################ > # Loopback pipe configuration parameters > ############################################################ > > # v4l2 loopback device to receive normal images > ; video_pipe value > > # v4l2 loopback device to receive motion images > ; video_pipe_motion value > > ############################################################ > # Webcontrol configuration parameters > ############################################################ > > # Port number used for the webcontrol. > webcontrol_port 8080 > > # Enable IPv6 addresses. > webcontrol_ipv6 off > > # Restrict webcontrol connections to the localhost. > webcontrol_localhost on > > # Type of configuration options to allow via the webcontrol. > webcontrol_parms 0 > > # Method that webcontrol should use for interface with user. > webcontrol_interface 0 > > # The authentication method for the webcontrol > webcontrol_auth_method 0 > > # Authentication string for the webcontrol. Syntax username:password > ; webcontrol_authentication value > > # Use ssl / tls for the webcontrol > webcontrol_tls off > > # Full path and file name of the certificate file for tls > ; webcontrol_cert value > > # Full path and file name of the key file for tls > ; webcontrol_key value > > # The cross-origin resource sharing (CORS) header for webcontrol > ; webcontrol_cors_header value > > ############################################################ > # Live stream configuration parameters > ############################################################ > > # The port number for the live stream. > #stream_port 8081 > > # Restrict stream connections to the localhost. > stream_localhost on > > # Authentication method for live stream. > stream_auth_method 0 > > # The authentication string for the stream. Syntax username:password > ; stream_authentication value > > # Use ssl / tls for stream. > stream_tls off > > # The cross-origin resource sharing (CORS) header for the stream > ; stream_cors_header value > > # Percentage to scale the stream image on the webcontrol. > stream_preview_scale 50 > > # Have the stream image start on a new line of the webcontrol > stream_preview_newline off > > # Method for showing stream on webcontrol. > stream_preview_method 0 > > # Quality of the jpeg images produced for stream. > stream_quality 50 > > # Provide the stream images in black and white > stream_grey off > > # Output frames at 1 fps when no motion is detected. > stream_motion off > > # Maximum framerate of images provided for stream > stream_maxrate 30 > > # Limit the number of images per connection > stream_limit 0 > > ############################################################## > # Camera config files - One for each camera. > ############################################################## > ; camera /etc/motion/camera1.conf > camera /etc/motion/camera1.conf > ; camera /etc/motion/camera2.conf > camera /etc/motion/camera4.conf > ############################################################## > # Directory to read '.conf' files for cameras. > ############################################################## > ; camera_dir/etc/motion/ > > > -----camera1.conf: > > # /etc/motion/camera1.conf > # > # This config file was generated by motion 4.3.1 > > ########################################################### > # Configuration options specific to camera 1 > ############################################################ > # User defined name for the camera. > camera_name P3304 > > # Numeric identifier for the camera. > camera_id 101 > > # The full URL of the network camera stream. > netcam_urlrtsp://192.168.x.x/axis-media/media.amp > > # Username and password for network camera. Syntax username:password > netcam_userpass yeah_right:Moo? > > # Image width in pixels. > width 800 > > # Image height in pixels. > height 600 > > # Text to be overlayed in the lower left corner of images > text_left P3304 > > # Text to be overlayed in the lower right corner of images. > text_right P3304-%d %^b %y\n%T-%q > > # File name(without extension) for movies relative to target directory > movie_filename P3304_%d %^b %y--%T-%q > > # The port number for the live stream. > stream_port 8081 > > > -----camera4.conf: > > # /etc/motion/camera4.conf > # > # This config file was generated by motion 4.3.1 > > ########################################################### > # Configuration options specific to camera 4 > ############################################################ > # User defined name for the camera. > camera_name Logitech > > # Numeric identifier for the camera. > camera_id 104 > > # Video device (e.g. /dev/video0) to be used for capturing. > videodevice /dev/video0 > > # Image width in pixels. > width 800 > > # Image height in pixels. > height 600 > > # Text to be overlayed in the lower left corner of images > text_left LOGITECH > > # Text to be overlayed in the lower right corner of images. > text_right LOGITECH-%d %^b %y\n%T-%q > > # File name(without extension) for movies relative to target directory > movie_filename LOGITECH_%d %^b %y--%T-%q > > # The port number for the live stream. > stream_port 8083 > > --------------------------------------------- > > Hopefully those will help someone see what I've messed up. > > JB > > > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------ Subject: Digest Footer _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user ------------------------------ End of Motion-user Digest, Vol 166, Issue 23 ********************************************