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: Missing frames in movies (tosiara)
2. Re: Missing frames in movies (Jack Christensen)
----------------------------------------------------------------------
Message: 1
Date: Mon, 10 Feb 2020 17:26:57 +0200
From: tosiara <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] Missing frames in movies
Message-ID:
<cachtdwswhka4_hb7qehikb+w8slzqeqpar9jw0lyg8c9t7w...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I do not recall exactly, maybe
For sure you can modify your file name format and add "%fps" - then you
will see actual framerate in the file name with your current log level
On Mon, Feb 10, 2020 at 5:13 PM Jack Christensen <
[email protected]> wrote:
> Would I need a log_level greater than 6 for that?
>
> With log_level 6, I just see framerate in one message at startup, e.g.:
>
> mmalcam_start: MMAL Camera thread starting... for camera (vc.ril.camera)
> of 896 x 504 at 4 fps
>
> For each event, I only see three lines, e.g.:
>
> event_newfile: File of type 8 saved to:
> /home/jack/motion-output/2-20200209-023725-001.mkv
> motion_detected: Motion detected - starting event 1
> mlp_actions: End of event 1
> event_newfile: File of type 8 saved to:
> /home/jack/motion-output/2-20200209-023940-002.mkv
> motion_detected: Motion detected - starting event 2
> mlp_actions: End of event 2
> event_newfile: File of type 8 saved to:
> /home/jack/motion-output/2-20200209-024138-003.mkv
> motion_detected: Motion detected - starting event 3
> mlp_actions: End of event 3
> On 2/10/20 9:50 AM, tosiara wrote:
>
> Check for FPS in your log when motion records a movie - it will reflect
> the real frame rate that motion is processing
>
> On Mon, Feb 10, 2020 at 4:45 PM Jack Christensen <
> [email protected]> wrote:
>
>> I also wondered about resource issues on such modest machines. Watching
>> the CPU utilization and load averages, I didn't think I saw too much
>> cause for concern. The 15-minute load average runs about 0.33 and top
>> shows about 250MB available memory.
>>
>> I wonder if Motion gives any indication of resource issues. I did try
>> increasing the log_level setting but did not see anything in the logs.
>>
>> I collected 24-hour load stats from my camera machines. All are Pi Zero
>> Ws with the V2 Pi camera. Attached is a chart of the data for cam2,
>> which had the largest spike. There were several longer than usual movies
>> at about that time, so that may account for the spike.
>>
>> They do get busy at times for relatively short intervals, but the
>> missing frames are consistent, I'm pretty sure they're in every movie.
>>
>> hostname avg15 avg05 avg01 max15 max05 max01
>> cam1 0.35 0.36 0.36 0.55 0.66 1.03
>> cam2 0.32 0.33 0.33 0.59 1.00 1.54
>> cam3 0.31 0.32 0.33 0.56 0.77 1.31
>>
>>
>> On 2/8/20 5:55 PM, Dave Howorth wrote:
>> > On Sat, 8 Feb 2020 15:57:55 -0500
>> > Jack Christensen <[email protected]> wrote:
>> >
>> >> Once Motion starts recording a movie, should it continually capture
>> >> frames at the configured rate until the end of the event? I am using a
>> >> framerate of 4, but missing frames are common, and only seeing one
>> >> frame per second in the recorded movie is not unusual. If this is
>> >> expected behavior, what causes it?
>> > Dunno, but I see similar things on my system and I put it down to
>> > limited processor power. My system is an older pi and my camera is
>> > USB-connected, which I believe make my problems worse so I've never got
>> > around to investigating further. I see a frame rate of 1 or 2 frames a
>> > second, very rarely a third.
>> >
>> >> I am using Raspberry Pi Zero Ws with V2 Pi cameras. I have observed
>> >> this with Motion 4.2.2 both on Raspbian Lite Stretch and Raspbian Lite
>> >> Buster, but it seems more pronounced with Buster.
>> >>
>> >> Config file attached.
>> >
>> > _______________________________________________
>> > 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
>
>
>
> _______________________________________________
> Motion-user mailing
> [email protected]https://lists.sourceforge.net/lists/listinfo/motion-userhttps://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
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Mon, 10 Feb 2020 10:38:18 -0500
From: Jack Christensen <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] Missing frames in movies
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Ah yes, I increased log_level to 8 and now I see a message like this for
each event:
event_new_video: Source FPS 4
I'll let that run for a while and see if it ever changes.
But it's not that the entire movie is at a different framerate, it's
seemingly random frames missing within a movie. For example, here are
the timestamps I see on an 8-second movie, going frame by frame:
10:46:57-02
10:46:57-03
10:46:58-00
10:46:59-00
10:46:59-01
10:47:00-00
10:47:00-01
10:47:01-00
10:47:02-00
10:47:02-01
10:47:03-00
10:47:04-00
10:47:04-01
10:47:05-00
10:47:05-01
On 2/10/20 10:13 AM, Jack Christensen wrote:
> Would I need a log_level greater than 6 for that?
>
> With log_level 6, I just see framerate in one message at startup, e.g.:
>
> mmalcam_start: MMAL Camera thread starting... for camera
> (vc.ril.camera) of 896 x 504 at 4 fps
>
> For each event, I only see three lines, e.g.:
>
> event_newfile: File of type 8 saved to:
> /home/jack/motion-output/2-20200209-023725-001.mkv
> motion_detected: Motion detected - starting event 1
> mlp_actions: End of event 1
> event_newfile: File of type 8 saved to:
> /home/jack/motion-output/2-20200209-023940-002.mkv
> motion_detected: Motion detected - starting event 2
> mlp_actions: End of event 2
> event_newfile: File of type 8 saved to:
> /home/jack/motion-output/2-20200209-024138-003.mkv
> motion_detected: Motion detected - starting event 3
> mlp_actions: End of event 3
>
> On 2/10/20 9:50 AM, tosiara wrote:
>> Check for FPS in your log when motion records a movie - it will
>> reflect the real frame rate that motion is processing
>>
>> On Mon, Feb 10, 2020 at 4:45 PM Jack Christensen
>> <[email protected] <mailto:[email protected]>>
>> wrote:
>>
>> I also wondered about resource issues on such modest machines.
>> Watching
>> the CPU utilization and load averages, I didn't think I saw too much
>> cause for concern. The 15-minute load average runs about 0.33 and top
>> shows about 250MB available memory.
>>
>> I wonder if Motion gives any indication of resource issues. I did try
>> increasing the log_level setting but did not see anything in the
>> logs.
>>
>> I collected 24-hour load stats from my camera machines. All are
>> Pi Zero
>> Ws with the V2 Pi camera. Attached is a chart of the data for cam2,
>> which had the largest spike. There were several longer than usual
>> movies
>> at about that time, so that may account for the spike.
>>
>> They do get busy at times for relatively short intervals, but the
>> missing frames are consistent, I'm pretty sure they're in every
>> movie.
>>
>> hostname? avg15? avg05? avg01? max15? max05? max01
>> cam1????? 0.35?? 0.36?? 0.36?? 0.55?? 0.66?? 1.03
>> cam2????? 0.32?? 0.33?? 0.33?? 0.59?? 1.00?? 1.54
>> cam3????? 0.31?? 0.32?? 0.33?? 0.56?? 0.77?? 1.31
>>
>>
>> On 2/8/20 5:55 PM, Dave Howorth wrote:
>> > On Sat, 8 Feb 2020 15:57:55 -0500
>> > Jack Christensen <[email protected]
>> <mailto:[email protected]>> wrote:
>> >
>> >> Once Motion starts recording a movie, should it continually
>> capture
>> >> frames at the configured rate until the end of the event? I am
>> using a
>> >> framerate of 4, but missing frames are common, and only seeing one
>> >> frame per second in the recorded movie is not unusual. If this is
>> >> expected behavior, what causes it?
>> > Dunno, but I see similar things on my system and I put it down to
>> > limited processor power. My system is an older pi and my camera is
>> > USB-connected, which I believe make my problems worse so I've
>> never got
>> > around to investigating further. I see a frame rate of 1 or 2
>> frames a
>> > second, very rarely a third.
>> >
>> >> I am using Raspberry Pi Zero Ws with V2 Pi cameras. I have
>> observed
>> >> this with Motion 4.2.2 both on Raspbian Lite Stretch and
>> Raspbian Lite
>> >> Buster, but it seems more pronounced with Buster.
>> >>
>> >> Config file attached.
>> >
>> > _______________________________________________
>> > 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
>> _______________________________________________
>> 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
>>
>>
>>
>> _______________________________________________
>> 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
------------------------------
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 164, Issue 22
********************************************