Send Motion-user mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."
Today's Topics:
1. Re: Auto Focus (Arrow22)
2. Re: Auto Focus (Adam Goryachev)
----------------------------------------------------------------------
Message: 1
Date: Sun, 2 May 2021 18:05:39 -0700
From: "Arrow22" <[email protected]>
To: <[email protected]>, "'Motion discussion list'"
<[email protected]>
Subject: Re: [Motion-user] Auto Focus
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
Okay, this is odd for me.
I have been hacking for years.
IDA has been on my computer for over a decade(some know what I mean)
I have the source code, that means I can rewrite portions and add functionality.
No one will answer if it is okay to do this.
Whoever authored this program, Great Job!!!
I will modify the code as I need and publish my changes to this thread.
Thank you all for your time.
From: chuck elliot [mailto:[email protected]]
Sent: Saturday, May 1, 2021 4:40 AM
To: [email protected]
Subject: Re: [Motion-user] Auto Focus
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:[email protected]]
Sent: Friday, April 30, 2021 1:56 PM
To: [email protected]
<mailto:[email protected]>
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_params does 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:[email protected]]
Sent: Thursday, April 29, 2021 10:14 PM
To: Motion discussion list <mailto:[email protected]>
<[email protected]>
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
On Fri, Apr 30, 2021 at 1:14 AM Arrow22 <[email protected]
<mailto:[email protected]> > 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
[email protected] <mailto:[email protected]>
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
[email protected] <mailto:[email protected]>
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
[email protected] <mailto:[email protected]>
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: Mon, 3 May 2021 11:35:46 +1000
From: Adam Goryachev <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] Auto Focus
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
On 3/5/21 11:05, Arrow22 wrote:
>
> Okay, this is odd for me.
>
> I have been hacking for years.
>
> IDA has been on my computer for over a decade(some know what I mean)
>
> I have the source code, that means I can rewrite portions and add
> functionality.
>
> No one will answer if it is okay to do this.
>
It might be best to take a look around at the following resources:
1) The license included in the source code, this will be the primary
source of what is allowed, and what is not.
2) Some entries for open source on wikipedia etc, I'm sure there are
many, many results that will discuss what is and is not allowed.
Just because you don't want to google, or hadn't thought to, the
briefest of summaries (which may not be legally correct) follows:
1) You have the source, you can make whatever changes or adjustments you
like for your own personal use. This may hold true for
some/most/all/none programs even if you don't have the source depending
on your legal jurisdiction.
2) You can release your changes either as a patch or complete
re-publish, but if you release as a full package, then you should most
likely attribute the original source, change the name so users are not
confused that your package is not the original, etc.
3) Not use your changes commercially unless you also release your
changes to your commercial customers
> Whoever authored this program, Great Job!!!
>
> I will modify the code as I need and publish my changes to this thread.
>
Sharing your improvements with the community is how this program got to
be so great. Most open source projects are the result of many people
working together to make improvements and share those improvements with
others.
>
> Thank you all for your time.
>
>
Regards,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 179, Issue 4
*******************************************