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: clip quality issues (tosiara) 2. Re: clip quality issues (tosiara) ---------------------------------------------------------------------- Message: 1 Date: Wed, 14 Aug 2019 11:21:26 +0300 From: tosiara <tosi...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] clip quality issues Message-ID: <cachtdwrvfjuvzomnsz58_zx6xcryp7yab3zdlgsuq81cza+...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" RTSP "generates lots of artifacts" and RTMP "have frame repeats and missing segments" sounds as pretty much the same Could you please set up your cameras as RTSP, run the same test once again and reupload the motion.log? On Wed, Aug 14, 2019 at 11:15 AM B?lint Tak?cs <tak...@gmail.com> wrote: > Hi, > > I am trying to use motion for my 4x RLC-WS411 camera setup over 896x512 25 > fps streams. > > OS is Ubuntu 18.04, first trying the official package, then the latest git > master that I have compiled myself. > > My problem is that motion output clips that seems to have frame repeats > and missing segments. However, running "ffmpeg -i rtmp://URL -vcodec copy > -acodec copy out.mp4 "runs without problems, and the generated clips are > perfect. > > I am connecting through rtmp as rtsp generates lots of artifacts. The > connection is wifi, and the connection does seem to have drops, but > generally, this stream is possible to view without any problems in the > camera's own client. (The high quality stream is over the available > bandwidth.) > > The CPU is an 8-core Ryzen. 'top' shows motion to run at 30-50% on one > core (with 4 cams). Also has a relatively weak Nvidia 610 card, but I > suspect it is not used anywhere. > > I have also noticed that with movie_passthrough on, the recorded .mp4 > clips seems to have garbled timestamps, at least VirtualDub gets quite > confused when reading them, showing impossible lengths. Sometimes this > occurs with passthrough off as well, and the motion clips or pictures also > have this problem. > > Also noticed that with movie_passthrough off, the recorded clips are 30x > bigger in size. > > I have tried the following: > > 1. recoding frames with picture save. At the problematic parts, motion > outputs the same frame repeatedly. It does not seem to skip frames that > time, only later. > 2. flipping options netcam_use_tcp and movie_passthrough, no change. > 3. increasing framerate, pre_capture, post_capture values to large > numbers. No change. > 4. removing filters to limit the impact of processing - no change. > 5. Given the .logs had lots of resizing messages, I have tried increasing > the packet ring buffer size in netcam_rtsp.c from 30 to 512. This seems to > have a positive effect if passthrough is off, the pauses are smaller, > although the repeated frame issue remains. > > Attached my current motion.conf I am using to experiment with, a camera > setup, and a sample .log file. > > I have also noticed that the .log has this impossible entries like > "event_new_video: Source FPS 751"; maybe that gives a hint. > > Any ideas what to try? > > Many thanks for your help, > > Balint > _______________________________________________ > 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: Wed, 14 Aug 2019 11:23:06 +0300 From: tosiara <tosi...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] clip quality issues Message-ID: <cachtdwsatib7mythfzza3fnxsou+sx_ihszwyaaqsllkxb5...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" And do you really need 1000 FPS in your config? # Maximum number of frames to be captured per second. framerate 1000 I'd suggest to specify the real framerate here On Wed, Aug 14, 2019 at 11:21 AM tosiara <tosi...@gmail.com> wrote: > RTSP "generates lots of artifacts" and RTMP "have frame repeats and > missing segments" sounds as pretty much the same > > Could you please set up your cameras as RTSP, run the same test once again > and reupload the motion.log? > > On Wed, Aug 14, 2019 at 11:15 AM B?lint Tak?cs <tak...@gmail.com> wrote: > >> Hi, >> >> I am trying to use motion for my 4x RLC-WS411 camera setup over 896x512 >> 25 fps streams. >> >> OS is Ubuntu 18.04, first trying the official package, then the latest >> git master that I have compiled myself. >> >> My problem is that motion output clips that seems to have frame repeats >> and missing segments. However, running "ffmpeg -i rtmp://URL -vcodec copy >> -acodec copy out.mp4 "runs without problems, and the generated clips are >> perfect. >> >> I am connecting through rtmp as rtsp generates lots of artifacts. The >> connection is wifi, and the connection does seem to have drops, but >> generally, this stream is possible to view without any problems in the >> camera's own client. (The high quality stream is over the available >> bandwidth.) >> >> The CPU is an 8-core Ryzen. 'top' shows motion to run at 30-50% on one >> core (with 4 cams). Also has a relatively weak Nvidia 610 card, but I >> suspect it is not used anywhere. >> >> I have also noticed that with movie_passthrough on, the recorded .mp4 >> clips seems to have garbled timestamps, at least VirtualDub gets quite >> confused when reading them, showing impossible lengths. Sometimes this >> occurs with passthrough off as well, and the motion clips or pictures also >> have this problem. >> >> Also noticed that with movie_passthrough off, the recorded clips are 30x >> bigger in size. >> >> I have tried the following: >> >> 1. recoding frames with picture save. At the problematic parts, motion >> outputs the same frame repeatedly. It does not seem to skip frames that >> time, only later. >> 2. flipping options netcam_use_tcp and movie_passthrough, no change. >> 3. increasing framerate, pre_capture, post_capture values to large >> numbers. No change. >> 4. removing filters to limit the impact of processing - no change. >> 5. Given the .logs had lots of resizing messages, I have tried increasing >> the packet ring buffer size in netcam_rtsp.c from 30 to 512. This seems to >> have a positive effect if passthrough is off, the pauses are smaller, >> although the repeated frame issue remains. >> >> Attached my current motion.conf I am using to experiment with, a camera >> setup, and a sample .log file. >> >> I have also noticed that the .log has this impossible entries like >> "event_new_video: Source FPS 751"; maybe that gives a hint. >> >> Any ideas what to try? >> >> Many thanks for your help, >> >> Balint >> _______________________________________________ >> 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 158, Issue 25 ********************************************