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: Replay scenes -- network_url file:// (Rainer Dorsch) 2. Re: Replay scenes -- network_url file:// (Rainer Dorsch) 3. Reprocessing movie does not repro original result (Rainer Dorsch) ---------------------------------------------------------------------- Message: 1 Date: Wed, 26 Feb 2020 21:28:32 +0100 From: Rainer Dorsch <m...@bokomoko.de> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Replay scenes -- network_url file:// Message-ID: <2688441.sCqUUXFeFe@nanette> Content-Type: text/plain; charset="iso-8859-1" Thanks, Manu. That is what I did, but I uses a timeout large enough instead of checking. I was hoping for a more elegant way, but it seems to be good enough. Rainer On Mittwoch, 26. Februar 2020 21:19:53 CET manu.kemppai...@yahoo.com wrote: > It seem there are no callbacks for video end. Since it is a video and > duration can be checked you could just use timeout to run motion. > https://www.howtoforge.com/linux-timeout-command/ > > -- > Manu > > > -------- Alkuper?inen viesti -------- > L?hett?j?: Rainer Dorsch via Motion-user <motion-user@lists.sourceforge.net> > P?iv?m??r?: ke 26. helmik. 2020 klo 20.38 > Vastaanottaja: Motion discussion list <motion-user@lists.sourceforge.net> > Kopio: Rainer Dorsch <m...@bokomoko.de> > Aihe: Re: [Motion-user] Replay scenes -- network_url file:// > > No, I do not see that, but I see "Reconnecting with camera". Can I abort > instead of reconnecting with camera? > > I think it replays the file forever, I see entries like this one in the log > > [2:nc2:Cam0-replay] [INF] [NET] [Feb 26 19:35:30] netcam_rtsp_read_image: > Normal resolution: av_read_frame: End of file ,Interrupt: False > [2:nc2:Cam0-replay] [ERR] [NET] [Feb 26 19:35:30] > netcam_rtsp_handler_reconnect: Normal resolution: Reconnecting with > camera.... [2:nc2:Cam0-replay] [INF] [NET] [Feb 26 19:35:30] > netcam_rtsp_set_file: Normal resolution: Setting attributes to read file > [2:nc2:Cam0-replay] [INF] [NET] [Feb 26 19:35:30] netcam_rtsp_open_context: > Normal resolution: Opened camera(Cam0-replay) > [2:nc2:Cam0-replay] [NTC] [NET] [Feb 26 19:35:30] netcam_rtsp_connect: > Normal resolution: Camera (Cam0-replay) connected > [1:ml1:Cam0-replay] [INF] [ALL] [Feb 26 19:35:31] mlp_setupmode: Raw > changes: 210 - changes after 'EedDl': 128 - labels: 1 - noise level: > 21 > > > I put a logfile here: > > http://scw.bokomoko.de/~rd/motion/manual-replay.log > > Thanks > Rainer > > > On Mittwoch, 26. Februar 2020 18:27:32 CET manu.kemppainen--- via > Motion-user > wrote: > > For stopping motion in the end of file check if motion calls trigger > > on_camera_lost. I haven't used the file: input for motion so I don't know > > if on_camera_lost is called but since there are no frames coming I would > > assume so. > > > > > > -- > > Manu > > > > > > -------- Alkuper?inen viesti -------- > > L?hett?j?: tosiara <tosi...@gmail.com> > > P?iv?m??r?: ke 26. helmik. 2020 klo 12.12 > > Vastaanottaja: Motion discussion list <motion-user@lists.sourceforge.net> > > Aihe: Re: [Motion-user] Replay scenes -- network_url file:// > > > > For motion detection you can use scripts: > > https://motion-project.github.io/motion_config.html#on_motion_detected > > > > > > On Wed, Feb 26, 2020 at 11:55 AM Rainer Dorsch via Motion-user > > <motion-user@lists.sourceforge.net> wrote: > > > > Hi, > > > > a quick question for network_url file:/// > > > > is there a way to make motion exiting if the file ends? > > > > rd@master:~/Motion$ motion -c /home/rd/Motion/motion/motion.conf -d 9 -n > > > > does not return unfortunately :-/ > > > > Also is there a better way to find out if there was an event detected than > > to grep the log file for motion_detected? > > > > Thanks > > Rainer > > > > On Dienstag, 25. Februar 2020 20:32:56 CET Rainer Dorsch via Motion-user > > > > wrote: > > > Hi, > > > > > > in order to optimize parameters, I would be quite beneficial to be able > > > to > > > replay some scenes or even just a few days of video material. I found > > > the > > > file:// input of netcam_url, which looks very promising. > > > > > > I thought that capturing the camera stream with ffmpeg is best to get a > > > good one-to-one correspondence of running on the file:// replay and > > > running on the camera stream rtsp:// itself. > > > > > > I am struggling somewhat with the sentence > > > > > > "Note that since the file may have been created using a different > > > framerate > > > than specified in the Motion config file, the file may be processed at > > > either a faster or slower rate than real time." > > > > > > Does "processed" mean just CPU utilization or does it mean that the > > > replay > > > will not work properly on time based options (e.g. event_gap) or even > > > worse > > > on frame based options? > > > > > > Thanks > > > Rainer > > > > > > > > > > > > > > > _______________________________________________ > > > 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 ------------------------------ Message: 2 Date: Thu, 27 Feb 2020 09:03:58 +0100 From: Rainer Dorsch <m...@bokomoko.de> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Replay scenes -- network_url file:// Message-ID: <4656558.PD1yeO0mPo@nanette> Content-Type: text/plain; charset="iso-8859-1" I understood that the file:// option is for "This option may be useful for "reprocessing" a movie created by Motion to fine tune the detection options. " Is there a scenario in which the rewinding (i.e. reconnect with camera) of the video makes sense? If not, does it make sense to open a bug report? Thanks Rainer On Mittwoch, 26. Februar 2020 21:28:32 CET Rainer Dorsch via Motion-user wrote: > Thanks, Manu. > > That is what I did, but I uses a timeout large enough instead of checking. I > was hoping for a more elegant way, but it seems to be good enough. > > Rainer > > On Mittwoch, 26. Februar 2020 21:19:53 CET manu.kemppai...@yahoo.com wrote: > > It seem there are no callbacks for video end. Since it is a video and > > duration can be checked you could just use timeout to run motion. > > https://www.howtoforge.com/linux-timeout-command/ > > > > -- > > Manu > > > > > > -------- Alkuper?inen viesti -------- > > L?hett?j?: Rainer Dorsch via Motion-user > > <motion-user@lists.sourceforge.net> P?iv?m??r?: ke 26. helmik. 2020 klo > > 20.38 > > Vastaanottaja: Motion discussion list <motion-user@lists.sourceforge.net> > > Kopio: Rainer Dorsch <m...@bokomoko.de> > > Aihe: Re: [Motion-user] Replay scenes -- network_url file:// > > > > No, I do not see that, but I see "Reconnecting with camera". Can I abort > > instead of reconnecting with camera? > > > > I think it replays the file forever, I see entries like this one in the > > log > > > > [2:nc2:Cam0-replay] [INF] [NET] [Feb 26 19:35:30] netcam_rtsp_read_image: > > Normal resolution: av_read_frame: End of file ,Interrupt: False > > [2:nc2:Cam0-replay] [ERR] [NET] [Feb 26 19:35:30] > > netcam_rtsp_handler_reconnect: Normal resolution: Reconnecting with > > camera.... [2:nc2:Cam0-replay] [INF] [NET] [Feb 26 19:35:30] > > netcam_rtsp_set_file: Normal resolution: Setting attributes to read file > > [2:nc2:Cam0-replay] [INF] [NET] [Feb 26 19:35:30] > > netcam_rtsp_open_context: > > Normal resolution: Opened camera(Cam0-replay) > > [2:nc2:Cam0-replay] [NTC] [NET] [Feb 26 19:35:30] netcam_rtsp_connect: > > Normal resolution: Camera (Cam0-replay) connected > > [1:ml1:Cam0-replay] [INF] [ALL] [Feb 26 19:35:31] mlp_setupmode: Raw > > changes: 210 - changes after 'EedDl': 128 - labels: 1 - noise level: > > 21 > > > > > > I put a logfile here: > > > > http://scw.bokomoko.de/~rd/motion/manual-replay.log > > > > Thanks > > Rainer > > > > > > On Mittwoch, 26. Februar 2020 18:27:32 CET manu.kemppainen--- via > > Motion-user > > > > wrote: > > > For stopping motion in the end of file check if motion calls trigger > > > on_camera_lost. I haven't used the file: input for motion so I don't > > > know > > > if on_camera_lost is called but since there are no frames coming I would > > > assume so. > > > > > > > > > -- > > > Manu > > > > > > > > > -------- Alkuper?inen viesti -------- > > > L?hett?j?: tosiara <tosi...@gmail.com> > > > P?iv?m??r?: ke 26. helmik. 2020 klo 12.12 > > > Vastaanottaja: Motion discussion list > > > <motion-user@lists.sourceforge.net> > > > Aihe: Re: [Motion-user] Replay scenes -- network_url file:// > > > > > > For motion detection you can use scripts: > > > https://motion-project.github.io/motion_config.html#on_motion_detected > > > > > > > > > On Wed, Feb 26, 2020 at 11:55 AM Rainer Dorsch via Motion-user > > > <motion-user@lists.sourceforge.net> wrote: > > > > > > Hi, > > > > > > a quick question for network_url file:/// > > > > > > is there a way to make motion exiting if the file ends? > > > > > > rd@master:~/Motion$ motion -c /home/rd/Motion/motion/motion.conf -d 9 -n > > > > > > does not return unfortunately :-/ > > > > > > Also is there a better way to find out if there was an event detected > > > than > > > to grep the log file for motion_detected? > > > > > > Thanks > > > Rainer > > > > > > On Dienstag, 25. Februar 2020 20:32:56 CET Rainer Dorsch via Motion-user > > > > > > wrote: > > > > Hi, > > > > > > > > in order to optimize parameters, I would be quite beneficial to be > > > > able > > > > to > > > > replay some scenes or even just a few days of video material. I found > > > > the > > > > file:// input of netcam_url, which looks very promising. > > > > > > > > I thought that capturing the camera stream with ffmpeg is best to get > > > > a > > > > good one-to-one correspondence of running on the file:// replay and > > > > running on the camera stream rtsp:// itself. > > > > > > > > I am struggling somewhat with the sentence > > > > > > > > "Note that since the file may have been created using a different > > > > framerate > > > > than specified in the Motion config file, the file may be processed at > > > > either a faster or slower rate than real time." > > > > > > > > Does "processed" mean just CPU utilization or does it mean that the > > > > replay > > > > will not work properly on time based options (e.g. event_gap) or even > > > > worse > > > > on frame based options? > > > > > > > > Thanks > > > > Rainer > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > 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 > > _______________________________________________ > 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: 3 Date: Thu, 27 Feb 2020 09:10:33 +0100 From: Rainer Dorsch <m...@bokomoko.de> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: [Motion-user] Reprocessing movie does not repro original result Message-ID: <2224313.gmFRUMOv56@nanette> Content-Type: text/plain; charset="us-ascii" Hi, I record a mkv video with motion, if a motion event is detected. I reprocess this mkv video with exact the same parameters. There are a few minor adaptions which are needed for reprocessing (e.g. I change the log file to a video specific file). The original video is recorded with pre_capture 30, that I have a few extra frames before the event,is that maybe not enough? Any idea why I could see a deviation is very welcome. Thanks Rainer ------------------------------ ------------------------------ 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 164, Issue 41 ********************************************