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. Motion keeps returning to 15 fps (John B)
   2. Re: Motion keeps returning to 15 fps (tosiara)


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

Message: 1
Date: Sun, 15 Mar 2020 20:38:09 -0500
From: John B <yona...@riseup.net>
To: motion-user@lists.sourceforge.net
Subject: [Motion-user] Motion keeps returning to 15 fps
Message-ID: <20200315203809.00a6c34e@ACAB.TOSIAR>
Content-Type: text/plain; charset=US-ASCII


  Hi all,

  I've just noticed that after a few hours my motion goes from 30 fps (what I
  have set for in the motion.conf) to 15 fps.

  There's absolutely nothing in the log telling me anything is wrong or happened
  (I have it set for ERR, to just get errors).

  This past time that it changed, I'd turned Motion off, changed my motion.conf
  to have 15 fps, saved it, then opened it again and changed it back to 30 fps
  and saved it, not starting Motion in between.

  Yet here, less than an hour later, I'm looking at a video and it's showing it
  only doing 15 fps.

  Does anyone have any idea what's going on? This is my USB cam, the Logitech
  c615 which is supposed to be able to do 30 fps @ 1080p but I only have it set
  to 800x600 in my motion.conf.

  Here's the part of my motion.conf I think is necessary to show for
  this /dev/video0 setup of mine. If anyone needs to see more, just ask.

############################################################
# System control configuration parameters
############################################################

# Start in daemon (background) mode and release terminal.
daemon on

# Start in Setup-Mode, daemon disabled.
setup_mode off

# File to store the process ID.
; pid_file value

# File to write logs messages into.  If not defined stderr and syslog is used.
log_file /home/john/motion_logs/motion_logs

# Level of log messages [1..9] (EMG, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL).
log_level 4

# Filter to log messages by type (COR, STR, ENC, NET, DBL, EVT, TRK, VID, ALL).
log_type ALL

# Do not sound beeps when detecting motion
quiet on

# Native language support.
native_language on

# User defined name for the camera.
; camera_name value

# Numeric identifier for the camera.
camera_id 0

# Target directory for pictures, snapshots and movies
target_dir /home/john/motion_cam

# Video device (e.g. /dev/video0) to be used for capturing.
videodevice /dev/video0

# Parameters to control video device.  See motion_guide.html
vid_control_params auto_brightness=0

# Preferred color palette to be used for the video device
v4l2_palette 17

# The input number to be used on the video device.
input -1

# The video norm to use for video capture and TV tuner cards.
norm 0

# The frequency to set the tuner to (kHz) for TV tuner cards
frequency 0

# The Motion method to use to change the brightness/exposure on video device.
auto_brightness 0

# Device name (e.g. /dev/tuner0) to be used for capturing when using tuner as
source ; tunerdevice value

# Number of frames to capture in each roundrobin step
roundrobin_frames 1

# Number of frames to skip before each roundrobin step
roundrobin_skip 1

# Try to filter out noise generated by roundrobin
roundrobin_switchfilter off

# The full URL of the network camera stream.
; netcam_url value

# Optional high resolution URL for rtsp/rtmp cameras only.
; netcam_highres value

# Username and password for network camera. Syntax username:password
; netcam_userpass value

# The method for keep-alive of network socket for mjpeg streams.
netcam_keepalive off

# The URL to use for a netcam proxy server.
; netcam_proxy value

# Use less strict jpeg checks for network cameras.
netcam_tolerant_check off

# Use TCP transport for RTSP/RTMP connections to camera.
netcam_use_tcp on

# Name of mmal camera (e.g. vc.ril.camera for pi camera).
; mmalcam_name value

# Camera control parameters (see raspivid/raspistill tool documentation)
; mmalcam_control_params value

############################################################
# Image Processing configuration parameters
############################################################

# Image width in pixels.
width 800

# Image height in pixels.
height 600

# Maximum number of frames to be captured per second.
framerate 30

# Minimum time in seconds between capturing picture frames from the camera.
minimum_frame_time 0

# Number of degrees to rotate image.
rotate 0

# Flip image over a given axis
flip_axis none

# Draw a locate box around the moving object.
locate_motion_mode off

# Set the look and style of the locate box.
locate_motion_style box

# Text to be overlayed in the lower left corner of images
; text_left value

# Text to be overlayed in the lower right corner of images.
text_right %d %^b %y\n%T-%q

# Overlay number of changed pixels in upper right corner of images.
text_changes off

# Scale factor for text overlayed on images.
text_scale 1

# The special event conversion specifier %C
text_event %d %^b %y\n%H%M%S

############################################################
# Motion detection configuration parameters
############################################################

# Always save pictures and movies even if there was no motion.
emulate_motion off

# Threshold for number of changed pixels that triggers motion.
threshold 1300

# The maximum threshold for number of changed pixels that triggers motion.
threshold_maximum 0

# Enable tuning of the threshold down if possible.
threshold_tune off

# Noise threshold for the motion detection.
noise_level 32

# Automatically tune the noise threshold
noise_tune on

# Despeckle the image using (E/e)rode or (D/d)ilate or (l)abel.
despeckle_filter EedDl

# Area number used to trigger the on_area_detected script.
; area_detect value

# Full path and file name for motion detection mask PGM file.
mask_file /etc/motion/mask.pgm

# Full path and file name for privacy mask PGM file.
; mask_privacy value

# The value defining how slow or fast the smart motion mask created and used.
smart_mask_speed 0

# Percentage of image that triggers a lightswitch detected.
lightswitch_percent 0

# When lightswitch is detected, ignore this many frames
lightswitch_frames 5

# Number of images that must contain motion to trigger an event.
minimum_motion_frames 1

# Gap in seconds of no motion detected that triggers the end of an event.
event_gap 60

# The number of pre-captured (buffered) pictures from before motion.
pre_capture 0

# Number of frames to capture after motion is no longer detected.
post_capture 30



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

Message: 2
Date: Mon, 16 Mar 2020 11:09:15 +0200
From: tosiara <tosi...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Motion keeps returning to 15 fps
Message-ID:
        <CACHTdwRTQWs1whBMhyK0A15hDMB9EzAKB+vFA4yPzP8G5g=m...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Reasons why motion provides 15fps instead of configured 30fps:
1. camera does not support 30fps for given resolution or pixel format
2. low light conditions under which the exposure does not allow running at
high fps
3. low cpu resource

Start from checking your motion.log which exact frame format and fps is
being set and update to the latest version if possible

On Mon, Mar 16, 2020 at 3:39 AM John B <yona...@riseup.net> wrote:

>
>   Hi all,
>
>   I've just noticed that after a few hours my motion goes from 30 fps
> (what I
>   have set for in the motion.conf) to 15 fps.
>
>   There's absolutely nothing in the log telling me anything is wrong or
> happened
>   (I have it set for ERR, to just get errors).
>
>   This past time that it changed, I'd turned Motion off, changed my
> motion.conf
>   to have 15 fps, saved it, then opened it again and changed it back to 30
> fps
>   and saved it, not starting Motion in between.
>
>   Yet here, less than an hour later, I'm looking at a video and it's
> showing it
>   only doing 15 fps.
>
>   Does anyone have any idea what's going on? This is my USB cam, the
> Logitech
>   c615 which is supposed to be able to do 30 fps @ 1080p but I only have
> it set
>   to 800x600 in my motion.conf.
>
>   Here's the part of my motion.conf I think is necessary to show for
>   this /dev/video0 setup of mine. If anyone needs to see more, just ask.
>
> ############################################################
> # System control configuration parameters
> ############################################################
>
> # Start in daemon (background) mode and release terminal.
> daemon on
>
> # Start in Setup-Mode, daemon disabled.
> setup_mode off
>
> # File to store the process ID.
> ; pid_file value
>
> # File to write logs messages into.  If not defined stderr and syslog is
> used.
> log_file /home/john/motion_logs/motion_logs
>
> # Level of log messages [1..9] (EMG, ALR, CRT, ERR, WRN, NTC, INF, DBG,
> ALL).
> log_level 4
>
> # Filter to log messages by type (COR, STR, ENC, NET, DBL, EVT, TRK, VID,
> ALL).
> log_type ALL
>
> # Do not sound beeps when detecting motion
> quiet on
>
> # Native language support.
> native_language on
>
> # User defined name for the camera.
> ; camera_name value
>
> # Numeric identifier for the camera.
> camera_id 0
>
> # Target directory for pictures, snapshots and movies
> target_dir /home/john/motion_cam
>
> # Video device (e.g. /dev/video0) to be used for capturing.
> videodevice /dev/video0
>
> # Parameters to control video device.  See motion_guide.html
> vid_control_params auto_brightness=0
>
> # Preferred color palette to be used for the video device
> v4l2_palette 17
>
> # The input number to be used on the video device.
> input -1
>
> # The video norm to use for video capture and TV tuner cards.
> norm 0
>
> # The frequency to set the tuner to (kHz) for TV tuner cards
> frequency 0
>
> # The Motion method to use to change the brightness/exposure on video
> device.
> auto_brightness 0
>
> # Device name (e.g. /dev/tuner0) to be used for capturing when using tuner
> as
> source ; tunerdevice value
>
> # Number of frames to capture in each roundrobin step
> roundrobin_frames 1
>
> # Number of frames to skip before each roundrobin step
> roundrobin_skip 1
>
> # Try to filter out noise generated by roundrobin
> roundrobin_switchfilter off
>
> # The full URL of the network camera stream.
> ; netcam_url value
>
> # Optional high resolution URL for rtsp/rtmp cameras only.
> ; netcam_highres value
>
> # Username and password for network camera. Syntax username:password
> ; netcam_userpass value
>
> # The method for keep-alive of network socket for mjpeg streams.
> netcam_keepalive off
>
> # The URL to use for a netcam proxy server.
> ; netcam_proxy value
>
> # Use less strict jpeg checks for network cameras.
> netcam_tolerant_check off
>
> # Use TCP transport for RTSP/RTMP connections to camera.
> netcam_use_tcp on
>
> # Name of mmal camera (e.g. vc.ril.camera for pi camera).
> ; mmalcam_name value
>
> # Camera control parameters (see raspivid/raspistill tool documentation)
> ; mmalcam_control_params value
>
> ############################################################
> # Image Processing configuration parameters
> ############################################################
>
> # Image width in pixels.
> width 800
>
> # Image height in pixels.
> height 600
>
> # Maximum number of frames to be captured per second.
> framerate 30
>
> # Minimum time in seconds between capturing picture frames from the camera.
> minimum_frame_time 0
>
> # Number of degrees to rotate image.
> rotate 0
>
> # Flip image over a given axis
> flip_axis none
>
> # Draw a locate box around the moving object.
> locate_motion_mode off
>
> # Set the look and style of the locate box.
> locate_motion_style box
>
> # Text to be overlayed in the lower left corner of images
> ; text_left value
>
> # Text to be overlayed in the lower right corner of images.
> text_right %d %^b %y\n%T-%q
>
> # Overlay number of changed pixels in upper right corner of images.
> text_changes off
>
> # Scale factor for text overlayed on images.
> text_scale 1
>
> # The special event conversion specifier %C
> text_event %d %^b %y\n%H%M%S
>
> ############################################################
> # Motion detection configuration parameters
> ############################################################
>
> # Always save pictures and movies even if there was no motion.
> emulate_motion off
>
> # Threshold for number of changed pixels that triggers motion.
> threshold 1300
>
> # The maximum threshold for number of changed pixels that triggers motion.
> threshold_maximum 0
>
> # Enable tuning of the threshold down if possible.
> threshold_tune off
>
> # Noise threshold for the motion detection.
> noise_level 32
>
> # Automatically tune the noise threshold
> noise_tune on
>
> # Despeckle the image using (E/e)rode or (D/d)ilate or (l)abel.
> despeckle_filter EedDl
>
> # Area number used to trigger the on_area_detected script.
> ; area_detect value
>
> # Full path and file name for motion detection mask PGM file.
> mask_file /etc/motion/mask.pgm
>
> # Full path and file name for privacy mask PGM file.
> ; mask_privacy value
>
> # The value defining how slow or fast the smart motion mask created and
> used.
> smart_mask_speed 0
>
> # Percentage of image that triggers a lightswitch detected.
> lightswitch_percent 0
>
> # When lightswitch is detected, ignore this many frames
> lightswitch_frames 5
>
> # Number of images that must contain motion to trigger an event.
> minimum_motion_frames 1
>
> # Gap in seconds of no motion detected that triggers the end of an event.
> event_gap 60
>
> # The number of pre-captured (buffered) pictures from before motion.
> pre_capture 0
>
> # Number of frames to capture after motion is no longer detected.
> post_capture 30
>
>
> _______________________________________________
> 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...

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



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

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 165, Issue 12
********************************************

Reply via email to