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. ffmpeg options (Jack Snodgrass)
   2. Re: ffmpeg options (mar...@savcom.co.uk)
   3. suggestions to reduce false positives for motion events
      (Jack Snodgrass)


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

Message: 1
Date: Sat, 20 Jun 2020 10:46:56 -0500
From: Jack Snodgrass <j...@mylinuxguy.net>
To: motion-user@lists.sourceforge.net
Subject: [Motion-user] ffmpeg options
Message-ID: <8bc0a15f-21f6-d5f3-3713-86f513c37...@mylinuxguy.net>
Content-Type: text/plain; charset="utf-8"; Format="flowed"



I have the 4.3.1 motion package installed ( Fedora 32, from the 
rpmfusion archive )

there isn't a lot ( any ) mention of ffmpeg in the /etc/motion/* files.

I used a rtps://address link that gets data from an ip camera with a 
rtsp port active.

The output movie that is created automatically is:


ffmpeg -i reports:

Input #0, matroska,webm, from 
'/opt/motion/CAM01_101-205-20200619170942.mkv':
 ? Metadata:
 ??? ENCODER???????? : Lavf58.29.100
 ? Duration: 00:00:57.12, start: 0.000000, bitrate: 8595 kb/s
 ??? Stream #0:0: Video: h264 (Constrained Baseline), 
yuv420p(progressive), 1920x1072, 15.17 fps, 29.75 tbr, 1k tbn, 30 tbc 
(default)
 ??? Metadata:
 ????? DURATION??????? : 00:00:57.120000000


I am assuming ffmpeg is used to create this .mkv file.

If that's the case... where can I find the parameters that were used and 
adjust them.

I see that there are ( undocumented in the /etc/motion/* files I have ) 
ffmpeg options.. but it would be nice to know what options were used and 
adjust from there.

Thanks - jack

-- 
*jack* - Southlake Texas - http://mylinuxguy.net <http://mylinuxguy.net/>
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 2
Date: Sat, 20 Jun 2020 17:34:12 +0100
From: <mar...@savcom.co.uk>
To: "'Motion discussion list'" <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] ffmpeg options
Message-ID: <04f601d64720$a1415fb0$e3c41f10$@savcom.co.uk>
Content-Type: text/plain; charset="utf-8"

I too would be interested in where these parameters are set.  I have a problem 
post-processing motion?s .mkv videos as the header information appears to give 
incorrect frame-rate info and subsequent processing by ffmpeg (to crop/size) 
fails as a result.

 

Thanks in advance

 

Martin

 

From: Jack Snodgrass <j...@mylinuxguy.net> 
Sent: 20 June 2020 16:47
To: motion-user@lists.sourceforge.net
Subject: [Motion-user] ffmpeg options

 



I have the 4.3.1 motion package installed ( Fedora 32, from the rpmfusion 
archive ) 

there isn't a lot ( any ) mention of ffmpeg in the /etc/motion/* files. 

I used a rtps://address link that gets data from an ip camera with a rtsp port 
active. 

The output movie that is created automatically is: 


ffmpeg -i reports:

Input #0, matroska,webm, from '/opt/motion/CAM01_101-205-20200619170942.mkv':
  Metadata:
    ENCODER         : Lavf58.29.100
  Duration: 00:00:57.12, start: 0.000000, bitrate: 8595 kb/s
    Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(progressive), 
1920x1072, 15.17 fps, 29.75 tbr, 1k tbn, 30 tbc (default)
    Metadata:
      DURATION        : 00:00:57.120000000


I am assuming ffmpeg is used to create this .mkv file. 

If that's the case... where can I find the parameters that were used and adjust 
them.  

I see that there are ( undocumented in the /etc/motion/* files I have ) ffmpeg 
options.. but it would be nice to know what options were used and adjust from 
there. 

Thanks - jack 

-- 
jack - Southlake Texas - http://mylinuxguy.net <http://mylinuxguy.net/> 

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

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

Message: 3
Date: Sat, 20 Jun 2020 12:26:24 -0500
From: Jack Snodgrass <j...@mylinuxguy.net>
To: 'Motion discussion list' <motion-user@lists.sourceforge.net>
Subject: [Motion-user] suggestions to reduce false positives for
        motion events
Message-ID: <532308c8-b579-1afa-d546-505bfa90b...@mylinuxguy.net>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

I am using a rtsp device.... its' a Swann - SWWHD-PTCAM ( or just PTCAM 
) that works with:

netcam_url rtsp://userid:passwd@192.168.100.99

I've only been testing with it a day. I got some good movie captures of 
a wet skunk getting out of the rain on my porch last night.? I got a lot 
of false-positive movie captures too.
I don't see any movement on the video.. but I got a video recorded.

I have set the camera about 8' up in my front porch vestibule. It's a 
smallish, fixed area that its looking at:



I changed the default motion stuff to:

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

# Noise threshold for the motion detection.
##; noise_level 32
noise_level 64

# 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 1
minimum_motion_frames 15

# 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 3
pre_capture 10

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


but that doesn't seem to help.

Is there something else I can do to only capture motion events when I 
have some actual motion?

I don't know if there are better streams to use then an rtsp one... I 
might be able to get a mjpeg thing out of the camera.

Does anyone have any suggestions for settings to try?

- jack

-- 
*jack* - Southlake Texas - http://mylinuxguy.net 
<http://mylinuxguy.net/> - j...@mylinuxguy.net
-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fp.jpg
Type: image/jpeg
Size: 24118 bytes
Desc: not available

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



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

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 168, Issue 51
********************************************

Reply via email to