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. Sample Script Execution on_motion_detected (Zamar Ac) 2. Re: Sample Script Execution on_motion_detected (tosiara) ---------------------------------------------------------------------- Message: 1 Date: Sat, 28 Dec 2024 01:19:35 -0500 From: Zamar Ac <zama...@gmail.com> To: motion-user@lists.sourceforge.net Subject: [Motion-user] Sample Script Execution on_motion_detected Message-ID: <4e24c581-c750-4780-b969-6de254695...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" Hello, my security camera has basic motion detection in hardware, but saves many false positive 2min motion clips continuously when the scene lighting or other conditions keep changing. The Motion package allows to re-analyze such static video sets for true motion presence. One can use scripting options like /on_event_end/, /on_motion_detected/ etc, which allow to invoke external scripts. I'm not a coder, and want to ask if current Motion developer or some experienced users can offer bash script examples for typical scenarios of Motion use for static video analysis. I need to run Motion fast on a loop through a large folder with monthly and daily subfolders storing hundreds of 1080p 25fps HEVC 2min video clips from a security camera, to identify video clips with true motion, and delete remaining false positive videos. It might be possible to speedup video processing by setting higher video FPS value than original, and adding a frame zone mask where to look for motion. Once true motion event is detected in a video file, its name should be added to MotionDetectedList.txt, and the file moved to a MotionDetected folder with its date&time added to the file name. Motion should then start processing the next video until all are analyzed. I tried a similar small Windows package VideoMotionDetect <https://github.com/shuuryou/videomotiondetect> ( https://github.com/shuuryou/videomotiondetect ) based on OpenCVSharp with embedded ffmpg to analyze near 800 continuous daily 720P 25fps 1min AVI video clips from security camera for motion presence, and it took about 30min to process such batch with high detection accuracy, with near 10-15% of clip names with motion detected added to a text file. Sadly, that app can't open HEVC 1080P videos from my another security camera. I'd really appreciate any help with this scripting task, or please suggest an existing similar Linux or Windows app able to run such batch motion detection task fast enough on a typical home PC. What clip processing speed one would expect from Motion package in such scenario? Thank you! -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Sat, 28 Dec 2024 12:25:00 +0200 From: tosiara <tosi...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Sample Script Execution on_motion_detected Message-ID: <cachtdwsr4keayuenskyu8mfw8cufk_btulqthlnqheopr3o...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Motion can process offline files using netcam config option and file:// protocol. You can check an example: https://github.com/tosiara/motion/wiki/Processing-of-offline-video-files On Sat, 28 Dec 2024, 08:27 Zamar Ac, <zama...@gmail.com> wrote: > Hello, my security camera has basic motion detection in hardware, but > saves many false positive 2min motion clips continuously when the scene > lighting or other conditions keep changing. The Motion package allows to > re-analyze such static video sets for true motion presence. One can use > scripting options like *on_event_end*, *on_motion_detected* etc, which > allow to invoke external scripts. > > I'm not a coder, and want to ask if current Motion developer or some > experienced users can offer bash script examples for typical scenarios of > Motion use for static video analysis. I need to run Motion fast on a loop > through a large folder with monthly and daily subfolders storing hundreds > of 1080p 25fps HEVC 2min video clips from a security camera, to identify > video clips with true motion, and delete remaining false positive videos. > It might be possible to speedup video processing by setting higher video > FPS value than original, and adding a frame zone mask where to look for > motion. > > Once true motion event is detected in a video file, its name should be > added to MotionDetectedList.txt, and the file moved to a MotionDetected > folder with its date&time added to the file name. Motion should then start > processing the next video until all are analyzed. > > I tried a similar small Windows package VideoMotionDetect > <https://github.com/shuuryou/videomotiondetect> ( > https://github.com/shuuryou/videomotiondetect ) based on OpenCVSharp with > embedded ffmpg to analyze near 800 continuous daily 720P 25fps 1min AVI > video clips from security camera for motion presence, and it took about > 30min to process such batch with high detection accuracy, with near 10-15% > of clip names with motion detected added to a text file. Sadly, that app > can't open HEVC 1080P videos from my another security camera. > > I'd really appreciate any help with this scripting task, or please suggest > an existing similar Linux or Windows app able to run such batch motion > detection task fast enough on a typical home PC. What clip processing speed > one would expect from Motion package in such scenario? > > Thank you! > _______________________________________________ > 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 219, Issue 5 *******************************************