Advertisement
metalx1000

Android Device as Security Camera

Dec 1st, 2024
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.31 KB | None | 0 0
  1. # Android as Security Camera
  2. # https://github.com/Ruddle/RemoteCam
  3. # It has a simple interface, so just install, run, and select your option
  4. wget "https://github.com/Ruddle/RemoteCam/releases/download/0.04/RemoteCam_0.04.apk" -O RemoteCam.apk
  5. adb install -g RemoteCam
  6.  
  7.  
  8. # to monitor - remember, only one device at a time
  9. vlc "http://192.168.1.162:8080/cam.mjpeg"
  10. xdg-open "http://192.168.1.162:8080/cam.mjpeg"
  11.  
  12. # If you want to remotely record/monitor with motion detection, use Motion
  13. sudo apt install motion
  14.  
  15. # get an example config file
  16. # https://gist.github.com/iandow/1abc620626af601bf73f529e49b3a7b4
  17. # things you might want to set
  18.  
  19. camera_name AndroidCam
  20.  
  21. # Numeric identifier for the camera.
  22. camera_id 101
  23.  
  24. # The full URL of the network camera stream.
  25. netcam_url http://192.168.1.162:8080/cam.mjpeg
  26.  
  27. # File name(without extension) for movies relative to target directory
  28. movie_filename AndroidCAM01_%t-%v-%Y%m%d%H%M%S
  29.  
  30. target_dir /home/metalx1000/Nextcloud/motion
  31.  
  32. # Port number used for the webcontrol.
  33. webcontrol_port 8092
  34.  
  35. # The port number for the live stream.
  36. stream_port 8091
  37.  
  38. movie_codec mp4
  39.  
  40. # Once config is set you can start motion and point it at the config file
  41. motion -c android_cam.conf
  42.  
  43. # This will start motion with motion detection (only record when there is movement)
  44.  
  45.  
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement