Use FFmpeg to push continuous video frames(cv::Mat type) to an rtsp server
Make sure opencv and ffmpeg have been installed.
If not,just runsudo apt install opencvandsudo apt install ffmpeg
git clone https://github.com/BaiYouShiWo/OpenCV-rtsp-streamer.git
cd OpenCV-rtsp-streamer
mkdir build && cd build
cmake .. && make