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: Recorded videos freeze after several seconds (Colin Law) 2. Re: Recorded videos freeze after several seconds (tosiara) ---------------------------------------------------------------------- Message: 1 Date: Fri, 2 Feb 2018 10:48:58 +0000 From: Colin Law <clan...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Recorded videos freeze after several seconds Message-ID: <CAL=0gluuyq3uhrv3wfd_tb+s8epzgupc3mtrkzm+vq1-2xy...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" On 1 February 2018 at 23:50, Jon Wedell <jonwed...@gmail.com> wrote: > Hey Adam, > > Thanks for the suggestion. To clarify exactly what I'm doing: > > When the IR sensor detects motion, I update the configuration for the > Motion daemon to set the following two configuration values to "on" for the > camera in the room the IR motion was detected: > > ffmpeg_output_movies > emulate_motion > > It was my understanding that as long as the emulate_motion is set, then I > don't need an actual motion event, nor significant post-event recording > value to capture the motion. > > Basically, I toggle on "record videos" and "always record regardless of > motion" and for whatever reason it is producing corrupted video files of > the correct runtime, just not content. > What happens if you take the IR sensor out of the loop? Set the motion config as you have shown above, and just run it. Then you will know whether the issue is to do with the IR sensor logic or just the way you are running motion. Colin > > Best, > Jon > > > On Thu, Feb 1, 2018 at 4:56 PM Adam Goryachev < > mailingli...@websitemanagers.com.au> wrote: > >> On 02/02/18 07:51, Jon Wedell wrote: >> > Hello, >> > >> > I'm using IR motion sensors to turn recording on and off via the >> > motion API. I've found using these sensors to trigger the recording to >> > be more reliable than relying on detecting motion from the frames. I'm >> > encountering an issue where only the first 1-3 seconds of the video I >> > record is actual video, and then the frame freezes for the remaining >> > duration of the recording time. >> > >> > To activate the motion recording, I make the following API calls >> > (using the python requests library): >> > >> > # Enable video recording >> > r = requests.get("http://%s:%s/%s/config/set?ffmpeg_output_movies=%s" >> > % (args.host, args.port, camera, state), auth=(args.user, >> args.password)) >> > # Fake constant motion >> > r = requests.get("http://%s:%s/%sconfig/set?emulate_motion=%s" % >> > (args.host, args.port, camera, state), auth=(args.user, args.password)) >> > >> > And to disable recording when the motion event ends I use the same >> > commands but with "state" set to "off" rather than "on". >> > >> > The recorded videos play for however long I have >> > "ffmpeg_output_movies" and "emulate_motion" set to "on", but only the >> > first 1-3 seconds are actual live video before the video freezes. >> > >> > It seems like a bug, but I'm writing in case I'm doing something that >> > wasn't intended. >> >> Maybe the motion off command is happening after 2-3 seconds, have you >> tried sending the on command, and then relying on the post event >> timeframe to capture sufficient length video ? >> >> Or perhaps you can continue to send "on" commands while the IR detects >> motion, so that if there is motion detected every 10 seconds, you will >> continue to record (assuming your post event video record time is > 10 >> seconds. >> >> PS, I've no idea about that API or how your IR motion sensor works.... >> but thought the idea might help >> >> Regards, >> Adam >> >> -- >> Adam Goryachev Website Managers www.websitemanagers.com.au >> -- >> The information in this e-mail is confidential and may be legally >> privileged. >> It is intended solely for the addressee. Access to this e-mail by anyone >> else >> is unauthorised. If you are not the intended recipient, any disclosure, >> copying, distribution or any action taken or omitted to be taken in >> reliance >> on it, is prohibited and may be unlawful. If you have received this >> message >> in error, please notify us immediately. Please also destroy and delete the >> message from your computer. Viruses - Any loss/damage incurred by >> receiving >> this email is not the sender's responsibility. >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> 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 >> > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > 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: Fri, 2 Feb 2018 13:18:48 +0200 From: tosiara <tosi...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Recorded videos freeze after several seconds Message-ID: <cachtdwqvufer0yzvunpyjfkhomw5sz-1xibvbxzdhge_d-z...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" Can you provide a sample video and a corresponding motion log? On Thu, Feb 1, 2018 at 10:51 PM, Jon Wedell <jonwed...@gmail.com> wrote: > Hello, > > I'm using IR motion sensors to turn recording on and off via the motion API. > I've found using these sensors to trigger the recording to be more reliable > than relying on detecting motion from the frames. I'm encountering an issue > where only the first 1-3 seconds of the video I record is actual video, and > then the frame freezes for the remaining duration of the recording time. > > To activate the motion recording, I make the following API calls (using the > python requests library): > > # Enable video recording > r = requests.get("http://%s:%s/%s/config/set?ffmpeg_output_movies=%s" % > (args.host, args.port, camera, state), auth=(args.user, args.password)) > # Fake constant motion > r = requests.get("http://%s:%s/%sconfig/set?emulate_motion=%s" % (args.host, > args.port, camera, state), auth=(args.user, args.password)) > > And to disable recording when the motion event ends I use the same commands > but with "state" set to "off" rather than "on". > > The recorded videos play for however long I have "ffmpeg_output_movies" and > "emulate_motion" set to "on", but only the first 1-3 seconds are actual live > video before the video freezes. > > It seems like a bug, but I'm writing in case I'm doing something that wasn't > intended. > > Thanks for the help, > Jon > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > 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 ------------------------------ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ------------------------------ 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 140, Issue 11 ********************************************