From 56e7f63c3f7f8ae65587a812dcda7dbf810ee40f Mon Sep 17 00:00:00 2001 From: Arne Baeumler Date: Mon, 1 May 2017 22:02:16 +0200 Subject: [PATCH] motion config --- config/cam-front.conf | 9 +++++++++ config/cam-hamster.conf | 8 ++++++++ config/motion.conf | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 config/cam-front.conf create mode 100644 config/cam-hamster.conf create mode 100644 config/motion.conf diff --git a/config/cam-front.conf b/config/cam-front.conf new file mode 100644 index 0000000..6bde977 --- /dev/null +++ b/config/cam-front.conf @@ -0,0 +1,9 @@ +netcam_url rtsp://nas.lxc.br0tkasten.de:554/11 +netcam_keepalive on +rtsp_uses_tcp on +stream_port 8080 + +picture_filename front/%Y-%m-%d_%H-%M-%S_%v +movie_filename front/%Y-%m-%d_%H-%M-%S_%v + +on_picture_save /opt/sbin/mqtt front %f diff --git a/config/cam-hamster.conf b/config/cam-hamster.conf new file mode 100644 index 0000000..a27ff2b --- /dev/null +++ b/config/cam-hamster.conf @@ -0,0 +1,8 @@ +netcam_url rtsp://192.168.1.223:554/onvif1 +rtsp_uses_tcp off +stream_port 8081 + +picture_filename hamster/%Y-%m-%d_%H-%M-%S_%v +movie_filename hamster/%Y-%m-%d_%H-%M-%S_%v + +on_picture_save /opt/sbin/mqtt hamster %f diff --git a/config/motion.conf b/config/motion.conf new file mode 100644 index 0000000..9b317cf --- /dev/null +++ b/config/motion.conf @@ -0,0 +1,32 @@ + +n +process_id_file /var/run/motion/motion.pid + +width 640 +height 360 + +event_gap 30 +minimum_motion_frames 3 +threshold 9000 +threshold_tune on +switchfilter on +noise_tune on + +locate_motion_style redbox + +ffmpeg_output_movies on +ffmpeg_video_codec webm +ffmpeg_bps 1000000 +ffmpeg_variable_bitrate 100 + +stream_localhost off +stream_motion on +stream_quality 100 +webcontrol_localhost off + +target_dir /var/www/localhost/htdocs + +output_pictures best + +thread /etc/motion/cam-front.conf +thread /etc/motion/cam-hamster.conf