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. When /where to run v4l2-ctl commands? (Fred Hamilton)
2. Re: When /where to run v4l2-ctl commands? (tosiara)
3. Re: When /where to run v4l2-ctl commands? (tosiara)
4. Re: When /where to run v4l2-ctl commands? (Colin Law)
----------------------------------------------------------------------
Message: 1
Date: Fri, 24 Nov 2017 15:37:42 -0800
From: Fred Hamilton <[email protected]>
To: [email protected]
Subject: [Motion-user] When /where to run v4l2-ctl commands?
Message-ID:
<CAJUE6TA8nBYn8m1O6nqGxZd01aj=hal2_zejjns4y-ez81q...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I'm using motion (quite successfully - thanks!) to stream my Logitech C920
webcam. However I want to disable autofocus and fix the focal length (and
make a few other changes). I can do that after everything is up and
running from the terminal with v4l2-ctl commands in a script. However when
I add that script to my boot sequence it doesn't seem to work (maybe motion
is launching after the script and overriding my settings?). I see I can
launch commands put in motion.conf from within motion, but that only seems
to be after events, and I'd like this to run only once, during initial
motion config.
So I was just wondering if there is a standard/optimized way to do this
before I reinvent the wheel.
Thanks,
Fred
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Sat, 25 Nov 2017 09:53:20 +0200
From: tosiara <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] When /where to run v4l2-ctl commands?
Message-ID:
<CACHTdwTr=e3k_2kdouos3swrebmjn+bjen3fgfmprrn6ozz...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
How do you start motion? Systemd service?
On Nov 25, 2017 2:00 AM, "Fred Hamilton" <[email protected]> wrote:
> I'm using motion (quite successfully - thanks!) to stream my Logitech C920
> webcam. However I want to disable autofocus and fix the focal length (and
> make a few other changes). I can do that after everything is up and
> running from the terminal with v4l2-ctl commands in a script. However when
> I add that script to my boot sequence it doesn't seem to work (maybe motion
> is launching after the script and overriding my settings?). I see I can
> launch commands put in motion.conf from within motion, but that only seems
> to be after events, and I'd like this to run only once, during initial
> motion config.
>
> So I was just wondering if there is a standard/optimized way to do this
> before I reinvent the wheel.
>
> Thanks,
> Fred
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Motion-user mailing list
> [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: 3
Date: Sat, 25 Nov 2017 13:36:43 +0200
From: tosiara <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] When /where to run v4l2-ctl commands?
Message-ID:
<cachtdwqn6hzvnkrpotdkyeqmvktddh2znnazel53sxs98ux...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
As a hack you could modify systemd startup command to include v4l
command prior motion or after it. Should be possible, but I'm not a
pro and have no idea how to do that
On Sat, Nov 25, 2017 at 9:53 AM, tosiara <[email protected]> wrote:
> How do you start motion? Systemd service?
>
> On Nov 25, 2017 2:00 AM, "Fred Hamilton" <[email protected]> wrote:
>>
>> I'm using motion (quite successfully - thanks!) to stream my Logitech C920
>> webcam. However I want to disable autofocus and fix the focal length (and
>> make a few other changes). I can do that after everything is up and running
>> from the terminal with v4l2-ctl commands in a script. However when I add
>> that script to my boot sequence it doesn't seem to work (maybe motion is
>> launching after the script and overriding my settings?). I see I can launch
>> commands put in motion.conf from within motion, but that only seems to be
>> after events, and I'd like this to run only once, during initial motion
>> config.
>>
>> So I was just wondering if there is a standard/optimized way to do this
>> before I reinvent the wheel.
>>
>> Thanks,
>> Fred
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> https://motion-project.github.io/
>>
>> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
------------------------------
Message: 4
Date: Sat, 25 Nov 2017 11:57:19 +0000
From: Colin Law <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] When /where to run v4l2-ctl commands?
Message-ID:
<CAL=0gLv-_vZA4Btr+A_Gdp6chpQ0e=1+ctms5e30fpznmh6...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
On 24 November 2017 at 23:37, Fred Hamilton <[email protected]> wrote:
> I'm using motion (quite successfully - thanks!) to stream my Logitech C920
> webcam. However I want to disable autofocus and fix the focal length (and
> make a few other changes). I can do that after everything is up and running
> from the terminal with v4l2-ctl commands in a script. However when I add
> that script to my boot sequence it doesn't seem to work (maybe motion is
> launching after the script and overriding my settings?).
It shouldn't make any difference where you run the commands from,
motion should not change them.
First check that the commands are working. Disable motion and reboot
and check that the commands have taken. If not then the issue is with
how you are running them from the boot sequence. Possibly a path issue
or something. Maybe you have not supplied the full path to something
that needs it.
Colin
------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 137, Issue 3
*******************************************