Skip to main content
Version: 1.0.3

WARA-PS Video Server RTMP API

Overview

The WARA-PS video server receives live video streams and makes those streams available to clients that need to watch an agent camera feed.

The current video server integration uses RTMP. A publisher sends video to the video server using a stream name.

RTMP Publish URL

rtmp://ome.waraps.org:1935/app/{stream_name}

For agent video, use the agent name as the stream name. Example for SimUSV1:

rtmp://ome.waraps.org:1935/app/SimUSV1

RTMP Watch URL

rtmp://ome.waraps.org:1936/app/{stream_name}

Example for SimUSV1:

rtmp://ome.waraps.org:1936/app/SimUSV1

Publish Video With ffmpeg

Publish a looping MP4 file:

ffmpeg -stream_loop -1 -re -i demo.mp4 -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -b:a 128k -pix_fmt yuv420p -f flv "rtmp://ome.waraps.org:1935/app/SimUSV1"

Publish a generated test pattern when no camera or video file is available:

ffmpeg -re -f lavfi -i testsrc=size=1280x720:rate=30 -f lavfi -i sine=frequency=1000:sample_rate=44100 -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -b:a 128k -pix_fmt yuv420p -f flv "rtmp://ome.waraps.org:1935/app/SimUSV1"

Watch Video

Watch the RTMP stream with ffplay:

ffplay "rtmp://ome.waraps.org:1936/app/SimUSV1"

Stream Naming

The path after /app/ is the stream name. For agent video, use the same agent name that identifies the agent in WARA-PS.

Specification: waraps-api-video-server.json (AsyncAPI 3.1.0, JSON)

Servers

NameProtocolHostDescription
publishrtmpome.waraps.org:1935RTMP video server publish endpoint
watchrtmpome.waraps.org:1936RTMP video server watch endpoint