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. Suggestions to improve my setup (Willy Gardiol)
   2. Re: remote usb webcam (fugee ohu)
   3. Re: remote usb webcam (folkert)
   4. Re: remote usb webcam (fugee ohu)


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

Message: 1
Date: Fri, 07 Aug 2020 14:50:00 +0200
From: Willy Gardiol <[email protected]>
To: [email protected]
Subject: [Motion-user] Suggestions to improve my setup
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII; format=flowed


Hi all!
I have been working on my setup for many hours now... i try to describe 
it to you, then i will ask a couple of questions.

CPU: Intel(R) Xeon(R) CPU E3-1535M v5 @ 2.90GHz
RAM: 16GB
OS: Gentoo Linux

Cameras:
5 AXIS 211M IP cams
4 Chinese V380 IP cams
2 DAHUA Bullet IP cams
1 Misecu full-hd IP cam

The AXIS cams are configured as http://<ip>/snapshot.jpg, at 1280x1024
The V380 cams are configured as RTSP 640x480 (using secondary stream to 
match resolution)
The DAHUA cams are configured as RTSP at 1280x960
The MISECU cam is configured as RTSP at 1920x1080 (again, to match 
resolution)

My system is running over 200% of CPU, and quite often the V380 cams 
simply do not show any image ( i get a lot of "connection refused" in 
the logs). I pinned down the issues to excessive CPU usage (whoa, not 
that hard eh!), because if i shut down the other cams and bring CPU back 
under 80%, the V380s do work properly.

I did some extensive debug and checks:

     Each AXIS camera (configured as JPG snapshot) uses about 5% of CPU
     Each DAHUA/MISECU RTSP camera eats up to 15% or CPU.
     Each V380 camera on RTSP eats up to 30% CPU.

Lowering resolution do help a bit, but i cannot really go lower than 
what i already set, and the MISECU is fixed at 1920x1080 anyway.

I do use movie passtrough...

My questions

     Is it normal that RTSP uses so much more CPU than snapshot image 
grabbing?
     Does Motion uses multi-core or is it forced to one core only?
     Would setup a second pc and share the cameras between the two 
actually help?
     What would you do in my situation? Buy a more powerfull pc?

I could setup the two dahua cams over snapsot as well, but they require 
digest HTTP authentication which is not supported ny Motion on http, so 
it's useless.

thank you
in general, any suggestion is well accepted.

-- 
Willy Gardiol
[email protected]
www.gardiol.org
www.trackaway.org -> Track YOUR way the way you want!



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

Message: 2
Date: Fri, 7 Aug 2020 12:43:47 -0400
From: fugee ohu <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] remote usb webcam
Message-ID:
        <cadca9rnv6rwtsyrhgu6szquwuynqhxv5gr7nxzq1mvdtaws...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Why did you use spaces in the instance name and them represent them
with %20 in the url?

On Thu, Aug 6, 2020 at 7:14 AM folkert <[email protected]> wrote:
>
> You could run constatus on that other system and let it export that USB
> camera as an MJPEG stream ( https://vanheusden.com/constatus/ ).
> Motion can then pick it up via netcam_url and do with it whatever you
> require.
>
> e.g. constatus configuration:
>
> logfile = "camera.log";
> log-level = "info";
>
> instances = (
> {
>         instance-name = "some usb cam";
>
>         source = {
>                 id = "1-1";
>                 descr = "my usb camera cam";
>                 type = "v4l";
>                 device = "/dev/video0";
>                 # resolution of your camera
>                 width = 1280;
>                 height = 720;
>                 max-fps = -1.0;
>                 prefer-jpeg = true;
>         }
> }
> )
>
> global-http-server = ({
>                 id = "2-1";
>                 descr = "http interface";
>                 listen-adapter = "0.0.0.0";
>                 listen-port = 8080;
>                 # here I limit the output to 15fps
>                 # set to -1.0 for same fps as source
>                 fps = 15.0;
>                 quality = 75;
>                 stylesheet = "stylesheet.css";
> })
>
>
> the url would then be:
>
> http://my-ip-adres:8080/stream.mjpeg?inst=some%20usb%20cam
>
> e.g.:
> netcam_url http://my-ip-adres:8080/stream.mjpeg?inst=some%20usb%20cam
>
> On Thu, Aug 06, 2020 at 04:24:25AM -0400, fugee ohu wrote:
> > I wanna use a usb webcam on a remote machine Which directive to use
> > I'm thinking I should use the netcam_url and the netcam_userpass
> > directives Although the camera doesn't require a username and
> > password, the remote machine does
>
>
> _______________________________________________
> 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: 3
Date: Fri, 7 Aug 2020 19:20:09 +0200
From: folkert <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] remote usb webcam
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Because in the web-interface, it'll show them without %20 but with
spaces.

On Fri, Aug 07, 2020 at 12:43:47PM -0400, fugee ohu wrote:
> Why did you use spaces in the instance name and them represent them
> with %20 in the url?
> 
> On Thu, Aug 6, 2020 at 7:14 AM folkert <[email protected]> wrote:
> >
> > You could run constatus on that other system and let it export that USB
> > camera as an MJPEG stream ( https://vanheusden.com/constatus/ ).
> > Motion can then pick it up via netcam_url and do with it whatever you
> > require.
> >
> > e.g. constatus configuration:
> >
> > logfile = "camera.log";
> > log-level = "info";
> >
> > instances = (
> > {
> >         instance-name = "some usb cam";
> >
> >         source = {
> >                 id = "1-1";
> >                 descr = "my usb camera cam";
> >                 type = "v4l";
> >                 device = "/dev/video0";
> >                 # resolution of your camera
> >                 width = 1280;
> >                 height = 720;
> >                 max-fps = -1.0;
> >                 prefer-jpeg = true;
> >         }
> > }
> > )
> >
> > global-http-server = ({
> >                 id = "2-1";
> >                 descr = "http interface";
> >                 listen-adapter = "0.0.0.0";
> >                 listen-port = 8080;
> >                 # here I limit the output to 15fps
> >                 # set to -1.0 for same fps as source
> >                 fps = 15.0;
> >                 quality = 75;
> >                 stylesheet = "stylesheet.css";
> > })
> >
> >
> > the url would then be:
> >
> > http://my-ip-adres:8080/stream.mjpeg?inst=some%20usb%20cam
> >
> > e.g.:
> > netcam_url http://my-ip-adres:8080/stream.mjpeg?inst=some%20usb%20cam
> >
> > On Thu, Aug 06, 2020 at 04:24:25AM -0400, fugee ohu wrote:
> > > I wanna use a usb webcam on a remote machine Which directive to use
> > > I'm thinking I should use the netcam_url and the netcam_userpass
> > > directives Although the camera doesn't require a username and
> > > password, the remote machine does
> >
> >
> > _______________________________________________
> > 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
> 
> 
> _______________________________________________
> 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


Folkert van Heusden

-- 
Curious about the inner workings of your car? Then check O2OO: it'll
tell you all that there is to know about your car's engine!
http://www.vanheusden.com/O2OO/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com



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

Message: 4
Date: Fri, 7 Aug 2020 13:24:46 -0400
From: fugee ohu <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] remote usb webcam
Message-ID:
        <cadca9ro_iu5wra9ia7i+6sird27z9n8ghv7dczvmeenylyn...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Do you mean with %20 instead of spaces

On Fri, Aug 7, 2020, 1:22 PM folkert <[email protected]> wrote:

> Because in the web-interface, it'll show them without %20 but with
> spaces.
>
> On Fri, Aug 07, 2020 at 12:43:47PM -0400, fugee ohu wrote:
> > Why did you use spaces in the instance name and them represent them
> > with %20 in the url?
> >
> > On Thu, Aug 6, 2020 at 7:14 AM folkert <[email protected]> wrote:
> > >
> > > You could run constatus on that other system and let it export that USB
> > > camera as an MJPEG stream ( https://vanheusden.com/constatus/ ).
> > > Motion can then pick it up via netcam_url and do with it whatever you
> > > require.
> > >
> > > e.g. constatus configuration:
> > >
> > > logfile = "camera.log";
> > > log-level = "info";
> > >
> > > instances = (
> > > {
> > >         instance-name = "some usb cam";
> > >
> > >         source = {
> > >                 id = "1-1";
> > >                 descr = "my usb camera cam";
> > >                 type = "v4l";
> > >                 device = "/dev/video0";
> > >                 # resolution of your camera
> > >                 width = 1280;
> > >                 height = 720;
> > >                 max-fps = -1.0;
> > >                 prefer-jpeg = true;
> > >         }
> > > }
> > > )
> > >
> > > global-http-server = ({
> > >                 id = "2-1";
> > >                 descr = "http interface";
> > >                 listen-adapter = "0.0.0.0";
> > >                 listen-port = 8080;
> > >                 # here I limit the output to 15fps
> > >                 # set to -1.0 for same fps as source
> > >                 fps = 15.0;
> > >                 quality = 75;
> > >                 stylesheet = "stylesheet.css";
> > > })
> > >
> > >
> > > the url would then be:
> > >
> > > http://my-ip-adres:8080/stream.mjpeg?inst=some%20usb%20cam
> > >
> > > e.g.:
> > > netcam_url http://my-ip-adres:8080/stream.mjpeg?inst=some%20usb%20cam
> > >
> > > On Thu, Aug 06, 2020 at 04:24:25AM -0400, fugee ohu wrote:
> > > > I wanna use a usb webcam on a remote machine Which directive to use
> > > > I'm thinking I should use the netcam_url and the netcam_userpass
> > > > directives Although the camera doesn't require a username and
> > > > password, the remote machine does
> > >
> > >
> > > _______________________________________________
> > > 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
> >
> >
> > _______________________________________________
> > 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
>
>
> Folkert van Heusden
>
> --
> Curious about the inner workings of your car? Then check O2OO: it'll
> tell you all that there is to know about your car's engine!
> http://www.vanheusden.com/O2OO/
> ----------------------------------------------------------------------
> Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
>
>
> _______________________________________________
> 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...

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



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

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user


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

End of Motion-user Digest, Vol 170, Issue 4
*******************************************

Reply via email to