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. Dynamic parameter changes (Moore, John David)
   2. Re: Dynamic parameter changes (Harlan Daneker)
   3. Re: Dynamic parameter changes (David Powell)
   4. Re: Auto Focus (chuck elliot)


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

Message: 1
Date: Sat, 1 May 2021 08:53:47 +0000
From: "Moore, John David" <j.d.mo...@gcu.ac.uk>
To: "motion-user@lists.sourceforge.net"
        <motion-user@lists.sourceforge.net>
Subject: [Motion-user] Dynamic parameter changes
Message-ID:
        
<cy4pr13mb1861a787b33d7386cc4a812cfa...@cy4pr13mb1861.namprd13.prod.outlook.com>
        
Content-Type: text/plain; charset="us-ascii"

Would it be possible to dynamically change motion parameters on the fly e.g 
with weather conditions?  Is there a means of accessing the parameters 
programmatically?

Thanks



Glasgow Caledonian University is a registered Scottish charity, number SC021474
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 2
Date: Sat, 1 May 2021 07:04:15 -0400
From: Harlan Daneker <hdane...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Dynamic parameter changes
Message-ID:
        <CAC1WkiTHxypETrM+ismDjHLUDFAARjDyj6+efxkZb3sy=c4...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

You can overwrite the conf files and restart motion with a cron job, I've
done this for day/night configurations.
https://crontab.guru/

On Sat, May 1, 2021 at 4:55 AM Moore, John David <j.d.mo...@gcu.ac.uk>
wrote:

> Would it be possible to dynamically change motion parameters on the fly
> e.g with weather conditions?  Is there a means of accessing the parameters
> programmatically?
>
> Thanks
>
>
>
> Glasgow Caledonian University is a registered Scottish charity, number
> SC021474
> _______________________________________________
> 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, 01 May 2021 06:14:05 -0500
From: David Powell <da...@depowell.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>, Harlan
        Daneker <hdane...@gmail.com>
Subject: Re: [Motion-user] Dynamic parameter changes
Message-ID:
        <17927a2b060.279e.ce3d8395e0ae66063e5e142696dac...@depowell.com>
Content-Type: text/plain; charset="us-ascii"; Format="flowed"


Or you can just send it REST commands, same as the browser UI does.

On May 1, 2021 6:06:16 AM Harlan Daneker <hdane...@gmail.com> wrote:
> You can overwrite the conf files and restart motion with a cron job, I've 
> done this for day/night configurations.
>
> https://crontab.guru/
>
>
> On Sat, May 1, 2021 at 4:55 AM Moore, John David <j.d.mo...@gcu.ac.uk> wrote:
>
> Would it be possible to dynamically change motion parameters on the fly e.g 
> with weather conditions?  Is there a means of accessing the parameters 
> programmatically?
>
>
> Thanks
>
>
>
>
> Glasgow Caledonian University is a registered Scottish charity, number 
> SC021474
>
> _______________________________________________
> 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...

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

Message: 4
Date: Sat, 1 May 2021 12:40:27 +0100
From: chuck elliot <c.ell...@pobox.com>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Auto Focus
Message-ID: <b54ef11c-8c1a-7cd4-28cb-580ae1508...@pobox.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Apparently the $! system variable contains the PID of the last run process

but the process (i.e. ffplay) has to be run in the background. This 
shouldn't be

a problem. The PID can be saved to a file for retrieval by the 'stop' 
script or if there

is a way for a script to determine whether the on_event_start or 
on_event_end

option called it ($PPID just holds PID of motion so that's no help), a 
single script

could handle both events.


On 01/05/2021 9:32 am, chuck elliot wrote:
>
> If you use this with >1 camera I guess you will need to work
>
> out a way to distinguish between different instances of ffplay
>
> so that you can stop the right one.
>
> There may be a way to retrieve the PID when started but I
>
> don't know it offhand.
>
>
> On 01/05/2021 1:46 am, Arrow22 wrote:
>>
>> This sounds like the best so far, I have the script playing a sound 
>> for each cam
>>
>> I will start looking at ffplay
>>
>> Thank you
>>
>> *From:*chuck elliot [mailto:c.ell...@pobox.com]
>> *Sent:* Friday, April 30, 2021 1:56 PM
>> *To:* motion-user@lists.sourceforge.net
>> *Subject:* Re: [Motion-user] Auto Focus
>>
>> You can achieve something similar using the
>>
>> script option 'on_event_start'
>>
>> to run a script that uses ffplay to display the camera
>>
>> output and then stop it with 'on_event_end'.
>>
>> 'not elegant but it works ;o)
>>
>> On 30/04/2021 7:41 pm, Arrow22 wrote:
>>
>>     First, I am using IP cams
>>
>>     Second, vid_control_paramsdoes not have anything to do with the
>>     webserver interface only camera fine tuning for picture/video
>>
>>     Normally localhost:8080 shows all cameras in a video matrix block
>>
>>     The autofocus function I want is when motion is detected on one
>>     of the cameras, that camera?s video goes full screen
>>
>>     End of motion event, back to 8080
>>
>>     Playing with a bunch of ideas but still not sure what I can do
>>     after I hack this out.
>>
>>     Can I publish the changes on my site?
>>
>>     Does the GNU allow me to do this?
>>
>>     Does the Original Author have to okay the changes?
>>
>>     *From:*tosiara [mailto:tosi...@gmail.com <mailto:tosi...@gmail.com>]
>>     *Sent:* Thursday, April 29, 2021 10:14 PM
>>     *To:* Motion discussion list <motion-user@lists.sourceforge.net>
>>     <mailto:motion-user@lists.sourceforge.net>
>>     *Subject:* Re: [Motion-user] Auto Focus
>>
>>     There is already a config called "vid_control_params" that
>>     controls USB V4L cameras. If your camera supports turing
>>     autofocus on/off - just use vid_control_params
>>
>>     https://motion-project.github.io/motion_config.html#vid_control_params
>>     <https://motion-project.github.io/motion_config.html#vid_control_params>
>>
>>     On Fri, Apr 30, 2021 at 1:14 AM Arrow22 <arro...@siliconmagi.com
>>     <mailto:arro...@siliconmagi.com>> wrote:
>>
>>         Am I allowed to change the source code?
>>
>>         I wanted to add another Flag called Autofocus=true/false
>>
>>         It would ?full screen? the camera that detects motion.
>>
>>         A function that would seem to be a no brainer in any
>>         surveillance system.
>>
>>         First time dealing with GNU not sure what I can do
>>
>>         Thanks for any information
>>
>>         _______________________________________________
>>         Motion-user mailing list
>>         Motion-user@lists.sourceforge.net
>>         <mailto:Motion-user@lists.sourceforge.net>
>>         https://lists.sourceforge.net/lists/listinfo/motion-user
>>         <https://lists.sourceforge.net/lists/listinfo/motion-user>
>>         https://motion-project.github.io/
>>         <https://motion-project.github.io/>
>>
>>         Unsubscribe:
>>         https://lists.sourceforge.net/lists/options/motion-user
>>         <https://lists.sourceforge.net/lists/options/motion-user>
>>
>>
>>
>>
>>     _______________________________________________
>>
>>     Motion-user mailing list
>>
>>     Motion-user@lists.sourceforge.net  
>> <mailto:Motion-user@lists.sourceforge.net>
>>
>>     https://lists.sourceforge.net/lists/listinfo/motion-user  
>> <https://lists.sourceforge.net/lists/listinfo/motion-user>
>>
>>     https://motion-project.github.io/  <https://motion-project.github.io/>
>>
>>     Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user  
>> <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 179, Issue 3
*******************************************

Reply via email to