| | 1 | == Camera Streaming |
| | 2 | |
| | 3 | === Getting Started |
| | 4 | |
| | 5 | Make sure you already have a COSMOS account (see wiki:GettingStarted) and is able to log into '''gw.cosmos-lab.org''': |
| | 6 | |
| | 7 | {{{#!shell-session |
| | 8 | ssh COSMOS_USER@gw.cosmos-lab.org |
| | 9 | }}} |
| | 10 | |
| | 11 | Here, '''COSMOS_USER''' is your COSMOS username. |
| | 12 | |
| | 13 | The following cameras can be accessed within the COSMOS network. |
| | 14 | |
| | 15 | ||= Name =||= Location =||= Orientation =||= IP =||= Type =|| |
| | 16 | || cam1-md12-logia-ams.bed.cosmos-lab.org || Mudd 12F Logia || Amsterdam Ave North || 10.110.12.4 || [https://www.axis.com/products/axis-q3628-ve AXIS Q3628-VE Dome Camera] || |
| | 17 | || cam2-md12-botwinik-120.bed.cosmos-lab.org || Mudd 12F Botwinik Lab || 120th St East || 10.110.12.5 || [https://www.axis.com/products/axis-q1808-le AXIS Q1808-LE Bullet Camera] || |
| | 18 | |
| | 19 | |
| | 20 | === RTSP Access Within COSMOS |
| | 21 | |
| | 22 | If you have logged into the COSMOS network (e.g. on GW or any other node), you can access the RTSP stream using tools like FFmpeg under the URL: |
| | 23 | |
| | 24 | {{{#!shell-session |
| | 25 | rtsp://public:cosmos@CAMERA_NAME_OR_IP/axis-media/media.amp |
| | 26 | }}} |
| | 27 | |
| | 28 | Replace the '''CAMERA_NAME_OR_IP''' with the name or the IP address of the desired camera, found in the table above. |
| | 29 | |
| | 30 | For example, the command below records a 10s video from the 12F-logia camera in 30 FPS: |
| | 31 | |
| | 32 | {{{#!shell-session |
| | 33 | 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 |
| | 34 | }}} |
| | 35 | |
| | 36 | |
| | 37 | === Camera Access Outside of COSMOS |
| | 38 | |
| | 39 | You can also access the camera web interface from the outside: |
| | 40 | |
| | 41 | 1. Choose an used port on your machine, e.g. '''8080'''. |
| | 42 | |
| | 43 | 2. Forward the camera interface at port '''80''' to your local '''8080''' port via SSH (replace the '''CAMERA_NAME_OR_IP''' and '''COSMOS_USERNAME'''): |
| | 44 | |
| | 45 | {{{#!shell-session |
| | 46 | ssh -L 8080:CAMERA_NAME_OR_IP:80 COSMOS_USERNAME@gw.cosmos-lab.org |
| | 47 | }}} |
| | 48 | |
| | 49 | 3. From your browser, go to '''localhost:8080'''. |
| | 50 | |
| | 51 | 4. When prompted, enter username '''public''' and password '''cosmos'''. |
| | 52 | |
| | 53 | |