wiki:UserGuide/CameraStreaming

Version 2 (modified by cz2678, 5 days ago) ( diff )

Camera Streaming

Getting Started

Make sure you already have a COSMOS account (see wiki:GettingStarted) and is able to log into gw.cosmos-lab.org:

ssh COSMOS_USER@gw.cosmos-lab.org

Here, COSMOS_USER is your COSMOS username.

The following cameras can be accessed within the COSMOS network.

Name Location Orientation IP Type
cam1-md12-logia-ams.bed.cosmos-lab.org Mudd 12F Logia Amsterdam Ave North 10.110.12.4 AXIS Q3628-VE Dome Camera
cam2-md12-botwinik-120.bed.cosmos-lab.org Mudd 12F Botwinik Lab 120th St East 10.110.12.5 AXIS Q1808-LE Bullet Camera

RTSP Access Within COSMOS

If you have logged into a compute node (e.g. Bed or SB1/2) on the COSMOS network (note that GW is not a compute node), you can access the RTSP stream using tools like FFmpeg under the URL:

rtsp://public:cosmos@CAMERA_NAME_OR_IP/axis-media/media.amp

Replace the CAMERA_NAME_OR_IP with the name or the IP address of the desired camera, found in the table above.

For example, the command below records a 10s video from the 12F-logia camera in 30 FPS:

ffmpeg -nostdin -rtsp_transport udp -i rtsp://public:cosmos@cam1-md12-logia-ams.bed.cosmos-lab.org/axis-media/media.amp -r 30 -vcodec copy -an -t 10 output.mp4

Camera Access Outside of COSMOS

You can also access the camera web interface from the outside:

  1. Choose an used port on your machine, e.g. 8080.
  1. Forward the camera interface at port 80 to your local 8080 port via SSH (replace the CAMERA_NAME_OR_IP and COSMOS_USERNAME):
ssh -L 8080:CAMERA_NAME_OR_IP:80 COSMOS_USERNAME@gw.cosmos-lab.org
  1. From your browser, go to localhost:8080.
  1. When prompted, enter username public and password cosmos.
Note: See TracWiki for help on using the wiki.