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. wayward Foscam 9800 (Richard Bown)
   2. Re: feature request (Stewart Andreason)


----------------------------------------------------------------------

Message: 1
Date: Thu, 4 Jan 2024 15:09:27 +0000
From: Richard Bown <rich...@g8jvm.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: [Motion-user] wayward Foscam 9800
Message-ID: <154787c6-b792-4dd4-8774-f4e7db56e...@g8jvm.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi

I have several Foscam FI9800 , that run without a problem,


But one is misbehaving

log extract

[0:motion] [NTC] [ALL] [Jan 04 14:53:41] main: Motion thread 1 restart
[0:motion] [NTC] [ALL] [Jan 04 14:53:41] motion_start_thread: Camera ID: 
106 is from /etc/motion/camera6.conf
[0:motion] [NTC] [ALL] [Jan 04 14:53:41] motion_start_thread: Camera ID: 
106 Camera Name: MyCam6 Service: rtsp:
[1:ml1:MyCam6] [NTC] [ALL] [Jan 04 14:53:41] motion_init: Camera 106 
started: motion detection Enabled
[1:ml1:MyCam6] [NTC] [VID] [Jan 04 14:53:41] vid_start: Opening Netcam RTSP
[1:ml1:MyCam6] [INF] [NET] [Jan 04 14:53:41] netcam_rtsp_set_parms: 
Setting up Normal resolution stream.
[1:ml1:MyCam6] [INF] [NET] [Jan 04 14:53:41] netcam_rtsp_set_path: 
Setting up rtsp via ffmpeg netcam
[1:ml1:MyCam6] [INF] [NET] [Jan 04 14:53:41] netcam_rtsp_set_rtsp: 
Normal resolution: Setting rtsp transport to tcp
[1:ml1:MyCam6] [INF] [ENC] [Jan 04 14:53:42] ffmpeg_avcodec_log: Missing 
PPS in sprop-parameter-sets, ignoring
[1:ml1:MyCam6] [INF] [NET] [Jan 04 14:53:42] netcam_rtsp_open_context: 
Normal resolution: Opened camera(MyCam6)
[1:ml1:MyCam6] [INF] [NET] [Jan 04 14:54:02] netcam_rtsp_interrupt: 
Normal resolution: Camera (MyCam6) timed out
[1:ml1:MyCam6] [INF] [ENC] [Jan 04 14:54:02] ffmpeg_avcodec_log: Could 
not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 
'probesize' (5000000) options
[1:ml1:MyCam6] [ERR] [NET] [Jan 04 14:54:02] netcam_rtsp_open_context: 
Normal resolution: Unable to find stream info: Success
[1:ml1:MyCam6] [INF] [NET] [Jan 04 14:54:02] netcam_rtsp_interrupt: 
Normal resolution: Camera (MyCam6) timed out
[1:ml1:MyCam6] [INF] [NET] [Jan 04 14:54:02] netcam_rtsp_cleanup: Normal 
resolution: Shutting down network camera.
[1:ml1:MyCam6] [NTC] [NET] [Jan 04 14:54:02] netcam_rtsp_cleanup: Normal 
resolution: Shut down complete.
[1:ml1:MyCam6] [ERR] [VID] [Jan 04 14:54:02] vid_start: Netcam RTSP 
failed to open
[1:ml1:MyCam6] [WRN] [ALL] [Jan 04 14:54:02] motion_init: Could not 
fetch initial image from camera
[1:ml1:MyCam6] [WRN] [ALL] [Jan 04 14:54:02] motion_init: Motion 
continues using width and height from config file(s)
[1:ml1:MyCam6] [NTC] [ALL] [Jan 04 14:54:02] image_ring_resize: Resizing 
pre_capture buffer to 1 items
[1:ml1:MyCam6] [NTC] [ALL] [Jan 04 14:54:02] image_ring_resize: Resizing 
pre_capture buffer to 15 items
[1:ml1:MyCam6] [WRN] [ALL] [Jan 04 14:54:10] mlp_retry: Retrying until 
successful connection with camera
[1:ml1:MyCam6] [NTC] [VID] [Jan 04 14:54:10] vid_start: Opening Netcam RTSP
[1:ml1:MyCam6] [INF] [NET] [Jan 04 14:54:10] netcam_rtsp_set_parms: 
Setting up Normal resolution stream.
[1:ml1:MyCam6] [INF] [NET] [Jan 04 14:54:10] netcam_rtsp_set_path: 
Setting up rtsp via ffmpeg netcam
[1:ml1:MyCam6] [INF] [NET] [Jan 04 14:54:10] netcam_rtsp_set_rtsp: 
Normal resolution: Setting rtsp transport to tcp
[1:ml1:MyCam6] [INF] [ENC] [Jan 04 14:54:10] ffmpeg_avcodec_log: Missing 
PPS in sprop-parameter-sets, ignoring
[1:ml1:MyCam6] [INF] [NET] [Jan 04 14:54:10] netcam_rtsp_open_context: 
Normal resolution: Opened camera(MyCam6)


Camera6.conf:-

camera_name MyCam6

camera_id 106

# URL to use if you are using a network camera, size will be 
autodetected (incl http:// ftp:// mjpg:// rstp:// or file:///)
# Must be a URL that returns single jpeg pictures or a raw mjpeg stream. 
Default: Not defined
netcam_url rtsp://192.168.1.67:554/videoMain

# Username and password for network camera (only if required). Default: 
not defined
# Syntax is user:password

netcam_userpass xxxxxxx:xxxxxxxx

# Image width in pixels.
width 1280

# Image height in pixels.
height 720

analyzeduration 10???? <? this I'm not sure of , logfile suggested it
probesize 5000000????? <? also not sure here , not used on any other scripts

# Threshold for number of changed pixels in an image that
# triggers motion detection (default: 1500)
threshold 2500

# Automatically tune the threshold down if possible (default: off)
threshold_tune off

# Noise threshold for the motion detection (default: 32)
noise_level 32

# Automatically tune the noise threshold (default: on)
noise_tune on

despeckle_filter EedDl

# Ignore sudden massive light intensity changes given as a percentage of 
the picture
# area that changed intensity. Valid range: 0 - 100 , default: 0 = disabled
#lightswitch 50
;lightswitch_percent 10



minimum_motion_frames 10
movie_filename CAM06-%t_-%H%M-%d%m%Y


pre_capture 5

# Number of frames to capture after motion is no longer detected 
(default: 0)
post_capture 20

# Gap in seconds of no motion detected that triggers the end of an event.
event_gap 3

# Target base directory for pictures and films
# Recommended to use absolute path. (Default: current working directory)
target_dir /home/odroid/Pictures/motion6/
# The mini-http server listens to this port for requests (default: 0 = 
disabled)
stream_port 8086

All the other Foscam cams are OK, this one plays up, any suggestions 
apart from get another camera? please

-- 
  Best wishes /73
  Richard Bown
  
  Email : rich...@g8jvm.com

  HTTP  :  https://www.g8jvm.com
  
  ##############################################################################

  Ham Call: G8JVM . QRV: HF + 50-432 MHz + Microwave
  Maidenhead QRA: IO82SP38, LAT. 52.6620 N LONG. 2.4696 W
  VHF: 6mtrs 200W, 4mtrs 150W, 2mtrs 300W, 70cms 200W,
  Microwave: 1296MHz 110W, 2320MHz 100W, 3400MHz 15W, 5760MHz 10W & 10368MHz 5W
  OS: Linux Mint 20.1, on a Dell Inspiron 3580 laptop
  ##############################################################################




------------------------------

Message: 2
Date: Thu, 4 Jan 2024 09:17:45 -0800
From: Stewart Andreason <sandrea...@gmail.com>
To: Motion-user <Motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] feature request
Message-ID: <8e0844a0-cbf1-4f21-bbd2-9bef3b493...@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi,

As much as I would like to exclude rain, snow, and fog, that would 
realistically require a lot more CPU power to identify patterns. 
Vertical rain is a pattern, and usually the wind is blowing too, so not 
always vertical.

Right now, those are indeed valid motion, and the only solution I have 
is to set:

minimum_motion_frames 4

to exclude the fast moving blobs, and

pre_capture 4

to keep the initial trigger from being lost. On the pi4 this only loses 
1 frame which is acceptable. Too many more in the pre-buffer seems to 
take too long to start the movie output file.

Also to avoid gigabytes of snow (day-color and night-IR), I may have to 
set either a much higher threshold, or as last resort set:

timelapse_interval 6

or 10, and pause the motion detection until morning or when the weather 
improves.

Another idea (depending on your location and needs) is to turn off the 
IR light, and then headlights-taillights in color will be the only 
trigger at night.

After learning the downsides of motion detection, I can say prowlers, 
deer, skunks and coyotes are free to move undetected around the 
neighborhood during snow and rain events. :-D

Stewart


On 1/1/24 14:47, Richard Bown wrote:
> When night vision is used IR, rain drops reflect the IR and appear as 
> streaks from top to bottom
>
> Or has someone else found a solution to reflection from rain drops ??
>



------------------------------



------------------------------

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 209, Issue 3
*******************************************

Reply via email to