[root@alma]# vi /usr/local/etc/motion/motion.conf

≪途中省略≫

############################################################
# System control configuration parameters
############################################################

≪途中省略≫

# Target directory for pictures, snapshots and movies
; target_dir value
※ 書き換え 動体検知を録画したファイルの保存場所
target_dir /home/*****/camera※ 上記で設定した保存場所

≪途中省略≫

############################################################
# 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 2500※ カメラの性能や環境によって違ってくる 最初デフォルトで運用し様子を見ながら少しずつ変えていく
一般的には 300 ぐらいがベターとされています
しかし、当方のように時計等の常に動いているものを映している場合は 2500 以上が良いかもしれません


# Noise threshold for the motion detection.
; noise_level 32
※ 書き換え 動体検知かノイズかを判断する数値
noise_level 30※ カメラの性能や環境によって違ってくる 最初デフォルトで運用し様子を見ながら少しずつ変えていく

≪以下省略≫