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: Compile Time Option (Rainer Dorsch) 2. Need a little nudge with config file(s)... (JB) ---------------------------------------------------------------------- Message: 1 Date: Wed, 18 Mar 2020 20:38:18 +0100 From: Rainer Dorsch <m...@bokomoko.de> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Compile Time Option Message-ID: <2827429.cfiHGMgPRh@h370> Content-Type: text/plain; charset="iso-8859-1" Many thanks. Rainer Am Mittwoch, 18. M?rz 2020, 08:47:22 CET schrieb tosiara: > Created an enhancement: https://github.com/Motion-Project/motion/issues/1130 > On Tue, Mar 17, 2020 at 12:47 AM Mike Wilson <knobby2...@gmail.com> wrote: > > It's a hard-coded 4 which is "regular". It would be nice to have that as a > > config option. > > > > On Mon, Mar 16, 2020 at 5:43 AM tosiara <tosi...@gmail.com> wrote: > >> Hey, could you please explain a bit more what do you mean by "compile > >> time option"? > >> > >> On Sun, Mar 15, 2020 at 1:27 PM Rainer Dorsch via Motion-user < > >> > >> motion-user@lists.sourceforge.net> wrote: > >>> Hi, > >>> > >>> I am wondering, why alg_noise_tune has a compile time option (last > >>> line): > >>> > >>> void alg_noise_tune(struct context *cnt, unsigned char *new) > >>> { > >>> > >>> struct images *imgs = &cnt->imgs; > >>> int i; > >>> unsigned char *ref = imgs->ref; > >>> int diff, sum = 0, count = 0; > >>> unsigned char *mask = imgs->mask; > >>> unsigned char *smartmask = imgs->smartmask_final; > >>> > >>> i = imgs->motionsize; > >>> > >>> for (; i > 0; i--) { > >>> > >>> diff = ABS(*ref - *new); > >>> > >>> if (mask) > >>> > >>> diff = ((diff * *mask++) / 255); > >>> > >>> if (*smartmask) { > >>> > >>> sum += diff + 1; > >>> count++; > >>> > >>> } > >>> > >>> ref++; > >>> new++; > >>> smartmask++; > >>> > >>> } > >>> > >>> if (count > 3) /* Avoid divide by zero. */ > >>> > >>> sum /= count / 3; > >>> > >>> /* 5: safe, 4: regular, 3: more sensitive */ > >>> cnt->noise = 4 + (cnt->noise + sum) / 2; > >>> > >>> } > >>> > >>> Doesn't make it sense to have that in motion.conf or camera.conf? > >>> > >>> Thanks > >>> Rainer > >>> > >>> -- > >>> Rainer Dorsch > >>> http://bokomoko.de/ > >>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> 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 > >> > >> _______________________________________________ > >> 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 > > > > _______________________________________________ > > 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 -- Rainer Dorsch http://bokomoko.de/ ------------------------------ Message: 2 Date: Wed, 18 Mar 2020 16:34:47 -0500 From: JB <yona...@riseup.net> To: motion-user@lists.sourceforge.net Subject: [Motion-user] Need a little nudge with config file(s)... Message-ID: <20200318163447.7cd6cc0b@ACAB.TOSIAR> Content-Type: text/plain; charset=US-ASCII Hey gang, Okay, so I'm going to try and use the two cameras I have - the Axis network camera and the Logitech USB camera. In reading the configuration manual, I should have three files - the main 'motion.conf', and one 'camera#.conf' for each camera. Presently I only use the USB cam because it's the only one I have that fits where I need it to be without having to create any kind of shelf or anything to 'hold' it in its position. The network camera I'm going to have to get creative and spend a couple dollars on a 1x4 and some screws to make fit where the USB cam is presently, so the network cam is pointed inside and toward the door to watch for anyone entering. So, I have a motion.conf file for each of those cameras. One is motion-axis.con and the other is motion-usb.conf. When I use one or the other, I simply go to /etc/motion and 'rename' whatever one I want to use to plain 'motion.conf'. When I want to use the other one, I rename the one I just got done using back to its 'other name and rename the one I want to now use to plain 'motion.conf'. Takes a little activity on my part but no skin off my teeth and not a problem for me, just a few seconds is all. Since I've decided to go ahead and try to use both cams simultaneously, the Motion Guide is confusing me a bit. Am I supposed to copy and paste the contents of each of my 'motion-x.conf' files into two separate 'camera#.conf' files? If I'm supposed to do it that way, then in the regular 'motion.conf' do I put the camera names one above the other, for example: # User defined name for the camera. camera_name M1113 camera_name Logitech # Numeric identifier for the camera. camera_id 0 camera_id 1 Or do I have something backwards? I don't know why this is confusing me, but as you can see, it sure the heck is. Here's what I have for the 'camera#.conf' files...all I did was open up camera1-dist.conf and camera2-dist.conf and filled in for each camera I want to use. : -------------------------------------------------- camera1.conf # /etc/motion/camera1.conf # # This config file was generated by motion 4.2.2 ########################################################### # Configuration options specific to camera 1 ############################################################ # User defined name for the camera. camera_name m1113 # Numeric identifier for the camera. camera_id 101 # The full URL of the network camera stream. netcam_url rtsp://192.168.x.xx/axis-media/media.amp # Image width in pixels. width 800 # Image height in pixels. height 640 # Text to be overlayed in the lower left corner of images text_left M1113 # File name(without extension) for movies relative to target directory movie_filename M1113_%d %^b %y--%T-%q --------------------------------------------------- camera2.conf # /etc/motion/camera2.conf # # This config file was generated by motion 4.2.2 ########################################################### # Configuration options specific to camera 2 ############################################################ # User defined name for the camera. camera_name Logitech # Numeric identifier for the camera. camera_id 102 # The full URL of the network camera stream. #netcam_url http://yourcamera2ip:port/camera/specific/url videodevice /dev/video0 # Image width in pixels. width 800 # Image height in pixels. height 640 # 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 INSIDE\n%d %^b %y--%T-%q # File name(without extension) for movies relative to target directory movie_filename INSIDE_%d %^b %y--%T-%q -------------------------------------------------- What now should I do with these? Leave them as is and make the changes I asked if I am supposed to make in the regular 'motion.conf' file? or do as I thought and put my actual motion config for each camera in the 'camera#.conf' files? Thanks for any help trying to clear this up. I guess I'm not aging too well and still have the worry over my head of having enough to eat this month and be able to actually afford to buy enough for *next* month...just in a bad tight and trying to do things to keep my mind off it as much as possible I guess, heh. JB ------------------------------ ------------------------------ 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 165, Issue 16 ********************************************