Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 847 Bytes

streaming_server.md

File metadata and controls

33 lines (30 loc) · 847 Bytes

Streaming server

The streaming server is used to observe detection images which are pushed from the detection node.

Run the container in debug mode:

docker run --rm -it --network=host aler9/rtsp-simple-server

Run with authentication in background:

docker run -d --network=host \
--env RTSP_PATHS_ALL_PUBLISHUSER=pusher \
--env RTSP_PATHS_ALL_PUBLISHPASS=myrandompass \
--env RTSP_PATHS_ALL_READUSER=viewer \
--env RTSP_PATHS_ALL_READPASS=myrandompass \
aler9/rtsp-simple-server

Push stream from webcam of a client:

ffmpeg -r 5 \
-s 640x480 \
-f v4l2 \
-input_format mjpeg \
-i /dev/video0 \
-c:v copy \
-f rtsp \
rtsp://pusher:myrandompass@stream_server_ip_or_fqnd:8554/mystream

Read stream from a third device:

ffplay -i rtsp://viewer:myrandompass@stream_server_ip_or_fqnd:8554/mystream