<?xml version="1.0"?>
<motion>
  <common>
    <daemon value="on"/>
    <setup_mode value="off"/>
    <v4l>
      <videodevice value="/dev/video8"/>
      <input value="8"/>
      <norm value="0"/>
      <frequency value="0"/>
      <auto_brightness value="off"/>
      <brightness value="0"/>
      <contrast value="0"/>
      <saturation value="0"/>
      <hue value="0"/>
      <roundrobin_frames value="1"/>
      <roundrobin_skip value="1"/>
    </v4l>
    <rotate value="0"/>
    <width value="320"/>
    <height value="240"/>
    <framerate value="2"/>
    <switchfilter value="off"/>
    <threshold value="1500"/>
    <threshold_tune value="off"/>
    <noise_level value="32"/>
    <noise_tune value="on"/>
    <night_compensate value="off"/>
    <despeckle value="EedDl"/>
    <smart_mask_speed value="8"/>
    <lightswitch value="60"/>
    <minimum_motion_frames value="1"/>
    <pre_capture value="0"/>
    <post_capture value="0"/>
    <gap value="60"/>
    <minimum_gap value="0"/>
    <max_mpeg_time value="0"/>
    <low_cpu value="0"/>
    <output_all value="off"/>
    <output_normal value="on"/>
    <output_motion value="off"/>
    <quality value="75"/>
    <ppm value="off"/>
    <ffmpeg>
      <filename value="%v-%Y%m%d%H%M%S"/>
      <cap_new value="on"/>
      <cap_motion value="off"/>
      <timelapse value="0"/>
      <timelapse_mode value="daily"/>
      <bps value="500000"/>
      <variable_bitrate value="2"/>
      <video_codec value="mpeg4"/>
    </ffmpeg>
    <snapshot_interval value="0"/>
    <locate value="on"/>
    <text_right value="%Y-%m-%d\n%T"/>
    <text_left value="CAMERA 1"/>
    <text_changes value="off"/>
    <text_event value="%Y%m%d%H%M%S"/>
    <text_double value="off"/>
    <target_dir value="/usr/local/apache2/htdocs/cam1"/>
    <snapshot_filename value="%v-%Y%m%d%H%M%S-snapshot"/>
    <jpeg_filename value="%v-%Y%m%d%H%M%S-%q"/>
    <timelapse_filename value="%Y%m%d%H-timelapse"/>
    <webcam_port value="8081"/>
    <webcam_quality value="50"/>
    <webcam_motion value="on"/>
    <webcam_maxrate value="1"/>
    <webcam_localhost value="off"/>
    <webcam_limit value="1200"/>
    <control_port value="8080"/>
    <control_localhost value="off"/>
    <control_html_output value="on"/>
    <control_authentication value="mydomain:mypasswd"/>
    <track_type value="0"/>
    <track_motorx value="-1"/>
    <track_maxx value="0"/>
    <track_iomojo_id value="0"/>
    <track_speed value="255"/>
    <track_stepsize value="0"/>
    <quiet value="on"/>
    <on_picture_save value="/usr/local/motion-extras/camparse1.pl"/>
    <sql_log_image value="on"/>
    <sql_log_snapshot value="on"/>
    <sql_log_mpeg value="on"/>
    <sql_log_timelapse value="on"/>
    <mysql_db value="motion"/>
    <mysql_host value="127.0.0.1"/>
    <mysql_user value="motion"/>
    <mysql_password value="mypasswd"/>
    <pgsql_port value="5432"/>
  </common>
  <camera>
    <name value="Camera 1"/>
    <input_plugin value="netcam"/>
    <movie_plugin value="ffmpeg"/>
    <netcam>
      <url value="http://192.1681.100/video.cgi"/>
    </netcam>
    <text_left value="%C\nCAMERA 1"/>
    <ffmpeg>
      <timelapse value="10"/>
    </ffmpeg>
  </camera>
  <camera>
    <name value="Camera 2"/>
    <input_plugin value="v4l"/>
    <movie_plugin value="ffmpeg"/>
    <v4l>
      <videodevice value=" /dev/video0"/>
      <input value="1"/>
    </v4l>
    <text_left value="CAMERA 2"/>
    <target_dir value="/usr/local/apache2/htdocs/cam2"/>
    <webcam_port value="8082"/>
    <on_picture_save value="/usr/local/motion-extras/camparse2.pl"/>
    <on_movie_end value="/usr/local/motion-extras/mpegparse2.pl"/>
    <ffmpeg>
      <timelapse value="60"/>
    </ffmpeg>
  </camera>
  <camera>
    <value value="3"/>
    <input_plugin value="v4l"/>
    <movie_plugin value="ffmpeg"/>
    <v4l>
      <videodevice value="/dev/video2"/>
      <input value="1"/>
    </v4l>
    <threshold value="3000"/>
    <text_left value="CAMERA 3"/>
    <target_dir value="/usr/local/apache2/htdocs/cam3"/>
    <webcam_port value="8083"/>
    <on_picture_save value="/usr/local/motion-extras/camparse3.pl"/>
    <on_movie_end value="/usr/local/motion-extras/mpegparse3.pl"/>
    <ffmpeg>
      <cap_new value="off"/>
    </ffmpeg>
  </camera>
</motion>

