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