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: Grainy video only with motion (MrDave) 2. Re: Grainy video only with motion (David Powell) ---------------------------------------------------------------------- Message: 1 Date: Sun, 16 Apr 2023 09:06:06 -0600 From: MrDave <motionmrd...@gmail.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Grainy video only with motion Message-ID: <2ee17934-1823-dcb5-18f8-8ba087109...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" Check the log at level 8.? It will report the parameters in use. On 4/16/2023 8:58 AM, David Powell wrote: > > The 2560x1920 dimensions are for the high-res stream. I commented them > out when I switched to the low-res stream so I could remember the > values when I figure out where they should go. The 800x600 resolution > is the actual dimensions of the low-res stream coming from the > camera.? Could MotionPlus possibly be still using the commented ones?? > I would think that, even if that were the case, the later values would > take precedence.? I can try removing them altogether. > > On 4/16/23 9:36 AM, MrDave wrote: >> >> Looks like something inconsistent possibly in the logs, config, >> MotionPlus and camera.? The config posted seems to request that the >> image be scaled down to 800x600 >> >> *?The full URL of the network camera stream.** >> **netcam_url rtsp://xxxx:zzzzzzzz@10.10.6.23:554/12** >> ** >> **#width 2560** >> **#height 1920** >> **width 800** >> **height 600* >> >> >> On 4/11/2023 7:12 PM, David Powell wrote: >> >>> I have a fairly expensive (~$250) network camera that I'm using with >>> MotionPlus.? The video directly from the camera is great.? However, >>> when I play back a video (.mp4) that was recorded by MotionPlus, >>> it's very grainy.? I don't know if I can attach a sample to this >>> email, but I'll try: >>> >>> (apparently images are not allowed, the whole post got binned) >>> >>> The associated .jpg image ("best") does not have this graininess >>> problem.? I'm sure it's caused by something I've configured >>> incorrectly, but I don't know what it is. >>> >>> The log shows this when MotionPlus starts: >>> >>> *[NTC][NET][14:nc14:gate] netcam_connect: Norm: Camera (gate) >>> connected** >>> **[NTC][NET][14:nc14:gate] netcam_connect: Norm: Netcam capture FPS >>> is 15.** >>> **[NTC][NET][14:nc14:gate] netcam_connect: Norm: Unable to determine >>> the camera source FPS.** >>> **[NTC][NET][06:ml06:gate] netcam_ntc: ** >>> **[NTC][NET][06:ml06:gate] netcam_ntc: >>> ******************************************************** >>> **[NTC][NET][06:ml06:gate] netcam_ntc: The network camera is sending >>> pictures at 0x0** >>> **[NTC][NET][06:ml06:gate] netcam_ntc: resolution but config is >>> 2560x1920. If possible change** >>> **[NTC][NET][06:ml06:gate] netcam_ntc: the netcam or config so that >>> the image height and** >>> **[NTC][NET][06:ml06:gate] netcam_ntc: width are the same to lower >>> the CPU usage.** >>> **[NTC][NET][06:ml06:gate] netcam_ntc: >>> ******************************************************** >>> **[NTC][NET][06:ml06:gate] netcam_ntc: ** >>> **[NTC][NET][06:ml06:gate] mlp_check_szimg: Substream not >>> available.? Image sizes not modulo 16.** >>> **[NTC][NET][15:nc15:gate] netcam_handler: High: Camera handler >>> thread [15] started** >>> **[NTC][ALL][06:ml06:gate] mlp_ring_resize: Resizing buffer to 16 items* >>> >>> The low-res stream from the camera is 800x600, and I have it >>> configured as such.? The high-res stream is 2560x1920, which is the >>> value showing in the log excerpt above.? I don't see a way to >>> specify that in the configuration.? I don't know where MP is getting >>> the resolution to print in the log entry. >>> >>> I have several other cameras that MP is also using, and each one has >>> its own configuration file, with the common parameters in the main >>> configuration file. Only one other camera shows this graininess >>> problem, and it has a similar message in the log file. One other >>> camera has the log message but does not have the graininess. This >>> one is the only one that has the /*I*//*mage sizes not modulo 16*/ >>> entry, however (but the image size _/is/_ mod 16). >>> >>> Here is the configuration file for this camera: >>> >>> *# User defined name for the camera.** >>> **device_name gate** >>> ** >>> **# Target directory for pictures, snapshots and movies** >>> **target_dir /var/www/html/cams/gate** >>> ** >>> **# The full URL of the network camera stream.** >>> **netcam_url rtsp://xxxx:zzzzzzzz@10.10.6.23:554/12** >>> ** >>> **#width 2560** >>> **#height 1920** >>> **width 800** >>> **height 600** >>> ** >>> **# Optional high resolution URL for rtsp/rtmp cameras only.** >>> **netcam_high_url rtsp://xxxxxx:zzzzzzzzz@10.10.6.23:554/21** >>> **netcam_high_params capture_rate=pts** >>> ** >>> ** >>> **# Maximum number of frames to be captured per second.** >>> **framerate 15** >>> ** >>> **# Frames per second for the webcontrol camera stream.** >>> **stream_maxrate 3** >>> ** >>> **# Text to be overlayed in the lower left corner of images** >>> **text_left The Amazing GateCam!** >>> ** >>> **# Threshold for number of changed pixels that triggers motion.** >>> **threshold 1000** >>> ** >>> **# Enable tuning of the threshold down if possible.** >>> **threshold_tune on* >>> >>> Does anyone know what may be causing the graininess in the movies? >>> >>> Thanks >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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... ------------------------------ Message: 2 Date: Sun, 16 Apr 2023 10:51:25 -0500 From: David Powell <da...@depowell.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Grainy video only with motion Message-ID: <0ae26eaf-9194-0f74-4a72-dd7e7e92a...@depowell.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" I tried it at log level 8, and it's definitely using the 800x600 settings. Not sure where it's getting the idea that the config is set for 2560x1920. I'll recheck my URLs. However, there is a more serious problem occurring as well. MotionPlus will run for anywhere from 8 to 24 hours and then spontaneously shut down. This has been going on since I installed MotionPlus (about a month or so) but I didn't think much of it since I was starting and stopping it anyway whilst tuning my configuration.? This failure also occurs when I send a SIGHUP signal to reload the configuration.? Here is the tail end of the log (level 6 I believe): *Apr 16 05:59:02 [NTC][NET][627:nc627:gate] netcam_connect: High: Camera (gate) connected Apr 16 05:59:02 [NTC][NET][627:nc627:gate] netcam_connect: High: Netcam capture FPS is 15. Apr 16 05:59:02 [NTC][NET][627:nc627:gate] netcam_connect: High: Unable to determine the camera source FPS. Apr 16 05:59:06 [WRN][ALL][05:ml05:pumpYard] mlp_retry: Retrying until successful connection with camera Apr 16 05:59:06 [NTC][VID][05:ml05:pumpYard] netcam_start: Opening Netcam Apr 16 05:59:15 [NTC][EVT][00:ml00:patio] event_newfile: File saved to: /var/www/html/cams/patio/2023-04-16/1-01-20230415211711.mp4 Apr 16 05:59:19 [NTC][NET][567:nc567:pumpYard] netcam_connect: Norm: Camera (pumpYard) connected Apr 16 05:59:19 [NTC][NET][567:nc567:pumpYard] netcam_connect: Norm: Netcam capture FPS is 15. Apr 16 05:59:19 [NTC][NET][567:nc567:pumpYard] netcam_connect: Norm: Unable to determine the camera source FPS. Apr 16 05:59:22 [NTC][NET][05:ml05:pumpYard] netcam_ntc: Apr 16 05:59:22 [NTC][NET][05:ml05:pumpYard] netcam_ntc: ****************************************************** Apr 16 05:59:22 [NTC][NET][05:ml05:pumpYard] netcam_ntc: The network camera is sending pictures at 0x0 Apr 16 05:59:22 [NTC][NET][05:ml05:pumpYard] netcam_ntc: resolution but config is 640x480. If possible change Apr 16 05:59:22 [NTC][NET][05:ml05:pumpYard] netcam_ntc: the netcam or config so that the image height and Apr 16 05:59:22 [NTC][NET][05:ml05:pumpYard] netcam_ntc: width are the same to lower the CPU usage. Apr 16 05:59:22 [NTC][NET][05:ml05:pumpYard] netcam_ntc: ****************************************************** Apr 16 05:59:22 [NTC][NET][05:ml05:pumpYard] netcam_ntc: Apr 16 05:59:22 [NTC][NET][670:nc670:pumpYard] netcam_handler: Norm: Camera handler thread [670] started Apr 16 05:59:30 [NTC][NET][564:nc564:gate] netcam_connect: High: Camera (gate) connected Apr 16 05:59:30 [NTC][NET][564:nc564:gate] netcam_connect: High: Netcam capture FPS is 15. Apr 16 05:59:30 [NTC][NET][564:nc564:gate] netcam_connect: High: Unable to determine the camera source FPS. Apr 16 05:59:35 [NTC][NET][419:nc419:pumpYard] netcam_connect: High: Camera (pumpYard) connected Apr 16 05:59:35 [NTC][NET][419:nc419:pumpYard] netcam_connect: High: Netcam capture FPS is 15. Apr 16 05:59:35 [NTC][NET][419:nc419:pumpYard] netcam_connect: High: Unable to determine the camera source FPS. Apr 16 05:59:35 [ERR][ALL][00:motionplus] motpls_watchdog: Camera 6 - Watchdog timeout. Apr 16 05:59:35 [ERR][NET][05:ml05:pumpYard] netcam_open_context: High: Unable to find stream info: Success Apr 16 05:59:35 [NTC][EVT][00:ml00:patio] event_newfile: File saved to: /var/www/html/cams/patio/2023-04-15/1-01-20230415211711.jpg Apr 16 05:59:35 [NTC][ALL][04:ml04:pumphouse] mlp_main: Exiting Apr 16 05:59:35 [NTC][ALL][02:ml02:shop] mlp_main: Exiting Apr 16 05:59:35 [NTC][NET][02:ml02:shop] netcam_cleanup: Norm: Shut down complete. Apr 16 05:59:35 [NTC][ALL][00:ml00:patio] mlp_actions_event: End of event 1 Apr 16 05:59:35 [NTC][ALL][00:ml00:patio] mlp_main: Exiting Apr 16 05:59:35 [NTC][NET][00:ml00:patio] netcam_cleanup: Norm: Shut down complete. Apr 16 05:59:35 [NTC][ALL][06:ml06:gate] mlp_main: Exiting Apr 16 05:59:35 [NTC][EVT][03:ml03:shed] event_newfile: File saved to: /var/www/html/cams/shed/2023-04-16/4-31-20230415232330.jpg Apr 16 05:59:35 [NTC][ALL][03:ml03:shed] mlp_actions_event: End of event 31 Apr 16 05:59:35 [NTC][ALL][03:ml03:shed] mlp_main: Exiting Apr 16 05:59:35 [NTC][NET][03:ml03:shed] netcam_cleanup: Norm: Shut down complete. Apr 16 05:59:36 [NTC][EVT][01:ml01:backyard] event_newfile: File saved to: /var/www/html/cams/backyard/2023-04-16/2-14-20230416033254.jpg Apr 16 05:59:36 [NTC][ALL][01:ml01:backyard] mlp_actions_event: End of event 14 Apr 16 05:59:36 [NTC][ALL][01:ml01:backyard] mlp_main: Exiting Apr 16 05:59:36 [NTC][NET][01:ml01:backyard] netcam_cleanup: Norm: Shut down complete. Apr 16 05:59:36 [NTC][NET][05:ml05:pumpYard] netcam_cleanup: Norm: Shut down complete. Apr 16 05:59:36 [NTC][NET][05:ml05:pumpYard] netcam_cleanup: High: Shut down complete. Apr 16 05:59:36 [NTC][ALL][05:ml05:pumpYard] mlp_main: Exiting Apr 16 05:59:36 [NTC][NET][04:ml04:pumphouse] netcam_cleanup: Norm: Shut down complete. Apr 16 05:59:36 [NTC][NET][06:ml06:gate] netcam_cleanup: Norm: Shut down complete. Apr 16 05:59:36 [NTC][NET][06:ml06:gate] netcam_cleanup: High: Shut down complete. Apr 16 05:59:36 [NTC][NET][03:ml03:shed] netcam_cleanup: High: Shut down complete. Apr 16 05:59:42 [ERR][NET][610:nc610:pumpYard] netcam_open_context: Norm: Camera image size is invalid Apr 16 05:59:42 [ERR][NET][416:nc416:pumpYard] netcam_open_context: Norm: Camera image size is invalid Apr 16 05:59:46 [NTC][ALL][00:motionplus] main: Motionplus devices finished Apr 16 05:59:47 [WRN][ALL][00:motionplus] motpls_restart: Restarting MotionPlus. Apr 16 05:59:47 [NTC][ALL][00:motionplus] log_deinit: Closing logfile (/var/www/html/cams/motionplus.log)*. As you can see, it's trying to restart but doesn't. It's almost as if someone sent a shutdown signal, but at 05:59 I was still asleep! On 4/16/23 10:06 AM, MrDave wrote: > > Check the log at level 8.? It will report the parameters in use. > > On 4/16/2023 8:58 AM, David Powell wrote: >> >> The 2560x1920 dimensions are for the high-res stream. I commented >> them out when I switched to the low-res stream so I could remember >> the values when I figure out where they should go. The 800x600 >> resolution is the actual dimensions of the low-res stream coming from >> the camera.? Could MotionPlus possibly be still using the commented >> ones?? I would think that, even if that were the case, the later >> values would take precedence.? I can try removing them altogether. >> >> On 4/16/23 9:36 AM, MrDave wrote: >>> >>> Looks like something inconsistent possibly in the logs, config, >>> MotionPlus and camera.? The config posted seems to request that the >>> image be scaled down to 800x600 >>> >>> *?The full URL of the network camera stream.** >>> **netcam_url rtsp://xxxx:zzzzzzzz@10.10.6.23:554/12** >>> ** >>> **#width 2560** >>> **#height 1920** >>> **width 800** >>> **height 600* >>> >>> >>> On 4/11/2023 7:12 PM, David Powell wrote: >>> >>>> I have a fairly expensive (~$250) network camera that I'm using >>>> with MotionPlus.? The video directly from the camera is great.? >>>> However, when I play back a video (.mp4) that was recorded by >>>> MotionPlus, it's very grainy.? I don't know if I can attach a >>>> sample to this email, but I'll try: >>>> >>>> (apparently images are not allowed, the whole post got binned) >>>> >>>> The associated .jpg image ("best") does not have this graininess >>>> problem.? I'm sure it's caused by something I've configured >>>> incorrectly, but I don't know what it is. >>>> >>>> The log shows this when MotionPlus starts: >>>> >>>> *[NTC][NET][14:nc14:gate] netcam_connect: Norm: Camera (gate) >>>> connected** >>>> **[NTC][NET][14:nc14:gate] netcam_connect: Norm: Netcam capture FPS >>>> is 15.** >>>> **[NTC][NET][14:nc14:gate] netcam_connect: Norm: Unable to >>>> determine the camera source FPS.** >>>> **[NTC][NET][06:ml06:gate] netcam_ntc: ** >>>> **[NTC][NET][06:ml06:gate] netcam_ntc: >>>> ******************************************************** >>>> **[NTC][NET][06:ml06:gate] netcam_ntc: The network camera is >>>> sending pictures at 0x0** >>>> **[NTC][NET][06:ml06:gate] netcam_ntc: resolution but config is >>>> 2560x1920. If possible change** >>>> **[NTC][NET][06:ml06:gate] netcam_ntc: the netcam or config so that >>>> the image height and** >>>> **[NTC][NET][06:ml06:gate] netcam_ntc: width are the same to lower >>>> the CPU usage.** >>>> **[NTC][NET][06:ml06:gate] netcam_ntc: >>>> ******************************************************** >>>> **[NTC][NET][06:ml06:gate] netcam_ntc: ** >>>> **[NTC][NET][06:ml06:gate] mlp_check_szimg: Substream not >>>> available.? Image sizes not modulo 16.** >>>> **[NTC][NET][15:nc15:gate] netcam_handler: High: Camera handler >>>> thread [15] started** >>>> **[NTC][ALL][06:ml06:gate] mlp_ring_resize: Resizing buffer to 16 >>>> items* >>>> >>>> The low-res stream from the camera is 800x600, and I have it >>>> configured as such.? The high-res stream is 2560x1920, which is the >>>> value showing in the log excerpt above.? I don't see a way to >>>> specify that in the configuration.? I don't know where MP is >>>> getting the resolution to print in the log entry. >>>> >>>> I have several other cameras that MP is also using, and each one >>>> has its own configuration file, with the common parameters in the >>>> main configuration file. Only one other camera shows this >>>> graininess problem, and it has a similar message in the log file. >>>> One other camera has the log message but does not have the >>>> graininess. This one is the only one that has the /*I*//*mage sizes >>>> not modulo 16*/ entry, however (but the image size _/is/_ mod 16). >>>> >>>> Here is the configuration file for this camera: >>>> >>>> *# User defined name for the camera.** >>>> **device_name gate** >>>> ** >>>> **# Target directory for pictures, snapshots and movies** >>>> **target_dir /var/www/html/cams/gate** >>>> ** >>>> **# The full URL of the network camera stream.** >>>> **netcam_url rtsp://xxxx:zzzzzzzz@10.10.6.23:554/12** >>>> ** >>>> **#width 2560** >>>> **#height 1920** >>>> **width 800** >>>> **height 600** >>>> ** >>>> **# Optional high resolution URL for rtsp/rtmp cameras only.** >>>> **netcam_high_url rtsp://xxxxxx:zzzzzzzzz@10.10.6.23:554/21** >>>> **netcam_high_params capture_rate=pts** >>>> ** >>>> ** >>>> **# Maximum number of frames to be captured per second.** >>>> **framerate 15** >>>> ** >>>> **# Frames per second for the webcontrol camera stream.** >>>> **stream_maxrate 3** >>>> ** >>>> **# Text to be overlayed in the lower left corner of images** >>>> **text_left The Amazing GateCam!** >>>> ** >>>> **# Threshold for number of changed pixels that triggers motion.** >>>> **threshold 1000** >>>> ** >>>> **# Enable tuning of the threshold down if possible.** >>>> **threshold_tune on* >>>> >>>> Does anyone know what may be causing the graininess in the movies? >>>> >>>> Thanks >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 200, Issue 8 *******************************************