switchfilter still not working in 3.2.4.snap2
Question
Hello Kenneth
I tried 3.2.4.snap2 as you recommended but the problem still remains. With switchfilter on no one motion is detected.
motion --version
motion: invalid option -- -
motion Version 3.2.4, Copyright 2000-2005 Jeroen Vreeken/Folkert van Heusden/Kenneth Lavrsen
usage: motion [options]
Possible options:
-n Run in non-daemon mode.
-s Run in setup mode.
-c config Full path and filename of config file.
-d Debug mode.
-h Show this screen.
Motion is configured using a config file only. If none is supplied,
it will read motion.conf from current directory, ~/.motion or /usr/local/etc.
bash-2.05b$ motion -n
[0] Processing thread 0 - config file /usr/local/etc/motion.conf
[0] Unknown config option "debug_parameter"
[0] Processing config file /usr/local/etc/thread1.conf
[0] Processing config file /usr/local/etc/thread2.conf
[0] Processing config file /usr/local/etc/thread3.conf
[0] Thread is from /usr/local/etc/thread1.conf
[1] Thread started
[0] Thread is from /usr/local/etc/thread2.conf
[2] Thread started
[0] Thread is from /usr/local/etc/thread3.conf
[3] Thread started
[0] motion-httpd/3.2.4 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Started stream webcam server in port 15001
[2] Started stream webcam server in port 15002
[3] Started stream webcam server in port 15003
part of motion.conf
############################################################
# Round Robin (multiple inputs on same video device name)
############################################################
#Number of frames to capture in each roundrobin step (default: 1)
roundrobin_frames 1
#Number of frames to skip before each roundrobin step (default: 1)
# I tried with this set to 1
roundrobin_skip 2
#Threshold for number of changed pixels in an image that
#triggers motion detection (default: 1500)
threshold 200
#Automatically tune the threshold down if possible (default: on)
threshold_tune on
#Noise threshold for the motion detection (default: 32)
noise_level 32
#Automatically tune the noise threshold (default: on)
noise_tune on
#Enables motion to adjust its detection/noise level for very dark frames
#Don't use this with noise_tune on. (default: off)
night_compensate off
#Despeckle motion image using (e)rode or (d)ilate or (l)abel (Default: not defined)
#Recommended value is EedDl. Any combination (and number of) of E, e, d, and D is valid.
#(l)abeling must only be used once and as the last letter.
#Comment out to disable
despeckle EedDl
#PGM file to use as a sensitivity mask.
#Full path name to. (Default: not defined)
; mask_file value
#Dynamically create a mask file during operation (default: 0)
#Adjust speed of mask changes from 0 (off) to 10 (fast)
smart_mask_speed 0
#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
#Picture frames must contain motion at least the specified number of frames
#in a row before they are detected as true motion. At the default of 1, all
#motion is detected. Valid range: 1 to thousands, recommended 1-10
minimum_motion_frames 1#was detected that will be output at motion detection (default: 0)
pre_capture 0
#Number of frames to capture after motion is no longer detected (default: 0)
post_capture 3
#Minimum gap between two events (seconds) (default: 60)
#An event is defined as a series of motion images taken within a short timeframe.
gap 60
#Minimum gap in seconds between the storing pictures while detecting motion.
#Default: 0 = as fast as possible (given by the camera framerate)
minimum_gap 0
#Maximum length in seconds of an mpeg movie
#When value is exceeded a new mpeg file is created. (Default: 0 = infinite)
max_mpeg_time 0
#Number of frames per second to capture when not detecting
#motion (saves CPU load) (Default: 0 = disabl#Always save images even if there was no motion (default: off)
output_all off
ed)
low_cpu 0
#Specifies the number of pre-captured (buffered) pictures from before motion
#Try to filter out noise generated by roundrobin (default: 0)
switchfilter 1
Environment
Motion version: |
3.2.4.snap2 |
ffmpeg version: |
0.4.8 |
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
slackware 10.0 kernel 2.4.26 |
--
RonaldoToledo - 27 Sep 2005
Answer
use <VERBATIM> </VERBATIM> tags round text when you want to avoid TWiki formatting the text. And continue this topic instead of making a new
Can you post the entire motion.conf and the thread files? You can simply attach them to this topic. Use the link at the bottom of the topic.
It may be that the switchfilter detects certain types of Motion as a camera change. And I need to learn what this is. It may also be good to see some examples of motion detected when the filter is off.
I have added a comment box to make replies easier but you can also edit the page and add your follow up in front of the COMMENT tag.
--
KennethLavrsen - 27 Sep 2005
Follow-ups
Hello Kenneth
I put the config files as attachments. As you can see I used a value of threshold less than the default so that a movement of a person at 10 mt from the camera could be detected.
In order to test switchfilter I walked in front of the camera so the number of changed pixel was by far greater than threshold. I am sending the jpegs of the images of motions detected without switchfilter takens from two cameras (threads 1 e 2)
--
RonaldoToledo - 28 Sep 2005
Your config files do not show anything that should prevent motion detection.
I have something to look at. I will try and find some time to play with the switchfilter and try to understand what it is it is supposed to do. The fix I just made was not related to the algoritm but the way the function was called which was very wrong. But I guess the feature will need some more fixing.
You should update your motion.conf and config files to match version 3.2.X.
It is very easy. Just open the control port with a normal browser and save the config files. Then Motion is smart enough to clean up the files. All the obsolete options are removed, the new are added with their default values, and the common values are moved from the thread files to motion.conf.
It is a good idea to save the original config files before you do this - in case there was a commented out value you want to return to or Motion dies during saving.
I will follow up when I know more about this bug.
--
KennethLavrsen - 28 Sep 2005
Thanks Kenneth, I'll be here waiting any news.
--
RonaldoToledo - 28 Sep 2005
Did you try the
MotionRelease3x2x4snap3 that I released 08 Oct 2005?
It may have improved and maybe cured your problem.
--
KennethLavrsen - 20 Oct 2005
No feedback so Answered.
--
AngelCarpintero - 02 Mar 2006