Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 920 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 920 Bytes

ip-camera

Save a rtsp stream from your IP camera to S3

  1. I used a t2.nano instance with Ubuntu from AWS with 8GB of storage and setup a S3 bucket.
  2. Clone this repo in the ubuntu home directory
  3. Start by running sudo -i, so you don't have to type sudo for all commands.
  4. Install the aws CLI pip install awscli --upgrade --user and then run aws configure follow steps here
  5. You'll want to install avconv by running apt-get install avconv
  6. Next copy recordCam.sh in to the ubuntu user home directory /home/ubuntu, make sure to update url in the script to your cameras
  7. Move cam.service and copy-video.service to /etc/systemd/system
  8. Run systemctl daemon reload
  9. Run systemctl enable cam and systemctl enable copy-video
  10. That's all! Go to your s3 bucket to see your files.