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: area_detect on_area_detected (Harlan Daneker)
   2. Re: area_detect on_area_detected (Ronnie McMaster)


----------------------------------------------------------------------

Message: 1
Date: Sat, 11 Feb 2023 09:47:38 -0500
From: Harlan Daneker <hdane...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] area_detect on_area_detected
Message-ID:
        <cac1wkitebjcxzhssryaj4mpjdhez0ptrzi5nuubenczpfzu...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

For those of us that play in the shallow end of the pool.
This seems to work for area_detect, I would try to do something using
coordinates if I knew how.* It would be a good feature to be able to use
multiple target directories vs masking an area.* I've had the police at my
house multiple times looking for video from the street in front of my
house, but the street was masked because there were just too many videos.
They wanted information about everything from looking for vehicles to a
person that wandered away and was found deceased in the woods. Feel free to
comment on a better way to do this.

*on_event_start */bin/echo %Y/%m/%d/%H:%M.mp4 > /cache/video/Cam1/name1 ;
/bin/echo "0" > /cache/video/Cam1/area1        #seconds in the file name do
not always match if used
*area_detect* 5689
*on_area_detected* /bin/echo "1" > /cache/video/Cam1/area1
*on_movie_end* /usr/local/bin/mvCam1.sh

*script*    /usr/local/bin/mvCam1.sh
#!/bin/sh
DATE=$(/bin/date +%Y/%m/%d/)
FILE=$(</cache/video/Cam1/area1)    #over written by on_area_detected
FILE2=$(</cache/video/Cam1/name1)     #movie name and date path

if [ ! -e "$FILE" ] && [ "$FILE" -gt "0" ]      # file exists and is
greater than 0
then
mkdir -p /cache/video/Cam1B/$DATE    #create the path to copy the file to
chmod -R a+rw /cache/video/Cam1B/*    #make sure the path is writeable
mv -f /cache/video/Cam1/$FILE2 /cache/video/Cam1B/$DATE    #move the file
to the new directory
fi

On Wed, Jan 18, 2023 at 2:55 PM Harlan Daneker <hdane...@gmail.com> wrote:

> I'm not sure how to do this. I've done some bash scripting.
>  on_movie_end %K:%L redirected to a file gives me 0:0
>
> on_area_detected a %K:%L example is 1140:981 and I'm not sure how to plot
> the coordinates on a rectangle with these numbers.
> Once I do get the coordinates I'm looking for, to redirect a file can I
> redirect to a different target directory or must I use the mv command to
> move the file?
> Is there any kind of tutorial for something like this or anyplace I can
> get more information?
>
> Thanks
>
>
>
> On Wed, Jan 4, 2023 at 11:24 PM MrDave <motionmrd...@gmail.com> wrote:
>
>> I would not think of area_detect.  Instead, I'd think of of just the
>> on_movie_end (
>> https://motion-project.github.io/motion_config.html#on_movie_end) and
>> using the coordinates in a script.  Within the script then determine
>> whether the coordinates are in area of front door or driveway and move the
>> file accordingly.
>>
>>
>> On 1/3/2023 10:16 AM, Harlan Daneker wrote:
>>
>> Hi,
>>
>> Using  *area_detect* and *on_area_detected* is there a way to detect
>> motion in all areas and rename or redirect (to a different target
>> directory) files only for specified areas? For instance I could record
>> motion for my front yard and the files recorded from my front door could
>> have a different file name or be put in a different directory.
>>
>> Or I could record my driveway and the street and the files recorded from
>> my driveway could have a different file name or be put in a different
>> directory.
>>
>> Thanks
>>
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Sat, 11 Feb 2023 08:20:24 -0700
From: Ronnie McMaster <ronnie.mcmas...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] area_detect on_area_detected
Message-ID:
        <caa8w+k45cqwh7cwgyqk-4+rdudhgke_q324j+wnorffm14n...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

My best thought for a workaround would be to have motion recording all
movement, then have a script to run another motion profile against each
file on an interval basis. The scripted motion would detect movement on the
street alone and move those files to another directory. Or it could be set
to detect and move the files with motion in your primary area, as to not
accidently move the good files when there's also movement in the street.

Having the abilities you speak of would likely cause the people using a
raspberry pi to not be able to use motion. The pi can barely handle the
process as it is.

On Sat, Feb 11, 2023, 07:49 Harlan Daneker <hdane...@gmail.com> wrote:

> For those of us that play in the shallow end of the pool.
> This seems to work for area_detect, I would try to do something using
> coordinates if I knew how.* It would be a good feature to be able to use
> multiple target directories vs masking an area.* I've had the police at
> my house multiple times looking for video from the street in front of my
> house, but the street was masked because there were just too many videos.
> They wanted information about everything from looking for vehicles to a
> person that wandered away and was found deceased in the woods. Feel free to
> comment on a better way to do this.
>
> *on_event_start */bin/echo %Y/%m/%d/%H:%M.mp4 > /cache/video/Cam1/name1 ;
> /bin/echo "0" > /cache/video/Cam1/area1        #seconds in the file name do
> not always match if used
> *area_detect* 5689
> *on_area_detected* /bin/echo "1" > /cache/video/Cam1/area1
> *on_movie_end* /usr/local/bin/mvCam1.sh
>
> *script*    /usr/local/bin/mvCam1.sh
> #!/bin/sh
> DATE=$(/bin/date +%Y/%m/%d/)
> FILE=$(</cache/video/Cam1/area1)    #over written by on_area_detected
> FILE2=$(</cache/video/Cam1/name1)     #movie name and date path
>
> if [ ! -e "$FILE" ] && [ "$FILE" -gt "0" ]      # file exists and is
> greater than 0
> then
> mkdir -p /cache/video/Cam1B/$DATE    #create the path to copy the file to
> chmod -R a+rw /cache/video/Cam1B/*    #make sure the path is writeable
> mv -f /cache/video/Cam1/$FILE2 /cache/video/Cam1B/$DATE    #move the file
> to the new directory
> fi
>
> On Wed, Jan 18, 2023 at 2:55 PM Harlan Daneker <hdane...@gmail.com> wrote:
>
>> I'm not sure how to do this. I've done some bash scripting.
>>  on_movie_end %K:%L redirected to a file gives me 0:0
>>
>> on_area_detected a %K:%L example is 1140:981 and I'm not sure how to plot
>> the coordinates on a rectangle with these numbers.
>> Once I do get the coordinates I'm looking for, to redirect a file can I
>> redirect to a different target directory or must I use the mv command to
>> move the file?
>> Is there any kind of tutorial for something like this or anyplace I can
>> get more information?
>>
>> Thanks
>>
>>
>>
>> On Wed, Jan 4, 2023 at 11:24 PM MrDave <motionmrd...@gmail.com> wrote:
>>
>>> I would not think of area_detect.  Instead, I'd think of of just the
>>> on_movie_end (
>>> https://motion-project.github.io/motion_config.html#on_movie_end) and
>>> using the coordinates in a script.  Within the script then determine
>>> whether the coordinates are in area of front door or driveway and move the
>>> file accordingly.
>>>
>>>
>>> On 1/3/2023 10:16 AM, Harlan Daneker wrote:
>>>
>>> Hi,
>>>
>>> Using  *area_detect* and *on_area_detected* is there a way to detect
>>> motion in all areas and rename or redirect (to a different target
>>> directory) files only for specified areas? For instance I could record
>>> motion for my front yard and the files recorded from my front door could
>>> have a different file name or be put in a different directory.
>>>
>>> Or I could record my driveway and the street and the files recorded from
>>> my driveway could have a different file name or be put in a different
>>> directory.
>>>
>>> Thanks
>>>
>>>
>>> _______________________________________________
>>> 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 198, Issue 1
*******************************************

Reply via email to