Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ############################################################
- # Log & Web Control Settings
- ############################################################
- log_level 3 # Turunkan level log untuk penggunaan normal
- log_type all
- log_file -
- webcontrol_port 8080
- webcontrol_localhost off
- webcontrol_parms 1
- webcontrol_interface 0
- webcontrol_auth_method 0
- ############################################################
- # Camera Settings
- ############################################################
- netcam_url rtsp://192.168.1.109:8554/unicast
- width 768
- height 432
- ############################################################
- # Output & Movie Settings (Default/Idle Mode - Sangat Ringan)
- ############################################################
- framerate 1 # <-- TURUNKAN FRAME RATE SAAT IDLE KE 1 FPS
- movie_output off
- movie_codec mp4
- movie_filename %Y%m%d_%H%M%S
- target_dir /home/debian/motion
- movie_quality 10
- movie_bps 300000
- pre_capture 3
- post_capture 0
- ############################################################
- # Motion Detection Settings
- ############################################################
- threshold 1500
- minimum_motion_frames 1
- event_gap 60
- noise_level 32
- noise_tune on
- ############################################################
- # Dynamic Switch (Saat Ada Gerakan) - TETAPKAN INI SAMA
- ############################################################
- on_event_start /bin/bash -c 'echo "$(date "+%Y-%m-%d %H:%M:%S") - [GERAKAN TERDETEKSI] - Kualitas Tinggi Aktif" | tee -a /tmp/motion_event.log && curl -s "http://localhost:8080/0/config/set?framerate=15" && curl -s "http://localhost:8080/0/config/set?movie_output=on" && curl -s "http://localhost:8080/0/config/set?movie_quality=60" && curl -s "http://localhost:8080/0/config/set?movie_bps=1500000"'
- on_event_end /bin/bash -c 'echo "$(date "+%Y-%m-%d %H:%M:%S") - [GERAKAN SELESAI] - Kualitas Rendah Aktif" | tee -a /tmp/motion_event.log && curl -s "http://localhost:8080/0/config/set?framerate=1" && curl -s "http://localhost:8080/0/config/set?movie_output=off" && curl -s "http://localhost:8080/0/config/set?movie_quality=10" && curl -s "http://localhost:8080/0/config/set?movie_bps=300000"'
- # Live Stream Settings (Tambahan jika ingin mematikan stream saat idle)
- # stream_maxrate 0 # <-- Tambahkan ini jika tidak butuh live stream saat idle
- # stream_quality 10 # Kualitas stream sangat rendah jika aktif, atau tidak relevan jika stream_maxrate 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement