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: Motion pause (Kevin Shumaker) 2. Re: Motion pause (Ronnie McMaster) ---------------------------------------------------------------------- Message: 1 Date: Sat, 26 Mar 2022 09:08:52 -0400 From: Kevin Shumaker <starbase...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Motion pause Message-ID: <cacyr9jc9up5ksc19tus0a6vwzujznh-oxcq5chcl1+zqi-5...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" You can find a couple of tools built into motion here: (handy if using more than one camera on a computer) Pause Command: https://motion-project.github.io/motion_config.html#pause General motion detection settings: https://motion-project.github.io/motion_config.html#OptDetail_Motion_Detection Scripting assistance: https://motion-project.github.io/motion_config.html#OptDetail_Scripts They have LOTS of options, and a few examples on how to use them... On Sat, Mar 26, 2022 at 8:57 AM Ugo Bottari <ugo.bott...@gmail.com> wrote: > Hi Ed > I figured it would take some code. > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Sat, 26 Mar 2022 07:45:27 -0600 From: Ronnie McMaster <ronnie.mcmas...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Motion pause Message-ID: <caa8w+k5japfldaryrgsfey+oqkp1+fvjkzsf-wkffragj4j...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" I'd think having Motion pause, when there may be a security event, might be a problem for some. event_gap can be used to set a number where the system will keep the event active without recording for a duration and will add any new movement to the same video, instead of creating a new one. Example; Someone walks up to my porch and triggers motion to start recording, post_capture is set to 90 frames and framerate is set to 15 frames per second, so it will record 6 seconds of video. My event_gap is set to 60 seconds, so if the person walks back by within 60 seconds of the ending of the previous event, it will append the next bit of video to the original video, therefore creating one clip instead of two. My movie_quality is set to 90, so my videos tend to be anywhere from 350 to 800 megabytes. I think the default in the current versions is 65. This can be raised or lowered to adjust the size of the videos, but will obviously impact the quality of the video. What is triggering the events? Is it changes in lighting? Adjusting the threshold or max_threshold could be the fix, if that is the issue. Thanks, Ronnie McMaster On Sat, Mar 26, 2022 at 6:57 AM Ugo Bottari <ugo.bott...@gmail.com> wrote: > Hi Ed > I figured it would take some code. > Unfortunately I am not able to create a script that implements the > indicated pseudo-code. > I have minimal experience with sh scripts but I don't think I can write > one that is so (for me) complex. > Incidentally: It seems strange to me that such a feature is not > implemented by default in motion. > Can I have your help? > Thank you very much. > > Il giorno sab 26 mar 2022 alle ore 13:18 Ed Kapitein via Motion-user < > motion-user@lists.sourceforge.net> ha scritto: > >> Hi Ugo, >> >> Could you stop motion and restart it an hour later from a shell script? >> >> >> Pseudo code: >> while true; do >> if test -s /some/trigger/file; then >> sudo killall motion >> >> sleep 1h >> >> rm /some/trigger/file; >> sudo motion >> fi >> done >> >> the /some/trigger/file can be created with the >> >> >> >> On 3/26/22 09:09, Ugo Bottari wrote: >> >> I use motion with a Raspberry. >> But I have a serious drawback: motion is activated to record a brief many >> times, even within a few minutes of each other. >> And the video clips made in this way differ slightly from each other and >> therefore are, for my purposes, not very significant. >> Besides filling the hard disk. I would therefore need that, after making >> a video, motion paused for - let's say - an hour. >> There is the motion pause function but it does not seem to me that it is >> possible to activate this function for an hour and then resume immediately >> afterwards. >> But I haven't found a similar function that reactivates motion. >> Exists ? >> Can it be solved ? >> >> >> _______________________________________________ >> Motion-user mailing >> listMotion-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/motion-userhttps://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 -------------- 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 189, Issue 13 ********************************************