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: ip camera 50hz or 60hz (Roger Heflin)
   2. Re: ip camera 50hz or 60hz (Harlan Daneker)


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

Message: 1
Date: Fri, 19 Feb 2021 12:22:29 -0600
From: Roger Heflin <roger.hef...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] ip camera 50hz or 60hz
Message-ID:
        <caamcdedqu3ixj6hfn693wxsvzyq5we9ecq-pwbs66nj-tgt...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

The hz is for isolation from potential power line frequency caused
flickering not so much frame rate.

If the cpu on the machine running motion cannot decode the RTSP stream
at full speed/full resolution/full fps that will cause lagging.   If
it has to write out an event that will further stress the cpu.   Type
"top -H" and it will show you the thread for each camera.  If any one
of those threads is 100% or close to it, or if the whole machine is
then you don't have enough cpu power to handle motion running at that
frame rate/resolution.

I have also had mine lag when doing remote view and had to turn down
the quality and fps of the remote stream to what my uplink can handle.

On Fri, Feb 19, 2021 at 6:23 AM tosiara <tosi...@gmail.com> wrote:
>
> Hm, interesting
>
> I'm also chasing an issue with one of my RTSP cameras where the stream
> gets behind by 5-10 seconds in motion compared with the live view
> after running for 2 weeks. Will try to see if those Hz settings affect
> my case
>
> On Fri, Feb 19, 2021 at 12:34 AM Harlan Daneker <hdane...@gmail.com> wrote:
> >
> >
> > I'm setting up four 5MP ip cameras using the rtsp stream. I'm in the United 
> > States so I set the video format to 60hz. When streaming video through 
> > motion the stream progressively lagged behind real time to the point you 
> > would see what happened after it happened.
> >
> > I started viewing the timestamp from the camera and motion at the same time 
> > and as time went by they got farther and farther apart. Then I restarted 
> > motion and it started over.
> >
> > One of the cameras was not doing this and the only difference was I left 
> > that camera at 50hz. I changed all the cameras to 50hz and the problem 
> > seems to have been fixed.
> >
> > I thought 50hz or 60hz was only for flicker. Does anybody know why this 
> > would make any difference?
> >
> > Thanks,
> > Harlan
> > _______________________________________________
> > 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
>
>
> _______________________________________________
> 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: Fri, 19 Feb 2021 16:22:13 -0500
From: Harlan Daneker <hdane...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] ip camera 50hz or 60hz
Message-ID:
        <CAC1WkiSTtS1ox7uO=ytb51nrleddbmuzb3jwhgheorfrppc...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

The point is that the hz adjustment is only supposed to be for flickering
so why did it fix lagging. The lagging was progressive over time for all 4
cameras (I could see it start within a few hours). The CPU usage is
generally about 50% or less, the memory about 25%. The lagging has stopped
since I changed from 60hz to 50hz and I'm trying to find an explanation.
I'm looking at all 4 cameras right now and there is a little lag, but I got
that with analog cameras too. I have not changed anything else or restarted
motion.

On Fri, Feb 19, 2021 at 1:23 PM Roger Heflin <roger.hef...@gmail.com> wrote:

> The hz is for isolation from potential power line frequency caused
> flickering not so much frame rate.
>
> If the cpu on the machine running motion cannot decode the RTSP stream
> at full speed/full resolution/full fps that will cause lagging.   If
> it has to write out an event that will further stress the cpu.   Type
> "top -H" and it will show you the thread for each camera.  If any one
> of those threads is 100% or close to it, or if the whole machine is
> then you don't have enough cpu power to handle motion running at that
> frame rate/resolution.
>
> I have also had mine lag when doing remote view and had to turn down
> the quality and fps of the remote stream to what my uplink can handle.
>
> On Fri, Feb 19, 2021 at 6:23 AM tosiara <tosi...@gmail.com> wrote:
> >
> > Hm, interesting
> >
> > I'm also chasing an issue with one of my RTSP cameras where the stream
> > gets behind by 5-10 seconds in motion compared with the live view
> > after running for 2 weeks. Will try to see if those Hz settings affect
> > my case
> >
> > On Fri, Feb 19, 2021 at 12:34 AM Harlan Daneker <hdane...@gmail.com>
> wrote:
> > >
> > >
> > > I'm setting up four 5MP ip cameras using the rtsp stream. I'm in the
> United States so I set the video format to 60hz. When streaming video
> through motion the stream progressively lagged behind real time to the
> point you would see what happened after it happened.
> > >
> > > I started viewing the timestamp from the camera and motion at the same
> time and as time went by they got farther and farther apart. Then I
> restarted motion and it started over.
> > >
> > > One of the cameras was not doing this and the only difference was I
> left that camera at 50hz. I changed all the cameras to 50hz and the problem
> seems to have been fixed.
> > >
> > > I thought 50hz or 60hz was only for flicker. Does anybody know why
> this would make any difference?
> > >
> > > Thanks,
> > > Harlan
> > > _______________________________________________
> > > 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
> >
> >
> > _______________________________________________
> > 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
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...

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



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

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 176, Issue 30
********************************************

Reply via email to