Hardware Reference
In-Depth Information
We will now go through the configuration directives and pause to explain or change
options, from top to bottom:
videodevice , v4l2_palette , width , height , and framerate : It is indeed
important to update these directives if you want Motion to grab video
directly from your camera. However, we will not be doing this. Instead,
we will be feeding the video stream that we have already set up with
MJPG-streamer, into Motion. We will do this for three reasons:
° MJPG-streamer is simply better at grabbing video from cameras
using advanced V4L2 features
° You'll learn how to connect conventional IP security cameras
to Motion
° We can utilize the tiny HTTP server of MJPG-streamer and you can
keep watching your stream at a high frame rate
netcam_url : Uncomment and change the line to read:
netcam_url http://localhost:8080/?action=stream
The netcam_url directive is used to feed network camera feeds into Motion,
like our MJPG-streamer feed. Since we're running MJPG-streamer on the
same machine as Motion, we use localhost instead of the IP address of
the Pi.
netcam_http : Uncomment and change this line to read:
netcam_http 1.1
This speeds up the communication with MJPG-streamer.
gap : Change the gap value to 2 for this initial setup. This will be the number
of seconds it takes for our alarm to reset as we're testing the system.
output_normal : Change this setting to off for now, as we don't need any
JPG snapshots to be stored until we have everything set up.
ffmpeg_cap_new : Change this setting to off during setup; we don't need any
video to be recorded either, until we have everything set up.
locate : Change this setting to on for your initial setup, because it'll help you
understand the motion detection process.
text_changes : Also change this setting to on for our initial setup as it'll help
us dial in the sensitivity.
webcam_maxrate : Change this value to match the frame rate of your
MJPG-streamer video feed.
 
Search WWH ::




Custom Search