/rtsp-stream-viewer

A C++ application that displays a rtsp video stream from a camera with OpenCV

Primary LanguageC++

rtsp_stream_viewer

This project is written in C++ and uses OpenCV to read a rtsp stream and display it in a OpenCV window.

Prerequisites

  • install c++ compiler
  • install opencv

Build

# use cmake and give it the path .  It generates a build system for a target platform based on a project's CMakeLists.txt file
cmake .

# use make to build the project by invoking the makefiles generated by cmake 
# this will generate a executable called rtsp_stream_viewer,  run it like:
make

#Alternatively you can run ./build.sh which essentially does the same thing as above

Run

# to run:
./rtsp_stream <stream-url>

# for example you can pass any stream-url from the command line like this:
./rtsp_stream "rtsp://admin:admin@192.168.0.41/live"

Helper scripts

There are a couple of helper scripts to clean/build as well

./cleanup.sh
./build.sh