This project is written in C++ and uses OpenCV to read a rtsp stream and display it in a OpenCV window.
- install c++ compiler
- install opencv
# 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
# 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"
There are a couple of helper scripts to clean/build as well
./cleanup.sh
./build.sh