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: Watchdog Timeout (Barry Martin) 2. Re: Audio with motion (MrDave) 3. Re: Watchdog Timeout (Roger Heflin) ---------------------------------------------------------------------- Message: 1 Date: Tue, 19 Jul 2022 07:39:32 -0500 From: Barry Martin <barry3mar...@gmail.com> To: Dougie Nisbet <dou...@katsura.uk> Cc: motion-user@lists.sourceforge.net, starbase...@gmail.com Subject: Re: [Motion-user] Watchdog Timeout Message-ID: <d5be541f-29b0-1351-b961-0b8223bb8...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" Dougie and Kevin: > I run motion on a variety of rpis. All the same setup. The camera is a > Logitech C615. > > On two of the rpis, (Raspberry Pi 3 Model B Plus Rev 1.3) I have two > cameras running and it seems to be ok although the frame rate drops. > > Recently I bought a Model 4 (Raspberry Pi 4 Model B Rev 1.5) and I > expected to be able to run two cameras comfortably on this. However I > get Watchdog Timeout errors. I spent a bit of time on internet > searches and based on what I read I tried upgrading the rpi firmware > and trying different versions of Raspbian (Buster and Bullseye). > Generally I find the one camera per rpi quite nice and simple but the > fact I can run two on a Model 3 but not on a model 4 is strange. > Having said that, I have also seen this happen on a model 3. > > I haven't found much consistency even though I try and standardise my > motion.conf scripts as much as possible. One obvious possibility is > that if a pair of cameras is seeing a lot of motion then by definition > they are going to be busier and perhaps produce a timeout. > > I'm not specifically asking for help on this and I'm fairly happy > sticking with one camera per rpi, but it nags away at me from time to > time and I can revisit it and try and get some more useful diagnostic > information if desired. Slightly gifted amateur here.? I've played with a few pairs of USB cameras on my RPi4 and did not seem to make any difference if both cameras were in the USB 2 ports, both in the USB 3 ports, one in each, or even running through a powered USB2 hub: too much video data and the one or the other data stream would fail. Decreasing resolution seemed to help -- I only went so far as they're looking down from a 2nd Story window and so items have a lack of detail due to the distance as it is. Somewhere in the instructions it does mention one USB camera takes almost all of the bandwidth of the controller, so the second camera doesn't have anything to work with.? (I would presume 'the second camera' isn't necessarily the second one plugged in but the number of the USB port.)? Part of my lack-of-being-trained-in-electronics says plugging the cameras into a hub and the hub into (a single port) into the RPi should work but apparently there are still two 'channels' (whatever the correct term is). So looks like the problem is overloading of the USB controller in the Raspberry Pi.? Not RPi's fault, just a short-coming of the controller.? Other computers might be getting around the problem by using multiple controllers; this option isn't available to RPi due to space and cost constraints.? So two Pi's it is! Barry -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Tue, 19 Jul 2022 07:08:45 -0600 From: MrDave <motionmrd...@gmail.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Audio with motion Message-ID: <32f376b9-36f0-6a4c-d25b-3656103da...@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed MotionPlus has some functionality for audio/video from rtsp cameras but not v4l2 devices.? But...MotionPlus isn't production/release quality yet... https://github.com/motion-project/motionplus On 7/19/2022 3:56 AM, Dougie Nisbet wrote: > Yep, I know, it's not supported. > > I've been reviewing my setups and tidying up my scripts. I use the > same setup on around 11 raspberry pis. Various specs. > > I was recording audio but it was a mess. I used an on_event_start > script to initiate arecord then killed the process in the on_event_end > script then used ffmpeg to mix the file with the video. It worked > after a fashion but it was never elegant or reliable. The usual > problem was bad syncing of the audio after around 30 seconds, or audio > carrying on while video froze. > > I decided it wasn't worth the effort and have re-written/tidied my > scripts to just record images and video. > > Out of interest, has anyone ever managed to run a tidy system where > they recorded audio and merged the with the video? I'm kinda hoping > the answer is No because think I'm happier to use motion with it WAD > rather than have an untidy hack. But I'm still a bit curious all the > same. > > Dougie > > > > _______________________________________________ > 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: Tue, 19 Jul 2022 12:12:38 -0500 From: Roger Heflin <roger.hef...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Cc: Dougie Nisbet <dou...@katsura.uk> Subject: Re: [Motion-user] Watchdog Timeout Message-ID: <CAAMCDefSaCb8z6H=lk4y-00nfyxnybbuxr5wvhfogbgffml...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" How many actual ports do the various PI's have? lsusb -t will show you a tree view that shows which devices are under which root hub. All under a single hub share bandwidth. I know on both laptop's and desktops that typically there are only 1-3 real usb ports, and all other ports are via hubs, and everything plugged into a single hub/port shares bandwidth. I have also noticed that depending on which camera format is selected determines the bandwidth usage. For the 615 I believe mjpeg requires the lowest bandwidth and gets the highest framerate. On Tue, Jul 19, 2022 at 7:41 AM Barry Martin <barry3mar...@gmail.com> wrote: > > > Dougie and Kevin: > > > I run motion on a variety of rpis. All the same setup. The camera is a > Logitech C615. > > On two of the rpis, (Raspberry Pi 3 Model B Plus Rev 1.3) I have two cameras > running and it seems to be ok although the frame rate drops. > > Recently I bought a Model 4 (Raspberry Pi 4 Model B Rev 1.5) and I expected > to be able to run two cameras comfortably on this. However I get Watchdog > Timeout errors. I spent a bit of time on internet searches and based on what > I read I tried upgrading the rpi firmware and trying different versions of > Raspbian (Buster and Bullseye). Generally I find the one camera per rpi quite > nice and simple but the fact I can run two on a Model 3 but not on a model 4 > is strange. Having said that, I have also seen this happen on a model 3. > > I haven't found much consistency even though I try and standardise my > motion.conf scripts as much as possible. One obvious possibility is that if a > pair of cameras is seeing a lot of motion then by definition they are going > to be busier and perhaps produce a timeout. > > I'm not specifically asking for help on this and I'm fairly happy sticking > with one camera per rpi, but it nags away at me from time to time and I can > revisit it and try and get some more useful diagnostic information if desired. > > > Slightly gifted amateur here. I've played with a few pairs of USB cameras on > my RPi4 and did not seem to make any difference if both cameras were in the > USB 2 ports, both in the USB 3 ports, one in each, or even running through a > powered USB2 hub: too much video data and the one or the other data stream > would fail. Decreasing resolution seemed to help -- I only went so far as > they're looking down from a 2nd Story window and so items have a lack of > detail due to the distance as it is. > > Somewhere in the instructions it does mention one USB camera takes almost all > of the bandwidth of the controller, so the second camera doesn't have > anything to work with. (I would presume 'the second camera' isn't > necessarily the second one plugged in but the number of the USB port.) Part > of my lack-of-being-trained-in-electronics says plugging the cameras into a > hub and the hub into (a single port) into the RPi should work but apparently > there are still two 'channels' (whatever the correct term is). > > So looks like the problem is overloading of the USB controller in the > Raspberry Pi. Not RPi's fault, just a short-coming of the controller. Other > computers might be getting around the problem by using multiple controllers; > this option isn't available to RPi due to space and cost constraints. So two > Pi's it is! > > Barry > > > > _______________________________________________ > 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 ------------------------------ ------------------------------ 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 193, Issue 3 *******************************************