Send Motion-user mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."
Today's Topics:
1. Re: How do I include file size in my on_movie_end email (not
actually solved) (Fog Watch)
2. Delay between an event and it being displayed on the web UI (Y.G.)
----------------------------------------------------------------------
Message: 1
Date: Mon, 10 Aug 2020 10:39:39 +1000
From: Fog Watch <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] How do I include file size in my
on_movie_end email (not actually solved)
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII
On Sun, 9 Aug 2020 17:28:06 +1000
Fog Watch <[email protected]> wrote:
> Thanks. The following works well.
Wrong, and sorry for the churn.
The following:
on_movie_end echo -e "Subject: Motion detected \n\n%f \nFile size: $(stat -c
%s %f)" | sendmail -v [email protected] > /dev/null 2>&1
sent an email with two lines:
/mnt/exports/motion//01-20200810095504.mkv
File size: 1597017367
However:
$ stat -c %s /mnt/exports/motion//01-20200810095504.mkv
2471638
That is, my on_movie_end line sent the wrong file size when stat was used.
This is not the case with ls:
on_movie_end echo -e "Subject: Motion detected \n\n$(ls -hs1 %f)" | sendmail
-v [email protected] > /dev/null 2>&1
Emails the correct file size.
I'm happy with ls, just weird, that's all.
Thanks.
Fog Watch
------------------------------
Message: 2
Date: Mon, 10 Aug 2020 11:52:55 +0200
From: "Y.G." <[email protected]>
To: [email protected]
Subject: [Motion-user] Delay between an event and it being displayed
on the web UI
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"
Hi,
I have Motion running for now on my desktop PC, but I intend to run it
eventually on a single-board computer (UDOO x86).
So far, I barely see any CPU usage from Motion, and yet I observe a
growing delay before the image is shown on the web UI (`?/1/stream` and
`?/1/motion`).
After launching Motion, I have an already-important delay of more than
50 seconds.
5 minutes later, I see a delay of 1 minute and a quarter, which seems
to stabilize.
I am concerned about this delay. What is the cause?
Will it grow if I add a second camera?
Will it grow if I run Motion on the lower-powered server instead of the
desktop PC?
But more importantly, does it mean, that an intruder, seeing the
presence of a video-camera, has a full minute to switch the power off,
before any picture is captured (and sent to the ?Cloud?)?
For reference, here is my setup:
```
# motion.conf
on_event_end /?/email.sh %$ %v %Y-%m-%d %H:%M:%S
on_picture_save /?/upload.sh "%f"
minimum_motion_frames 5
event_gap 10
picture_output on
picture_quality 50
picture_filename %$-%v-%Y%m%d%H%M%S-%q@%K_%L
movie_output off
webcontrol_port 1080
webcontrol_localhost off
webcontrol_parms 3
stream_port 1081
stream_localhost off
camera /?/cam1.conf
# cam1.conf
camera_id 1
camera_name cuisine
stream_preview_method 3
netcam_url rtsp://?/videoMain
mask_file /?/masque_640_360.pgm
width 640
height 360
framerate 5
text_right %q (%ix%J+%K+%L)
auto_brightness 0
noise_tune on
lightswitch_percent 40
lightswitch_frames 15
```
------------------------------
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 170, Issue 10
********************************************