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: Second threshold at same camera (Tony Ross)
   2. gcc compiler flag to enable all-cores stream processing?
      (Tony Ross)
   3. Re: gcc compiler flag to enable all-cores stream processing?
      (tosiara)
   4. Re: gcc compiler flag to enable all-cores stream processing?
      (Tony)


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

Message: 1
Date: Sun, 27 Oct 2019 08:43:25 -0700
From: Tony Ross <ynots...@yahoo.com>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Second threshold at same camera
Message-ID: <e15f896f-7177-d752-f03d-5485b9470...@yahoo.com>
Content-Type: text/plain; charset=utf-8; format=flowed

Why not a camera2.conf file monitoring the same camera stream with 
different parameters.

On 10/25/19 3:13 AM, walexand wrote:
> I am using motion 4.2.2 on a Raspberry Pi.
>
> Is it possible, to define a second threshold level at the same camera
> and trigger an external program, when second threshold is reached?
> For example, first threshold level at 5% percent changing pixels and
> second theshold at 40%?
>
> I want to detect the neighbours cat and start picture capturing when its
> entering my cat ladder. When its up the ladder to a certain height, I
> want to open a magnetic valve to spray him with water.
>
> Believe me, I love cats and I dont want to hurt any. Even the bad
> neighbours cat. He is a beautiful male cat, but he really harasses my 
> cat.
>
> So, any chance to trigger an external script on a higher threshold level?
>
> Thanks in Advance
> Regards
> Alex
>
>
> _______________________________________________
> 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
>




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

Message: 2
Date: Sun, 27 Oct 2019 09:23:09 -0700
From: Tony Ross <ynots...@yahoo.com>
To: motion-user@lists.sourceforge.net
Subject: [Motion-user] gcc compiler flag to enable all-cores stream
        processing?
Message-ID: <26626d07-f559-3bcd-cc1a-a6760cef7...@yahoo.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

I've compiled motion 4.2.2 on an Odroid XU4 monitoring 2 IP cameras at 
15 fps, and find the CPUs to be overloaded with "top" reporting ~300%, 
After about 1/2 day of this, the XU4 suffers shutdown:

|Tasks: 128 total, 1 running, 127 sleeping, 0 stopped, 0 zombie %Cpu0 
:100.0 us, 0.0 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu1 
: 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu2 
: 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu3 
: 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu4 
: 88.9 us, 11.1 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu5 
: 56.2 us, 0.0 sy, 0.0 ni, 43.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu6 
: 64.7 us, 0.0 sy, 0.0 ni, 35.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu7 
: 0.0 us, 6.2 sy, 0.0 ni, 93.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st MiB 
Mem : 1996.9 total, 1111.6 free, 343.6 used, 541.7 buff/cache MiB Swap: 
998.4 total, 998.4 free, 0.0 used. 1590.6 avail Mem PID USER PR NI VIRT 
RES SHR S %CPU %MEM TIME+ COMMAND 988 tross 20 0 489868 265712 6916 S 
*306.2* 13.0 165:21.87 motion 2996 root 20 0 4660 2032 1676 R 6.2 0.1 
0:00.03 top 1 root 20 0 31036 6736 5216 S 0.0 0.3 0:04.70 systemd ... |

It occurs to me that the XU4's Samsung Exynos5422 Cortex???-A15 2Ghz and 
Cortex???-A7 Octa core CPUs should be able to handle 2 IP cameras, so I'm 
wondering please if there are any CFLAGS that can be passed to gcc 8.3.0 
to make better use of the available processors. I don't have the 
programming knowledge necessary to make changes to the C code, but can 
apply a diff file if someone has one.


-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 3
Date: Sun, 27 Oct 2019 19:41:55 +0200
From: tosiara <tosi...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] gcc compiler flag to enable all-cores
        stream processing?
Message-ID:
        <cachtdwq1cbinphaby1ulyt+e6ymrponb6fbqx6xry4ukc-c...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

You don't need any flags, and there are no any flag that control
number of threads being used. You should be fine running 2, 3 and more
cameras depending on resolution and fps.
What is your issue? If it is "XU4 suffers shutdown" - then motion does
not control directly any shutdown process, check your hardware and OS

On Sun, Oct 27, 2019 at 6:24 PM Tony Ross via Motion-user
<motion-user@lists.sourceforge.net> wrote:
>
> I've compiled motion 4.2.2 on an Odroid XU4 monitoring 2 IP cameras at 15 
> fps, and find the CPUs to be overloaded with "top" reporting?? ~300%, After 
> about 1/2 day of this, the XU4 suffers shutdown:
>
> Tasks: 128 total,   1 running, 127 sleeping,   0 stopped,   0 zombie
> %Cpu0  :100.0 us,  0.0 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
> st
> %Cpu1  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
> st
> %Cpu2  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
> st
> %Cpu3  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
> st
> %Cpu4  : 88.9 us, 11.1 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
> st
> %Cpu5  : 56.2 us,  0.0 sy,  0.0 ni, 43.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
> st
> %Cpu6  : 64.7 us,  0.0 sy,  0.0 ni, 35.3 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
> st
> %Cpu7  :  0.0 us,  6.2 sy,  0.0 ni, 93.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
> st
> MiB Mem :   1996.9 total,   1111.6 free,    343.6 used,    541.7 buff/cache
> MiB Swap:    998.4 total,    998.4 free,      0.0 used.   1590.6 avail Mem
>
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
>   988 tross     20   0  489868 265712   6916 S 306.2  13.0 165:21.87 motion
>  2996 root      20   0    4660   2032   1676 R   6.2   0.1   0:00.03 top
>     1 root      20   0   31036   6736   5216 S   0.0   0.3   0:04.70 systemd
> ...
>
> It occurs to me that the XU4's Samsung Exynos5422 Cortex???-A15 2Ghz and 
> Cortex???-A7 Octa core CPUs should be able to handle 2 IP cameras, so I'm 
> wondering please if there are any CFLAGS that can be passed to gcc 8.3.0 to 
> make better use of the available processors. I don't have the programming 
> knowledge necessary to make changes to the C code, but can apply a diff file 
> if someone has one.
>
>
> _______________________________________________
> 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



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

Message: 4
Date: Sun, 27 Oct 2019 17:50:02 +0000
From: Tony <ynots...@hotmail.com>
To: "motion-user@lists.sourceforge.net"
        <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] gcc compiler flag to enable all-cores
        stream processing?
Message-ID:
        
<cy4pr0701mb3810f888799be5c17367e516de...@cy4pr0701mb3810.namprd07.prod.outlook.com>
        
Content-Type: text/plain; charset="utf-8"

On 10/27/19 10:41 AM, tosiara wrote:
> You don't need any flags, and there are no any flag that control
> number of threads being used. You should be fine running 2, 3 and more
> cameras depending on resolution and fps.
> What is your issue? If it is "XU4 suffers shutdown" - then motion does
> not control directly any shutdown process, check your hardware and OS

I have checked hardware and OS thoroughly in the Odroid user groups 
before asking here, and everything works properly until motion is 
running at 300+% CPU.
> On Sun, Oct 27, 2019 at 6:24 PM I wrote:
>> I've compiled motion 4.2.2 on an Odroid XU4 monitoring 2 IP cameras at 15 
>> fps, and find the CPUs to be overloaded with "top" reporting?? ~300%, After 
>> about 1/2 day of this, the XU4 suffers shutdown:
>>
>> Tasks: 128 total,   1 running, 127 sleeping,   0 stopped,   0 zombie
>> %Cpu0  :100.0 us,  0.0 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
>> st
>> %Cpu1  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
>> st
>> %Cpu2  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
>> st
>> %Cpu3  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
>> st
>> %Cpu4  : 88.9 us, 11.1 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
>> st
>> %Cpu5  : 56.2 us,  0.0 sy,  0.0 ni, 43.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
>> st
>> %Cpu6  : 64.7 us,  0.0 sy,  0.0 ni, 35.3 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
>> st
>> %Cpu7  :  0.0 us,  6.2 sy,  0.0 ni, 93.8 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 
>> st
>> MiB Mem :   1996.9 total,   1111.6 free,    343.6 used,    541.7 buff/cache
>> MiB Swap:    998.4 total,    998.4 free,      0.0 used.   1590.6 avail Mem
>>
>>    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
>>    988 tross     20   0  489868 265712   6916 S 306.2  13.0 165:21.87 motion
>>   2996 root      20   0    4660   2032   1676 R   6.2   0.1   0:00.03 top
>>      1 root      20   0   31036   6736   5216 S   0.0   0.3   0:04.70 systemd
>> ...
>>
>> It occurs to me that the XU4's Samsung Exynos5422 Cortex-A15 2Ghz and 
>> Cortex-A7 Octa core CPUs should be able to handle 2 IP cameras, so I'm 
>> wondering please if there are any CFLAGS that can be passed to gcc 8.3.0 to 
>> make better use of the available processors. I don't have the programming 
>> knowledge necessary to make changes to the C code, but can apply a diff file 
>> if someone has one.


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



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

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 160, Issue 19
********************************************

Reply via email to