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: Multiple movie files per event (Jack Christensen)
   2. Re: Multiple movie files per event (tosiara)


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

Message: 1
Date: Fri, 11 Feb 2022 11:56:33 -0500
From: Jack Christensen <christensen.jac...@gmail.com>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Multiple movie files per event
Message-ID: <5c719aa9-9ba4-a29e-a789-c5a4158c7...@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

Here is an example with movie_max_time 30 and -d 9.

Durations as reported by ffmpeg 28.768, 29.998, 28.778, 37.256, 15.608.
Elapsed time from the timestamps on the videos 0:29, 0:46, 0:29, 0:40, 0:15.

[1:ml1:CAM3] [NTC] [ALL] [Feb 11 10:42:35] motion_detected: Motion 
detected - starting event 34
[1:ml1:CAM3] [INF] [EVT] [Feb 11 10:42:35] event_ffmpeg_newfile: Source 
FPS 4
[1:ml1:CAM3] [INF] [ENC] [Feb 11 10:42:35] ffmpeg_set_quality: libx264 
codec vbr/crf/bit_rate: 25
[1:ml1:CAM3] [NTC] [EVT] [Feb 11 10:42:35] event_newfile: Writing movie 
to file: /home/jack/motion-output/3-20220211-104234-034.mkv
[1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:43:04] exec_command: Executing 
external command '/home/jack/sync.sh 
/home/jack/motion-output/3-20220211-104234-034.mkv'
[1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:43:04] event_closefile: Saved movie 
to file: /home/jack/motion-output/3-20220211-104234-034.mkv
[1:ml1:CAM3] [INF] [EVT] [Feb 11 10:43:04] event_ffmpeg_newfile: Source 
FPS 1
[1:ml1:CAM3] [INF] [ENC] [Feb 11 10:43:04] ffmpeg_set_quality: libx264 
codec vbr/crf/bit_rate: 25
[1:ml1:CAM3] [NTC] [EVT] [Feb 11 10:43:04] event_newfile: Writing movie 
to file: /home/jack/motion-output/3-20220211-104304-034.mkv
[1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:43:51] exec_command: Executing 
external command '/home/jack/sync.sh 
/home/jack/motion-output/3-20220211-104304-034.mkv'
[1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:43:51] event_closefile: Saved movie 
to file: /home/jack/motion-output/3-20220211-104304-034.mkv
[1:ml1:CAM3] [INF] [EVT] [Feb 11 10:43:51] event_ffmpeg_newfile: Source 
FPS 4
[1:ml1:CAM3] [INF] [ENC] [Feb 11 10:43:51] ffmpeg_set_quality: libx264 
codec vbr/crf/bit_rate: 25
[1:ml1:CAM3] [NTC] [EVT] [Feb 11 10:43:51] event_newfile: Writing movie 
to file: /home/jack/motion-output/3-20220211-104350-034.mkv
[1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:44:20] exec_command: Executing 
external command '/home/jack/sync.sh 
/home/jack/motion-output/3-20220211-104350-034.mkv'
[1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:44:20] event_closefile: Saved movie 
to file: /home/jack/motion-output/3-20220211-104350-034.mkv
[1:ml1:CAM3] [INF] [EVT] [Feb 11 10:44:20] event_ffmpeg_newfile: Source 
FPS 1
[1:ml1:CAM3] [INF] [ENC] [Feb 11 10:44:20] ffmpeg_set_quality: libx264 
codec vbr/crf/bit_rate: 25
[1:ml1:CAM3] [NTC] [EVT] [Feb 11 10:44:20] event_newfile: Writing movie 
to file: /home/jack/motion-output/3-20220211-104420-034.mkv
[1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:45:01] exec_command: Executing 
external command '/home/jack/sync.sh 
/home/jack/motion-output/3-20220211-104420-034.mkv'
[1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:45:01] event_closefile: Saved movie 
to file: /home/jack/motion-output/3-20220211-104420-034.mkv
[1:ml1:CAM3] [INF] [EVT] [Feb 11 10:45:01] event_ffmpeg_newfile: Source 
FPS 3
[1:ml1:CAM3] [INF] [ENC] [Feb 11 10:45:01] ffmpeg_set_quality: libx264 
codec vbr/crf/bit_rate: 25
[1:ml1:CAM3] [NTC] [EVT] [Feb 11 10:45:02] event_newfile: Writing movie 
to file: /home/jack/motion-output/3-20220211-104501-034.mkv
[1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:46:16] exec_command: Executing 
external command '/home/jack/sync.sh 
/home/jack/motion-output/3-20220211-104501-034.mkv'
[1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:46:16] event_closefile: Saved movie 
to file: /home/jack/motion-output/3-20220211-104501-034.mkv
[1:ml1:CAM3] [NTC] [ALL] [Feb 11 10:46:16] mlp_actions: End of event 34

On 2/10/22 13:35, tosiara wrote:
> Strange that the first movie was not exactly 1:00
> And if you change movie_max_time to 30 - do you get more shorter movies?
>
> On Thu, Feb 10, 2022 at 8:14 PM Jack Christensen
> <christensen.jac...@gmail.com> wrote:
>> Here is just the first example with -d 9. Let me know if that doesn't
>> fit the criteria you wanted. The two files are 0:11 and 0:10 in length,
>> but cover 1:05 and 0:11 elapsed time, respectively.
>>
>> [1:ml1:CAM3] [NTC] [ALL] [Feb 10 12:57:05] motion_detected: Motion
>> detected - starting event 1
>> [1:ml1:CAM3] [INF] [EVT] [Feb 10 12:57:05] event_ffmpeg_newfile: Source
>> FPS 4
>> [1:ml1:CAM3] [INF] [ENC] [Feb 10 12:57:05] ffmpeg_set_quality: libx264
>> codec vbr/crf/bit_rate: 25
>> [1:ml1:CAM3] [NTC] [EVT] [Feb 10 12:57:05] event_newfile: Writing movie
>> to file: /home/jack/motion-output/3-20220210-125704-001.mkv
>> [1:ml1:CAM3] [DBG] [EVT] [Feb 10 12:58:10] exec_command: Executing
>> external command '/home/jack/sync.sh
>> /home/jack/motion-output/3-20220210-125704-001.mkv'
>> [1:ml1:CAM3] [DBG] [EVT] [Feb 10 12:58:10] event_closefile: Saved movie
>> to file: /home/jack/motion-output/3-20220210-125704-001.mkv
>> [1:ml1:CAM3] [INF] [EVT] [Feb 10 12:58:10] event_ffmpeg_newfile: Source
>> FPS 4
>> [1:ml1:CAM3] [INF] [ENC] [Feb 10 12:58:10] ffmpeg_set_quality: libx264
>> codec vbr/crf/bit_rate: 25
>> [1:ml1:CAM3] [NTC] [EVT] [Feb 10 12:58:10] event_newfile: Writing movie
>> to file: /home/jack/motion-output/3-20220210-125809-001.mkv
>> [1:ml1:CAM3] [DBG] [EVT] [Feb 10 12:59:20] exec_command: Executing
>> external command '/home/jack/sync.sh
>> /home/jack/motion-output/3-20220210-125809-001.mkv'
>> [1:ml1:CAM3] [DBG] [EVT] [Feb 10 12:59:20] event_closefile: Saved movie
>> to file: /home/jack/motion-output/3-20220210-125809-001.mkv
>> [1:ml1:CAM3] [NTC] [ALL] [Feb 10 12:59:20] mlp_actions: End of event 1
>>
>> On 2/10/22 02:41, tosiara wrote:
>>> movie_max_time 60 means that new movie file will be created for an
>>> event that lasts longer than 60 seconds. You should see new file
>>> created every 60 seconds. Not necessarily resulted movies will all be
>>> 60 seconds long, as if there was no motion gap during the event -
>>> frames are not recorded
>>>
>>> Maybe you could share a log file with -d 9 that contains at least two
>>> events each not less than 60 sec?
>>>
>>>
>>> On Thu, Feb 10, 2022 at 12:13 AM Jack Christensen
>>> <christensen.jac...@gmail.com> wrote:
>>>> Since installing 4.4.0 (on three Raspberry Pi ZeroW, from source), I am
>>>> seeing a new behavior; a single event will sometimes generate multiple
>>>> movie files. I guess this is not particularly an issue, but I wonder why
>>>> it occurs now when I didn't notice it before. Configuration file is the
>>>> same, I have movie_max_time 60. Wondering if anyone else has noticed this.
>>>>
>>>> For example, from the motion log. These four files were 22, 28, 9 and 15
>>>> seconds in length.
>>>>
>>>> [1:ml1:CAM2] [NTC] [ALL] [Feb 09 16:44:42] motion_detected: Motion
>>>> detected - starting event 117
>>>> [1:ml1:CAM2] [NTC] [EVT] [Feb 09 16:44:43] event_newfile: Writing movie
>>>> to file: /home/jack/motion-output/2-20220209-164442-117.mkv
>>>> [1:ml1:CAM2] [NTC] [EVT] [Feb 09 16:46:33] event_newfile: Writing movie
>>>> to file: /home/jack/motion-output/2-20220209-164633-117.mkv
>>>> [1:ml1:CAM2] [NTC] [EVT] [Feb 09 16:48:00] event_newfile: Writing movie
>>>> to file: /home/jack/motion-output/2-20220209-164759-117.mkv
>>>> [1:ml1:CAM2] [NTC] [EVT] [Feb 09 16:49:04] event_newfile: Writing movie
>>>> to file: /home/jack/motion-output/2-20220209-164903-117.mkv
>>>> [1:ml1:CAM2] [NTC] [ALL] [Feb 09 16:50:18] mlp_actions: End of event 117
>>>>
>



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

Message: 2
Date: Fri, 11 Feb 2022 22:16:17 +0200
From: tosiara <tosi...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Multiple movie files per event
Message-ID:
        <cachtdwqfjaryx-jjzjrkd7t3r-9azofth7jqow5xczlj3+-...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Could you also show the top of the log where it dumos all the effective
config options?

On Fri, Feb 11, 2022, 18:57 Jack Christensen <christensen.jac...@gmail.com>
wrote:

> Here is an example with movie_max_time 30 and -d 9.
>
> Durations as reported by ffmpeg 28.768, 29.998, 28.778, 37.256, 15.608.
> Elapsed time from the timestamps on the videos 0:29, 0:46, 0:29, 0:40,
> 0:15.
>
> [1:ml1:CAM3] [NTC] [ALL] [Feb 11 10:42:35] motion_detected: Motion
> detected - starting event 34
> [1:ml1:CAM3] [INF] [EVT] [Feb 11 10:42:35] event_ffmpeg_newfile: Source
> FPS 4
> [1:ml1:CAM3] [INF] [ENC] [Feb 11 10:42:35] ffmpeg_set_quality: libx264
> codec vbr/crf/bit_rate: 25
> [1:ml1:CAM3] [NTC] [EVT] [Feb 11 10:42:35] event_newfile: Writing movie
> to file: /home/jack/motion-output/3-20220211-104234-034.mkv
> [1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:43:04] exec_command: Executing
> external command '/home/jack/sync.sh
> /home/jack/motion-output/3-20220211-104234-034.mkv'
> [1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:43:04] event_closefile: Saved movie
> to file: /home/jack/motion-output/3-20220211-104234-034.mkv
> [1:ml1:CAM3] [INF] [EVT] [Feb 11 10:43:04] event_ffmpeg_newfile: Source
> FPS 1
> [1:ml1:CAM3] [INF] [ENC] [Feb 11 10:43:04] ffmpeg_set_quality: libx264
> codec vbr/crf/bit_rate: 25
> [1:ml1:CAM3] [NTC] [EVT] [Feb 11 10:43:04] event_newfile: Writing movie
> to file: /home/jack/motion-output/3-20220211-104304-034.mkv
> [1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:43:51] exec_command: Executing
> external command '/home/jack/sync.sh
> /home/jack/motion-output/3-20220211-104304-034.mkv'
> [1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:43:51] event_closefile: Saved movie
> to file: /home/jack/motion-output/3-20220211-104304-034.mkv
> [1:ml1:CAM3] [INF] [EVT] [Feb 11 10:43:51] event_ffmpeg_newfile: Source
> FPS 4
> [1:ml1:CAM3] [INF] [ENC] [Feb 11 10:43:51] ffmpeg_set_quality: libx264
> codec vbr/crf/bit_rate: 25
> [1:ml1:CAM3] [NTC] [EVT] [Feb 11 10:43:51] event_newfile: Writing movie
> to file: /home/jack/motion-output/3-20220211-104350-034.mkv
> [1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:44:20] exec_command: Executing
> external command '/home/jack/sync.sh
> /home/jack/motion-output/3-20220211-104350-034.mkv'
> [1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:44:20] event_closefile: Saved movie
> to file: /home/jack/motion-output/3-20220211-104350-034.mkv
> [1:ml1:CAM3] [INF] [EVT] [Feb 11 10:44:20] event_ffmpeg_newfile: Source
> FPS 1
> [1:ml1:CAM3] [INF] [ENC] [Feb 11 10:44:20] ffmpeg_set_quality: libx264
> codec vbr/crf/bit_rate: 25
> [1:ml1:CAM3] [NTC] [EVT] [Feb 11 10:44:20] event_newfile: Writing movie
> to file: /home/jack/motion-output/3-20220211-104420-034.mkv
> [1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:45:01] exec_command: Executing
> external command '/home/jack/sync.sh
> /home/jack/motion-output/3-20220211-104420-034.mkv'
> [1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:45:01] event_closefile: Saved movie
> to file: /home/jack/motion-output/3-20220211-104420-034.mkv
> [1:ml1:CAM3] [INF] [EVT] [Feb 11 10:45:01] event_ffmpeg_newfile: Source
> FPS 3
> [1:ml1:CAM3] [INF] [ENC] [Feb 11 10:45:01] ffmpeg_set_quality: libx264
> codec vbr/crf/bit_rate: 25
> [1:ml1:CAM3] [NTC] [EVT] [Feb 11 10:45:02] event_newfile: Writing movie
> to file: /home/jack/motion-output/3-20220211-104501-034.mkv
> [1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:46:16] exec_command: Executing
> external command '/home/jack/sync.sh
> /home/jack/motion-output/3-20220211-104501-034.mkv'
> [1:ml1:CAM3] [DBG] [EVT] [Feb 11 10:46:16] event_closefile: Saved movie
> to file: /home/jack/motion-output/3-20220211-104501-034.mkv
> [1:ml1:CAM3] [NTC] [ALL] [Feb 11 10:46:16] mlp_actions: End of event 34
>
> On 2/10/22 13:35, tosiara wrote:
> > Strange that the first movie was not exactly 1:00
> > And if you change movie_max_time to 30 - do you get more shorter movies?
> >
> > On Thu, Feb 10, 2022 at 8:14 PM Jack Christensen
> > <christensen.jac...@gmail.com> wrote:
> >> Here is just the first example with -d 9. Let me know if that doesn't
> >> fit the criteria you wanted. The two files are 0:11 and 0:10 in length,
> >> but cover 1:05 and 0:11 elapsed time, respectively.
> >>
> >> [1:ml1:CAM3] [NTC] [ALL] [Feb 10 12:57:05] motion_detected: Motion
> >> detected - starting event 1
> >> [1:ml1:CAM3] [INF] [EVT] [Feb 10 12:57:05] event_ffmpeg_newfile: Source
> >> FPS 4
> >> [1:ml1:CAM3] [INF] [ENC] [Feb 10 12:57:05] ffmpeg_set_quality: libx264
> >> codec vbr/crf/bit_rate: 25
> >> [1:ml1:CAM3] [NTC] [EVT] [Feb 10 12:57:05] event_newfile: Writing movie
> >> to file: /home/jack/motion-output/3-20220210-125704-001.mkv
> >> [1:ml1:CAM3] [DBG] [EVT] [Feb 10 12:58:10] exec_command: Executing
> >> external command '/home/jack/sync.sh
> >> /home/jack/motion-output/3-20220210-125704-001.mkv'
> >> [1:ml1:CAM3] [DBG] [EVT] [Feb 10 12:58:10] event_closefile: Saved movie
> >> to file: /home/jack/motion-output/3-20220210-125704-001.mkv
> >> [1:ml1:CAM3] [INF] [EVT] [Feb 10 12:58:10] event_ffmpeg_newfile: Source
> >> FPS 4
> >> [1:ml1:CAM3] [INF] [ENC] [Feb 10 12:58:10] ffmpeg_set_quality: libx264
> >> codec vbr/crf/bit_rate: 25
> >> [1:ml1:CAM3] [NTC] [EVT] [Feb 10 12:58:10] event_newfile: Writing movie
> >> to file: /home/jack/motion-output/3-20220210-125809-001.mkv
> >> [1:ml1:CAM3] [DBG] [EVT] [Feb 10 12:59:20] exec_command: Executing
> >> external command '/home/jack/sync.sh
> >> /home/jack/motion-output/3-20220210-125809-001.mkv'
> >> [1:ml1:CAM3] [DBG] [EVT] [Feb 10 12:59:20] event_closefile: Saved movie
> >> to file: /home/jack/motion-output/3-20220210-125809-001.mkv
> >> [1:ml1:CAM3] [NTC] [ALL] [Feb 10 12:59:20] mlp_actions: End of event 1
> >>
> >> On 2/10/22 02:41, tosiara wrote:
> >>> movie_max_time 60 means that new movie file will be created for an
> >>> event that lasts longer than 60 seconds. You should see new file
> >>> created every 60 seconds. Not necessarily resulted movies will all be
> >>> 60 seconds long, as if there was no motion gap during the event -
> >>> frames are not recorded
> >>>
> >>> Maybe you could share a log file with -d 9 that contains at least two
> >>> events each not less than 60 sec?
> >>>
> >>>
> >>> On Thu, Feb 10, 2022 at 12:13 AM Jack Christensen
> >>> <christensen.jac...@gmail.com> wrote:
> >>>> Since installing 4.4.0 (on three Raspberry Pi ZeroW, from source), I
> am
> >>>> seeing a new behavior; a single event will sometimes generate multiple
> >>>> movie files. I guess this is not particularly an issue, but I wonder
> why
> >>>> it occurs now when I didn't notice it before. Configuration file is
> the
> >>>> same, I have movie_max_time 60. Wondering if anyone else has noticed
> this.
> >>>>
> >>>> For example, from the motion log. These four files were 22, 28, 9 and
> 15
> >>>> seconds in length.
> >>>>
> >>>> [1:ml1:CAM2] [NTC] [ALL] [Feb 09 16:44:42] motion_detected: Motion
> >>>> detected - starting event 117
> >>>> [1:ml1:CAM2] [NTC] [EVT] [Feb 09 16:44:43] event_newfile: Writing
> movie
> >>>> to file: /home/jack/motion-output/2-20220209-164442-117.mkv
> >>>> [1:ml1:CAM2] [NTC] [EVT] [Feb 09 16:46:33] event_newfile: Writing
> movie
> >>>> to file: /home/jack/motion-output/2-20220209-164633-117.mkv
> >>>> [1:ml1:CAM2] [NTC] [EVT] [Feb 09 16:48:00] event_newfile: Writing
> movie
> >>>> to file: /home/jack/motion-output/2-20220209-164759-117.mkv
> >>>> [1:ml1:CAM2] [NTC] [EVT] [Feb 09 16:49:04] event_newfile: Writing
> movie
> >>>> to file: /home/jack/motion-output/2-20220209-164903-117.mkv
> >>>> [1:ml1:CAM2] [NTC] [ALL] [Feb 09 16:50:18] mlp_actions: End of event
> 117
> >>>>
> >
>
>
> _______________________________________________
> 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 188, Issue 12
********************************************

Reply via email to