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: Using Motion to compare still images as they are captured (Dave Howorth) 2. Re: Using Motion to compare still images as they are captured (Scott Barton) 3. Re: Using Motion to compare still images as they are captured (Dave Howorth) ---------------------------------------------------------------------- Message: 1 Date: Fri, 12 Jun 2020 22:23:00 +0100 From: Dave Howorth <d...@howorth.org.uk> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Using Motion to compare still images as they are captured Message-ID: <20200612222300.3fc12...@acer-suse.lan> Content-Type: text/plain; charset=US-ASCII On Fri, 12 Jun 2020 20:47:42 +0000 Scott Barton <scott_bar...@hotmail.com> wrote: > >ah, perhaps you only want to be able to compare two images already > >saved. > > This is exactly it. There is no live video feed. A separate program > called OctoLapse will take time lapse photos every couple of seconds > and save them on the rPi. I would like some sort of software that > will monitor a directory specified in the settings or something and > when a new image file is saved there, the motion detection software > would compare the last 2 images and if it detects 'motion' do > something. > > I believe the Motion program can do motion detection using live video > from a URL. It's pretty much doing the hard work now. All that is > needed is instead of looking at live video from a URL, the ability to > monitor a local directory instead and when a new image file is saved, > compare the new image file with the last image file and do something > if detects 'motion'. > > Basically, when setting up the Motion software chose between looking > at live video from a specified URL or static images saved to a > specified directory, everything else that it does would be the same. > > Scott Motion doesn't just read from URLs, according to the doc <https://motion-project.github.io/motion_config.html> it can read from v4l2 devices which are most webcams Composite capture cards Network or IP cameras The PI camera Static movie files. There are programs such as ffmpeg that can convert sequences of images into video files, so it doesn't seem beyond the bounds of possibility to plug them together to do what you want. Or you could modify motion itself to read a set of image files - the data is not that different to an mjpeg file. Perhaps somebody who knows the code in more detail can help. ------------------------------ Message: 2 Date: Sat, 13 Jun 2020 02:55:42 +0000 From: Scott Barton <scott_bar...@hotmail.com> To: "motion-user@lists.sourceforge.net" <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Using Motion to compare still images as they are captured Message-ID: <mn2pr11mb4552dfeca99653b055de87b6eb...@mn2pr11mb4552.namprd11.prod.outlook.com> Content-Type: text/plain; charset="iso-8859-1" Hmm, I didn't realize that Motion could read from a jpeg file https://motion-project.github.io/motion_config.html#netcam_url The last option is jpeg:// This option is for processing a static JPG file that is updated by processes external to Motion. It must be a local file and specified such as jpeg:///path/current.jpg Does anyone know how this works? Does it constantly look at this file and assumes the file will be updated and compares it to the last version it read? Or do you have to tell motion to look at that file everytime it us updated? ________________________________ From: Dave Howorth <d...@howorth.org.uk> Sent: Friday, June 12, 2020 5:23 PM To: motion-user@lists.sourceforge.net <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Using Motion to compare still images as they are captured On Fri, 12 Jun 2020 20:47:42 +0000 Scott Barton <scott_bar...@hotmail.com> wrote: > >ah, perhaps you only want to be able to compare two images already > >saved. > > This is exactly it. There is no live video feed. A separate program > called OctoLapse will take time lapse photos every couple of seconds > and save them on the rPi. I would like some sort of software that > will monitor a directory specified in the settings or something and > when a new image file is saved there, the motion detection software > would compare the last 2 images and if it detects 'motion' do > something. > > I believe the Motion program can do motion detection using live video > from a URL. It's pretty much doing the hard work now. All that is > needed is instead of looking at live video from a URL, the ability to > monitor a local directory instead and when a new image file is saved, > compare the new image file with the last image file and do something > if detects 'motion'. > > Basically, when setting up the Motion software chose between looking > at live video from a specified URL or static images saved to a > specified directory, everything else that it does would be the same. > > Scott Motion doesn't just read from URLs, according to the doc <https://motion-project.github.io/motion_config.html> it can read from v4l2 devices which are most webcams Composite capture cards Network or IP cameras The PI camera Static movie files. There are programs such as ffmpeg that can convert sequences of images into video files, so it doesn't seem beyond the bounds of possibility to plug them together to do what you want. Or you could modify motion itself to read a set of image files - the data is not that different to an mjpeg file. Perhaps somebody who knows the code in more detail can help. _______________________________________________ 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... ------------------------------ Message: 3 Date: Sat, 13 Jun 2020 12:09:36 +0100 From: Dave Howorth <d...@howorth.org.uk> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Using Motion to compare still images as they are captured Message-ID: <20200613120936.4f54e...@acer-suse.lan> Content-Type: text/plain; charset=US-ASCII On Sat, 13 Jun 2020 02:55:42 +0000 Scott Barton <scott_bar...@hotmail.com> wrote: > Hmm, I didn't realize that Motion could read from a jpeg file > > https://motion-project.github.io/motion_config.html#netcam_url > The last option is > > jpeg:// > This option is for processing a static JPG file that is updated by > processes external to Motion. It must be a local file and specified > such as jpeg:///path/current.jpg > > Does anyone know how this works? Does it constantly look at this > file and assumes the file will be updated and compares it to the last > version it read? Or do you have to tell motion to look at that file > everytime it us updated? >From that doc page: With this method, Motion will process the file at the speed specified by framerate. > > ________________________________ > From: Dave Howorth <d...@howorth.org.uk> > Sent: Friday, June 12, 2020 5:23 PM > To: motion-user@lists.sourceforge.net > <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Using > Motion to compare still images as they are captured > > On Fri, 12 Jun 2020 20:47:42 +0000 > Scott Barton <scott_bar...@hotmail.com> wrote: > > > >ah, perhaps you only want to be able to compare two images already > > >saved. > > > > This is exactly it. There is no live video feed. A separate > > program called OctoLapse will take time lapse photos every couple > > of seconds and save them on the rPi. I would like some sort of > > software that will monitor a directory specified in the settings or > > something and when a new image file is saved there, the motion > > detection software would compare the last 2 images and if it > > detects 'motion' do something. > > > > I believe the Motion program can do motion detection using live > > video from a URL. It's pretty much doing the hard work now. All > > that is needed is instead of looking at live video from a URL, the > > ability to monitor a local directory instead and when a new image > > file is saved, compare the new image file with the last image file > > and do something if detects 'motion'. > > > > Basically, when setting up the Motion software chose between looking > > at live video from a specified URL or static images saved to a > > specified directory, everything else that it does would be the same. > > > > Scott > > Motion doesn't just read from URLs, according to the doc > <https://motion-project.github.io/motion_config.html> it can read from > > v4l2 devices which are most webcams > Composite capture cards > Network or IP cameras > The PI camera > Static movie files. > > There are programs such as ffmpeg that can convert sequences of images > into video files, so it doesn't seem beyond the bounds of possibility > to plug them together to do what you want. > > Or you could modify motion itself to read a set of image files - the > data is not that different to an mjpeg file. > > Perhaps somebody who knows the code in more detail can help. > > > _______________________________________________ > 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 168, Issue 35 ********************************************