3D Printer Cameras
We are installing some old Amcrest IP cameras to allow remote monitoring of the 3D printers.
The IP cameras have static IPs on the Asmbly local network, eg. 192.168.0.244
We are making the RTSP stream (TCP and UDP port 554) available to the outside world at shop.asmbly.org:3NNN
with NNN matching the IP of the camera, for example you should be able to view a stream using VLC by specifying rtsp://viewer:PASSWORD@shop.asmbly.org:3NNN
Because web browsers don't natively support RTSP streams, we have set up an installation of Restreamer on an AWS EC2 instance that pulls the RTSP streams and makes them available in a web player.
To set up Restreamer we did:
ssh ec2-user@ec2-18-117-124-192.us-east-2.compute.amazonaws.com sudo yum install -y docker sudo service docker start sudo usermod -a -G docker ec2-user docker run -d --restart always \ --name restreamer \ -e "RS_USERNAME=admin" \ -e "RS_PASSWORD=[REDACTED]" \ -p 8080:8080 \ -v /home/ec2-userrestreamer/db:/restreamer/db \ datarhei/restreamer:latest
Then configured the stream using the web interface.
To view the stream, you can hit http://restreamer.asmbly.org:8080/cd831f90-1b43-494b-92e2-1407d2779432.html with the appropriate UUID for the camera you want.