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. Multiple Threads (Harlan Daneker) 2. Re: Image and Video retention (Dave Howorth) 3. Re: Get unwanted motion detections when quitting via webcontrol (Tom Kennelly) 4. Re: Image and Video retention (Vincent Toscano) 5. Re: Get unwanted motion detections when quitting via webcontrol (tosiara) ---------------------------------------------------------------------- Message: 1 Date: Fri, 29 Mar 2019 15:56:44 -0400 From: Harlan Daneker <hdane...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: [Motion-user] Multiple Threads Message-ID: <cac1wkitfe0nuakw7k5eqr57w8ipooed-w40u2femkvcyvoj...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" I have a mix of analog and rtsp cameras, 7 total. I'm using motion 4.1.1 compiled on Fedora 29. Will the newer versions of motion use multiple threads by default? I've tried to set up external pipe in the past, but I've never been able to get it to work. I'm not sure how to tell if it is using multiple threads. Thanks, Harlan -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Fri, 29 Mar 2019 21:08:14 +0000 From: Dave Howorth <d...@howorth.org.uk> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Image and Video retention Message-ID: <20190329210814.7ce59...@acer-suse.lan> Content-Type: text/plain; charset=US-ASCII On Fri, 29 Mar 2019 10:14:50 +0200 tosiara <tosi...@gmail.com> wrote: > No, motion does not delete any old files > > On Fri, Mar 29, 2019 at 9:42 AM Vincent Toscano <v...@vflux.biz> wrote: > > > > Hi, > > > > Are there any native Motion options or services to specify how long > > to store/retain images and videos? For example, delete all images > > that are 2 weeks old. > > > > Thanks for your help in advance. You can use cron to run find to delete old files. ------------------------------ Message: 3 Date: Fri, 29 Mar 2019 20:01:09 -0400 From: Tom Kennelly <t...@tekennelly.gotdns.com> To: Motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Get unwanted motion detections when quitting via webcontrol Message-ID: <3d1fc2e9-04f8-cf46-030a-793613227...@tekennelly.gotdns.com> Content-Type: text/plain; charset=utf-8; format=flowed Let me try the explanation again. Assume motion is running and all three RTSP cameras are operation with motion detection started. When I go through the following steps in a script: 1. wget http://mycam:8080/0/detection/pause 2. wget http://mycam:8080/1/action/quit 3. wget http://mycam:8080/2/action/quit 4. wget http://mycam:8080/3/action/quit steps 2 - 4 will cause the on_event_start to be executed, one for each of steps 2-4. on_event_end * Type: String * Range / Valid values: Max 4095 characters * Default: Not defined The full path and file name of the program/script to be executed when a event ends. An event ends after the event_gap has expired. You can use Conversion Specifiers <https://motion-project.github.io/motion_config.html#conversion_specifiers> and spaces as part of the command. This can be any type of program or script. Remember to set the execution bit in the ACL and if it is a script type program such as perl or bash also remember the shebang line (e.g. #!/user/bin/perl) as the first line of the script. So, my question is why does an on_event_start event get started when I wget http://mycam:8080/1 or 2 or 3/action/restart after a pause on everything (i.e., wget http://mycam:8080/0/detection/pause) Here is a log where I was only using camera number 2 Mar 29 19:40:11 motionpi3 motion: [0:wu0] [NTC] [STR] webu_process_action: Quitting thread 2 Mar 29 19:40:11 motionpi3 motion: [2:ml2:Stairs] [NTC] [EVT] event_newfile: File of type 8 saved to: /tmp/motion/20190329-194011.mp4 Mar 29 19:40:11 motionpi3 motion: [2:ml2:Stairs] [NTC] [ALL] motion_detected: Motion detected - starting event 1 Mar 29 19:40:12 motionpi3 motion: [2:ml2:Stairs] [NTC] [EVT] event_newfile: File of type 1 saved to: /tmp/motion/20190329-194011-10.jpg Mar 29 19:40:12 motionpi3 motion: [2:ml2:Stairs] [NTC] [ALL] mlp_actions: End of event 1 Mar 29 19:40:12 motionpi3 motion: [2:ml2:Stairs] [NTC] [ALL] motion_loop: Thread exiting Mar 29 19:40:13 motionpi3 motion: [2:ml2:Stairs] [NTC] [NET] netcam_rtsp_cleanup: Normal resolution: Shut down complete. On 3/29/2019 4:13 AM, tosiara wrote: > Sorry, I didn't actually get what is the issue. Can you provide > motion.log and explain again what is wrong? > > On Thu, Mar 28, 2019 at 10:18 PM Tom Kennelly <t...@tekennelly.gotdns.com> > wrote: >> I go through the following steps and get three motion detection >> notifications via on_event_start. >> >> http://mycam:8080/0/detection/pause >> >> http://mycam:8080/3/action/quit >> >> http://mycam:8080/2/action/quit >> >> http://mycam:8080/1/action/quit >> >> Additionally, when I reverse these actions, by restarting three cameras >> and enabling motion detection I get three notifications as well. >> >> Should on_event_start be triggered by /action/quit or /action/restart? >> >> Environment: >> >> Raspian Stretch Linux motionpi3 4.14.98-v7+ #1200 SMP Tue Feb 12 >> 20:27:48 GMT 2019 armv7l GNU/Linux >> >> motion 4.2.2-1 >> >> Raspberry Pi 3 B+ >> >> All three cameras use rtsp. >> >> webcontrol_interface 0 >> >> >> >> _______________________________________________ >> 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 ------------------------------ Message: 4 Date: Fri, 29 Mar 2019 20:25:07 -0700 From: Vincent Toscano <v...@vflux.biz> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Image and Video retention Message-ID: <a51cbc28-ae22-4143-8d17-884e6ae0f...@vflux.biz> Content-Type: text/plain; charset="utf-8" Thank you all. I'll use the normal methods Cron jobs for images & video removal and logrotate for my logs. ------------------------------ Best, Vincent -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 5 Date: Sat, 30 Mar 2019 09:56:11 +0200 From: tosiara <tosi...@gmail.com> To: Tom Kennelly <t...@tekennelly.gotdns.com> Cc: Motion discussion list <Motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Get unwanted motion detections when quitting via webcontrol Message-ID: <cachtdwsvoju-mwe0fgwwxdmx+rqrmubjqsuoeogomaniikq...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" Ok, now understood. I will try to reproduce the issue and get back to you On Sat, Mar 30, 2019 at 2:01 AM Tom Kennelly <t...@tekennelly.gotdns.com> wrote: > > Let me try the explanation again. > > Assume motion is running and all three RTSP cameras are operation with > motion detection started. > > When I go through the following steps in a script: > > 1. wget http://mycam:8080/0/detection/pause > > 2. wget http://mycam:8080/1/action/quit > > 3. wget http://mycam:8080/2/action/quit > > 4. wget http://mycam:8080/3/action/quit > > steps 2 - 4 will cause the on_event_start to be executed, one for each > of steps 2-4. > > > on_event_end > > * Type: String > * Range / Valid values: Max 4095 characters > * Default: Not defined > > The full path and file name of the program/script to be executed when a > event ends. An event ends after the event_gap has expired. You can use > Conversion Specifiers > <https://motion-project.github.io/motion_config.html#conversion_specifiers> > and spaces as part of the command. This can be any type of program or > script. Remember to set the execution bit in the ACL and if it is a > script type program such as perl or bash also remember the shebang line > (e.g. #!/user/bin/perl) as the first line of the script. > > So, my question is why does an on_event_start event get started when I > wget http://mycam:8080/1 or 2 or 3/action/restart after a pause on > everything (i.e., wget http://mycam:8080/0/detection/pause) > > Here is a log where I was only using camera number 2 > > Mar 29 19:40:11 motionpi3 motion: [0:wu0] [NTC] [STR] > webu_process_action: Quitting thread 2 > Mar 29 19:40:11 motionpi3 motion: [2:ml2:Stairs] [NTC] [EVT] > event_newfile: File of type 8 saved to: /tmp/motion/20190329-194011.mp4 > Mar 29 19:40:11 motionpi3 motion: [2:ml2:Stairs] [NTC] [ALL] > motion_detected: Motion detected - starting event 1 > Mar 29 19:40:12 motionpi3 motion: [2:ml2:Stairs] [NTC] [EVT] > event_newfile: File of type 1 saved to: /tmp/motion/20190329-194011-10.jpg > Mar 29 19:40:12 motionpi3 motion: [2:ml2:Stairs] [NTC] [ALL] > mlp_actions: End of event 1 > Mar 29 19:40:12 motionpi3 motion: [2:ml2:Stairs] [NTC] [ALL] > motion_loop: Thread exiting > Mar 29 19:40:13 motionpi3 motion: [2:ml2:Stairs] [NTC] [NET] > netcam_rtsp_cleanup: Normal resolution: Shut down complete. > > > On 3/29/2019 4:13 AM, tosiara wrote: > > Sorry, I didn't actually get what is the issue. Can you provide > > motion.log and explain again what is wrong? > > > > On Thu, Mar 28, 2019 at 10:18 PM Tom Kennelly <t...@tekennelly.gotdns.com> > > wrote: > >> I go through the following steps and get three motion detection > >> notifications via on_event_start. > >> > >> http://mycam:8080/0/detection/pause > >> > >> http://mycam:8080/3/action/quit > >> > >> http://mycam:8080/2/action/quit > >> > >> http://mycam:8080/1/action/quit > >> > >> Additionally, when I reverse these actions, by restarting three cameras > >> and enabling motion detection I get three notifications as well. > >> > >> Should on_event_start be triggered by /action/quit or /action/restart? > >> > >> Environment: > >> > >> Raspian Stretch Linux motionpi3 4.14.98-v7+ #1200 SMP Tue Feb 12 > >> 20:27:48 GMT 2019 armv7l GNU/Linux > >> > >> motion 4.2.2-1 > >> > >> Raspberry Pi 3 B+ > >> > >> All three cameras use rtsp. > >> > >> webcontrol_interface 0 > >> > >> > >> > >> _______________________________________________ > >> 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 ------------------------------ ------------------------------ 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 153, Issue 21 ********************************************