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 (Jon Wedell)
   2. Re: Motion time-lapse photography (Adam Briggs)


----------------------------------------------------------------------

Message: 1
Date: Thu, 01 Feb 2018 23:50:18 +0000
From: Jon Wedell <jonwed...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Recorded videos freeze after several
        seconds
Message-ID:
        <cahxwulw7x003qmd0dtfc1unhejt8ndztw71ookhw--8ouh0...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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.

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
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Fri, 2 Feb 2018 00:51:34 +0000 (UTC)
From: Adam Briggs <adbr...@yahoo.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Motion time-lapse photography
Message-ID: <897120619.1602653.1517532694...@mail.yahoo.com>
Content-Type: text/plain; charset="utf-8"

pi@raspberrypi:~ $ df
Filesystem???? 1K-blocks??? Used Available Use% Mounted on
/dev/root?????? 15205520 4649504?? 9875508? 33% /
devtmpfs????????? 470180?????? 0??? 470180?? 0% /dev
tmpfs???????????? 474788?????? 0??? 474788?? 0% /dev/shm
tmpfs???????????? 474788?? 12348??? 462440?? 3% /run
tmpfs?????????????? 5120?????? 4????? 5116?? 1% /run/lock
tmpfs???????????? 474788?????? 0??? 474788?? 0% /sys/fs/cgroup
/dev/mmcblk0p1???? 42137?? 21329???? 20808? 51% /boot
tmpfs????????????? 94956?????? 0???? 94956?? 0% /run/user/1000
/dev/sda1?????? 15294448 2232464? 13061984? 15% /media/pi/9E5C-3252
pi@raspberrypi:~ $ 
 

    On Thursday, February 1, 2018 3:21 PM, Colin Law <clan...@gmail.com> wrote:
 

 As well as pasting the section out of the log where it says the disc is full, 
open a terminal and type 
df
and copy/paste the result here

To copy from the terminal window you have to use Ctrl+Shift+C, in case you did 
not know.

Colin

On 1 February 2018 at 21:01, Adam Briggs via Motion-user 
<motion-user@lists.sourceforge.net> wrote:

Ok, thanks. I?m pretty new to Pi. I?ll read through the log and see if I can 
find anything out. The only thing I saw was something about an error ?that the 
drive it was trying to write to was full and if I open it it says 29.2 GB left.?




On Thursday, February 1, 2018, 2:46 PM, Colin Law <clan...@gmail.com> wrote:
On 1 February 2018 at 18:41, Adam Briggs via Motion-user <motion-user@lists. 
sourceforge.net> wrote:

Do you think I should try I different brand of pen drive and see if has better 
luck accessing that one??


I think you should analyse the problem in the ways I have suggested first to 
get some sort of handle on what is happening.
Colin
?


Thanks,Adam.?

On Thursday, February 1, 2018, 12:07 PM, Joel Avery via Motion-user 
<motion-user@lists. sourceforge.net> wrote:
I don't think your problem is a motion problem.

 
 
  On Thu, Feb 1, 2018 at 12:26 PM, Colin Law<clan...@gmail.com> wrote:   
------------------------------ ------------------------------ ------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot  
------------------------------ ------------------------------ ------------------
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


------------------------------ ------------------------------ ------------------
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


------------------------------------------------------------------------------
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...

------------------------------

------------------------------------------------------------------------------
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 7
*******************************************

Reply via email to