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. can motion detect combination of motion in two or more
      windows? (Son_DT)
   2. (no subject) (Matthew A. Canzoneri)
   3. Running motion as user... Can't access the http   stream.
      (m...@1337mail.net)
   4. Re: Running motion as user... Can't access the http stream.
      (Adam Goryachev)
   5. Re: Running motion as user... Can't access the http stream.
      (m...@1337mail.net)
   6. Freezing of movie output during short periods of no       motion
      (Colin Law)


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

Message: 1
Date: Sat, 25 Mar 2017 10:04:18 +0000 (UTC)
From: Son_DT <sont...@yahoo.com>
Subject: [Motion-user] can motion detect combination of motion in two
        or      more windows?
To: "motion-user@lists.sourceforge.net"
        <motion-user@lists.sourceforge.net>
Message-ID: <1732242466.2731553.1490436258...@mail.yahoo.com>
Content-Type: text/plain; charset="utf-8"

Hi, I'm a very newbie to the forum, and before I deep dive into the program, I 
would like to know if motion can handle this situation:
I have bought a IP-camera and it has the ability to detect motion in up to 4 
different windows. Any motion in one of the windows will trigger an alarm which 
either send me an email, catch a video or picture,... however it is a logical 
OR of all motions in the active windows.?
What I would like to have is a freely defined logical function of the motions, 
such as (motion1 AND motion2), or (motion1 AND NOT motion2) etc...
The usage of such logical function is for better detection of motion.?For 
example if the two windows are defined such that a person can only trigger 
motion in one window at a time, then the following logical function ?(motion1 
XOR motion2) will not detect false alarm due to events such as turning light 
on, sun hidden in clouds, ... because the events would create motion in both 
windows at a time.?
My question is, can the program motion handle this situation, or can it be 
modified to do this??
Thanks in advance!?
Paul?

Gesendet von Yahoo Mail auf Android
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 2
Date: Mon, 10 Apr 2017 15:26:39 +0000 (UTC)
From: "Matthew A. Canzoneri" <can...@yahoo.com>
Subject: [Motion-user] (no subject)
To: "motion-user@lists.sourceforge.net"
        <motion-user@lists.sourceforge.net>
Message-ID: <1939249205.376123.1491837999...@mail.yahoo.com>
Content-Type: text/plain; charset="utf-8"

For the past few days I have been trying to setup motioneye and motion on a 
fadora box, after working through a few issues with the install i was able to 
get everything up and running. However i have run into a issue when i try to 
add my RSTP Camera, In the add camera box i get "RSTP is not supported". I 
noticed that my install is only running motion version 3.3.0 looking at the 
motion wiki it looks like RSTP may not be supported in this version.?

Sorry for asking as i am newer to Linux but Using Fadora how do I update motion 
to the current release I think 4.0.1. Any help would be greatly appreciated as 
I have only compiled from sources once in class.?
Thanks
Matt
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 3
Date: Sun, 14 May 2017 20:19:35 -0500
From: m...@1337mail.net
Subject: [Motion-user] Running motion as user... Can't access the http
        stream.
To: motion-user@lists.sourceforge.net
Message-ID: <c2c10c58-b221-71e7-0b16-1dc460e7a...@1337mail.net>
Content-Type: text/plain; charset=utf-8; format=flowed

Motion runs and works fine when started as root.


I've created a user (motion) and assigned it to a secondary group (video).

/dev/video0 = crw-rw---- 1 root video

So I:
     useradd motion
     usermod -a -G video motion
     chmod 777 /var/run/motion  <---(fixed the PID file problem.)

So now motion starts and stays running but, I get:

     Firefox can?t establish a connection to the server at 192.168.1.123.

This is probably a motion webserver permission problem but I can't seem to find 
why.


Any ideas?








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

Message: 4
Date: Mon, 15 May 2017 12:09:03 +1000
From: Adam Goryachev <mailingli...@websitemanagers.com.au>
Subject: Re: [Motion-user] Running motion as user... Can't access the
        http stream.
To: motion-user@lists.sourceforge.net
Message-ID:
        <c342ecbb-c088-6f1c-2f0f-94d4211fd...@websitemanagers.com.au>
Content-Type: text/plain; charset=utf-8; format=flowed

On 15/05/17 11:19, m...@1337mail.net wrote:
> Motion runs and works fine when started as root.
>
>
> I've created a user (motion) and assigned it to a secondary group (video).
>
> /dev/video0 = crw-rw---- 1 root video
>
> So I:
>       useradd motion
>       usermod -a -G video motion
>       chmod 777 /var/run/motion  <---(fixed the PID file problem.)
>
> So now motion starts and stays running but, I get:
I would suggest that you instead do this:

useradd motion
usermod -a -G video motion
mkdir -p /var/run/motion
chown motion /var/run/motion

You don't really need every user to be able to write to that location!
>       Firefox can?t establish a connection to the server at 192.168.1.123.
>
> This is probably a motion webserver permission problem but I can't seem to 
> find why.
>
>
> Any ideas?
You need to configure motion on a port >1024 as non-root users can't 
bind to low numbered ports.

Hope that helps, if not, please check the motion log file for details, 
and send them to the list for further advice.

Regards,
Adam

-- 
Adam Goryachev Website Managers www.websitemanagers.com.au



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

Message: 5
Date: Mon, 15 May 2017 00:12:20 -0500
From: m...@1337mail.net
Subject: Re: [Motion-user] Running motion as user... Can't access the
        http stream.
To: motion-user@lists.sourceforge.net
Message-ID: <2594082f-96ab-1740-03ff-236c5d88e...@1337mail.net>
Content-Type: text/plain; charset=utf-8; format=flowed

>
>> You need to configure motion on a port >1024 as non-root users can't
>> bind to low numbered ports.

DANG IT!  I know this.  Being flustered really inhibits your thinking.


It worked when I move the web port from 80 to 8080.

Thanks!



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

Message: 6
Date: Wed, 17 May 2017 09:04:54 +0100
From: Colin Law <clan...@gmail.com>
Subject: [Motion-user] Freezing of movie output during short periods
        of no   motion
To: Motion discussion list <motion-user@lists.sourceforge.net>
Message-ID:
        <CAL=0gLtkWmykp0+KtvUSUCMpq2YSB6t1sAy0q=ctbrzscnh...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi

Using motion 4.0.1 from the Ubuntu 16.04 (Xenial) repository I am
having a bit of difficulty with the movie output.  I have set
event_gap to 10 and my understanding is that this means that if there
is a gap between motion events of less than 10 seconds then the events
will be concatenated into one event, and this does appear to be the
case. The movie file output that I get in this case does consist of
the two motion events together, but in the gap between instead of
seeing the scene as it was during the gap the picture freezes and then
starts again for the second motion event.

So for example if there is motion for 5 seconds then 5 seconds without
motion and a further 5 seconds of motion then the movie file is 15
seconds long consisting of the first 5 seconds of motion, 5 seconds of
frozen image and the second 5 seconds of motion.  It is clear that it
is frozen as there is a section of the scene masked out with a mask
file where there is ongoing activity. When I used an earlier version
of Motion I believe that the movie skipped over periods of no motion,
but I may be mistaken in this.

Is this the expected way that Motion should perform?

If it is not clear what I am trying to describe then I can probably
extract a short section of video to demonstrate it.

Below are what I hope are the relevant sections of the config:

Cheers

Colin

############################################################
# Motion Detection Settings:
############################################################

# Threshold for number of changed pixels in an image that
# triggers motion detection (default: 1500)
threshold 25

# Automatically tune the threshold down if possible (default: off)
threshold_tune off

# Noise threshold for the motion detection (default: 32)
noise_level 32
#noise_level 16

# Automatically tune the noise threshold (default: on)
#noise_tune on
noise_tune off

# Despeckle motion image using (e)rode or (d)ilate or (l)abel
(Default: not defined)
# Recommended value is EedDl. Any combination (and number of) of E, e,
d, and D is valid.
# (l)abeling must only be used once and the 'l' must be the last letter.
# Comment out to disable
despeckle_filter EedDl

# Detect motion in predefined areas (1 - 9). Areas are numbered like
that:  1 2 3
# A script (on_area_detected) is started immediately when motion is
     4 5 6
# detected in one of the given areas, but only once during an event.
     7 8 9
# One or more areas can be specified with this option. Take care: This option
# does NOT restrict detection to these areas! (Default: not defined)
; area_detect value

# PGM file to use as a sensitivity mask.
# Full path name to. (Default: not defined)
mask_file /home/colinl/Videos/motion/lawn.pgm

# Dynamically create a mask file during operation (default: 0)
# Adjust speed of mask changes from 0 (off) to 10 (fast)
smart_mask_speed 0

# Ignore sudden massive light intensity changes given as a percentage
of the picture
# area that changed intensity. Valid range: 0 - 100 , default: 0 = disabled
lightswitch 30

# Picture frames must contain motion at least the specified number of frames
# in a row before they are detected as true motion. At the default of 1, all
# motion is detected. Valid range: 1 to thousands, recommended 1-5
minimum_motion_frames 1

# Specifies the number of pre-captured (buffered) pictures from before motion
# was detected that will be output at motion detection.
# Recommended range: 0 to 5 (default: 0)
# Do not use large values! Large values will cause Motion to skip
video frames and
# cause unsmooth movies. To smooth movies use larger values of
post_capture instead.
pre_capture 0

# Number of frames to capture after motion is no longer detected (default: 0)
post_capture 1

# Event Gap is the seconds of no motion detection that triggers the
end of an event.
# An event is defined as a series of motion images taken within a
short timeframe.
# Recommended value is 60 seconds (Default). The value -1 is allowed
and disables
# events causing all Motion to be written to one single movie file and
no pre_capture.
# If set to 0, motion is running in gapless mode. Movies don't have
gaps anymore. An
# event ends right after no more motion is detected and post_capture is over.
event_gap 10

# Maximum length in seconds of a movie
# When value is exceeded a new movie file is created. (Default: 0 = infinite)
max_movie_time 600

# Always save images even if there was no motion (default: off)
emulate_motion off

############################################################
# FFMPEG related options
# Film (movies) file output, and deinterlacing of the video input
# The options movie_filename and timelapse_filename are also used
# by the ffmpeg feature
############################################################

# Use ffmpeg to encode movies in realtime (default: off)
ffmpeg_output_movies on

# Use ffmpeg to make movies with only the pixels moving
# object (ghost images) (default: off)
ffmpeg_output_debug_movies off

# Use ffmpeg to encode a timelapse movie
# Default value 0 = off - else save frame every Nth second
ffmpeg_timelapse 0

# The file rollover mode of the timelapse video
# Valid values: hourly, daily (default), weekly-sunday, weekly-monday,
monthly, manual
ffmpeg_timelapse_mode daily

# Bitrate to be used by the ffmpeg encoder (default: 400000)
# This option is ignored if ffmpeg_variable_bitrate is not 0 (disabled)
ffmpeg_bps 400000

# Enables and defines variable bitrate for the ffmpeg encoder.
# ffmpeg_bps is ignored if variable bitrate is enabled.
# Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps,
# or the range 1 - 100 where 1 means worst quality and 100 is best.
ffmpeg_variable_bitrate 0

# Codec to used by ffmpeg for the video compression.
# Timelapse videos have two options.
#   mpg - Creates mpg file with mpeg-2 encoding.
#     If motion is shutdown and restarted, new pics will be appended
#     to any previously created file with name indicated for timelapse.
#   mpeg4 - Creates avi file with the default encoding.
#     If motion is shutdown and restarted, new pics will create a
#     new file with the name indicated for timelapse.
# Supported formats are:
# mpeg4 or msmpeg4 - gives you files with extension .avi
# msmpeg4 is recommended for use with Windows Media Player because
# it requires no installation of codec on the Windows client.
# swf - gives you a flash film with extension .swf
# flv - gives you a flash video with extension .flv
# ffv1 - FF video codec 1 for Lossless Encoding
# mov - QuickTime
# mp4 - MPEG-4 Part 14 H264 encoding
# mkv - Matroska H264 encoding
# hevc - H.265 / HEVC (High Efficiency Video Coding)
ffmpeg_video_codec mpeg4

# When creating videos, should frames be duplicated in order
# to keep up with the requested frames per second
# (default: true)
ffmpeg_duplicate_frames false



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

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


End of Motion-user Digest, Vol 131, Issue 1
*******************************************

Reply via email to