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
      (dou...@highmoor.co.uk)
   2. Re: Motion time-lapse photography (Colin Law)
   3. Re: Motion time-lapse photography (Colin Law)
   4. Re: Motion time-lapse photography (Colin Law)


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

Message: 1
Date: Fri, 2 Feb 2018 12:13:40 +0000
From: dou...@highmoor.co.uk
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Recorded videos freeze after several
        seconds
Message-ID: <27287217-fd13-1a5c-e5f8-ece222b63...@katsura.uk>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Possibly of no relevance but on the occasion I've experimented with 
video I discovered a lot of problems with frozen playback. Using mplayer 
for example, the timer would continue to advance but playback would be 
frozen. This was when I configured motion to create video 'on the fly'.

If instead I created video manually using the jpegs it was fine.

As Colin says, I'd try and eliminate IR from the enquiry, then perhaps, 
if you have raw jpegs, create a video from them and see if that's ok.

Dougie

On 01/02/18 20: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.
>
> 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


-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 2
Date: Fri, 2 Feb 2018 16:24:22 +0000
From: Colin Law <clan...@gmail.com>
To: Adam Briggs <adbr...@yahoo.com>,  Motion discussion list
        <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Motion time-lapse photography
Message-ID:
        <CAL=0gLt=8uu7fp00_LgW7QXxGu6zb_4Ngi+x1U62sin3A94=x...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On 2 February 2018 at 16:16, Adam Briggs <adbr...@yahoo.com> wrote:

> Hello, unfortunately it seems like when this happens the motion software
> or the Pi can not write to the pendrive anymore until you remove it and
> wipe it.
>

If you cannot read it on a PC or the pi then probably it is a faulty
pendrive, though it could be a fault on the pi. Chuck then pendrive and buy
a Sandisk. You have not said whether the one you have is a cheap one but if
so it is a false economy to buy cheap ones.

Colin
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 3
Date: Fri, 2 Feb 2018 16:46:46 +0000
From: Colin Law <clan...@gmail.com>
To: Adam Briggs <adbr...@yahoo.com>,  Motion discussion list
        <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Motion time-lapse photography
Message-ID:
        <CAL=0glucyqgrrazb72gjxh2ms1x6v4urlhtwvuipcpmesnx...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On 2 February 2018 at 16:33, Adam Briggs <adbr...@yahoo.com> wrote:

> Hello, Sorry it is possible to read it on the pc. I can view all the pics,
> but I have to erase the pendrive before the PI will write to it after it
> has the fault. One thing I noticed I was doing way wrong was not ejecting
> the drive from the Pi before removing it which probably didn?t help matters
> much. I?ve been working with both 32GB and 16 GB Sandisk pendrives no cheap
> ones. I haven?t found a good cheap one worth frighting with.
>

Please reply to the list not just me, thanks. I keep copying these back to
the list so others can see what is happening.

If you reboot the pi can you read from it then?  Yes, you must eject it
properly or it may become corrupted.  If the PC and the pi are both
connected to the local network why don't you just share the drive on the
network and read it direct from the PC?

Also have you run the grep command I suggested which may help identify the
problem?

Colin
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 4
Date: Fri, 2 Feb 2018 21:58:13 +0000
From: Colin Law <clan...@gmail.com>
To: Adam Briggs <adbr...@yahoo.com>
Cc: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Motion time-lapse photography
Message-ID:
        <CAL=0gLtF0V-=qrkrw0r5sojwt4ki83odm29ggnikbzesr-t...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On 2 February 2018 at 17:36, Adam Briggs <adbr...@yahoo.com> wrote:

> Ok, sorry about that. I will try that command tonight. I?m wondering if I
> messed it up many times by not ejecting the drive first. Would I have to
> set up samba to share it as a network drive?
>

Google for
pi share files windows
or something similar.  Google is usually the best first line of attack for
that sort of question.

Colin


>
> Thanks for all your help.
>
>
>
>
>
> On Friday, February 2, 2018, 10:47 AM, Colin Law <clan...@gmail.com>
> wrote:
>
> On 2 February 2018 at 16:33, Adam Briggs <adbr...@yahoo.com> wrote:
>
> Hello, Sorry it is possible to read it on the pc. I can view all the pics,
> but I have to erase the pendrive before the PI will write to it after it
> has the fault. One thing I noticed I was doing way wrong was not ejecting
> the drive from the Pi before removing it which probably didn?t help matters
> much. I?ve been working with both 32GB and 16 GB Sandisk pendrives no cheap
> ones. I haven?t found a good cheap one worth frighting with.
>
>
> Please reply to the list not just me, thanks. I keep copying these back to
> the list so others can see what is happening.
>
> If you reboot the pi can you read from it then?  Yes, you must eject it
> properly or it may become corrupted.  If the PC and the pi are both
> connected to the local network why don't you just share the drive on the
> network and read it direct from the PC?
>
> Also have you run the grep command I suggested which may help identify the
> problem?
>
>
> Colin
>
>
>
-------------- 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 12
********************************************

Reply via email to