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: Problems with mkv files (Peter Zandbergen)
   2. Video issues with Raspbian Buster (Jack Christensen)


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

Message: 1
Date: Sun, 2 Feb 2020 20:57:51 +0100
From: Peter Zandbergen <peter.zandber...@myhops.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Problems with mkv files
Message-ID:
        <CAGr=_=nC2sHF-7ehEubU3znXdLouREnBe7JSjApi-=42y0p...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Thanks for all your suggestions.

I have changed the format to mp4 and that results in files that VLC can
play.

@Alex: The config file is the one that comes with the installation. I made
some minor changes. I use the v4l driver and that creates a device video0.
The motion manual recommends this when installing motion via apt. This
works fine, I can see the video in the web interface.

I think changing the format to mp4 is what was needed.

Cheers,

Peter Zandbergen
Tel: +31 6 460 55 872

linkedIn: peterzandbergen <https://www.linkedin.com/in/peterzandbergen>


On Sun, 2 Feb 2020 at 20:07, tosiara <tosi...@gmail.com> wrote:

> This is known issue with VLC and low FPS files.
>
> Tools -> Options -> Input codecs -> Network -> Caching policy: High latency
>
> On Sun, Feb 2, 2020 at 5:16 PM Peter Zandbergen <
> peter.zandber...@myhops.com> wrote:
>
>> Hi,
>>
>> I have installed motion on a raspberry pi zero using the apt package. I
>> added the driver for the Pi camera and managed to get a running image with
>> proper detection in the browser on port 8081.
>>
>> After seeing that a few events had been recorded to the target directory
>> I copied them to my W10 pc and tried to play them with VLC. What I saw was
>> a still picture of the first frame, no running video.
>>
>> Some suggestions on how to fix this?
>>
>> Log is below and video file added.
>>
>> Cheers,
>>
>> Peter Zandbergen
>> Tel: +31 6 460 55 872
>>
>> linkedIn: peterzandbergen <https://www.linkedin.com/in/peterzandbergen>
>>
>>
>>
>> LOG
>>
>> ======
>> ------------------------
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_get_capability: - VIDEO_CAPTURE
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_get_capability: - VIDEO_OVERLAY
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_get_capability: - READWRITE
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_get_capability: - STREAMING
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_select_input: name = "Camera
>> 0", type 0x00000002, status 00000000
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_select_input: - CAMERA
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_select_input: Device does not
>> support specifying PAL/NTSC norm
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_do_set_pix_format: Testing
>> palette YU12 (320x240)
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_do_set_pix_format: Using
>> palette YU12 (320x240) bytesperlines 320 sizeimage 115200 colorspace
>> 00000001
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control
>> 0x00980900, "Brightness", range 0,100
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls:
>> "Brightness", default 50, current 50
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control
>> 0x00980901, "Contrast", range -100,100
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls:
>> "Contrast", default 0, current 0
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control
>> 0x00980902, "Saturation", range -100,100
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls:
>> "Saturation", default 0, current 0
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control
>> 0x00980918, "Power Line Frequency", range 0,3
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls:       "Power
>> Line Frequency", default 1, current 1
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control
>> 0x0098090e, "Red Balance", range 1,7999
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls:       "Red
>> Balance", default 1000, current 1000
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls: found control
>> 0x0098090f, "Blue Balance", range 1,7999
>> [1:ml1] [NTC] [VID] [Feb 01 14:16:41] v4l2_scan_controls:       "Blue
>> Balance", default 1000, current 1000
>> [1:ml1] [NTC] [ALL] [Feb 01 14:16:41] image_ring_resize: Resizing
>> pre_capture buffer to 1 items
>> [1:ml1] [NTC] [STR] [Feb 01 14:16:41] http_bindsock: listening on any
>> IPv4 address port 8081
>> [1:ml1] [NTC] [ALL] [Feb 01 14:16:41] motion_init: Started motion-stream
>> server on port 8081 (auth Disabled)
>> [1:ml1] [NTC] [EVT] [Feb 01 14:16:46] event_newfile: File of type 8 saved
>> to: /var/lib/motion/01-20200201141646.mkv
>> [1:ml1] [NTC] [ALL] [Feb 01 14:16:46] motion_detected: Motion detected -
>> starting event 1
>> [1:ml1] [NTC] [ALL] [Feb 01 14:20:00] mlp_actions: End of event 1
>> [1:ml1] [NTC] [EVT] [Feb 01 14:20:37] event_newfile: File of type 8 saved
>> to: /var/lib/motion/02-20200201142037.mkv
>> [1:ml1] [NTC] [ALL] [Feb 01 14:20:37] motion_detected: Motion detected -
>> starting event 2
>> [1:ml1] [NTC] [ALL] [Feb 01 14:21:56] mlp_actions: End of event 2
>> [1:ml1] [NTC] [EVT] [Feb 01 14:22:19] event_newfile: File of type 8 saved
>> to: /var/lib/motion/03-20200201142219.mkv
>> [1:ml1] [NTC] [ALL] [Feb 01 14:22:19] motion_detected: Motion detected -
>> starting event 3
>> [1:ml1] [NTC] [ALL] [Feb 01 14:23:51] mlp_actions: End of event 3
>> [1:ml1] [NTC] [EVT] [Feb 01 14:23:58] event_newfile: File of type 8 saved
>> to: /var/lib/motion/04-20200201142358.mkv
>> [1:ml1] [NTC] [ALL] [Feb 01 14:23:58] motion_detected: Motion detected -
>> starting event 4
>> [1:ml1] [NTC] [ALL] [Feb 01 14:30:30] mlp_actions: End of event 4
>> [1:ml1] [NTC] [EVT] [Feb 01 14:30:54] event_newfile: File of type 8 saved
>> to: /var/lib/motion/05-20200201143054.mkv
>> [1:ml1] [NTC] [ALL] [Feb 01 14:30:54] motion_detected: Motion detected -
>> starting event 5
>> [1:ml1] [NTC] [ALL] [Feb 01 14:32:44] mlp_actions: End of event 5
>> [1:ml1] [NTC] [EVT] [Feb 01 14:34:33] event_newfile: File of type 8 saved
>> to: /var/lib/motion/06-20200201143432.mkv
>> [1:ml1] [NTC] [ALL] [Feb 01 14:34:33] motion_detected: Motion detected -
>> starting event 6
>> [1:ml1] [NTC] [ALL] [Feb 01 14:36:09] mlp_actions: End of event 6
>> [1:ml1] [NTC] [EVT] [Feb 01 14:37:39] event_newfile: File of type 8 saved
>> to: /var/lib/motion/07-20200201143739.mkv
>> [1:ml1] [NTC] [ALL] [Feb 01 14:37:39] motion_detected: Motion detected -
>> starting event 7
>> [1:ml1] [NTC] [ALL] [Feb 01 14:48:29] mlp_actions: End of event 7
>>
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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: Sun, 2 Feb 2020 15:21:11 -0500
From: Jack Christensen <christensen.jac...@gmail.com>
To: Motion-user@lists.sourceforge.net
Subject: [Motion-user] Video issues with Raspbian Buster
Message-ID: <49f6a4ae-accd-abbd-578c-437d2e9c7...@gmail.com>
Content-Type: text/plain; charset="utf-8"

I've been running several Raspberry Pi Zero W machines with V2 Pi
cameras for about a year with good results, using Raspbian Stretch and
Motion 4.2.1, and then Motion 4.2.2.

More recently I upgraded one machine to Raspbian Buster, and movement in
the videos is uneven. Typically, I only see about one frame per second
when playing back a video, except for the first second or so (I have
pre_capture set to 4 frames).

I now can see that videos from the Stretch machines also have missing
frames, but to a much lesser extent.

Configuration is the same for all machines except for inconsequential
parameters like camera_name etc. Attached is the config file for the
Buster machine.

Any ideas as to why this occurs, or how I can debug it will be greatly
appreciated. I tried increasing the log_level but didn't see anything
suspicious in the log. I tried changing the codec from mkv to mp4, and
that made no difference.

-- 
Jack Christensen
Sent from Linux Mint 19.1 using Mozilla Thunderbird

?

-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
# Rename this distribution example file to motion.conf
#
# This config file was generated by motion 4.2.1
# Documentation:  /usr/share/doc/motion/motion_guide.html
#
# This file contains only the basic configuration options to get a
# system working.  There are many more options available.  Please
# consult the documentation for the complete list of all options.
#

############################################################
# 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 /home/jack/motion.pid

# File to write logs messages into.  If not defined stderr and syslog is used.
log_file /home/jack/motion.log

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

# Target directory for pictures, snapshots and movies
target_dir /home/jack/motion-output

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

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

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

# Camera control parameters (see raspivid/raspistill tool documentation)
# mmalcam_control_params -rot 180

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

# Image width in pixels.
width 896

# Image height in pixels.
height 504

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

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

# Show changed pixels in upper right corner
text_changes on

# Scale text to be larger
text_scale 2

############################################################
# 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 1500
threshold_tune on

# Noise threshold for the motion detection.
; noise_level 32

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

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

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

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

# Ignore sudden massive light intensity changes (percentage of picture area 
that changed intensity.)
lightswitch_percent 20

# The number of frames to ignore when the lightswitch condition is triggered.
lightswitch_frames 8

############################################################
# Script execution configuration parameters
############################################################

# Command to be executed when an event starts.
; on_event_start value

# Command to be executed when an event ends.
; on_event_end value

# Command to be executed when a movie file is closed.
on_movie_end /home/jack/sync.sh %f

############################################################
# Picture output configuration parameters
############################################################

# Output pictures when motion is detected
picture_output off

# File name(without extension) for pictures relative to target directory
picture_filename %Y%m%d%H%M%S-%q

############################################################
# Movie output configuration parameters
############################################################

# Create movies of motion events.
movie_output on

# Maximum length of movie in seconds.
movie_max_time 60

# The encoding quality of the movie. (0=use bitrate. 1=worst quality, 100=best)
movie_quality 50

# Container/Codec to used for the movie. See motion_guide.html
movie_codec mkv

# File name(without extension) for movies relative to target directory
movie_filename %t-%Y%m%d-%H%M%S-%3v

############################################################
# Webcontrol configuration parameters
############################################################

# Port number used for the webcontrol.
webcontrol_ipv6 on
webcontrol_port 8080

# Restrict webcontrol connections to the localhost.
webcontrol_localhost off

# Type of configuration options to allow via the webcontrol.
webcontrol_parms 0

############################################################
# Live stream configuration parameters
############################################################

# The port number for the live stream.
stream_port 8081

# Restrict stream connections to the localhost.
stream_localhost off

##############################################################
# Camera config files - One for each camera.
##############################################################
# camera /home/jack/.motion/cam1.conf
# camera /home/jack/.motion/cam2.conf

# Text to be overlayed in the lower left corner of images
text_left %{host}

# User defined name for the camera.
camera_name CAM1

# Numeric identifier for the camera.
camera_id 1

##############################################################
# Directory to read '.conf' files for cameras.
##############################################################
; camera_dir /etc/motion/conf.d

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



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

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 164, Issue 9
*******************************************

Reply via email to