Changes between Initial Version and Version 1 of User Guide/Camera Streaming


Ignore:
Timestamp:
Dec 1, 2025, 7:31:59 PM (14 hours ago)
Author:
cz2678
Comment:

Add camera streaming instructions

Legend:

Unmodified
Added
Removed
Modified
  • User Guide/Camera Streaming

    v1 v1  
     1== Camera Streaming
     2
     3=== Getting Started
     4
     5Make sure you already have a COSMOS account (see wiki:GettingStarted) and is able to log into '''gw.cosmos-lab.org''':
     6
     7{{{#!shell-session
     8ssh COSMOS_USER@gw.cosmos-lab.org
     9}}}
     10
     11Here, '''COSMOS_USER''' is your COSMOS username.
     12
     13The 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
     22If 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
     25rtsp://public:cosmos@CAMERA_NAME_OR_IP/axis-media/media.amp
     26}}}
     27
     28Replace the '''CAMERA_NAME_OR_IP''' with the name or the IP address of the desired camera, found in the table above.
     29
     30For example, the command below records a 10s video from the 12F-logia camera in 30 FPS:
     31
     32{{{#!shell-session
     33ffmpeg -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
     39You can also access the camera web interface from the outside:
     40
     411. Choose an used port on your machine, e.g. '''8080'''.
     42
     432. 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
     46ssh -L 8080:CAMERA_NAME_OR_IP:80 COSMOS_USERNAME@gw.cosmos-lab.org
     47}}}
     48
     493. From your browser, go to '''localhost:8080'''.
     50
     514. When prompted, enter username '''public''' and password '''cosmos'''.
     52
     53