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: web control param syntax v4.5.0 (prismb...@gmail.com) 2. Re: Wrong Video Duration since upgrade to motion 4.5 (MrDave) ---------------------------------------------------------------------- Message: 1 Date: Sat, 17 Dec 2022 11:46:48 -0800 From: prismb...@gmail.com To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] web control param syntax v4.5.0 Message-ID: <CAGd+P+ZoPn=RJ9DOpttzMKzNcsdehr4bxx=vr90k8uujoj-...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" FYI: I don't know if it's related, but I could not get that form to work with motionplus. This is the format that works for MP: curl -X POST http://192.168.1.xxx:8080 -d "camid=999&command=pause" curl -X POST http://192.168.1.xxx:8080 -d "camid=999&command=config&threshold=750" On Fri, Dec 16, 2022 at 8:17 PM MrDave <motionmrd...@gmail.com> wrote: > Nope....no more parms needed. > > $ curl http://localhost:8080/81/detection/status > Camera 81 Detection status ACTIVE > > $ curl http://localhost:8080/81/detection/pause > $ curl http://localhost:8080/81/detection/status > Camera 81 Detection status PAUSE > > $ curl http://localhost:8080/81/detection/start > $ curl http://localhost:8080/81/detection/status > Camera 81 Detection status ACTIVE > > Does it report the correct status? > > On 12/16/2022 1:15 PM, Richard Bown wrote: > > Hi all, sorry about the line wrap but I think this list does not like > > html postings > > sending :- > > odroid@odroid:~$ /usr/bin/lwp-request > > http://localhost:7770/101/detection/pause > > > > (All one 1 line ) > > > > cam_id is 101 > > > > [0:cn0] [DBG] [STR] [Dec 16 20:04:43] webu_parseurl: Sent url: > > /101/detection/pause > > > > [0:cn0] [DBG] [STR] [Dec 16 20:04:43] webu_parseurl: Decoded url: > > /101/detection/pause > > > > > > [0:cn0] [DBG] [STR] [Dec 16 20:04:43] webu_parseurl: camid: >101< cmd1: > >> detection< cmd2: >pause< parm1:>< val1:>< parm2:>< val2:>< > > [0:wu0] [INF] [ALL] [Dec 16 20:04:43] webu_answer_ctrl: Connection > > from: 127.0.0.1 > > > > then it carries on detecting motion and writing the mkv file > > > > What did I screw up, it seems to be whats in the docs , seems to want > > more parms ??? > > > > > _______________________________________________ > 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... ------------------------------ Message: 2 Date: Sat, 17 Dec 2022 14:24:26 -0700 From: MrDave <motionmrd...@gmail.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Wrong Video Duration since upgrade to motion 4.5 Message-ID: <a9573705-29cb-3c4b-4ef5-43507d967...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" Just to wrap this one up for me, I have absolutely no idea how something like this could occur. On 12/15/2022 10:14 AM, Arvid Ihnen via Motion-user wrote: > Hi, > ? ?many thanks for trying to reproduce the issue. > I did some further investigations and figured out two things. > > 1) ?For ever recording I wrote the approximate duration into the SQL > database using the following configuration: > sql_query_stop UPDATE motion SET length = timestampdiff(SECOND, > time_stamp, '%Y-%m-%d %T')*1000,time_stamp_end = '%Y-%m-%d %T' WHERE > filename = '%f' > > For some recordings the length is also about 42minutes too high. The > recordings with the wrong Duration and the one with the wrong entry in > the database are not always the same. > > > 2) Looking at the logfile it shows that every "ERR" entry is also > about 42 minutes too high. How is this possible? > > [9:nc9:Tor] [NTC] [NET] [Dec 15 17:11:03] netcam_rtsp_connect: norm: > Camera (Tor) connected > [9:nc9:Tor] [NTC] [NET] [Dec 15 17:11:03] netcam_rtsp_connect: norm: > Unable to determine the camera source FPS. > [8:nc8:Katzenloch] [NTC] [NET] [Dec 15 17:11:03] netcam_rtsp_connect: > norm: Camera (Katzenloch) connected > [9:nc9:Tor] [ERR] [NET] [Dec 15 17:54:10] > netcam_rtsp_handler_reconnect: norm: Reconnecting with camera.... > [7:nc7:Garten] [ERR] [NET] [Dec 15 17:54:10] > netcam_rtsp_handler_reconnect: norm: Reconnecting with camera.... > [7:nc7:Garten] [NTC] [NET] [Dec 15 17:12:03] netcam_rtsp_connect: > norm: Camera (Garten) connected > [9:nc9:Tor] [NTC] [NET] [Dec 15 17:12:03] netcam_rtsp_connect: norm: > Camera (Tor) connected > [9:nc9:Tor] [NTC] [NET] [Dec 15 17:12:03] netcam_rtsp_connect: norm: > Unable to determine the camera source FPS. > [7:nc7:Garten] [ERR] [NET] [Dec 15 17:55:10] > netcam_rtsp_handler_reconnect: norm: Reconnecting with camera.... > [9:nc9:Tor] [ERR] [NET] [Dec 15 17:55:10] > netcam_rtsp_handler_reconnect: norm: Reconnecting with camera.... > [7:nc7:Garten] [NTC] [NET] [Dec 15 17:13:03] netcam_rtsp_connect: > norm: Camera (Garten) connected > [9:nc9:Tor] [NTC] [NET] [Dec 15 17:13:03] netcam_rtsp_connect: norm: > Camera (Tor) connected > [9:nc9:Tor] [NTC] [NET] [Dec 15 17:13:03] netcam_rtsp_connect: norm: > Unable to determine the camera source FPS. > [1:ml1:Garten] [NTC] [ALL] [Dec 15 17:13:16] motion_detected: Motion > detected - starting event 28. > [1:ml1:Garten] [WRN] [DBL] [Dec 15 17:13:16] dbse_firstmotion: > Ignoring empty sql query > [1:ml1:Garten] [NTC] [EVT] [Dec 15 17:13:16] event_newfile: Writing > movie to file: /motion/new/Garten/20221215171315.mp4 > [7:nc7:Garten] [ERR] [NET] [Dec 15 17:56:10] > netcam_rtsp_handler_reconnect: norm: Reconnecting with camera.... > [7:nc7:Garten] [NTC] [NET] [Dec 15 17:14:03] netcam_rtsp_connect: > norm: Camera (Garten) connected > [1:ml1:Garten] [NTC] [EVT] [Dec 15 17:14:29] event_newfile: Writing > image to file: /motion/new/Garten/20221215171346.jpg > [1:ml1:Garten] [NTC] [ALL] [Dec 15 17:14:29] mlp_actions: End of event 28 > [1:ml1:Garten] [NTC] [ALL] [Dec 15 17:14:31] motion_detected: Motion > detected - starting event 29. > [1:ml1:Garten] [WRN] [DBL] [Dec 15 17:14:31] dbse_firstmotion: > Ignoring empty sql query > [1:ml1:Garten] [NTC] [EVT] [Dec 15 17:14:31] event_newfile: Writing > movie to file: /motion/new/Garten/20221215171430.mp4 > [7:nc7:Garten] [ERR] [NET] [Dec 15 17:57:10] > netcam_rtsp_handler_reconnect: norm: Reconnecting with camera.... > [1:ml1:Garten] [NTC] [EVT] [Dec 15 17:15:02] event_newfile: Writing > image to file: /motion/new/Garten/20221215171431.jpg > > Best Regards > ? ? Stefan > >> Am 15.12.2022 um 03:27 schrieb MrDave <motionmrd...@gmail.com>: >> >> Just a FYI that I am unable to reproduce this issue.? All durations >> are reported correctly. >> >> On 12/14/2022 12:11 AM, Arvid Ihnen via Motion-user wrote: >>> HI, >>> ? thanks for your replies. >>> >>> @Tony: Not sure what the viewing of the video has to do with the >>> generation? >>> >>> @MrDave: Here is the (hopefully) relevant part of the configuration: >>> minimum_frame_time 0 >>> movie_max_time 0 >>> movie_output on >>> movie_bps 400000 >>> movie_quality 60 >>> movie_codec mp4 >>> timelapse_codec mpg >>> movie_duplicate_frames off >>> movie_extpipe_use off >>> framerate 25 >>> width 1920 >>> height ?1080 >>> >>> As far as understood, it is encoded. >>> >>> Best Regards >>> ? ? Stefan >>> >>>> Am 14.12.2022 um 00:55 schrieb MrDave <motionmrd...@gmail.com>: >>>> >>>> Is this? via the passthrough option or encoded? >>>> >>>> >>>> On 12/13/2022 4:46 PM, Tony wrote: >>>>> My suggestion is to observe the output of "top"? for excessive cpu >>>>> usage while viewing the mp4 >>>>> >>>>> On Dec 13, 2022 14:58, Arvid Ihnen via Motion-user >>>>> <motion-user@lists.sourceforge.net> wrote: >>>>> >>>>> Hi, >>>>> ? I just upgraded my docker based motion system from 4.3.1 to >>>>> 4.5.0. Since then some of the videos shows a wrong duration. >>>>> Attached is an example of the mediainfo output of a captured >>>>> video, which is in reality about 50 seconds long: >>>>> >>>>> General >>>>> Complete name ? ? : 20221213150454.mp4 >>>>> Format : MPEG-4 >>>>> Format profile ? ? ? : Base Media >>>>> Codec ID : isom (isom/iso2/avc1/mp41) >>>>> File size : 9.02 MiB >>>>> Duration : 42 min 16 s >>>>> Overall bit rate : 29.8 kb/s >>>>> Writing application ? ? : Lavf57.83.100 >>>>> >>>>> Video >>>>> ID : 1 >>>>> Format : AVC >>>>> Format/Info : Advanced Video Codec >>>>> Format profile ? ? ? : Baseline@L4 >>>>> Format settings ? ? ? : 1 Ref Frames >>>>> Format settings, CABAC ? ? ? : No >>>>> Format settings, Reference frames ? ? ? : 1 frame >>>>> Format settings, GOP ? ? ? : M=1, N=12 >>>>> Codec ID : avc1 >>>>> Codec ID/Info ? ? ? : Advanced Video Coding >>>>> Duration : 42 min 16 s >>>>> Bit rate : 11.9 Mb/s >>>>> Width : 1 920 pixels >>>>> Height : 1 080 pixels >>>>> Display aspect ratio ? ? : 16:9 >>>>> Frame rate : 25.000 FPS >>>>> Color space : YUV >>>>> Chroma subsampling ? ? ? : 4:2:0 >>>>> Bit depth : 8 bits >>>>> Scan type : Progressive >>>>> Bits/(Pixel*Frame) ? ? ? ? ? ? ? ? ? ? ? : 0.230 >>>>> Stream size : 9.02 MiB (100%) >>>>> Writing library ? ? : x264 core 152 r2854 e9a5903 >>>>> Encoding settings ? ? : cabac=0 / ref=1 / deblock=0:0:0 / >>>>> analyse=0:0 / me=dia / subme=0 / psy=1 / psy_rd=1.00:0.00 / >>>>> mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 >>>>> / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / >>>>> threads=4 / lookahead_threads=4 / sliced_threads=1 / slices=4 >>>>> / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / >>>>> constrained_intra=0 / bframes=0 / weightp=0 / keyint=12 / >>>>> keyint_min=1 / scenecut=0 / intra_refresh=0 / rc=crf / >>>>> mbtree=0 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / >>>>> qpstep=4 / ip_ratio=1.40 / aq=0 >>>>> Codec configuration box ? ? ? : avcC >>>>> >>>>> I did not change any configuration parameter from 4.3.1 to >>>>> 4.5.0. When playing the video (almost) the last frame is >>>>> displayed for the remaining time. Any idea? >>>>> >>>>> Many thanks for your help! >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 > > > > _______________________________________________ > 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 196, Issue 18 ********************************************