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 (Kevin Shumaker)
   2. mask with different dimensions (Stewart Andreason)
   3. Re: mask with different dimensions (Harlan Daneker)


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

Message: 1
Date: Sat, 11 Feb 2023 10:21:24 -0500
From: Kevin Shumaker <starbase...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] area_detect on_area_detected
Message-ID:
        <CACYR9Jfj3snkK5AeA+_zJ6EFHKJNFxanZF=a__2gwjcmwub...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

If you want to contribute to LEO, why not set up another (VM/RPi/instance)
motion setup with a 3-5 day to a NAS or USB drive and have it auto-delete
everything after that time frame, and just leave it unmasked (or reverse
the masked area) for them? I have a second instance of a camera that I do
that after a number of neighborhood issues.

On Sat, Feb 11, 2023 at 9:49 AM 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



-- 
Thanks

Kevin Shumaker

N38? 19' 56.52"
W85? 45' 8.56"

Semper Gumby
?Don't tell people how to do things. Tell them what to do and let them
surprise you with their results.? - G.S. Patton, Gen. USA
Ethics are what we do when no one else is looking.
Quis custodiet ipsos custodes?
You know we're sitting on four million pounds of fuel, one nuclear weapon
and a thing that has 270,000 moving parts built by the lowest bidder. Makes
you feel good, doesn't it?
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 2
Date: Sat, 11 Feb 2023 11:53:57 -0800
From: Stewart Andreason <sandrea...@gmail.com>
To: Motion-user@lists.sourceforge.net
Subject: [Motion-user] mask with different dimensions
Message-ID: <7c49ee1d-785d-175f-2340-a60b08cd7...@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi,

Running motion v4.4.0 on rpi with 3 camera lines in motion.conf, 
pointing to 3 different camera##.conf files. They were all set for width 
640 and height 480, until a squirrel sliced the network cable on one, 
and after moving a camera into that position with a different width 
height, I find the mask file does not work correctly.

I commented out the width and height from the motion.conf file, and 
added them to the individual camera##.conf files, and did create a mask 
file with the correct dimensions 800x448, but I am getting motion 
triggers outside the mask. Specifically above the white area, in the 
black, suggesting motion is still assuming the height is 480, and the 
mask is being centered vertically??

Has this been tested or seen before?

Stewart




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

Message: 3
Date: Sat, 11 Feb 2023 15:11:39 -0500
From: Harlan Daneker <hdane...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] mask with different dimensions
Message-ID:
        <cac1wkirnyc09sbokmggexqz-wtdpgkasf0lpe0cwrhppyrj...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I always save a snapshot from the camera and make the mask from that to be
sure the dimensions match, then export it to .pgm

On Sat, Feb 11, 2023 at 2:55 PM Stewart Andreason <sandrea...@gmail.com>
wrote:

> Hi,
>
> Running motion v4.4.0 on rpi with 3 camera lines in motion.conf,
> pointing to 3 different camera##.conf files. They were all set for width
> 640 and height 480, until a squirrel sliced the network cable on one,
> and after moving a camera into that position with a different width
> height, I find the mask file does not work correctly.
>
> I commented out the width and height from the motion.conf file, and
> added them to the individual camera##.conf files, and did create a mask
> file with the correct dimensions 800x448, but I am getting motion
> triggers outside the mask. Specifically above the white area, in the
> black, suggesting motion is still assuming the height is 480, and the
> mask is being centered vertically??
>
> Has this been tested or seen before?
>
> Stewart
>
>
>
> _______________________________________________
> 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 2
*******************************************

Reply via email to