Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Overview

In the absence of ONVIF compliant cameras, simulated Real-Time Streaming Protocol (RTSP) streams from recorded mp4 videos can be used to publish video for edge binary to consumption. However, when edge process operates in simulated RTSP stream mode, only video playback and livestream features are enabled.

Pre-requisites

  • An mp4 video
  • Install docker
  • Install FFmpeg

Instructions to run and verify the capability

  1. Run the docker container to spin up the RTSP server
docker run --rm -it --network=host aler9/rtsp-simple-server
  1. Publish the stream from mp4 videos using FFmpeg
ffmpeg -re -stream_loop -1 -i <mp4 file name>> -c:v copy -an -f rtsp -rtsp_transport tcp <rtsp stream url>
  1. Confirm video is published to the stream
ffplay -rtsp_transport tcp <rtsp stream url>
  1. Run edge process
cargo run --feature simulated-rtsp-stream -- -c <config file path>
  1. Log in to AWS console, go to KVS and check if the video is being sent to KVS by checking the playback in KVS.