Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2025
5
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. ############################################################
  2. # Log & Web Control Settings
  3. ############################################################
  4.  
  5. log_level 3 # Turunkan level log untuk penggunaan normal
  6. log_type all
  7. log_file -
  8.  
  9. webcontrol_port 8080
  10. webcontrol_localhost off
  11. webcontrol_parms 1
  12. webcontrol_interface 0
  13. webcontrol_auth_method 0
  14.  
  15. ############################################################
  16. # Camera Settings
  17. ############################################################
  18.  
  19. netcam_url rtsp://192.168.1.109:8554/unicast
  20. width 768
  21. height 432
  22.  
  23. ############################################################
  24. # Output & Movie Settings (Default/Idle Mode - Sangat Ringan)
  25. ############################################################
  26.  
  27. framerate 1 # <-- TURUNKAN FRAME RATE SAAT IDLE KE 1 FPS
  28. movie_output off
  29. movie_codec mp4
  30. movie_filename %Y%m%d_%H%M%S
  31. target_dir /home/debian/motion
  32. movie_quality 10
  33. movie_bps 300000
  34. pre_capture 3
  35. post_capture 0
  36.  
  37. ############################################################
  38. # Motion Detection Settings
  39. ############################################################
  40.  
  41. threshold 1500
  42. minimum_motion_frames 1
  43. event_gap 60
  44. noise_level 32
  45. noise_tune on
  46.  
  47. ############################################################
  48. # Dynamic Switch (Saat Ada Gerakan) - TETAPKAN INI SAMA
  49. ############################################################
  50.  
  51. 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"'
  52.  
  53. 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"'
  54.  
  55. # Live Stream Settings (Tambahan jika ingin mematikan stream saat idle)
  56. # stream_maxrate 0 # <-- Tambahkan ini jika tidak butuh live stream saat idle
  57. # stream_quality 10 # Kualitas stream sangat rendah jika aktif, atau tidak relevan jika stream_maxrate 0
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement