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: Configuration help (Roger Heflin)
2. Re: Configuration help (Steven Haigh)
3. Updated docker images for motion (Steven Haigh)
----------------------------------------------------------------------
Message: 1
Date: Tue, 5 Apr 2022 08:19:37 -0500
From: Roger Heflin <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] Configuration help
Message-ID:
<caamcdecp4bc86kxm6asyfvkkqyz2nttxg4spsbseeyer+5h...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
You should be able to setup 2 cameras in motion separately handling the 2
streams.
I have a low-res URL going to one motion thread/camera that captures 2fps,
and I have a separate thread using a different URL on the same camera (high
resolution) that is used for motion capture.
So long as the camera allows you should be able to use 2 of the same stream
URL in different threads for the same camera.
On Mon, Apr 4, 2022 at 11:52 PM Steven Haigh via Motion-user <
[email protected]> wrote:
> Hi all,
>
> I'm having a hell of a time trying to do some image processing with motion
> + nodered + home assistant + deepstack.
>
> I have motion configured as follows:
> netcam_url rtmp://
> 172.31.1.245/bcs/channel0_ext.bcs?channel=0&stream=2&user=x&password=x
> netcam_params framerate=30,capture_rate=30
> width=896
> height=672
>
> netcam_high_url rtmp://
> 172.31.1.245/bcs/channel0_main.bcs?channel=0&stream=0&user=x&password=x
> netcam_high_params framerate=15,capture_rate=15
>
> The camera outputs match the settings above - but the resolution on
> netcam_high_url is 2560x1920.
>
> I'm trying to output the netcam_url via the motion API url /1/stream and
> /1/current to show in the Home Assistant dashboard and feed as a MJPEG
> camera.
>
> I'm also trying to output 1fps as a JPG to a file as /tmp/snapshot.jpg so
> that I can ingest that into deepstack via nodered and do object recognition.
>
> It seems that no matter what I do, I either destroy motion by setting
> minimum_frame_time to 1, or get the 1fps output with that option - but
> destroy the stream output.
>
> Is there a way I can ratelimit just the saving of pictures to 1 per second
> from the netcam_high_url input?
>
> I've done every possible combination of configuration options, but just
> can't seem to get this happening.
> --
> Steven Haigh ? [email protected] ? https://www.crc.id.au
> _______________________________________________
> 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: 2
Date: Tue, 05 Apr 2022 23:26:43 +1000
From: Steven Haigh <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] Configuration help
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
I was trying not to do it that way - as performing motion detect on the
high resolution stream takes up 40-50% of a CPU core on my system...
Running motion detect on the low resolution stream seems to be fine -
but has the problem that I can't trigger captures from the high
resolution stream based on motion from the low resolution one.
I tried with the 'snapshot' option, but the JPG it seems to produce is
garbled junk :\
Right now, for the picture, I'm using:
picture_output on
picture_output_motion off
picture_quality 50
picture_filename /tmp/cameras/front_door
## This also kills the /1/stream down to 1fps - which is not ideal.
#minimum_frame_time 1
## The below outputs a corrupted JPG as the snapshot...
#snapshot_interval 1
#snapshot_filename /tmp/cameras/front_door_snapshot
--
Steven Haigh
? [email protected] <mailto:[email protected]>
? https://www.crc.id.au <https://www.crc.id.au/>
On Tue, Apr 5 2022 at 08:19:37 -0500, Roger Heflin
<[email protected]> wrote:
> You should be able to setup 2 cameras in motion separately handling
> the 2 streams.
>
> I have a low-res URL going to one motion thread/camera that captures
> 2fps, and I have a separate thread using a different URL on the same
> camera (high resolution) that is used for motion capture.
>
> So long as the camera allows you should be able to use 2 of the same
> stream URL in different threads for the same camera.
>
> On Mon, Apr 4, 2022 at 11:52 PM Steven Haigh via Motion-user
> <[email protected]
> <mailto:[email protected]>> wrote:
>> Hi all,
>>
>> I'm having a hell of a time trying to do some image processing with
>> motion + nodered + home assistant + deepstack.
>>
>> I have motion configured as follows:
>> netcam_url
>> rtmp://172.31.1.245/bcs/channel0_ext.bcs?channel=0&stream=2&user=x&password=x
>>
>> <http://172.31.1.245/bcs/channel0_ext.bcs?channel=0&stream=2&user=x&password=x>
>> netcam_params framerate=30,capture_rate=30
>> width=896
>> height=672
>>
>> netcam_high_url
>> rtmp://172.31.1.245/bcs/channel0_main.bcs?channel=0&stream=0&user=x&password=x
>>
>> <http://172.31.1.245/bcs/channel0_main.bcs?channel=0&stream=0&user=x&password=x>
>> netcam_high_params framerate=15,capture_rate=15
>>
>> The camera outputs match the settings above - but the resolution on
>> netcam_high_url is 2560x1920.
>>
>> I'm trying to output the netcam_url via the motion API url /1/stream
>> and /1/current to show in the Home Assistant dashboard and feed as a
>> MJPEG camera.
>>
>> I'm also trying to output 1fps as a JPG to a file as
>> /tmp/snapshot.jpg so that I can ingest that into deepstack via
>> nodered and do object recognition.
>>
>> It seems that no matter what I do, I either destroy motion by
>> setting minimum_frame_time to 1, or get the 1fps output with that
>> option - but destroy the stream output.
>>
>> Is there a way I can ratelimit just the saving of pictures to 1 per
>> second from the netcam_high_url input?
>>
>> I've done every possible combination of configuration options, but
>> just can't seem to get this happening.
>> --
>> Steven Haigh
>>
>> ? [email protected] <mailto:[email protected]>
>> ? https://www.crc.id.au <https://www.crc.id.au/>
>> _______________________________________________
>> 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: 3
Date: Tue, 05 Apr 2022 23:35:09 +1000
From: Steven Haigh <[email protected]>
To: Motion-user <[email protected]>
Subject: [Motion-user] Updated docker images for motion
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Hi guys,
I just wanted to drop a note to mention that I've done a lot of work to
minimise the existing docker development and build a new docker
container using alpine as a base.
<https://hub.docker.com/r/crcinau/motion>
These packages should only be about a 30Mb download.
--
Steven Haigh
? [email protected] <mailto:[email protected]>
? https://www.crc.id.au <https://www.crc.id.au/>
-------------- 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 190, Issue 3
*******************************************